]> sourceware.org Git - lvm2.git/blame - configure
Don't deref uninitialized log_lv upon failed mirror addition.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
25fbec5b 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
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
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
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
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.)
1995c9ff
AK
66as_nl='
67'
7a197a62
AK
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
1995c9ff 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
91 { (exit 1); exit 1; }
92fi
93
ad6254c5 94# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
ad6254c5
AK
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
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 ||
1995c9ff 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 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
7a197a62 226 case $as_dir in
ad6254c5 227 /*)
7a197a62
AK
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
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
25fbec5b
AK
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
7a197a62 252fi
25fbec5b 253
7a197a62
AK
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
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
25fbec5b
AK
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
7a197a62 273fi
25fbec5b 274
7a197a62
AK
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
ad6254c5
AK
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
ad6254c5 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
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" ||
1995c9ff 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
ad6254c5
AK
461 # Exit status is that of the last command.
462 exit
463}
795ca3e5 464
ad6254c5 465
7a197a62
AK
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
ad6254c5 481esac
1995c9ff 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
25fbec5b
AK
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
7a197a62 523else
25fbec5b
AK
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
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 '
7a197a62 541fi
25fbec5b 542as_executable_p=$as_test_x
ad6254c5
AK
543
544# Sed expression to map a string onto a valid CPP name.
8a2fc586 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
546
547# Sed expression to map a string onto a valid variable name.
8a2fc586 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
549
550
ad6254c5 551
7a197a62 552exec 7<&0 </dev/null 6>&1
ad6254c5
AK
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
ad6254c5
AK
559#
560# Initializations.
561#
795ca3e5 562ac_default_prefix=/usr/local
7a197a62 563ac_clean_files=
ad6254c5 564ac_config_libobj_dir=.
7a197a62 565LIBOBJS=
ad6254c5
AK
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
ad6254c5
AK
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="lib/device/dev-cache.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
25fbec5b 583#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
584# include <sys/types.h>
585#endif
25fbec5b 586#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
587# include <sys/stat.h>
588#endif
25fbec5b 589#ifdef STDC_HEADERS
ad6254c5
AK
590# include <stdlib.h>
591# include <stddef.h>
592#else
25fbec5b 593# ifdef HAVE_STDLIB_H
ad6254c5
AK
594# include <stdlib.h>
595# endif
596#endif
25fbec5b
AK
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
25fbec5b 603#ifdef HAVE_STRINGS_H
ad6254c5
AK
604# include <strings.h>
605#endif
25fbec5b 606#ifdef HAVE_INTTYPES_H
ad6254c5 607# include <inttypes.h>
ad6254c5 608#endif
25fbec5b 609#ifdef HAVE_STDINT_H
7a197a62
AK
610# include <stdint.h>
611#endif
25fbec5b 612#ifdef HAVE_UNISTD_H
ad6254c5
AK
613# include <unistd.h>
614#endif"
615
795ca3e5 616ac_default_prefix=/usr
7a197a62
AK
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
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
66e941e8 722LIB_PTHREAD
7a197a62 723LTLIBOBJS'
ad6254c5 724ac_subst_files=''
7a197a62
AK
725 ac_precious_vars='build_alias
726host_alias
727target_alias
728CC
729CFLAGS
730LDFLAGS
25fbec5b 731LIBS
7a197a62
AK
732CPPFLAGS
733CPP'
734
795ca3e5
AK
735
736# Initialize some variables set by options.
ad6254c5
AK
737ac_init_help=
738ac_init_version=false
795ca3e5
AK
739# The variables have the same names as the options, with
740# dashes changed to underlines.
ad6254c5 741cache_file=/dev/null
795ca3e5 742exec_prefix=NONE
795ca3e5 743no_create=
795ca3e5
AK
744no_recursion=
745prefix=NONE
746program_prefix=NONE
747program_suffix=NONE
748program_transform_name=s,x,x,
749silent=
750site=
751srcdir=
795ca3e5
AK
752verbose=
753x_includes=NONE
754x_libraries=NONE
ad6254c5
AK
755
756# Installation directory options.
757# These are left unexpanded so users can "make install exec_prefix=/foo"
758# and all the variables that are supposed to be based on exec_prefix
759# by default will actually change.
760# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 761# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
762bindir='${exec_prefix}/bin'
763sbindir='${exec_prefix}/sbin'
764libexecdir='${exec_prefix}/libexec'
7a197a62
AK
765datarootdir='${prefix}/share'
766datadir='${datarootdir}'
795ca3e5
AK
767sysconfdir='${prefix}/etc'
768sharedstatedir='${prefix}/com'
769localstatedir='${prefix}/var'
795ca3e5
AK
770includedir='${prefix}/include'
771oldincludedir='/usr/include'
7a197a62
AK
772docdir='${datarootdir}/doc/${PACKAGE}'
773infodir='${datarootdir}/info'
774htmldir='${docdir}'
775dvidir='${docdir}'
776pdfdir='${docdir}'
777psdir='${docdir}'
778libdir='${exec_prefix}/lib'
779localedir='${datarootdir}/locale'
780mandir='${datarootdir}/man'
795ca3e5 781
795ca3e5 782ac_prev=
7a197a62 783ac_dashdash=
795ca3e5
AK
784for ac_option
785do
795ca3e5
AK
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
7a197a62 788 eval $ac_prev=\$ac_option
795ca3e5
AK
789 ac_prev=
790 continue
791 fi
792
7a197a62
AK
793 case $ac_option in
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *) ac_optarg=yes ;;
796 esac
795ca3e5
AK
797
798 # Accept the important Cygnus configure options, so we can diagnose typos.
799
7a197a62
AK
800 case $ac_dashdash$ac_option in
801 --)
802 ac_dashdash=yes ;;
795ca3e5
AK
803
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 807 bindir=$ac_optarg ;;
795ca3e5
AK
808
809 -build | --build | --buil | --bui | --bu)
ad6254c5 810 ac_prev=build_alias ;;
795ca3e5 811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 812 build_alias=$ac_optarg ;;
795ca3e5
AK
813
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
819 cache_file=$ac_optarg ;;
820
821 --config-cache | -C)
822 cache_file=config.cache ;;
795ca3e5 823
7a197a62 824 -datadir | --datadir | --datadi | --datad)
795ca3e5 825 ac_prev=datadir ;;
7a197a62 826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 827 datadir=$ac_optarg ;;
795ca3e5 828
7a197a62
AK
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
835
795ca3e5 836 -disable-* | --disable-*)
1995c9ff 837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 838 # Reject names that are not valid shell variable names.
25fbec5b 839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 841 { (exit 1); exit 1; }; }
25fbec5b 842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1995c9ff 843 eval enable_$ac_feature=no ;;
7a197a62
AK
844
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
849
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
795ca3e5
AK
854
855 -enable-* | --enable-*)
1995c9ff 856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 857 # Reject names that are not valid shell variable names.
25fbec5b 858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 860 { (exit 1); exit 1; }; }
25fbec5b 861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1995c9ff 862 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
ad6254c5 871 exec_prefix=$ac_optarg ;;
795ca3e5
AK
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
ad6254c5
AK
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
795ca3e5
AK
883
884 -host | --host | --hos | --ho)
ad6254c5 885 ac_prev=host_alias ;;
795ca3e5 886 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 887 host_alias=$ac_optarg ;;
795ca3e5 888
7a197a62
AK
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
795ca3e5
AK
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 900 includedir=$ac_optarg ;;
795ca3e5
AK
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 905 infodir=$ac_optarg ;;
795ca3e5
AK
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 910 libdir=$ac_optarg ;;
795ca3e5
AK
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
ad6254c5 917 libexecdir=$ac_optarg ;;
795ca3e5 918
7a197a62
AK
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
795ca3e5 924 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 925 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 929 localstatedir=$ac_optarg ;;
795ca3e5
AK
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 934 mandir=$ac_optarg ;;
795ca3e5
AK
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 941 | --no-cr | --no-c | -n)
795ca3e5
AK
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 955 oldincludedir=$ac_optarg ;;
795ca3e5
AK
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 960 prefix=$ac_optarg ;;
795ca3e5
AK
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 967 program_prefix=$ac_optarg ;;
795ca3e5
AK
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 974 program_suffix=$ac_optarg ;;
795ca3e5
AK
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 991 program_transform_name=$ac_optarg ;;
795ca3e5 992
7a197a62
AK
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
795ca3e5
AK
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
ad6254c5 1011 sbindir=$ac_optarg ;;
795ca3e5
AK
1012
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
ad6254c5 1022 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1023
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
ad6254c5 1027 site=$ac_optarg ;;
795ca3e5
AK
1028
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1032 srcdir=$ac_optarg ;;
795ca3e5
AK
1033
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1039 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1040
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1042 ac_prev=target_alias ;;
795ca3e5 1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1044 target_alias=$ac_optarg ;;
795ca3e5
AK
1045
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1048
ad6254c5
AK
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
795ca3e5
AK
1051
1052 -with-* | --with-*)
1995c9ff 1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1054 # Reject names that are not valid shell variable names.
25fbec5b 1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1057 { (exit 1); exit 1; }; }
25fbec5b 1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1995c9ff 1059 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1060
1061 -without-* | --without-*)
1995c9ff 1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1063 # Reject names that are not valid shell variable names.
25fbec5b 1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1066 { (exit 1); exit 1; }; }
25fbec5b 1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1995c9ff 1068 eval with_$ac_package=no ;;
795ca3e5
AK
1069
1070 --x)
1071 # Obsolete; use --with-x.
1072 with_x=yes ;;
1073
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1079 x_includes=$ac_optarg ;;
795ca3e5
AK
1080
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1086 x_libraries=$ac_optarg ;;
795ca3e5 1087
1995c9ff 1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1089Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
795ca3e5
AK
1091 ;;
1092
ad6254c5
AK
1093 *=*)
1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1995c9ff 1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1098 { (exit 1); exit 1; }; }
7a197a62 1099 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1100 export $ac_envvar ;;
1101
795ca3e5 1102 *)
ad6254c5 1103 # FIXME: should be removed in autoconf 3.0.
1995c9ff 1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1108 ;;
1109
1110 esac
1111done
1112
1113if test -n "$ac_prev"; then
ad6254c5 1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1995c9ff 1115 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1116 { (exit 1); exit 1; }; }
795ca3e5 1117fi
795ca3e5 1118
7a197a62
AK
1119# Be sure to have absolute directory names.
1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
795ca3e5 1124do
7a197a62 1125 eval ac_val=\$$ac_var
ad6254c5 1126 case $ac_val in
7a197a62
AK
1127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1129 esac
1995c9ff 1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1131 { (exit 1); exit 1; }; }
795ca3e5
AK
1132done
1133
ad6254c5
AK
1134# There might be people who depend on the old broken behavior: `$host'
1135# used to hold the argument of --host etc.
1136# FIXME: To remove some day.
1137build=$build_alias
1138host=$host_alias
1139target=$target_alias
1140
1141# FIXME: To remove some day.
1142if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1995c9ff 1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1149 fi
1150fi
8106cdd5 1151
ad6254c5
AK
1152ac_tool_prefix=
1153test -n "$host_alias" && ac_tool_prefix=$host_alias-
1154
1155test "$silent" = yes && exec 6>/dev/null
795ca3e5 1156
795ca3e5 1157
7a197a62
AK
1158ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159ac_ls_di=`ls -di .` &&
1160ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1995c9ff 1161 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1162 { (exit 1); exit 1; }; }
1163test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1995c9ff 1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1165 { (exit 1); exit 1; }; }
1166
1167
795ca3e5
AK
1168# Find the source files, if location was not specified.
1169if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
7a197a62
AK
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$0" ||
ad6254c5 1173$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
7a197a62 1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 1177echo X"$0" |
7a197a62
AK
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 s//\1/
1180 q
1181 }
1182 /^X\(\/\/\)[^/].*/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\).*/{
1191 s//\1/
1192 q
1193 }
1194 s/.*/./; q'`
795ca3e5 1195 srcdir=$ac_confdir
7a197a62 1196 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1197 srcdir=..
1198 fi
1199else
1200 ac_srcdir_defaulted=no
1201fi
7a197a62
AK
1202if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1995c9ff 1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1205 { (exit 1); exit 1; }; }
795ca3e5 1206fi
7a197a62
AK
1207ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208ac_abs_confdir=`(
1995c9ff 1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1210 { (exit 1); exit 1; }; }
7a197a62
AK
1211 pwd)`
1212# When building in place, set srcdir=.
1213if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1215fi
1216# Remove unnecessary trailing slashes from srcdir.
1217# Double slashes in file names in object file debugging info
1218# mess up M-x gdb in Emacs.
1219case $srcdir in
1220*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221esac
1222for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227done
ad6254c5
AK
1228
1229#
1230# Report the --help message.
1231#
1232if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236\`configure' configures this package to adapt to many kinds of systems.
1237
1238Usage: $0 [OPTION]... [VAR=VALUE]...
1239
1240To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241VAR=VALUE. See below for descriptions of some of the useful variables.
1242
1243Defaults for the options are specified in brackets.
1244
1245Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255
ad6254c5
AK
1256Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
8a2fc586 1258 [$ac_default_prefix]
ad6254c5 1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a2fc586 1260 [PREFIX]
ad6254c5
AK
1261
1262By default, \`make install' will install all the files in
1263\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265for instance \`--prefix=\$HOME'.
1266
1267For better control, use the options below.
1268
1269Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
ad6254c5
AK
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7a197a62
AK
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1289_ACEOF
1290
1291 cat <<\_ACEOF
1292
1293System types:
1294 --build=BUILD configure for building on BUILD [guessed]
1295 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1296 --target=TARGET configure for building compilers for TARGET [HOST]
1297_ACEOF
1298fi
1299
1300if test -n "$ac_init_help"; then
1301
1302 cat <<\_ACEOF
1303
1304Optional Features:
1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1307 --enable-jobs=NUM Number of jobs to run simultaneously
1308 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1309 device-mapper is missing from the kernel
1310 --enable-static_link Use this to link the tools to their libraries
1311 statically. Default is dynamic linking
1312 --enable-readline Enable readline support
1313 --disable-selinux Disable selinux support
3d978351 1314 --disable-realtime Disable realtime clock support
ad6254c5
AK
1315 --enable-debug Enable debugging
1316 --disable-devmapper Disable device-mapper interaction
1317 --disable-o_direct Disable O_DIRECT
1318 --enable-cmdlib Build shared command library
1319 --enable-fsadm Enable fsadm
15d91f5a 1320 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
1321 --enable-nls Enable Native Language Support
1322
1323Optional Packages:
1324 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1325 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1326 --with-user=USER Set the owner of installed files
1327 --with-group=GROUP Set the group owner of installed files
1328 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1329 TYPE=internal
1330 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1331 TYPE=internal
1332 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1333 TYPE=internal
1334 --with-snapshots=TYPE Snapshot support: internal/shared/none
1335 TYPE=internal
1336 --with-mirrors=TYPE Mirror support: internal/shared/none
1337 TYPE=internal
5c7fc7c4 1338 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1339 TYPE=none
ad6254c5
AK
1340 --with-optimisation=OPT C optimisation flag OPT=-O2
1341 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
1342 --with-confdir=DIR Configuration files in DIR /etc
1343 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1344 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
1345
1346Some influential environment variables:
1347 CC C compiler command
1348 CFLAGS C compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
25fbec5b 1351 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1352 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1354 CPP C preprocessor
1355
1356Use these variables to override the choices made by `configure' or to help
1357it to find libraries and programs with nonstandard names/locations.
1358
1359_ACEOF
7a197a62 1360ac_status=$?
ad6254c5
AK
1361fi
1362
1363if test "$ac_init_help" = "recursive"; then
1364 # If there are subdirs, report their specific --help.
ad6254c5 1365 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7a197a62 1366 test -d "$ac_dir" || continue
ad6254c5
AK
1367 ac_builddir=.
1368
7a197a62
AK
1369case "$ac_dir" in
1370.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371*)
1995c9ff 1372 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1373 # A ".." for each directory in $ac_dir_suffix.
1995c9ff 1374 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1375 case $ac_top_builddir_sub in
1376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378 esac ;;
1379esac
1380ac_abs_top_builddir=$ac_pwd
1381ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382# for backward compatibility:
1383ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1384
1385case $srcdir in
7a197a62 1386 .) # We are building in place.
ad6254c5 1387 ac_srcdir=.
7a197a62
AK
1388 ac_top_srcdir=$ac_top_builddir_sub
1389 ac_abs_top_srcdir=$ac_pwd ;;
1390 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1391 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1392 ac_top_srcdir=$srcdir
1393 ac_abs_top_srcdir=$srcdir ;;
1394 *) # Relative name.
1395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396 ac_top_srcdir=$ac_top_build_prefix$srcdir
1397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1398esac
7a197a62
AK
1399ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400
1401 cd "$ac_dir" || { ac_status=$?; continue; }
1402 # Check for guested configure.
1403 if test -f "$ac_srcdir/configure.gnu"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406 elif test -f "$ac_srcdir/configure"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1409 else
1995c9ff 1410 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1411 fi || ac_status=$?
1412 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1413 done
1414fi
1415
7a197a62 1416test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1417if $ac_init_version; then
1418 cat <<\_ACEOF
7a197a62 1419configure
25fbec5b 1420generated by GNU Autoconf 2.61
ad6254c5 1421
7a197a62
AK
1422Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14232002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1424This configure script is free software; the Free Software Foundation
1425gives unlimited permission to copy, distribute and modify it.
1426_ACEOF
7a197a62 1427 exit
ad6254c5 1428fi
7a197a62 1429cat >config.log <<_ACEOF
ad6254c5
AK
1430This file contains any messages produced by compilers while
1431running configure, to aid debugging if configure makes a mistake.
1432
1433It was created by $as_me, which was
25fbec5b 1434generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1435
1436 $ $0 $@
1437
1438_ACEOF
7a197a62 1439exec 5>>config.log
ad6254c5
AK
1440{
1441cat <<_ASUNAME
1442## --------- ##
1443## Platform. ##
1444## --------- ##
1445
1446hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1447uname -m = `(uname -m) 2>/dev/null || echo unknown`
1448uname -r = `(uname -r) 2>/dev/null || echo unknown`
1449uname -s = `(uname -s) 2>/dev/null || echo unknown`
1450uname -v = `(uname -v) 2>/dev/null || echo unknown`
1451
1452/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1453/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1454
1455/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1456/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1457/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1458/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1459/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1460/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1461/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1462
1463_ASUNAME
1464
1465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1995c9ff 1470 echo "PATH: $as_dir"
ad6254c5 1471done
7a197a62 1472IFS=$as_save_IFS
ad6254c5
AK
1473
1474} >&5
1475
1476cat >&5 <<_ACEOF
1477
1478
1479## ----------- ##
1480## Core tests. ##
1481## ----------- ##
1482
1483_ACEOF
1484
1485
1486# Keep a trace of the command line.
1487# Strip out --no-create and --no-recursion so they do not pile up.
1488# Strip out --silent because we don't want to record it for future runs.
1489# Also quote any args containing shell meta-characters.
1490# Make two passes to allow for proper duplicate-argument suppression.
1491ac_configure_args=
1492ac_configure_args0=
1493ac_configure_args1=
ad6254c5
AK
1494ac_must_keep_next=false
1495for ac_pass in 1 2
1496do
1497 for ac_arg
1498 do
1499 case $ac_arg in
1500 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1502 | -silent | --silent | --silen | --sile | --sil)
1503 continue ;;
7a197a62 1504 *\'*)
1995c9ff 1505 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1506 esac
1507 case $ac_pass in
1508 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1509 2)
1510 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1511 if test $ac_must_keep_next = true; then
8a2fc586 1512 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1513 else
8a2fc586
AK
1514 case $ac_arg in
1515 *=* | --config-cache | -C | -disable-* | --disable-* \
1516 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1517 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1518 | -with-* | --with-* | -without-* | --without-* | --x)
1519 case "$ac_configure_args0 " in
1520 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1521 esac
1522 ;;
1523 -* ) ac_must_keep_next=true ;;
1524 esac
ad6254c5 1525 fi
7a197a62 1526 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1527 ;;
1528 esac
1529 done
1530done
1531$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1532$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1533
1534# When interrupted or exit'd, cleanup temporary files, and complete
1535# config.log. We remove comments because anyway the quotes in there
1536# would cause problems or look ugly.
7a197a62
AK
1537# WARNING: Use '\'' to represent an apostrophe within the trap.
1538# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1539trap 'exit_status=$?
1540 # Save into config.log some information that might help in debugging.
1541 {
1542 echo
1543
1544 cat <<\_ASBOX
1545## ---------------- ##
1546## Cache variables. ##
1547## ---------------- ##
1548_ASBOX
1549 echo
1550 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1551(
1552 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1553 eval ac_val=\$$ac_var
1554 case $ac_val in #(
1555 *${as_nl}*)
1556 case $ac_var in #(
1995c9ff
AK
1557 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1558echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1559 esac
1560 case $ac_var in #(
1561 _ | IFS | as_nl) ;; #(
1562 *) $as_unset $ac_var ;;
1563 esac ;;
1564 esac
1565 done
ad6254c5 1566 (set) 2>&1 |
7a197a62
AK
1567 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1568 *${as_nl}ac_space=\ *)
ad6254c5 1569 sed -n \
7a197a62
AK
1570 "s/'\''/'\''\\\\'\'''\''/g;
1571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1572 ;; #(
ad6254c5 1573 *)
7a197a62 1574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1575 ;;
7a197a62
AK
1576 esac |
1577 sort
1578)
ad6254c5
AK
1579 echo
1580
1581 cat <<\_ASBOX
1582## ----------------- ##
1583## Output variables. ##
1584## ----------------- ##
1585_ASBOX
1586 echo
1587 for ac_var in $ac_subst_vars
1588 do
7a197a62
AK
1589 eval ac_val=\$$ac_var
1590 case $ac_val in
1995c9ff 1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1592 esac
1995c9ff 1593 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1594 done | sort
1595 echo
1596
1597 if test -n "$ac_subst_files"; then
1598 cat <<\_ASBOX
7a197a62
AK
1599## ------------------- ##
1600## File substitutions. ##
1601## ------------------- ##
ad6254c5
AK
1602_ASBOX
1603 echo
1604 for ac_var in $ac_subst_files
1605 do
7a197a62
AK
1606 eval ac_val=\$$ac_var
1607 case $ac_val in
1995c9ff 1608 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1609 esac
1995c9ff 1610 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1611 done | sort
1612 echo
1613 fi
1614
1615 if test -s confdefs.h; then
1616 cat <<\_ASBOX
1617## ----------- ##
1618## confdefs.h. ##
1619## ----------- ##
1620_ASBOX
1621 echo
7a197a62 1622 cat confdefs.h
ad6254c5
AK
1623 echo
1624 fi
1625 test "$ac_signal" != 0 &&
1995c9ff
AK
1626 echo "$as_me: caught signal $ac_signal"
1627 echo "$as_me: exit $exit_status"
ad6254c5 1628 } >&5
7a197a62
AK
1629 rm -f core *.core core.conftest.* &&
1630 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1631 exit $exit_status
7a197a62 1632' 0
ad6254c5
AK
1633for ac_signal in 1 2 13 15; do
1634 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1635done
1636ac_signal=0
1637
1638# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1639rm -f -r conftest* confdefs.h
ad6254c5
AK
1640
1641# Predefined preprocessor variables.
1642
1643cat >>confdefs.h <<_ACEOF
1644#define PACKAGE_NAME "$PACKAGE_NAME"
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1650_ACEOF
1651
1652
1653cat >>confdefs.h <<_ACEOF
1654#define PACKAGE_VERSION "$PACKAGE_VERSION"
1655_ACEOF
8106cdd5 1656
ad6254c5
AK
1657
1658cat >>confdefs.h <<_ACEOF
1659#define PACKAGE_STRING "$PACKAGE_STRING"
1660_ACEOF
1661
1662
1663cat >>confdefs.h <<_ACEOF
1664#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1665_ACEOF
1666
1667
1668# Let the site file select an alternate cache file if it wants to.
795ca3e5 1669# Prefer explicitly selected file to automatically selected ones.
7a197a62
AK
1670if test -n "$CONFIG_SITE"; then
1671 set x "$CONFIG_SITE"
1672elif test "x$prefix" != xNONE; then
1673 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1674else
1675 set x "$ac_default_prefix/share/config.site" \
1676 "$ac_default_prefix/etc/config.site"
795ca3e5 1677fi
7a197a62
AK
1678shift
1679for ac_site_file
1680do
795ca3e5 1681 if test -r "$ac_site_file"; then
1995c9ff
AK
1682 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1683echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1684 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1685 . "$ac_site_file"
1686 fi
1687done
1688
1689if test -r "$cache_file"; then
ad6254c5
AK
1690 # Some versions of bash will fail to source /dev/null (special
1691 # files actually), so we avoid doing that.
1692 if test -f "$cache_file"; then
1995c9ff
AK
1693 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1694echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1695 case $cache_file in
7a197a62
AK
1696 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1697 *) . "./$cache_file";;
ad6254c5
AK
1698 esac
1699 fi
795ca3e5 1700else
1995c9ff
AK
1701 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1702echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1703 >$cache_file
1704fi
1705
1706# Check that the precious variables saved in the cache have kept the same
1707# value.
1708ac_cache_corrupted=false
7a197a62 1709for ac_var in $ac_precious_vars; do
ad6254c5
AK
1710 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1711 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1712 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1713 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1714 case $ac_old_set,$ac_new_set in
1715 set,)
1995c9ff
AK
1716 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1717echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1718 ac_cache_corrupted=: ;;
1719 ,set)
1995c9ff
AK
1720 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1721echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1722 ac_cache_corrupted=: ;;
1723 ,);;
1724 *)
1725 if test "x$ac_old_val" != "x$ac_new_val"; then
1995c9ff
AK
1726 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1727echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1728 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1729echo "$as_me: former value: $ac_old_val" >&2;}
1730 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1731echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1732 ac_cache_corrupted=:
ad6254c5
AK
1733 fi;;
1734 esac
1735 # Pass precious variables to config.status.
1736 if test "$ac_new_set" = set; then
1737 case $ac_new_val in
1995c9ff 1738 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1739 *) ac_arg=$ac_var=$ac_new_val ;;
1740 esac
1741 case " $ac_configure_args " in
1742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1743 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1744 esac
1745 fi
1746done
1747if $ac_cache_corrupted; then
1995c9ff
AK
1748 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1749echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1750 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1751echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1752 { (exit 1); exit 1; }; }
795ca3e5
AK
1753fi
1754
ad6254c5
AK
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
7a197a62
AK
1771ac_ext=c
1772ac_cpp='$CPP $CPPFLAGS'
1773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1776
795ca3e5
AK
1777
1778
1779
72b2cb61 1780################################################################################
7a197a62 1781ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1782
1783
80992638 1784################################################################################
795ca3e5 1785ac_aux_dir=
7a197a62
AK
1786for ac_dir in autoconf "$srcdir"/autoconf; do
1787 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1788 ac_aux_dir=$ac_dir
1789 ac_install_sh="$ac_aux_dir/install-sh -c"
1790 break
7a197a62 1791 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1792 ac_aux_dir=$ac_dir
1793 ac_install_sh="$ac_aux_dir/install.sh -c"
1794 break
7a197a62 1795 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1796 ac_aux_dir=$ac_dir
1797 ac_install_sh="$ac_aux_dir/shtool install -c"
1798 break
795ca3e5
AK
1799 fi
1800done
1801if test -z "$ac_aux_dir"; then
1995c9ff
AK
1802 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1803echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1804 { (exit 1); exit 1; }; }
795ca3e5 1805fi
7a197a62
AK
1806
1807# These three variables are undocumented and unsupported,
1808# and are intended to be withdrawn in a future Autoconf release.
1809# They can cause serious problems if a builder's source tree is in a directory
1810# whose full name contains unusual characters.
1811ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1812ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1813ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1814
8ce0cbda
AK
1815
1816
ad6254c5 1817################################################################################
8ce0cbda 1818# Make sure we can run config.sub.
7a197a62 1819$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1995c9ff
AK
1820 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1821echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1822 { (exit 1); exit 1; }; }
1823
1995c9ff
AK
1824{ echo "$as_me:$LINENO: checking build system type" >&5
1825echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1826if test "${ac_cv_build+set}" = set; then
1995c9ff 1827 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1828else
7a197a62
AK
1829 ac_build_alias=$build_alias
1830test "x$ac_build_alias" = x &&
1831 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1832test "x$ac_build_alias" = x &&
1995c9ff
AK
1833 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1834echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1835 { (exit 1); exit 1; }; }
7a197a62 1836ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1995c9ff
AK
1837 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1838echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1839 { (exit 1); exit 1; }; }
1840
1841fi
1995c9ff
AK
1842{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1843echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1844case $ac_cv_build in
1845*-*-*) ;;
1995c9ff
AK
1846*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1847echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1848 { (exit 1); exit 1; }; };;
1849esac
ad6254c5 1850build=$ac_cv_build
7a197a62
AK
1851ac_save_IFS=$IFS; IFS='-'
1852set x $ac_cv_build
1853shift
1854build_cpu=$1
1855build_vendor=$2
1856shift; shift
1857# Remember, the first character of IFS is used to create $*,
1858# except with old shells:
1859build_os=$*
1860IFS=$ac_save_IFS
1861case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1862
1863
1995c9ff
AK
1864{ echo "$as_me:$LINENO: checking host system type" >&5
1865echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1866if test "${ac_cv_host+set}" = set; then
1995c9ff 1867 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1868else
7a197a62
AK
1869 if test "x$host_alias" = x; then
1870 ac_cv_host=$ac_cv_build
1871else
1872 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1995c9ff
AK
1873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1874echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1875 { (exit 1); exit 1; }; }
7a197a62 1876fi
ad6254c5
AK
1877
1878fi
1995c9ff
AK
1879{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1880echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1881case $ac_cv_host in
1882*-*-*) ;;
1995c9ff
AK
1883*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1884echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1885 { (exit 1); exit 1; }; };;
1886esac
ad6254c5 1887host=$ac_cv_host
7a197a62
AK
1888ac_save_IFS=$IFS; IFS='-'
1889set x $ac_cv_host
1890shift
1891host_cpu=$1
1892host_vendor=$2
1893shift; shift
1894# Remember, the first character of IFS is used to create $*,
1895# except with old shells:
1896host_os=$*
1897IFS=$ac_save_IFS
1898case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1899
1900
1995c9ff
AK
1901{ echo "$as_me:$LINENO: checking target system type" >&5
1902echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1903if test "${ac_cv_target+set}" = set; then
1995c9ff 1904 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1905else
7a197a62
AK
1906 if test "x$target_alias" = x; then
1907 ac_cv_target=$ac_cv_host
1908else
1909 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1995c9ff
AK
1910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1911echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1912 { (exit 1); exit 1; }; }
7a197a62 1913fi
8ce0cbda 1914
ad6254c5 1915fi
1995c9ff
AK
1916{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1917echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1918case $ac_cv_target in
1919*-*-*) ;;
1995c9ff
AK
1920*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1921echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1922 { (exit 1); exit 1; }; };;
1923esac
ad6254c5 1924target=$ac_cv_target
7a197a62
AK
1925ac_save_IFS=$IFS; IFS='-'
1926set x $ac_cv_target
1927shift
1928target_cpu=$1
1929target_vendor=$2
1930shift; shift
1931# Remember, the first character of IFS is used to create $*,
1932# except with old shells:
1933target_os=$*
1934IFS=$ac_save_IFS
1935case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1936
8ce0cbda 1937
ad6254c5
AK
1938# The aliases save the names the user supplied, while $host etc.
1939# will get canonicalized.
1940test -n "$target_alias" &&
8ce0cbda
AK
1941 test "$program_prefix$program_suffix$program_transform_name" = \
1942 NONENONEs,x,x, &&
1943 program_prefix=${target_alias}-
1944
8ce0cbda
AK
1945case "$host_os" in
1946 linux*)
1947 CFLAGS="$CFLAGS"
1948 COPTIMISE_FLAG="-O2"
1949 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1950 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1951 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1952 LDDEPS="$LDDEPS .export.sym"
1953 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1954 LIB_SUFFIX="so"
8ce0cbda
AK
1955 DEVMAPPER=yes
1956 ODIRECT=yes
1957 SELINUX=yes
8b1a3214 1958 REALTIME=yes
8ce0cbda
AK
1959 CLUSTER=internal
1960 FSADM=no ;;
1961 darwin*)
1962 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1963 COPTIMISE_FLAG="-O2"
1964 CLDFLAGS="$CLDFLAGS"
1965 CLDWHOLEARCHIVE="-all_load"
1966 CLDNOWHOLEARCHIVE=
1967 LDDEPS="$LDDEPS"
1968 LDFLAGS="$LDFLAGS"
e4c11ad1 1969 LIB_SUFFIX="dylib"
a653923f 1970 DEVMAPPER=yes
8ce0cbda
AK
1971 ODIRECT=no
1972 SELINUX=no
8b1a3214 1973 REALTIME=no
8ce0cbda
AK
1974 CLUSTER=none
1975 FSADM=no ;;
1976esac
1977
80992638 1978################################################################################
ad6254c5 1979for ac_prog in gawk mawk nawk awk
795ca3e5 1980do
ad6254c5 1981 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1982set dummy $ac_prog; ac_word=$2
1995c9ff
AK
1983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 1985if test "${ac_cv_prog_AWK+set}" = set; then
1995c9ff 1986 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1987else
1988 if test -n "$AWK"; then
1989 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1990else
ad6254c5
AK
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 1998 ac_cv_prog_AWK="$ac_prog"
1995c9ff 1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2000 break 2
2001 fi
2002done
2003done
7a197a62 2004IFS=$as_save_IFS
ad6254c5 2005
795ca3e5
AK
2006fi
2007fi
ad6254c5 2008AWK=$ac_cv_prog_AWK
795ca3e5 2009if test -n "$AWK"; then
1995c9ff
AK
2010 { echo "$as_me:$LINENO: result: $AWK" >&5
2011echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2012else
1995c9ff
AK
2013 { echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2015fi
2016
7a197a62 2017
ad6254c5
AK
2018 test -n "$AWK" && break
2019done
2020
2021ac_ext=c
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2028set dummy ${ac_tool_prefix}gcc; ac_word=$2
1995c9ff
AK
2029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2031if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2032 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2033else
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1995c9ff 2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2046 break 2
2047 fi
2048done
8106cdd5 2049done
7a197a62 2050IFS=$as_save_IFS
8106cdd5 2051
ad6254c5
AK
2052fi
2053fi
2054CC=$ac_cv_prog_CC
2055if test -n "$CC"; then
1995c9ff
AK
2056 { echo "$as_me:$LINENO: result: $CC" >&5
2057echo "${ECHO_T}$CC" >&6; }
ad6254c5 2058else
1995c9ff
AK
2059 { echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2061fi
2062
7a197a62 2063
ad6254c5
AK
2064fi
2065if test -z "$ac_cv_prog_CC"; then
2066 ac_ct_CC=$CC
2067 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2068set dummy gcc; ac_word=$2
1995c9ff
AK
2069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995c9ff 2072 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2073else
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2084 ac_cv_prog_ac_ct_CC="gcc"
1995c9ff 2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2086 break 2
2087 fi
2088done
2089done
7a197a62 2090IFS=$as_save_IFS
ad6254c5
AK
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
1995c9ff
AK
2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2098else
1995c9ff
AK
2099 { echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2101fi
2102
7a197a62
AK
2103 if test "x$ac_ct_CC" = x; then
2104 CC=""
2105 else
2106 case $cross_compiling:$ac_tool_warned in
2107yes:)
1995c9ff 2108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2109whose name does not start with the host triplet. If you think this
2110configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 2111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2112whose name does not start with the host triplet. If you think this
2113configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2114ac_tool_warned=yes ;;
2115esac
2116 CC=$ac_ct_CC
2117 fi
ad6254c5
AK
2118else
2119 CC="$ac_cv_prog_CC"
2120fi
2121
2122if test -z "$CC"; then
7a197a62
AK
2123 if test -n "$ac_tool_prefix"; then
2124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2125set dummy ${ac_tool_prefix}cc; ac_word=$2
1995c9ff
AK
2126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2128if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2129 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2130else
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
2133else
ad6254c5
AK
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2141 ac_cv_prog_CC="${ac_tool_prefix}cc"
1995c9ff 2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2143 break 2
2144 fi
2145done
2146done
7a197a62 2147IFS=$as_save_IFS
ad6254c5 2148
8106cdd5
AK
2149fi
2150fi
ad6254c5 2151CC=$ac_cv_prog_CC
8106cdd5 2152if test -n "$CC"; then
1995c9ff
AK
2153 { echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6; }
ad6254c5 2155else
1995c9ff
AK
2156 { echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2158fi
2159
8106cdd5 2160
7a197a62 2161 fi
ad6254c5 2162fi
795ca3e5
AK
2163if test -z "$CC"; then
2164 # Extract the first word of "cc", so it can be a program name with args.
2165set dummy cc; ac_word=$2
1995c9ff
AK
2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2168if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2169 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2170else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173else
795ca3e5 2174 ac_prog_rejected=no
ad6254c5
AK
2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2183 ac_prog_rejected=yes
2184 continue
2185 fi
2186 ac_cv_prog_CC="cc"
1995c9ff 2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2188 break 2
2189 fi
2190done
2191done
7a197a62 2192IFS=$as_save_IFS
ad6254c5 2193
795ca3e5
AK
2194if test $ac_prog_rejected = yes; then
2195 # We found a bogon in the path, so make sure we never use it.
2196 set dummy $ac_cv_prog_CC
2197 shift
ad6254c5 2198 if test $# != 0; then
795ca3e5
AK
2199 # We chose a different compiler from the bogus one.
2200 # However, it has the same basename, so the bogon will be chosen
2201 # first if we set CC to just the basename; use the full file name.
2202 shift
ad6254c5 2203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2204 fi
2205fi
2206fi
2207fi
ad6254c5 2208CC=$ac_cv_prog_CC
795ca3e5 2209if test -n "$CC"; then
1995c9ff
AK
2210 { echo "$as_me:$LINENO: result: $CC" >&5
2211echo "${ECHO_T}$CC" >&6; }
795ca3e5 2212else
1995c9ff
AK
2213 { echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2215fi
2216
7a197a62 2217
ad6254c5
AK
2218fi
2219if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
7a197a62 2221 for ac_prog in cl.exe
ad6254c5
AK
2222 do
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995c9ff
AK
2225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2227if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2228 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2229else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232else
ad6254c5
AK
2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995c9ff 2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2242 break 2
2243 fi
2244done
2245done
7a197a62 2246IFS=$as_save_IFS
ad6254c5 2247
795ca3e5
AK
2248fi
2249fi
ad6254c5 2250CC=$ac_cv_prog_CC
795ca3e5 2251if test -n "$CC"; then
1995c9ff
AK
2252 { echo "$as_me:$LINENO: result: $CC" >&5
2253echo "${ECHO_T}$CC" >&6; }
795ca3e5 2254else
1995c9ff
AK
2255 { echo "$as_me:$LINENO: result: no" >&5
2256echo "${ECHO_T}no" >&6; }
795ca3e5 2257fi
ad6254c5 2258
7a197a62 2259
ad6254c5
AK
2260 test -n "$CC" && break
2261 done
2262fi
2263if test -z "$CC"; then
2264 ac_ct_CC=$CC
7a197a62 2265 for ac_prog in cl.exe
ad6254c5
AK
2266do
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268set dummy $ac_prog; ac_word=$2
1995c9ff
AK
2269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995c9ff 2272 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2273else
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276else
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2284 ac_cv_prog_ac_ct_CC="$ac_prog"
1995c9ff 2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2286 break 2
795ca3e5 2287 fi
ad6254c5
AK
2288done
2289done
7a197a62 2290IFS=$as_save_IFS
ad6254c5
AK
2291
2292fi
2293fi
2294ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295if test -n "$ac_ct_CC"; then
1995c9ff
AK
2296 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2298else
1995c9ff
AK
2299 { echo "$as_me:$LINENO: result: no" >&5
2300echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2301fi
2302
7a197a62 2303
ad6254c5
AK
2304 test -n "$ac_ct_CC" && break
2305done
795ca3e5 2306
7a197a62
AK
2307 if test "x$ac_ct_CC" = x; then
2308 CC=""
2309 else
2310 case $cross_compiling:$ac_tool_warned in
2311yes:)
1995c9ff 2312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2313whose name does not start with the host triplet. If you think this
2314configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 2315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2316whose name does not start with the host triplet. If you think this
2317configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2318ac_tool_warned=yes ;;
2319esac
2320 CC=$ac_ct_CC
2321 fi
ad6254c5
AK
2322fi
2323
2324fi
2325
2326
1995c9ff 2327test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2328See \`config.log' for more details." >&5
1995c9ff 2329echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2330See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2332
2333# Provide some information about the compiler.
1995c9ff
AK
2334echo "$as_me:$LINENO: checking for C compiler version" >&5
2335ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2336{ (ac_try="$ac_compiler --version >&5"
2337case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340esac
1995c9ff 2341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2342 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2343 ac_status=$?
1995c9ff 2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2345 (exit $ac_status); }
7a197a62
AK
2346{ (ac_try="$ac_compiler -v >&5"
2347case "(($ac_try" in
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2350esac
1995c9ff 2351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2352 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2353 ac_status=$?
1995c9ff 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2355 (exit $ac_status); }
7a197a62
AK
2356{ (ac_try="$ac_compiler -V >&5"
2357case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360esac
1995c9ff 2361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2362 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2363 ac_status=$?
1995c9ff 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2365 (exit $ac_status); }
2366
2367cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373
2374int
2375main ()
2376{
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382ac_clean_files_save=$ac_clean_files
2383ac_clean_files="$ac_clean_files a.out a.exe b.out"
2384# Try to create an executable without -o first, disregard a.out.
2385# It will help us diagnose broken compilers, and finding out an intuition
2386# of exeext.
1995c9ff
AK
2387{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2388echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2389ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7a197a62
AK
2390#
2391# List of possible output files, starting from the most likely.
2392# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2393# only as a last resort. b.out is created by i960 compilers.
2394ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2395#
2396# The IRIX 6 linker writes into existing files which may not be
2397# executable, retaining their permissions. Remove them first so a
2398# subsequent execution test works.
2399ac_rmfiles=
2400for ac_file in $ac_files
2401do
2402 case $ac_file in
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2404 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2405 esac
2406done
2407rm -f $ac_rmfiles
2408
2409if { (ac_try="$ac_link_default"
2410case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413esac
1995c9ff 2414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2415 (eval "$ac_link_default") 2>&5
ad6254c5 2416 ac_status=$?
1995c9ff 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2418 (exit $ac_status); }; then
7a197a62
AK
2419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2420# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2421# in a Makefile. We should not override ac_cv_exeext if it was cached,
2422# so that the user can short-circuit this test for compilers unknown to
2423# Autoconf.
25fbec5b 2424for ac_file in $ac_files ''
ad6254c5
AK
2425do
2426 test -f "$ac_file" || continue
2427 case $ac_file in
7a197a62 2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2429 ;;
ad6254c5 2430 [ab].out )
8a2fc586
AK
2431 # We found the default executable, but exeext='' is most
2432 # certainly right.
2433 break;;
ad6254c5 2434 *.* )
7a197a62
AK
2435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2436 then :; else
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 fi
2439 # We set ac_cv_exeext here because the later test for it is not
2440 # safe: cross compilers may not add the suffix if given an `-o'
2441 # argument, so we may need to know it at that point already.
2442 # Even if this section looks crufty: it has the advantage of
2443 # actually working.
8a2fc586 2444 break;;
ad6254c5 2445 * )
8a2fc586 2446 break;;
ad6254c5
AK
2447 esac
2448done
7a197a62
AK
2449test "$ac_cv_exeext" = no && ac_cv_exeext=
2450
ad6254c5 2451else
25fbec5b
AK
2452 ac_file=''
2453fi
2454
2455{ echo "$as_me:$LINENO: result: $ac_file" >&5
2456echo "${ECHO_T}$ac_file" >&6; }
2457if test -z "$ac_file"; then
1995c9ff 2458 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2459sed 's/^/| /' conftest.$ac_ext >&5
2460
1995c9ff 2461{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2462See \`config.log' for more details." >&5
1995c9ff 2463echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2464See \`config.log' for more details." >&2;}
2465 { (exit 77); exit 77; }; }
2466fi
2467
2468ac_exeext=$ac_cv_exeext
ad6254c5 2469
7a197a62 2470# Check that the compiler produces executables we can run. If not, either
ad6254c5 2471# the compiler is broken, or we cross compile.
1995c9ff
AK
2472{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2473echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2474# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2475# If not cross compiling, check that we can run a simple program.
2476if test "$cross_compiling" != yes; then
2477 if { ac_try='./$ac_file'
7a197a62
AK
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
1995c9ff 2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2483 (eval "$ac_try") 2>&5
ad6254c5 2484 ac_status=$?
1995c9ff 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2486 (exit $ac_status); }; }; then
2487 cross_compiling=no
795ca3e5 2488 else
ad6254c5
AK
2489 if test "$cross_compiling" = maybe; then
2490 cross_compiling=yes
2491 else
1995c9ff 2492 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2493If you meant to cross compile, use \`--host'.
2494See \`config.log' for more details." >&5
1995c9ff 2495echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2496If you meant to cross compile, use \`--host'.
2497See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2499 fi
795ca3e5 2500 fi
80992638 2501fi
1995c9ff
AK
2502{ echo "$as_me:$LINENO: result: yes" >&5
2503echo "${ECHO_T}yes" >&6; }
ad6254c5
AK
2504
2505rm -f a.out a.exe conftest$ac_cv_exeext b.out
2506ac_clean_files=$ac_clean_files_save
7a197a62 2507# Check that the compiler produces executables we can run. If not, either
ad6254c5 2508# the compiler is broken, or we cross compile.
1995c9ff
AK
2509{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2510echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2511{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2512echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2513
1995c9ff
AK
2514{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2515echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2516if { (ac_try="$ac_link"
2517case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
1995c9ff 2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2522 (eval "$ac_link") 2>&5
ad6254c5 2523 ac_status=$?
1995c9ff 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2525 (exit $ac_status); }; then
2526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2527# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2528# work properly (i.e., refer to `conftest.exe'), while it won't with
2529# `rm'.
2530for ac_file in conftest.exe conftest conftest.*; do
2531 test -f "$ac_file" || continue
2532 case $ac_file in
7a197a62 2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2535 break;;
ad6254c5
AK
2536 * ) break;;
2537 esac
2538done
80992638 2539else
1995c9ff 2540 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2541See \`config.log' for more details." >&5
1995c9ff 2542echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2543See \`config.log' for more details." >&2;}
2544 { (exit 1); exit 1; }; }
2545fi
2546
2547rm -f conftest$ac_cv_exeext
1995c9ff
AK
2548{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2549echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2550
2551rm -f conftest.$ac_ext
2552EXEEXT=$ac_cv_exeext
2553ac_exeext=$EXEEXT
1995c9ff
AK
2554{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2555echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2556if test "${ac_cv_objext+set}" = set; then
1995c9ff 2557 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2558else
ad6254c5 2559 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2560/* confdefs.h. */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h. */
2565
2566int
2567main ()
2568{
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574rm -f conftest.o conftest.obj
7a197a62
AK
2575if { (ac_try="$ac_compile"
2576case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
1995c9ff 2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2581 (eval "$ac_compile") 2>&5
ad6254c5 2582 ac_status=$?
1995c9ff 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2584 (exit $ac_status); }; then
7a197a62
AK
2585 for ac_file in conftest.o conftest.obj conftest.*; do
2586 test -f "$ac_file" || continue;
ad6254c5 2587 case $ac_file in
7a197a62 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2590 break;;
2591 esac
2592done
2593else
1995c9ff 2594 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
1995c9ff 2597{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2598See \`config.log' for more details." >&5
1995c9ff 2599echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2600See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2602fi
2603
2604rm -f conftest.$ac_cv_objext conftest.$ac_ext
2605fi
1995c9ff
AK
2606{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2607echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2608OBJEXT=$ac_cv_objext
2609ac_objext=$OBJEXT
1995c9ff
AK
2610{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2611echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2612if test "${ac_cv_c_compiler_gnu+set}" = set; then
1995c9ff 2613 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2614else
2615 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2616/* confdefs.h. */
2617_ACEOF
2618cat confdefs.h >>conftest.$ac_ext
2619cat >>conftest.$ac_ext <<_ACEOF
2620/* end confdefs.h. */
2621
2622int
2623main ()
2624{
2625#ifndef __GNUC__
2626 choke me
2627#endif
80992638 2628
ad6254c5
AK
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext
7a197a62
AK
2634if { (ac_try="$ac_compile"
2635case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638esac
1995c9ff 2639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2640 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2641 ac_status=$?
8a2fc586
AK
2642 grep -v '^ *+' conftest.er1 >conftest.err
2643 rm -f conftest.er1
2644 cat conftest.err >&5
1995c9ff 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2646 (exit $ac_status); } && {
2647 test -z "$ac_c_werror_flag" ||
2648 test ! -s conftest.err
2649 } && test -s conftest.$ac_objext; then
ad6254c5 2650 ac_compiler_gnu=yes
80992638 2651else
1995c9ff 2652 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
7a197a62 2655 ac_compiler_gnu=no
8106cdd5 2656fi
7a197a62
AK
2657
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2659ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2660
ad6254c5 2661fi
1995c9ff
AK
2662{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2664GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2665ac_test_CFLAGS=${CFLAGS+set}
2666ac_save_CFLAGS=$CFLAGS
1995c9ff
AK
2667{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2668echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2669if test "${ac_cv_prog_cc_g+set}" = set; then
1995c9ff 2670 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2671else
7a197a62
AK
2672 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes
2674 ac_cv_prog_cc_g=no
2675 CFLAGS="-g"
2676 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2677/* confdefs.h. */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h. */
2682
2683int
2684main ()
2685{
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
7a197a62
AK
2692if { (ac_try="$ac_compile"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
1995c9ff 2697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2698 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2699 ac_status=$?
8a2fc586
AK
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
1995c9ff 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2704 (exit $ac_status); } && {
2705 test -z "$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2707 } && test -s conftest.$ac_objext; then
7a197a62
AK
2708 ac_cv_prog_cc_g=yes
2709else
1995c9ff 2710 echo "$as_me: failed program was:" >&5
7a197a62
AK
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713 CFLAGS=""
2714 cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720
2721int
2722main ()
2723{
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (ac_try="$ac_compile"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
1995c9ff 2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2736 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2737 ac_status=$?
7a197a62
AK
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
1995c9ff 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2742 (exit $ac_status); } && {
2743 test -z "$ac_c_werror_flag" ||
2744 test ! -s conftest.err
2745 } && test -s conftest.$ac_objext; then
7a197a62
AK
2746 :
2747else
1995c9ff 2748 echo "$as_me: failed program was:" >&5
7a197a62
AK
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_c_werror_flag=$ac_save_c_werror_flag
2752 CFLAGS="-g"
2753 cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759
2760int
2761main ()
2762{
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (ac_try="$ac_compile"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
1995c9ff 2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2775 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2776 ac_status=$?
7a197a62
AK
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
1995c9ff 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2781 (exit $ac_status); } && {
2782 test -z "$ac_c_werror_flag" ||
2783 test ! -s conftest.err
2784 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2785 ac_cv_prog_cc_g=yes
2786else
1995c9ff 2787 echo "$as_me: failed program was:" >&5
ad6254c5 2788sed 's/^/| /' conftest.$ac_ext >&5
80992638 2789
7a197a62
AK
2790
2791fi
2792
2793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794fi
2795
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2797fi
7a197a62
AK
2798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2801fi
1995c9ff
AK
2802{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2804if test "$ac_test_CFLAGS" = set; then
ad6254c5 2805 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2806elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then
2808 CFLAGS="-g -O2"
2809 else
2810 CFLAGS="-g"
2811 fi
2812else
2813 if test "$GCC" = yes; then
2814 CFLAGS="-O2"
2815 else
2816 CFLAGS=
2817 fi
2818fi
1995c9ff
AK
2819{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2820echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2821if test "${ac_cv_prog_cc_c89+set}" = set; then
1995c9ff 2822 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2823else
7a197a62 2824 ac_cv_prog_cc_c89=no
ad6254c5
AK
2825ac_save_CC=$CC
2826cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2827/* confdefs.h. */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h. */
2832#include <stdarg.h>
2833#include <stdio.h>
2834#include <sys/types.h>
2835#include <sys/stat.h>
2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2837struct buf { int x; };
2838FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839static char *e (p, i)
2840 char **p;
2841 int i;
2842{
2843 return p[i];
2844}
2845static char *f (char * (*g) (char **, int), char **p, ...)
2846{
2847 char *s;
2848 va_list v;
2849 va_start (v,p);
2850 s = g (p, va_arg (v,int));
2851 va_end (v);
2852 return s;
2853}
8a2fc586
AK
2854
2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2856 function prototypes and stuff, but not '\xHH' hex character constants.
2857 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2858 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2860 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2861 that's true only with -std. */
8a2fc586
AK
2862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2863
7a197a62
AK
2864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2865 inside strings and character constants. */
2866#define FOO(x) 'x'
2867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2868
ad6254c5
AK
2869int test (int i, double x);
2870struct s1 {int (*f) (int a);};
2871struct s2 {int (*f) (double a);};
2872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873int argc;
2874char **argv;
2875int
2876main ()
2877{
2878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2879 ;
2880 return 0;
2881}
2882_ACEOF
7a197a62
AK
2883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2885do
2886 CC="$ac_save_CC $ac_arg"
2887 rm -f conftest.$ac_objext
7a197a62
AK
2888if { (ac_try="$ac_compile"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
1995c9ff 2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2894 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2895 ac_status=$?
8a2fc586
AK
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
1995c9ff 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
7a197a62 2904 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 2905else
1995c9ff 2906 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
7a197a62 2909
ad6254c5 2910fi
7a197a62
AK
2911
2912rm -f core conftest.err conftest.$ac_objext
2913 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 2914done
7a197a62 2915rm -f conftest.$ac_ext
ad6254c5
AK
2916CC=$ac_save_CC
2917
2918fi
7a197a62
AK
2919# AC_CACHE_VAL
2920case "x$ac_cv_prog_cc_c89" in
2921 x)
1995c9ff
AK
2922 { echo "$as_me:$LINENO: result: none needed" >&5
2923echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 2924 xno)
1995c9ff
AK
2925 { echo "$as_me:$LINENO: result: unsupported" >&5
2926echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 2927 *)
7a197a62 2928 CC="$CC $ac_cv_prog_cc_c89"
1995c9ff
AK
2929 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2930echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
2931esac
2932
ad6254c5 2933
ad6254c5
AK
2934ac_ext=c
2935ac_cpp='$CPP $CPPFLAGS'
2936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2939
2940# Find a good install program. We prefer a C program (faster),
2941# so one script is as good as another. But avoid the broken or
2942# incompatible versions:
2943# SysV /etc/install, /usr/sbin/install
2944# SunOS /usr/etc/install
2945# IRIX /sbin/install
2946# AIX /bin/install
ad6254c5 2947# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2949# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 2951# OS/2's system install, which has a completely different semantic
795ca3e5 2952# ./install, which can be erroneously created by make from ./install.sh.
1995c9ff
AK
2953{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2954echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
795ca3e5 2955if test -z "$INSTALL"; then
ad6254c5 2956if test "${ac_cv_path_install+set}" = set; then
1995c9ff 2957 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2958else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 # Account for people who put trailing slashes in PATH elements.
2965case $as_dir/ in
2966 ./ | .// | /cC/* | \
2967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 2968 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2969 /usr/ucb/* ) ;;
2970 *)
2971 # OSF1 and SCO ODT 3.0 have their own names for install.
2972 # Don't use installbsd from OSF since it installs stuff as root
2973 # by default.
2974 for ac_prog in ginstall scoinst install; do
2975 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2976 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8a2fc586
AK
2977 if test $ac_prog = install &&
2978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2979 # AIX install. It has an incompatible calling convention.
2980 :
2981 elif test $ac_prog = install &&
2982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2983 # program-specific install script used by HP pwplus--don't use.
2984 :
2985 else
2986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2987 break 3
2988 fi
2989 fi
795ca3e5 2990 done
ad6254c5
AK
2991 done
2992 ;;
2993esac
2994done
7a197a62 2995IFS=$as_save_IFS
ad6254c5 2996
795ca3e5
AK
2997
2998fi
2999 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 3000 INSTALL=$ac_cv_path_install
795ca3e5 3001 else
7a197a62
AK
3002 # As a last resort, use the slow shell script. Don't cache a
3003 # value for INSTALL within a source directory, because that will
795ca3e5 3004 # break other packages using the cache if that directory is
7a197a62 3005 # removed, or if the value is a relative name.
ad6254c5 3006 INSTALL=$ac_install_sh
795ca3e5
AK
3007 fi
3008fi
1995c9ff
AK
3009{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3010echo "${ECHO_T}$INSTALL" >&6; }
795ca3e5
AK
3011
3012# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3013# It thinks the first close brace ends the variable substitution.
3014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3015
ad6254c5 3016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
3017
3018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3019
1995c9ff
AK
3020{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3021echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
ad6254c5
AK
3022LN_S=$as_ln_s
3023if test "$LN_S" = "ln -s"; then
1995c9ff
AK
3024 { echo "$as_me:$LINENO: result: yes" >&5
3025echo "${ECHO_T}yes" >&6; }
80992638 3026else
1995c9ff
AK
3027 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3028echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5
AK
3029fi
3030
1995c9ff
AK
3031{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3032echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3033set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7a197a62 3034if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 3035 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3036else
ad6254c5 3037 cat >conftest.make <<\_ACEOF
7a197a62 3038SHELL = /bin/sh
795ca3e5 3039all:
7a197a62 3040 @echo '@@@%%%=$(MAKE)=@@@%%%'
ad6254c5 3041_ACEOF
795ca3e5 3042# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7a197a62
AK
3043case `${MAKE-make} -f conftest.make 2>/dev/null` in
3044 *@@@%%%=?*=@@@%%%*)
3045 eval ac_cv_prog_make_${ac_make}_set=yes;;
3046 *)
3047 eval ac_cv_prog_make_${ac_make}_set=no;;
3048esac
ad6254c5 3049rm -f conftest.make
795ca3e5 3050fi
7a197a62 3051if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1995c9ff
AK
3052 { echo "$as_me:$LINENO: result: yes" >&5
3053echo "${ECHO_T}yes" >&6; }
795ca3e5
AK
3054 SET_MAKE=
3055else
1995c9ff
AK
3056 { echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6; }
795ca3e5
AK
3058 SET_MAKE="MAKE=${MAKE-make}"
3059fi
3060
ad6254c5
AK
3061if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3063set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1995c9ff
AK
3064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 3066if test "${ac_cv_prog_RANLIB+set}" = set; then
1995c9ff 3067 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
3068else
3069 if test -n "$RANLIB"; then
3070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3071else
ad6254c5
AK
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 3079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1995c9ff 3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
3081 break 2
3082 fi
3083done
3084done
7a197a62 3085IFS=$as_save_IFS
ad6254c5 3086
795ca3e5
AK
3087fi
3088fi
ad6254c5 3089RANLIB=$ac_cv_prog_RANLIB
795ca3e5 3090if test -n "$RANLIB"; then
1995c9ff
AK
3091 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3092echo "${ECHO_T}$RANLIB" >&6; }
8106cdd5 3093else
1995c9ff
AK
3094 { echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6; }
8106cdd5
AK
3096fi
3097
7a197a62 3098
795ca3e5 3099fi
ad6254c5
AK
3100if test -z "$ac_cv_prog_RANLIB"; then
3101 ac_ct_RANLIB=$RANLIB
3102 # Extract the first word of "ranlib", so it can be a program name with args.
3103set dummy ranlib; ac_word=$2
1995c9ff
AK
3104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 3106if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1995c9ff 3107 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 3108else
ad6254c5
AK
3109 if test -n "$ac_ct_RANLIB"; then
3110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 3119 ac_cv_prog_ac_ct_RANLIB="ranlib"
1995c9ff 3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
3121 break 2
3122 fi
3123done
795ca3e5 3124done
7a197a62 3125IFS=$as_save_IFS
8106cdd5 3126
795ca3e5 3127fi
80992638 3128fi
ad6254c5
AK
3129ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3130if test -n "$ac_ct_RANLIB"; then
1995c9ff
AK
3131 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3132echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
80992638 3133else
1995c9ff
AK
3134 { echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6; }
8106cdd5 3136fi
8106cdd5 3137
7a197a62
AK
3138 if test "x$ac_ct_RANLIB" = x; then
3139 RANLIB=":"
3140 else
3141 case $cross_compiling:$ac_tool_warned in
3142yes:)
1995c9ff 3143{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
3144whose name does not start with the host triplet. If you think this
3145configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 3146echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
3147whose name does not start with the host triplet. If you think this
3148configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3149ac_tool_warned=yes ;;
3150esac
3151 RANLIB=$ac_ct_RANLIB
3152 fi
80992638 3153else
ad6254c5 3154 RANLIB="$ac_cv_prog_RANLIB"
80992638 3155fi
795ca3e5 3156
8a2fc586
AK
3157# Extract the first word of "cflow", so it can be a program name with args.
3158set dummy cflow; ac_word=$2
1995c9ff
AK
3159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8a2fc586 3161if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
1995c9ff 3162 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
3163else
3164 case $CFLOW_CMD in
3165 [\\/]* | ?:[\\/]*)
3166 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3167 ;;
3168 *)
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586 3176 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8a2fc586
AK
3178 break 2
3179 fi
3180done
3181done
7a197a62 3182IFS=$as_save_IFS
8a2fc586
AK
3183
3184 ;;
3185esac
3186fi
3187CFLOW_CMD=$ac_cv_path_CFLOW_CMD
8a2fc586 3188if test -n "$CFLOW_CMD"; then
1995c9ff
AK
3189 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3190echo "${ECHO_T}$CFLOW_CMD" >&6; }
8a2fc586 3191else
1995c9ff
AK
3192 { echo "$as_me:$LINENO: result: no" >&5
3193echo "${ECHO_T}no" >&6; }
8a2fc586
AK
3194fi
3195
7a197a62 3196
8a2fc586
AK
3197# Extract the first word of "cscope", so it can be a program name with args.
3198set dummy cscope; ac_word=$2
1995c9ff
AK
3199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8a2fc586 3201if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
1995c9ff 3202 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
3203else
3204 case $CSCOPE_CMD in
3205 [\\/]* | ?:[\\/]*)
3206 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3207 ;;
3208 *)
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586 3216 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8a2fc586
AK
3218 break 2
3219 fi
3220done
3221done
7a197a62 3222IFS=$as_save_IFS
8a2fc586
AK
3223
3224 ;;
3225esac
3226fi
3227CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
8a2fc586 3228if test -n "$CSCOPE_CMD"; then
1995c9ff
AK
3229 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3230echo "${ECHO_T}$CSCOPE_CMD" >&6; }
8a2fc586 3231else
1995c9ff
AK
3232 { echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6; }
8a2fc586
AK
3234fi
3235
795ca3e5 3236
7a197a62 3237
ad6254c5
AK
3238################################################################################
3239
3240
3241
3242
3243
3244
3245ac_header_dirent=no
3246for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
1995c9ff
AK
3247 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3248{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3249echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7a197a62 3250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 3251 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3252else
ad6254c5 3253 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259#include <sys/types.h>
3260#include <$ac_hdr>
3261
3262int
3263main ()
3264{
3265if ((DIR *) 0)
3266return 0;
3267 ;
3268 return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext
7a197a62
AK
3272if { (ac_try="$ac_compile"
3273case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276esac
1995c9ff 3277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3278 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3279 ac_status=$?
8a2fc586
AK
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
1995c9ff 3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
ad6254c5 3288 eval "$as_ac_Header=yes"
8106cdd5 3289else
1995c9ff 3290 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
7a197a62 3293 eval "$as_ac_Header=no"
795ca3e5 3294fi
7a197a62
AK
3295
3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 3297fi
1995c9ff
AK
3298ac_res=`eval echo '${'$as_ac_Header'}'`
3299 { echo "$as_me:$LINENO: result: $ac_res" >&5
3300echo "${ECHO_T}$ac_res" >&6; }
3301if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 3302 cat >>confdefs.h <<_ACEOF
1995c9ff 3303#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
ad6254c5
AK
3304_ACEOF
3305
3306ac_header_dirent=$ac_hdr; break
795ca3e5 3307fi
8106cdd5 3308
ad6254c5
AK
3309done
3310# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3311if test $ac_header_dirent = dirent.h; then
1995c9ff
AK
3312 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3313echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
ad6254c5 3314if test "${ac_cv_search_opendir+set}" = set; then
1995c9ff 3315 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3316else
ad6254c5 3317 ac_func_search_save_LIBS=$LIBS
ad6254c5 3318cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324
7a197a62
AK
3325/* Override any GCC internal prototype to avoid an error.
3326 Use char because int might match the return type of a GCC
3327 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3328#ifdef __cplusplus
3329extern "C"
3330#endif
ad6254c5
AK
3331char opendir ();
3332int
3333main ()
3334{
7a197a62 3335return opendir ();
ad6254c5
AK
3336 ;
3337 return 0;
3338}
3339_ACEOF
7a197a62
AK
3340for ac_lib in '' dir; do
3341 if test -z "$ac_lib"; then
3342 ac_res="none required"
3343 else
3344 ac_res=-l$ac_lib
3345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3346 fi
3347 rm -f conftest.$ac_objext conftest$ac_exeext
3348if { (ac_try="$ac_link"
3349case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352esac
1995c9ff 3353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3354 (eval "$ac_link") 2>conftest.er1
ad6254c5 3355 ac_status=$?
8a2fc586
AK
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
1995c9ff 3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest$ac_exeext &&
3364 $as_test_x conftest$ac_exeext; then
7a197a62 3365 ac_cv_search_opendir=$ac_res
795ca3e5 3366else
1995c9ff 3367 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
795ca3e5 3370
7a197a62 3371fi
795ca3e5 3372
25fbec5b 3373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
3374 conftest$ac_exeext
3375 if test "${ac_cv_search_opendir+set}" = set; then
3376 break
795ca3e5 3377fi
7a197a62
AK
3378done
3379if test "${ac_cv_search_opendir+set}" = set; then
3380 :
3381else
3382 ac_cv_search_opendir=no
795ca3e5 3383fi
7a197a62 3384rm conftest.$ac_ext
ad6254c5
AK
3385LIBS=$ac_func_search_save_LIBS
3386fi
1995c9ff
AK
3387{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3388echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7a197a62
AK
3389ac_res=$ac_cv_search_opendir
3390if test "$ac_res" != no; then
3391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
795ca3e5
AK
3392
3393fi
3394
795ca3e5 3395else
1995c9ff
AK
3396 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3397echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
ad6254c5 3398if test "${ac_cv_search_opendir+set}" = set; then
1995c9ff 3399 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
3400else
3401 ac_func_search_save_LIBS=$LIBS
ad6254c5 3402cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h. */
80992638 3408
7a197a62
AK
3409/* Override any GCC internal prototype to avoid an error.
3410 Use char because int might match the return type of a GCC
3411 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3412#ifdef __cplusplus
3413extern "C"
3414#endif
ad6254c5
AK
3415char opendir ();
3416int
3417main ()
3418{
7a197a62 3419return opendir ();
ad6254c5
AK
3420 ;
3421 return 0;
3422}
3423_ACEOF
7a197a62
AK
3424for ac_lib in '' x; do
3425 if test -z "$ac_lib"; then
3426 ac_res="none required"
3427 else
3428 ac_res=-l$ac_lib
3429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3430 fi
3431 rm -f conftest.$ac_objext conftest$ac_exeext
3432if { (ac_try="$ac_link"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
1995c9ff 3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3438 (eval "$ac_link") 2>conftest.er1
ad6254c5 3439 ac_status=$?
8a2fc586
AK
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
1995c9ff 3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest$ac_exeext &&
3448 $as_test_x conftest$ac_exeext; then
7a197a62 3449 ac_cv_search_opendir=$ac_res
795ca3e5 3450else
1995c9ff 3451 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
ad6254c5 3454
7a197a62 3455fi
80992638 3456
25fbec5b 3457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
3458 conftest$ac_exeext
3459 if test "${ac_cv_search_opendir+set}" = set; then
3460 break
795ca3e5 3461fi
7a197a62
AK
3462done
3463if test "${ac_cv_search_opendir+set}" = set; then
3464 :
3465else
3466 ac_cv_search_opendir=no
ad6254c5 3467fi
7a197a62 3468rm conftest.$ac_ext
ad6254c5 3469LIBS=$ac_func_search_save_LIBS
795ca3e5 3470fi
1995c9ff
AK
3471{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3472echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7a197a62
AK
3473ac_res=$ac_cv_search_opendir
3474if test "$ac_res" != no; then
3475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8106cdd5 3476
ad6254c5 3477fi
8106cdd5 3478
795ca3e5 3479fi
8106cdd5 3480
ad6254c5
AK
3481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995c9ff
AK
3486{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3487echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
ad6254c5
AK
3488# On Suns, sometimes $CPP names a directory.
3489if test -n "$CPP" && test -d "$CPP"; then
3490 CPP=
3491fi
3492if test -z "$CPP"; then
3493 if test "${ac_cv_prog_CPP+set}" = set; then
1995c9ff 3494 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
3495else
3496 # Double quotes because CPP needs to be expanded
3497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3498 do
3499 ac_preproc_ok=false
3500for ac_c_preproc_warn_flag in '' yes
8106cdd5 3501do
ad6254c5
AK
3502 # Use a header file that comes with gcc, so configuring glibc
3503 # with a fresh cross-compiler works.
3504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505 # <limits.h> exists even on freestanding compilers.
3506 # On the NeXT, cc -E runs the code through the compiler's parser,
3507 # not just through cpp. "Syntax error" is here to catch this case.
3508 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
3514#ifdef __STDC__
3515# include <limits.h>
3516#else
3517# include <assert.h>
3518#endif
8a2fc586 3519 Syntax error
ad6254c5 3520_ACEOF
7a197a62
AK
3521if { (ac_try="$ac_cpp conftest.$ac_ext"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
1995c9ff 3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
1995c9ff 3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3533 (exit $ac_status); } >/dev/null && {
3534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 }; then
ad6254c5
AK
3537 :
3538else
1995c9ff 3539 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 # Broken: fails on valid input.
3543continue
3544fi
7a197a62 3545
ad6254c5
AK
3546rm -f conftest.err conftest.$ac_ext
3547
7a197a62 3548 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3549 # can be detected and how.
3550 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#include <ac_nonexistent.h>
3557_ACEOF
7a197a62
AK
3558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
1995c9ff 3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
1995c9ff 3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3570 (exit $ac_status); } >/dev/null && {
3571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3572 test ! -s conftest.err
3573 }; then
ad6254c5
AK
3574 # Broken: success on invalid input.
3575continue
80992638 3576else
1995c9ff 3577 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 # Passes both tests.
3581ac_preproc_ok=:
3582break
795ca3e5 3583fi
7a197a62 3584
ad6254c5
AK
3585rm -f conftest.err conftest.$ac_ext
3586
795ca3e5 3587done
ad6254c5
AK
3588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3589rm -f conftest.err conftest.$ac_ext
3590if $ac_preproc_ok; then
3591 break
3592fi
795ca3e5 3593
ad6254c5
AK
3594 done
3595 ac_cv_prog_CPP=$CPP
795ca3e5 3596
ad6254c5
AK
3597fi
3598 CPP=$ac_cv_prog_CPP
795ca3e5 3599else
ad6254c5 3600 ac_cv_prog_CPP=$CPP
795ca3e5 3601fi
1995c9ff
AK
3602{ echo "$as_me:$LINENO: result: $CPP" >&5
3603echo "${ECHO_T}$CPP" >&6; }
ad6254c5
AK
3604ac_preproc_ok=false
3605for ac_c_preproc_warn_flag in '' yes
3606do
3607 # Use a header file that comes with gcc, so configuring glibc
3608 # with a fresh cross-compiler works.
3609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610 # <limits.h> exists even on freestanding compilers.
3611 # On the NeXT, cc -E runs the code through the compiler's parser,
3612 # not just through cpp. "Syntax error" is here to catch this case.
3613 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3614/* confdefs.h. */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h. */
3619#ifdef __STDC__
3620# include <limits.h>
3621#else
3622# include <assert.h>
3623#endif
8a2fc586 3624 Syntax error
ad6254c5 3625_ACEOF
7a197a62
AK
3626if { (ac_try="$ac_cpp conftest.$ac_ext"
3627case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
1995c9ff 3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
1995c9ff 3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3638 (exit $ac_status); } >/dev/null && {
3639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 }; then
ad6254c5
AK
3642 :
3643else
1995c9ff 3644 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 # Broken: fails on valid input.
3648continue
3649fi
7a197a62 3650
ad6254c5
AK
3651rm -f conftest.err conftest.$ac_ext
3652
7a197a62 3653 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3654 # can be detected and how.
3655 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3656/* confdefs.h. */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h. */
3661#include <ac_nonexistent.h>
3662_ACEOF
7a197a62
AK
3663if { (ac_try="$ac_cpp conftest.$ac_ext"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
1995c9ff 3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
1995c9ff 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 }; then
ad6254c5
AK
3679 # Broken: success on invalid input.
3680continue
3681else
1995c9ff 3682 echo "$as_me: failed program was:" >&5
ad6254c5 3683sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3684
ad6254c5
AK
3685 # Passes both tests.
3686ac_preproc_ok=:
3687break
795ca3e5 3688fi
7a197a62 3689
ad6254c5 3690rm -f conftest.err conftest.$ac_ext
795ca3e5 3691
ad6254c5
AK
3692done
3693# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3694rm -f conftest.err conftest.$ac_ext
3695if $ac_preproc_ok; then
3696 :
795ca3e5 3697else
1995c9ff 3698 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
ad6254c5 3699See \`config.log' for more details." >&5
1995c9ff 3700echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
ad6254c5
AK
3701See \`config.log' for more details." >&2;}
3702 { (exit 1); exit 1; }; }
795ca3e5 3703fi
795ca3e5 3704
ad6254c5
AK
3705ac_ext=c
3706ac_cpp='$CPP $CPPFLAGS'
3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711
1995c9ff
AK
3712{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3713echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7a197a62 3714if test "${ac_cv_path_GREP+set}" = set; then
1995c9ff 3715 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3716else
3717 # Extract the first word of "grep ggrep" to use in msg output
3718if test -z "$GREP"; then
3719set dummy grep ggrep; ac_prog_name=$2
3720if test "${ac_cv_path_GREP+set}" = set; then
1995c9ff 3721 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3722else
7a197a62
AK
3723 ac_path_GREP_found=false
3724# Loop through the user's path and test for each of PROGNAME-LIST
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in grep ggrep; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
25fbec5b 3733 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7a197a62
AK
3734 # Check for GNU ac_path_GREP and select it if it is found.
3735 # Check for GNU $ac_path_GREP
3736case `"$ac_path_GREP" --version 2>&1` in
3737*GNU*)
3738 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3739*)
3740 ac_count=0
1995c9ff 3741 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7a197a62
AK
3742 while :
3743 do
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
1995c9ff 3747 echo 'GREP' >> "conftest.nl"
7a197a62
AK
3748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750 ac_count=`expr $ac_count + 1`
3751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_GREP="$ac_path_GREP"
3754 ac_path_GREP_max=$ac_count
ad6254c5 3755 fi
7a197a62
AK
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3758 done
3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760esac
80992638 3761
795ca3e5 3762
7a197a62
AK
3763 $ac_path_GREP_found && break 3
3764 done
3765done
ad6254c5 3766
7a197a62
AK
3767done
3768IFS=$as_save_IFS
ad6254c5 3769
ad6254c5 3770
795ca3e5 3771fi
ad6254c5 3772
7a197a62
AK
3773GREP="$ac_cv_path_GREP"
3774if test -z "$GREP"; then
1995c9ff
AK
3775 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3776echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7a197a62
AK
3777 { (exit 1); exit 1; }; }
3778fi
3779
3780else
3781 ac_cv_path_GREP=$GREP
3782fi
3783
3784
3785fi
1995c9ff
AK
3786{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3787echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7a197a62
AK
3788 GREP="$ac_cv_path_GREP"
3789
3790
1995c9ff
AK
3791{ echo "$as_me:$LINENO: checking for egrep" >&5
3792echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7a197a62 3793if test "${ac_cv_path_EGREP+set}" = set; then
1995c9ff 3794 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3795else
3796 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3797 then ac_cv_path_EGREP="$GREP -E"
3798 else
3799 # Extract the first word of "egrep" to use in msg output
3800if test -z "$EGREP"; then
3801set dummy egrep; ac_prog_name=$2
3802if test "${ac_cv_path_EGREP+set}" = set; then
1995c9ff 3803 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3804else
3805 ac_path_EGREP_found=false
3806# Loop through the user's path and test for each of PROGNAME-LIST
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_prog in egrep; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
25fbec5b 3815 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7a197a62
AK
3816 # Check for GNU ac_path_EGREP and select it if it is found.
3817 # Check for GNU $ac_path_EGREP
3818case `"$ac_path_EGREP" --version 2>&1` in
3819*GNU*)
3820 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3821*)
3822 ac_count=0
1995c9ff 3823 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7a197a62
AK
3824 while :
3825 do
3826 cat "conftest.in" "conftest.in" >"conftest.tmp"
3827 mv "conftest.tmp" "conftest.in"
3828 cp "conftest.in" "conftest.nl"
1995c9ff 3829 echo 'EGREP' >> "conftest.nl"
7a197a62
AK
3830 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832 ac_count=`expr $ac_count + 1`
3833 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3834 # Best one so far, save it but keep looking for a better one
3835 ac_cv_path_EGREP="$ac_path_EGREP"
3836 ac_path_EGREP_max=$ac_count
3837 fi
3838 # 10*(2^10) chars as input seems more than enough
3839 test $ac_count -gt 10 && break
3840 done
3841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3842esac
3843
3844
3845 $ac_path_EGREP_found && break 3
3846 done
3847done
3848
3849done
3850IFS=$as_save_IFS
3851
3852
3853fi
3854
3855EGREP="$ac_cv_path_EGREP"
3856if test -z "$EGREP"; then
1995c9ff
AK
3857 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3858echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7a197a62
AK
3859 { (exit 1); exit 1; }; }
3860fi
3861
3862else
3863 ac_cv_path_EGREP=$EGREP
3864fi
3865
3866
3867 fi
3868fi
1995c9ff
AK
3869{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3870echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7a197a62
AK
3871 EGREP="$ac_cv_path_EGREP"
3872
3873
1995c9ff
AK
3874{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3875echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 3876if test "${ac_cv_header_stdc+set}" = set; then
1995c9ff 3877 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3878else
3879 cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h. */
3885#include <stdlib.h>
3886#include <stdarg.h>
3887#include <string.h>
3888#include <float.h>
3889
3890int
3891main ()
3892{
3893
3894 ;
3895 return 0;
3896}
3897_ACEOF
3898rm -f conftest.$ac_objext
3899if { (ac_try="$ac_compile"
3900case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
1995c9ff 3904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
3905 (eval "$ac_compile") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
1995c9ff 3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest.$ac_objext; then
7a197a62
AK
3915 ac_cv_header_stdc=yes
3916else
1995c9ff 3917 echo "$as_me: failed program was:" >&5
7a197a62
AK
3918sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 ac_cv_header_stdc=no
3921fi
3922
3923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924
3925if test $ac_cv_header_stdc = yes; then
3926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 3927 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3928/* confdefs.h. */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h. */
3933#include <string.h>
8106cdd5 3934
ad6254c5
AK
3935_ACEOF
3936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "memchr" >/dev/null 2>&1; then
3938 :
3939else
3940 ac_cv_header_stdc=no
80992638 3941fi
ad6254c5 3942rm -f conftest*
795ca3e5
AK
3943
3944fi
3945
ad6254c5
AK
3946if test $ac_cv_header_stdc = yes; then
3947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3948 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3949/* confdefs.h. */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h. */
80992638 3954#include <stdlib.h>
ad6254c5
AK
3955
3956_ACEOF
80992638 3957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3958 $EGREP "free" >/dev/null 2>&1; then
3959 :
795ca3e5 3960else
ad6254c5 3961 ac_cv_header_stdc=no
795ca3e5 3962fi
80992638 3963rm -f conftest*
8106cdd5 3964
795ca3e5
AK
3965fi
3966
ad6254c5
AK
3967if test $ac_cv_header_stdc = yes; then
3968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3969 if test "$cross_compiling" = yes; then
3970 :
795ca3e5 3971else
ad6254c5 3972 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978#include <ctype.h>
7a197a62 3979#include <stdlib.h>
ad6254c5
AK
3980#if ((' ' & 0x0FF) == 0x020)
3981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3983#else
3984# define ISLOWER(c) \
8a2fc586
AK
3985 (('a' <= (c) && (c) <= 'i') \
3986 || ('j' <= (c) && (c) <= 'r') \
3987 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3989#endif
ad6254c5
AK
3990
3991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992int
3993main ()
3994{
3995 int i;
3996 for (i = 0; i < 256; i++)
3997 if (XOR (islower (i), ISLOWER (i))
8a2fc586 3998 || toupper (i) != TOUPPER (i))
7a197a62
AK
3999 return 2;
4000 return 0;
ad6254c5
AK
4001}
4002_ACEOF
4003rm -f conftest$ac_exeext
7a197a62
AK
4004if { (ac_try="$ac_link"
4005case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008esac
1995c9ff 4009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4010 (eval "$ac_link") 2>&5
ad6254c5 4011 ac_status=$?
1995c9ff 4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4014 { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
1995c9ff 4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4019 (eval "$ac_try") 2>&5
ad6254c5 4020 ac_status=$?
1995c9ff 4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4022 (exit $ac_status); }; }; then
4023 :
795ca3e5 4024else
1995c9ff
AK
4025 echo "$as_me: program exited with status $ac_status" >&5
4026echo "$as_me: failed program was:" >&5
ad6254c5 4027sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4028
ad6254c5
AK
4029( exit $ac_status )
4030ac_cv_header_stdc=no
80992638 4031fi
7a197a62 4032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4033fi
7a197a62
AK
4034
4035
ad6254c5
AK
4036fi
4037fi
1995c9ff
AK
4038{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4039echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4040if test $ac_cv_header_stdc = yes; then
4041
4042cat >>confdefs.h <<\_ACEOF
4043#define STDC_HEADERS 1
4044_ACEOF
795ca3e5
AK
4045
4046fi
4047
1995c9ff
AK
4048{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4049echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4050if test "${ac_cv_header_sys_wait_h+set}" = set; then
1995c9ff 4051 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4052else
ad6254c5 4053 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4054/* confdefs.h. */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h. */
80992638 4059#include <sys/types.h>
ad6254c5
AK
4060#include <sys/wait.h>
4061#ifndef WEXITSTATUS
7a197a62 4062# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4063#endif
4064#ifndef WIFEXITED
4065# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4066#endif
4067
4068int
4069main ()
4070{
4071 int s;
4072 wait (&s);
4073 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.$ac_objext
7a197a62
AK
4079if { (ac_try="$ac_compile"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
1995c9ff 4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4085 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4086 ac_status=$?
8a2fc586
AK
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
1995c9ff 4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4091 (exit $ac_status); } && {
4092 test -z "$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4095 ac_cv_header_sys_wait_h=yes
4096else
1995c9ff 4097 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
7a197a62 4100 ac_cv_header_sys_wait_h=no
8106cdd5 4101fi
7a197a62
AK
4102
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4104fi
1995c9ff
AK
4105{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4106echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4107if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4108
ad6254c5
AK
4109cat >>confdefs.h <<\_ACEOF
4110#define HAVE_SYS_WAIT_H 1
4111_ACEOF
795ca3e5
AK
4112
4113fi
4114
1995c9ff
AK
4115{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4116echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4117if test "${ac_cv_header_time+set}" = set; then
1995c9ff 4118 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4119else
ad6254c5 4120 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
795ca3e5
AK
4126#include <sys/types.h>
4127#include <sys/time.h>
4128#include <time.h>
ad6254c5
AK
4129
4130int
4131main ()
4132{
4133if ((struct tm *) 0)
4134return 0;
4135 ;
4136 return 0;
4137}
4138_ACEOF
4139rm -f conftest.$ac_objext
7a197a62
AK
4140if { (ac_try="$ac_compile"
4141case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
1995c9ff 4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4146 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4147 ac_status=$?
8a2fc586
AK
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
1995c9ff 4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4152 (exit $ac_status); } && {
4153 test -z "$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4156 ac_cv_header_time=yes
4157else
1995c9ff 4158 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
7a197a62 4161 ac_cv_header_time=no
795ca3e5 4162fi
7a197a62
AK
4163
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4165fi
1995c9ff
AK
4166{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4167echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4168if test $ac_cv_header_time = yes; then
ad6254c5
AK
4169
4170cat >>confdefs.h <<\_ACEOF
795ca3e5 4171#define TIME_WITH_SYS_TIME 1
ad6254c5 4172_ACEOF
b896caa1 4173
8106cdd5 4174fi
b896caa1 4175
b896caa1 4176
ad6254c5 4177# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 4178
b896caa1
AK
4179
4180
795ca3e5 4181
8106cdd5 4182
80992638 4183
795ca3e5 4184
a38df97f 4185
80992638 4186
ad6254c5 4187for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 4188 inttypes.h stdint.h unistd.h
ad6254c5 4189do
1995c9ff
AK
4190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4194 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
4195else
4196 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h. */
4202$ac_includes_default
4203
4204#include <$ac_header>
4205_ACEOF
4206rm -f conftest.$ac_objext
7a197a62
AK
4207if { (ac_try="$ac_compile"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
1995c9ff 4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4213 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4214 ac_status=$?
8a2fc586
AK
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
1995c9ff 4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4223 eval "$as_ac_Header=yes"
4224else
1995c9ff 4225 echo "$as_me: failed program was:" >&5
ad6254c5 4226sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4227
7a197a62 4228 eval "$as_ac_Header=no"
ad6254c5 4229fi
7a197a62
AK
4230
4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 4232fi
1995c9ff
AK
4233ac_res=`eval echo '${'$as_ac_Header'}'`
4234 { echo "$as_me:$LINENO: result: $ac_res" >&5
4235echo "${ECHO_T}$ac_res" >&6; }
4236if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4237 cat >>confdefs.h <<_ACEOF
1995c9ff 4238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4239_ACEOF
a38df97f 4240
80992638
AK
4241fi
4242
ad6254c5
AK
4243done
4244
7d1552c9 4245
7d1552c9 4246
80992638 4247
5a52dca9 4248
5a52dca9 4249
ad6254c5
AK
4250
4251
4252
4253
4254
4255for 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
4256do
1995c9ff 4257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4262 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4263fi
1995c9ff
AK
4264ac_res=`eval echo '${'$as_ac_Header'}'`
4265 { echo "$as_me:$LINENO: result: $ac_res" >&5
4266echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4267else
4268 # Is the header compilable?
1995c9ff
AK
4269{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4271cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4272/* confdefs.h. */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h. */
4277$ac_includes_default
4278#include <$ac_header>
4279_ACEOF
4280rm -f conftest.$ac_objext
7a197a62
AK
4281if { (ac_try="$ac_compile"
4282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
1995c9ff 4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4287 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4288 ac_status=$?
8a2fc586
AK
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
1995c9ff 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4293 (exit $ac_status); } && {
4294 test -z "$ac_c_werror_flag" ||
4295 test ! -s conftest.err
4296 } && test -s conftest.$ac_objext; then
fc54be10
AK
4297 ac_header_compiler=yes
4298else
4299 echo "$as_me: failed program was:" >&5
4300sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ac_header_compiler=no
4303fi
4304
4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4306{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4307echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4308
4309# Is the header present?
1995c9ff
AK
4310{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4312cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
4318#include <$ac_header>
4319_ACEOF
7a197a62
AK
4320if { (ac_try="$ac_cpp conftest.$ac_ext"
4321case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
1995c9ff 4325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
1995c9ff 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4332 (exit $ac_status); } >/dev/null && {
4333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 }; then
ad6254c5
AK
4336 ac_header_preproc=yes
4337else
1995c9ff 4338 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ac_header_preproc=no
4342fi
7a197a62 4343
ad6254c5 4344rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4345{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4346echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4347
4348# So? What about this header?
8a2fc586
AK
4349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4350 yes:no: )
1995c9ff
AK
4351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4355 ac_header_preproc=yes
ad6254c5 4356 ;;
8a2fc586 4357 no:yes:* )
1995c9ff
AK
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4370
ad6254c5
AK
4371 ;;
4372esac
1995c9ff
AK
4373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4376 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4377else
8a2fc586 4378 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4379fi
1995c9ff
AK
4380ac_res=`eval echo '${'$as_ac_Header'}'`
4381 { echo "$as_me:$LINENO: result: $ac_res" >&5
4382echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4383
4384fi
1995c9ff 4385if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4386 cat >>confdefs.h <<_ACEOF
1995c9ff 4387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4388_ACEOF
b896caa1 4389
d8ac0fbc 4390else
1995c9ff
AK
4391 { { echo "$as_me:$LINENO: error: bailing out" >&5
4392echo "$as_me: error: bailing out" >&2;}
ad6254c5 4393 { (exit 1); exit 1; }; }
80992638
AK
4394fi
4395
ad6254c5 4396done
d8ac0fbc 4397
d8ac0fbc 4398
d8ac0fbc 4399
80992638 4400
d3c8211f 4401
d3c8211f 4402
d3c8211f 4403
80992638 4404
4922197a 4405
4922197a 4406
ad6254c5
AK
4407
4408
4409
4410for 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
4411do
1995c9ff 4412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4417 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4418fi
1995c9ff
AK
4419ac_res=`eval echo '${'$as_ac_Header'}'`
4420 { echo "$as_me:$LINENO: result: $ac_res" >&5
4421echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4422else
4423 # Is the header compilable?
1995c9ff
AK
4424{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4426cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4427/* confdefs.h. */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h. */
4432$ac_includes_default
4433#include <$ac_header>
4434_ACEOF
4435rm -f conftest.$ac_objext
7a197a62
AK
4436if { (ac_try="$ac_compile"
4437case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
1995c9ff 4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4442 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4443 ac_status=$?
8a2fc586
AK
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
1995c9ff 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4448 (exit $ac_status); } && {
4449 test -z "$ac_c_werror_flag" ||
4450 test ! -s conftest.err
4451 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4452 ac_header_compiler=yes
4453else
1995c9ff 4454 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4455sed 's/^/| /' conftest.$ac_ext >&5
4456
7a197a62 4457 ac_header_compiler=no
ad6254c5 4458fi
7a197a62
AK
4459
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4461{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4462echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4463
4464# Is the header present?
1995c9ff
AK
4465{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4467cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4468/* confdefs.h. */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
4472/* end confdefs.h. */
4473#include <$ac_header>
4474_ACEOF
7a197a62
AK
4475if { (ac_try="$ac_cpp conftest.$ac_ext"
4476case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
1995c9ff 4480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4482 ac_status=$?
4483 grep -v '^ *+' conftest.er1 >conftest.err
4484 rm -f conftest.er1
4485 cat conftest.err >&5
1995c9ff 4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4487 (exit $ac_status); } >/dev/null && {
4488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4490 }; then
ad6254c5
AK
4491 ac_header_preproc=yes
4492else
1995c9ff 4493 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ac_header_preproc=no
4497fi
7a197a62 4498
ad6254c5 4499rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4501echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4502
4503# So? What about this header?
8a2fc586
AK
4504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4505 yes:no: )
1995c9ff
AK
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4510 ac_header_preproc=yes
ad6254c5 4511 ;;
8a2fc586 4512 no:yes:* )
1995c9ff
AK
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4525
ad6254c5
AK
4526 ;;
4527esac
1995c9ff
AK
4528{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4531 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4532else
8a2fc586 4533 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4534fi
1995c9ff
AK
4535ac_res=`eval echo '${'$as_ac_Header'}'`
4536 { echo "$as_me:$LINENO: result: $ac_res" >&5
4537echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4538
4539fi
1995c9ff 4540if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4541 cat >>confdefs.h <<_ACEOF
1995c9ff 4542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4543_ACEOF
4922197a 4544
4922197a 4545else
1995c9ff
AK
4546 { { echo "$as_me:$LINENO: error: bailing out" >&5
4547echo "$as_me: error: bailing out" >&2;}
ad6254c5 4548 { (exit 1); exit 1; }; }
80992638
AK
4549fi
4550
ad6254c5 4551done
4922197a 4552
4922197a 4553
ad6254c5
AK
4554case "$host_os" in
4555 linux*)
4922197a 4556
ad6254c5
AK
4557
4558
4559for ac_header in asm/byteorder.h linux/fs.h malloc.h
4560do
1995c9ff 4561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4566 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4567fi
1995c9ff
AK
4568ac_res=`eval echo '${'$as_ac_Header'}'`
4569 { echo "$as_me:$LINENO: result: $ac_res" >&5
4570echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4571else
ad6254c5 4572 # Is the header compilable?
1995c9ff
AK
4573{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4575cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h. */
4581$ac_includes_default
4582#include <$ac_header>
4583_ACEOF
4584rm -f conftest.$ac_objext
7a197a62
AK
4585if { (ac_try="$ac_compile"
4586case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589esac
1995c9ff 4590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4591 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4592 ac_status=$?
8a2fc586
AK
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
1995c9ff 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4597 (exit $ac_status); } && {
4598 test -z "$ac_c_werror_flag" ||
4599 test ! -s conftest.err
4600 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4601 ac_header_compiler=yes
4602else
1995c9ff 4603 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
7a197a62 4606 ac_header_compiler=no
ad6254c5 4607fi
7a197a62
AK
4608
4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4610{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4611echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4612
4613# Is the header present?
1995c9ff
AK
4614{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4615echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4616cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
4622#include <$ac_header>
4623_ACEOF
7a197a62
AK
4624if { (ac_try="$ac_cpp conftest.$ac_ext"
4625case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628esac
1995c9ff 4629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
1995c9ff 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4636 (exit $ac_status); } >/dev/null && {
4637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 }; then
ad6254c5
AK
4640 ac_header_preproc=yes
4641else
1995c9ff 4642 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 ac_header_preproc=no
4646fi
7a197a62 4647
ad6254c5 4648rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4649{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4650echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4651
4652# So? What about this header?
8a2fc586
AK
4653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4654 yes:no: )
1995c9ff
AK
4655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4659 ac_header_preproc=yes
ad6254c5 4660 ;;
8a2fc586 4661 no:yes:* )
1995c9ff
AK
4662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4674
ad6254c5
AK
4675 ;;
4676esac
1995c9ff
AK
4677{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4680 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4681else
8a2fc586 4682 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4683fi
1995c9ff
AK
4684ac_res=`eval echo '${'$as_ac_Header'}'`
4685 { echo "$as_me:$LINENO: result: $ac_res" >&5
4686echo "${ECHO_T}$ac_res" >&6; }
80992638 4687
ad6254c5 4688fi
1995c9ff 4689if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4690 cat >>confdefs.h <<_ACEOF
1995c9ff 4691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4692_ACEOF
795ca3e5 4693
795ca3e5 4694else
1995c9ff
AK
4695 { { echo "$as_me:$LINENO: error: bailing out" >&5
4696echo "$as_me: error: bailing out" >&2;}
ad6254c5 4697 { (exit 1); exit 1; }; }
80992638
AK
4698fi
4699
ad6254c5
AK
4700done
4701 ;;
4702 darwin*)
4703
795ca3e5 4704
ad6254c5
AK
4705for ac_header in machine/endian.h sys/disk.h
4706do
1995c9ff 4707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4712 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4713fi
1995c9ff
AK
4714ac_res=`eval echo '${'$as_ac_Header'}'`
4715 { echo "$as_me:$LINENO: result: $ac_res" >&5
4716echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4717else
4718 # Is the header compilable?
1995c9ff
AK
4719{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4721cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4722/* confdefs.h. */
4723_ACEOF
4724cat confdefs.h >>conftest.$ac_ext
4725cat >>conftest.$ac_ext <<_ACEOF
4726/* end confdefs.h. */
4727$ac_includes_default
4728#include <$ac_header>
4729_ACEOF
4730rm -f conftest.$ac_objext
7a197a62
AK
4731if { (ac_try="$ac_compile"
4732case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735esac
1995c9ff 4736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4737 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4738 ac_status=$?
8a2fc586
AK
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
1995c9ff 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4743 (exit $ac_status); } && {
4744 test -z "$ac_c_werror_flag" ||
4745 test ! -s conftest.err
4746 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4747 ac_header_compiler=yes
4748else
1995c9ff 4749 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4750sed 's/^/| /' conftest.$ac_ext >&5
4751
7a197a62 4752 ac_header_compiler=no
ad6254c5 4753fi
7a197a62
AK
4754
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4757echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4758
4759# Is the header present?
1995c9ff
AK
4760{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4762cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4763/* confdefs.h. */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h. */
4768#include <$ac_header>
4769_ACEOF
7a197a62
AK
4770if { (ac_try="$ac_cpp conftest.$ac_ext"
4771case "(($ac_try" in
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4774esac
1995c9ff 4775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4777 ac_status=$?
4778 grep -v '^ *+' conftest.er1 >conftest.err
4779 rm -f conftest.er1
4780 cat conftest.err >&5
1995c9ff 4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4782 (exit $ac_status); } >/dev/null && {
4783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4784 test ! -s conftest.err
4785 }; then
ad6254c5
AK
4786 ac_header_preproc=yes
4787else
1995c9ff 4788 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 ac_header_preproc=no
4792fi
7a197a62 4793
ad6254c5 4794rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4796echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4797
4798# So? What about this header?
8a2fc586
AK
4799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4800 yes:no: )
1995c9ff
AK
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4805 ac_header_preproc=yes
ad6254c5 4806 ;;
8a2fc586 4807 no:yes:* )
1995c9ff
AK
4808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4820
ad6254c5
AK
4821 ;;
4822esac
1995c9ff
AK
4823{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4826 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4827else
8a2fc586 4828 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4829fi
1995c9ff
AK
4830ac_res=`eval echo '${'$as_ac_Header'}'`
4831 { echo "$as_me:$LINENO: result: $ac_res" >&5
4832echo "${ECHO_T}$ac_res" >&6; }
b896caa1 4833
ad6254c5 4834fi
1995c9ff 4835if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4836 cat >>confdefs.h <<_ACEOF
1995c9ff 4837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
4838_ACEOF
4839
4840else
1995c9ff
AK
4841 { { echo "$as_me:$LINENO: error: bailing out" >&5
4842echo "$as_me: error: bailing out" >&2;}
ad6254c5 4843 { (exit 1); exit 1; }; }
80992638
AK
4844fi
4845
ad6254c5
AK
4846done
4847 ;;
4848esac
d3c8211f 4849
80992638 4850################################################################################
1995c9ff
AK
4851{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4852echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 4853if test "${ac_cv_c_const+set}" = set; then
1995c9ff 4854 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4855else
ad6254c5 4856 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4857/* confdefs.h. */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h. */
4862
4863int
4864main ()
4865{
4866/* FIXME: Include the comments suggested by Paul. */
4867#ifndef __cplusplus
4868 /* Ultrix mips cc rejects this. */
4869 typedef int charset[2];
25fbec5b 4870 const charset cs;
ad6254c5 4871 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
4872 char const *const *pcpcc;
4873 char **ppc;
ad6254c5
AK
4874 /* NEC SVR4.0.2 mips cc rejects this. */
4875 struct point {int x, y;};
4876 static struct point const zero = {0,0};
4877 /* AIX XL C 1.02.0.0 rejects this.
4878 It does not let you subtract one const X* pointer from another in
4879 an arm of an if-expression whose if-part is not a constant
4880 expression */
4881 const char *g = "string";
25fbec5b 4882 pcpcc = &g + (g ? g-g : 0);
ad6254c5 4883 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
4884 ++pcpcc;
4885 ppc = (char**) pcpcc;
4886 pcpcc = (char const *const *) ppc;
ad6254c5
AK
4887 { /* SCO 3.2v4 cc rejects this. */
4888 char *t;
4889 char const *s = 0 ? (char *) 0 : (char const *) 0;
4890
4891 *t++ = 0;
7a197a62 4892 if (s) return 0;
ad6254c5
AK
4893 }
4894 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4895 int x[] = {25, 17};
4896 const int *foo = &x[0];
4897 ++foo;
4898 }
4899 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4900 typedef const int *iptr;
4901 iptr p = 0;
4902 ++p;
4903 }
4904 { /* AIX XL C 1.02.0.0 rejects this saying
4905 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4906 struct s { int j; const int *ap[3]; };
4907 struct s *b; b->j = 5;
4908 }
4909 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4910 const int foo = 10;
7a197a62 4911 if (!foo) return 0;
ad6254c5 4912 }
25fbec5b 4913 return !cs[0] && !zero.x;
ad6254c5
AK
4914#endif
4915
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext
7a197a62
AK
4921if { (ac_try="$ac_compile"
4922case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925esac
1995c9ff 4926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4927 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4928 ac_status=$?
8a2fc586
AK
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
1995c9ff 4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4937 ac_cv_c_const=yes
4938else
1995c9ff 4939 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
7a197a62 4942 ac_cv_c_const=no
ad6254c5 4943fi
7a197a62
AK
4944
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4946fi
1995c9ff
AK
4947{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4948echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 4949if test $ac_cv_c_const = no; then
80992638 4950
ad6254c5
AK
4951cat >>confdefs.h <<\_ACEOF
4952#define const
4953_ACEOF
80992638 4954
d3c8211f 4955fi
d3c8211f 4956
1995c9ff
AK
4957{ echo "$as_me:$LINENO: checking for inline" >&5
4958echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 4959if test "${ac_cv_c_inline+set}" = set; then
1995c9ff 4960 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4961else
ad6254c5
AK
4962 ac_cv_c_inline=no
4963for ac_kw in inline __inline__ __inline; do
4964 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#ifndef __cplusplus
4971typedef int foo_t;
4972static $ac_kw foo_t static_foo () {return 0; }
4973$ac_kw foo_t foo () {return 0; }
4974#endif
80992638 4975
ad6254c5
AK
4976_ACEOF
4977rm -f conftest.$ac_objext
7a197a62
AK
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
1995c9ff 4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4984 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4985 ac_status=$?
8a2fc586
AK
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
1995c9ff 4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
7a197a62 4994 ac_cv_c_inline=$ac_kw
ad6254c5 4995else
1995c9ff 4996 echo "$as_me: failed program was:" >&5
ad6254c5 4997sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4998
7a197a62 4999
8ce0cbda 5000fi
7a197a62
AK
5001
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 test "$ac_cv_c_inline" != no && break
ad6254c5 5004done
8ce0cbda 5005
8ce0cbda 5006fi
1995c9ff
AK
5007{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5008echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5009
5010
ad6254c5
AK
5011case $ac_cv_c_inline in
5012 inline | yes) ;;
8a2fc586
AK
5013 *)
5014 case $ac_cv_c_inline in
5015 no) ac_val=;;
5016 *) ac_val=$ac_cv_c_inline;;
5017 esac
5018 cat >>confdefs.h <<_ACEOF
5019#ifndef __cplusplus
5020#define inline $ac_val
5021#endif
c1c065a3 5022_ACEOF
8a2fc586 5023 ;;
ad6254c5 5024esac
8ce0cbda 5025
1995c9ff
AK
5026{ echo "$as_me:$LINENO: checking for off_t" >&5
5027echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5028if test "${ac_cv_type_off_t+set}" = set; then
1995c9ff 5029 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5030else
5031 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5032/* confdefs.h. */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h. */
5037$ac_includes_default
7a197a62 5038typedef off_t ac__type_new_;
ad6254c5
AK
5039int
5040main ()
5041{
7a197a62 5042if ((ac__type_new_ *) 0)
ad6254c5 5043 return 0;
7a197a62 5044if (sizeof (ac__type_new_))
ad6254c5
AK
5045 return 0;
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050rm -f conftest.$ac_objext
7a197a62
AK
5051if { (ac_try="$ac_compile"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
1995c9ff 5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5057 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5058 ac_status=$?
8a2fc586
AK
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
1995c9ff 5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5067 ac_cv_type_off_t=yes
5068else
1995c9ff 5069 echo "$as_me: failed program was:" >&5
ad6254c5 5070sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5071
7a197a62 5072 ac_cv_type_off_t=no
80992638 5073fi
7a197a62
AK
5074
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5076fi
1995c9ff
AK
5077{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5078echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5079if test $ac_cv_type_off_t = yes; then
5080 :
5081else
80992638 5082
ad6254c5 5083cat >>confdefs.h <<_ACEOF
7a197a62 5084#define off_t long int
ad6254c5 5085_ACEOF
199e490e 5086
b896caa1
AK
5087fi
5088
1995c9ff
AK
5089{ echo "$as_me:$LINENO: checking for pid_t" >&5
5090echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5091if test "${ac_cv_type_pid_t+set}" = set; then
1995c9ff 5092 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5093else
5094 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
5100$ac_includes_default
7a197a62 5101typedef pid_t ac__type_new_;
ad6254c5
AK
5102int
5103main ()
5104{
7a197a62 5105if ((ac__type_new_ *) 0)
ad6254c5 5106 return 0;
7a197a62 5107if (sizeof (ac__type_new_))
ad6254c5
AK
5108 return 0;
5109 ;
5110 return 0;
5111}
5112_ACEOF
5113rm -f conftest.$ac_objext
7a197a62
AK
5114if { (ac_try="$ac_compile"
5115case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118esac
1995c9ff 5119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5120 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5121 ac_status=$?
8a2fc586
AK
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
1995c9ff 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5126 (exit $ac_status); } && {
5127 test -z "$ac_c_werror_flag" ||
5128 test ! -s conftest.err
5129 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5130 ac_cv_type_pid_t=yes
5131else
1995c9ff 5132 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
7a197a62 5135 ac_cv_type_pid_t=no
ad6254c5 5136fi
7a197a62
AK
5137
5138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5139fi
1995c9ff
AK
5140{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5141echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5142if test $ac_cv_type_pid_t = yes; then
5143 :
5144else
80992638 5145
ad6254c5
AK
5146cat >>confdefs.h <<_ACEOF
5147#define pid_t int
5148_ACEOF
2dc95e1c 5149
2dc95e1c
AK
5150fi
5151
1995c9ff
AK
5152{ echo "$as_me:$LINENO: checking for size_t" >&5
5153echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5154if test "${ac_cv_type_size_t+set}" = set; then
1995c9ff 5155 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5156else
ad6254c5 5157 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5158/* confdefs.h. */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h. */
5163$ac_includes_default
7a197a62 5164typedef size_t ac__type_new_;
ad6254c5
AK
5165int
5166main ()
5167{
7a197a62 5168if ((ac__type_new_ *) 0)
ad6254c5 5169 return 0;
7a197a62 5170if (sizeof (ac__type_new_))
ad6254c5
AK
5171 return 0;
5172 ;
5173 return 0;
5174}
5175_ACEOF
5176rm -f conftest.$ac_objext
7a197a62
AK
5177if { (ac_try="$ac_compile"
5178case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181esac
1995c9ff 5182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5183 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5184 ac_status=$?
8a2fc586
AK
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
1995c9ff 5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5193 ac_cv_type_size_t=yes
5194else
1995c9ff 5195 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5196sed 's/^/| /' conftest.$ac_ext >&5
5197
7a197a62 5198 ac_cv_type_size_t=no
80992638 5199fi
7a197a62
AK
5200
5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5202fi
1995c9ff
AK
5203{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5204echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5205if test $ac_cv_type_size_t = yes; then
5206 :
5207else
80992638 5208
ad6254c5 5209cat >>confdefs.h <<_ACEOF
7a197a62 5210#define size_t unsigned int
ad6254c5 5211_ACEOF
8106cdd5 5212
8106cdd5
AK
5213fi
5214
1995c9ff
AK
5215{ echo "$as_me:$LINENO: checking for mode_t" >&5
5216echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5217if test "${ac_cv_type_mode_t+set}" = set; then
1995c9ff 5218 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5219else
5220 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5221/* confdefs.h. */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h. */
5226$ac_includes_default
7a197a62 5227typedef mode_t ac__type_new_;
ad6254c5
AK
5228int
5229main ()
5230{
7a197a62 5231if ((ac__type_new_ *) 0)
ad6254c5 5232 return 0;
7a197a62 5233if (sizeof (ac__type_new_))
ad6254c5
AK
5234 return 0;
5235 ;
5236 return 0;
5237}
5238_ACEOF
5239rm -f conftest.$ac_objext
7a197a62
AK
5240if { (ac_try="$ac_compile"
5241case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5244esac
1995c9ff 5245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5246 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5247 ac_status=$?
8a2fc586
AK
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
1995c9ff 5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5256 ac_cv_type_mode_t=yes
5257else
1995c9ff 5258 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5259sed 's/^/| /' conftest.$ac_ext >&5
5260
7a197a62 5261 ac_cv_type_mode_t=no
80992638 5262fi
7a197a62
AK
5263
5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5265fi
1995c9ff
AK
5266{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5267echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5268if test $ac_cv_type_mode_t = yes; then
5269 :
5270else
80992638 5271
ad6254c5
AK
5272cat >>confdefs.h <<_ACEOF
5273#define mode_t int
5274_ACEOF
5275
5276fi
5277
1995c9ff
AK
5278{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5279echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5280if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
1995c9ff 5281 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5282else
5283 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289$ac_includes_default
5290int
5291main ()
5292{
5293static struct stat ac_aggr;
5294if (ac_aggr.st_rdev)
5295return 0;
5296 ;
5297 return 0;
5298}
5299_ACEOF
5300rm -f conftest.$ac_objext
7a197a62
AK
5301if { (ac_try="$ac_compile"
5302case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305esac
1995c9ff 5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5307 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5308 ac_status=$?
8a2fc586
AK
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
1995c9ff 5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5317 ac_cv_member_struct_stat_st_rdev=yes
5318else
1995c9ff 5319 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
7a197a62 5322 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5323/* confdefs.h. */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h. */
5328$ac_includes_default
5329int
5330main ()
5331{
5332static struct stat ac_aggr;
5333if (sizeof ac_aggr.st_rdev)
5334return 0;
5335 ;
5336 return 0;
5337}
5338_ACEOF
5339rm -f conftest.$ac_objext
7a197a62
AK
5340if { (ac_try="$ac_compile"
5341case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344esac
1995c9ff 5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5346 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5347 ac_status=$?
8a2fc586
AK
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
1995c9ff 5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5352 (exit $ac_status); } && {
5353 test -z "$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5356 ac_cv_member_struct_stat_st_rdev=yes
5357else
1995c9ff 5358 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
7a197a62 5361 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5362fi
7a197a62
AK
5363
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5365fi
7a197a62
AK
5366
5367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5368fi
1995c9ff
AK
5369{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5370echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5371if test $ac_cv_member_struct_stat_st_rdev = yes; then
5372
5373cat >>confdefs.h <<_ACEOF
5374#define HAVE_STRUCT_STAT_ST_RDEV 1
5375_ACEOF
5376
5377
ad6254c5
AK
5378fi
5379
1995c9ff
AK
5380{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5381echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5382if test "${ac_cv_struct_tm+set}" = set; then
1995c9ff 5383 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5384else
5385 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5386/* confdefs.h. */
5387_ACEOF
5388cat confdefs.h >>conftest.$ac_ext
5389cat >>conftest.$ac_ext <<_ACEOF
5390/* end confdefs.h. */
5391#include <sys/types.h>
5392#include <time.h>
5393
5394int
5395main ()
5396{
25fbec5b
AK
5397struct tm tm;
5398 int *p = &tm.tm_sec;
5399 return !p;
ad6254c5
AK
5400 ;
5401 return 0;
5402}
5403_ACEOF
5404rm -f conftest.$ac_objext
7a197a62
AK
5405if { (ac_try="$ac_compile"
5406case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409esac
1995c9ff 5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5411 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5412 ac_status=$?
8a2fc586
AK
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
1995c9ff 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5417 (exit $ac_status); } && {
5418 test -z "$ac_c_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5421 ac_cv_struct_tm=time.h
5422else
1995c9ff 5423 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
7a197a62 5426 ac_cv_struct_tm=sys/time.h
ad6254c5 5427fi
7a197a62
AK
5428
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5430fi
1995c9ff
AK
5431{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5432echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5433if test $ac_cv_struct_tm = sys/time.h; then
5434
5435cat >>confdefs.h <<\_ACEOF
5436#define TM_IN_SYS_TIME 1
5437_ACEOF
5438
5439fi
809fae91 5440
795ca3e5 5441
80992638 5442################################################################################
ad6254c5
AK
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
5458do
1995c9ff
AK
5459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5460{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5462if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 5463 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5464else
ad6254c5 5465 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5466/* confdefs.h. */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h. */
8a2fc586
AK
5471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5473#define $ac_func innocuous_$ac_func
5474
ad6254c5
AK
5475/* System header to define __stub macros and hopefully few prototypes,
5476 which can conflict with char $ac_func (); below.
5477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5478 <limits.h> exists even on freestanding compilers. */
8a2fc586 5479
ad6254c5
AK
5480#ifdef __STDC__
5481# include <limits.h>
5482#else
5483# include <assert.h>
5484#endif
8a2fc586
AK
5485
5486#undef $ac_func
5487
7a197a62
AK
5488/* Override any GCC internal prototype to avoid an error.
5489 Use char because int might match the return type of a GCC
5490 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5491#ifdef __cplusplus
5492extern "C"
ad6254c5 5493#endif
ad6254c5
AK
5494char $ac_func ();
5495/* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
7a197a62 5498#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5499choke me
ad6254c5
AK
5500#endif
5501
5502int
5503main ()
5504{
7a197a62 5505return $ac_func ();
ad6254c5
AK
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5511if { (ac_try="$ac_link"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
1995c9ff 5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5517 (eval "$ac_link") 2>conftest.er1
ad6254c5 5518 ac_status=$?
8a2fc586
AK
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
1995c9ff 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest$ac_exeext &&
5527 $as_test_x conftest$ac_exeext; then
fc54be10
AK
5528 eval "$as_ac_var=yes"
5529else
5530 echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 eval "$as_ac_var=no"
5534fi
5535
25fbec5b 5536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
5537 conftest$ac_exeext conftest.$ac_ext
5538fi
1995c9ff
AK
5539ac_res=`eval echo '${'$as_ac_var'}'`
5540 { echo "$as_me:$LINENO: result: $ac_res" >&5
5541echo "${ECHO_T}$ac_res" >&6; }
5542if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 5543 cat >>confdefs.h <<_ACEOF
1995c9ff 5544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
5545_ACEOF
5546
5547else
1995c9ff
AK
5548 { { echo "$as_me:$LINENO: error: bailing out" >&5
5549echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
5550 { (exit 1); exit 1; }; }
5551fi
5552done
795ca3e5 5553
ad6254c5
AK
5554# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5555# for constant arguments. Useless!
1995c9ff
AK
5556{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5557echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 5558if test "${ac_cv_working_alloca_h+set}" = set; then
1995c9ff 5559 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5560else
5561 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5562/* confdefs.h. */
5563_ACEOF
5564cat confdefs.h >>conftest.$ac_ext
5565cat >>conftest.$ac_ext <<_ACEOF
5566/* end confdefs.h. */
5567#include <alloca.h>
5568int
5569main ()
5570{
5571char *p = (char *) alloca (2 * sizeof (int));
7a197a62 5572 if (p) return 0;
ad6254c5
AK
5573 ;
5574 return 0;
5575}
5576_ACEOF
5577rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5578if { (ac_try="$ac_link"
5579case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582esac
1995c9ff 5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5584 (eval "$ac_link") 2>conftest.er1
ad6254c5 5585 ac_status=$?
8a2fc586
AK
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
1995c9ff 5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5590 (exit $ac_status); } && {
5591 test -z "$ac_c_werror_flag" ||
5592 test ! -s conftest.err
5593 } && test -s conftest$ac_exeext &&
5594 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5595 ac_cv_working_alloca_h=yes
5596else
1995c9ff 5597 echo "$as_me: failed program was:" >&5
ad6254c5 5598sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5599
7a197a62 5600 ac_cv_working_alloca_h=no
ad6254c5 5601fi
7a197a62 5602
25fbec5b 5603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5604 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5605fi
1995c9ff
AK
5606{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5607echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
5608if test $ac_cv_working_alloca_h = yes; then
5609
5610cat >>confdefs.h <<\_ACEOF
5611#define HAVE_ALLOCA_H 1
5612_ACEOF
5613
5614fi
5615
1995c9ff
AK
5616{ echo "$as_me:$LINENO: checking for alloca" >&5
5617echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 5618if test "${ac_cv_func_alloca_works+set}" = set; then
1995c9ff 5619 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5620else
5621 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5622/* confdefs.h. */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h. */
5627#ifdef __GNUC__
5628# define alloca __builtin_alloca
5629#else
5630# ifdef _MSC_VER
5631# include <malloc.h>
5632# define alloca _alloca
5633# else
25fbec5b 5634# ifdef HAVE_ALLOCA_H
ad6254c5
AK
5635# include <alloca.h>
5636# else
5637# ifdef _AIX
5638 #pragma alloca
5639# else
5640# ifndef alloca /* predefined by HP cc +Olibcalls */
5641char *alloca ();
5642# endif
5643# endif
5644# endif
5645# endif
5646#endif
5647
5648int
5649main ()
5650{
5651char *p = (char *) alloca (1);
7a197a62 5652 if (p) return 0;
ad6254c5
AK
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5658if { (ac_try="$ac_link"
5659case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
1995c9ff 5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5664 (eval "$ac_link") 2>conftest.er1
ad6254c5 5665 ac_status=$?
8a2fc586
AK
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
1995c9ff 5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest$ac_exeext &&
5674 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5675 ac_cv_func_alloca_works=yes
5676else
1995c9ff 5677 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5678sed 's/^/| /' conftest.$ac_ext >&5
5679
7a197a62 5680 ac_cv_func_alloca_works=no
ad6254c5 5681fi
7a197a62 5682
25fbec5b 5683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5684 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5685fi
1995c9ff
AK
5686{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5687echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
5688
5689if test $ac_cv_func_alloca_works = yes; then
5690
5691cat >>confdefs.h <<\_ACEOF
5692#define HAVE_ALLOCA 1
5693_ACEOF
5694
5695else
5696 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5697# that cause trouble. Some versions do not even contain alloca or
5698# contain a buggy version. If you still want to use their alloca,
5699# use ar to extract alloca.o from them instead of compiling alloca.c.
5700
7a197a62 5701ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
5702
5703cat >>confdefs.h <<\_ACEOF
5704#define C_ALLOCA 1
5705_ACEOF
5706
5707
1995c9ff
AK
5708{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5709echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 5710if test "${ac_cv_os_cray+set}" = set; then
1995c9ff 5711 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5712else
5713 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5714/* confdefs.h. */
5715_ACEOF
5716cat confdefs.h >>conftest.$ac_ext
5717cat >>conftest.$ac_ext <<_ACEOF
5718/* end confdefs.h. */
7a197a62 5719#if defined CRAY && ! defined CRAY2
ad6254c5
AK
5720webecray
5721#else
5722wenotbecray
5723#endif
5724
5725_ACEOF
795ca3e5 5726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5727 $EGREP "webecray" >/dev/null 2>&1; then
5728 ac_cv_os_cray=yes
5729else
5730 ac_cv_os_cray=no
795ca3e5
AK
5731fi
5732rm -f conftest*
5733
795ca3e5 5734fi
1995c9ff
AK
5735{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5736echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
5737if test $ac_cv_os_cray = yes; then
5738 for ac_func in _getb67 GETB67 getb67; do
1995c9ff
AK
5739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5740{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5742if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 5743 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5744else
5745 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5746/* confdefs.h. */
5747_ACEOF
5748cat confdefs.h >>conftest.$ac_ext
5749cat >>conftest.$ac_ext <<_ACEOF
5750/* end confdefs.h. */
8a2fc586
AK
5751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5753#define $ac_func innocuous_$ac_func
5754
ad6254c5
AK
5755/* System header to define __stub macros and hopefully few prototypes,
5756 which can conflict with char $ac_func (); below.
5757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 <limits.h> exists even on freestanding compilers. */
8a2fc586 5759
ad6254c5
AK
5760#ifdef __STDC__
5761# include <limits.h>
5762#else
5763# include <assert.h>
5764#endif
8a2fc586
AK
5765
5766#undef $ac_func
5767
7a197a62
AK
5768/* Override any GCC internal prototype to avoid an error.
5769 Use char because int might match the return type of a GCC
5770 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5771#ifdef __cplusplus
5772extern "C"
ad6254c5 5773#endif
ad6254c5
AK
5774char $ac_func ();
5775/* The GNU C library defines this for functions which it implements
5776 to always fail with ENOSYS. Some functions are actually named
5777 something starting with __ and the normal name is an alias. */
7a197a62 5778#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5779choke me
ad6254c5
AK
5780#endif
5781
5782int
5783main ()
5784{
7a197a62 5785return $ac_func ();
ad6254c5
AK
5786 ;
5787 return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5791if { (ac_try="$ac_link"
5792case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795esac
1995c9ff 5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5797 (eval "$ac_link") 2>conftest.er1
ad6254c5 5798 ac_status=$?
8a2fc586
AK
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
1995c9ff 5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest$ac_exeext &&
5807 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5808 eval "$as_ac_var=yes"
5809else
1995c9ff 5810 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5811sed 's/^/| /' conftest.$ac_ext >&5
5812
7a197a62 5813 eval "$as_ac_var=no"
ad6254c5 5814fi
7a197a62 5815
25fbec5b 5816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5817 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5818fi
1995c9ff
AK
5819ac_res=`eval echo '${'$as_ac_var'}'`
5820 { echo "$as_me:$LINENO: result: $ac_res" >&5
5821echo "${ECHO_T}$ac_res" >&6; }
5822if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5823
ad6254c5
AK
5824cat >>confdefs.h <<_ACEOF
5825#define CRAY_STACKSEG_END $ac_func
5826_ACEOF
5827
5828 break
5829fi
5830
5831 done
5832fi
5833
1995c9ff
AK
5834{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5835echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 5836if test "${ac_cv_c_stack_direction+set}" = set; then
1995c9ff 5837 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5838else
5839 if test "$cross_compiling" = yes; then
5840 ac_cv_c_stack_direction=0
5841else
5842 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h. */
7a197a62 5848$ac_includes_default
ad6254c5
AK
5849int
5850find_stack_direction ()
5851{
5852 static char *addr = 0;
5853 auto char dummy;
5854 if (addr == 0)
5855 {
5856 addr = &dummy;
5857 return find_stack_direction ();
5858 }
5859 else
5860 return (&dummy > addr) ? 1 : -1;
5861}
5862
5863int
5864main ()
5865{
7a197a62 5866 return find_stack_direction () < 0;
ad6254c5
AK
5867}
5868_ACEOF
5869rm -f conftest$ac_exeext
7a197a62
AK
5870if { (ac_try="$ac_link"
5871case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
1995c9ff 5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5876 (eval "$ac_link") 2>&5
ad6254c5 5877 ac_status=$?
1995c9ff 5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 5879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
5880 { (case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883esac
1995c9ff 5884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5885 (eval "$ac_try") 2>&5
ad6254c5 5886 ac_status=$?
1995c9ff 5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
5888 (exit $ac_status); }; }; then
5889 ac_cv_c_stack_direction=1
5890else
1995c9ff
AK
5891 echo "$as_me: program exited with status $ac_status" >&5
5892echo "$as_me: failed program was:" >&5
ad6254c5
AK
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895( exit $ac_status )
5896ac_cv_c_stack_direction=-1
5897fi
7a197a62 5898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 5899fi
7a197a62
AK
5900
5901
ad6254c5 5902fi
1995c9ff
AK
5903{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5904echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
5905
5906cat >>confdefs.h <<_ACEOF
5907#define STACK_DIRECTION $ac_cv_c_stack_direction
5908_ACEOF
5909
5910
5911fi
5912
1995c9ff
AK
5913{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5914echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 5915if test "${ac_cv_func_closedir_void+set}" = set; then
1995c9ff 5916 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5917else
5918 if test "$cross_compiling" = yes; then
5919 ac_cv_func_closedir_void=yes
5920else
5921 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927$ac_includes_default
5928#include <$ac_header_dirent>
5929#ifndef __cplusplus
5930int closedir ();
5931#endif
5932
5933int
5934main ()
5935{
7a197a62 5936return closedir (opendir (".")) != 0;
ad6254c5
AK
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941rm -f conftest$ac_exeext
7a197a62
AK
5942if { (ac_try="$ac_link"
5943case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
1995c9ff 5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5948 (eval "$ac_link") 2>&5
ad6254c5 5949 ac_status=$?
1995c9ff 5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 5951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
1995c9ff 5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5957 (eval "$ac_try") 2>&5
ad6254c5 5958 ac_status=$?
1995c9ff 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
5960 (exit $ac_status); }; }; then
5961 ac_cv_func_closedir_void=no
5962else
1995c9ff
AK
5963 echo "$as_me: program exited with status $ac_status" >&5
5964echo "$as_me: failed program was:" >&5
ad6254c5
AK
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967( exit $ac_status )
5968ac_cv_func_closedir_void=yes
5969fi
7a197a62 5970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 5971fi
7a197a62
AK
5972
5973
ad6254c5 5974fi
1995c9ff
AK
5975{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5976echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
5977if test $ac_cv_func_closedir_void = yes; then
5978
5979cat >>confdefs.h <<\_ACEOF
5980#define CLOSEDIR_VOID 1
5981_ACEOF
5982
5983fi
5984
5985
7a197a62 5986for ac_header in vfork.h
ad6254c5 5987do
1995c9ff 5988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
5990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 5993 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5994fi
1995c9ff
AK
5995ac_res=`eval echo '${'$as_ac_Header'}'`
5996 { echo "$as_me:$LINENO: result: $ac_res" >&5
5997echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5998else
5999 # Is the header compilable?
1995c9ff
AK
6000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6002cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008$ac_includes_default
6009#include <$ac_header>
6010_ACEOF
6011rm -f conftest.$ac_objext
7a197a62
AK
6012if { (ac_try="$ac_compile"
6013case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
1995c9ff 6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6018 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6019 ac_status=$?
8a2fc586
AK
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
1995c9ff 6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6028 ac_header_compiler=yes
6029else
1995c9ff 6030 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
7a197a62 6033 ac_header_compiler=no
ad6254c5 6034fi
7a197a62
AK
6035
6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
6037{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6038echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6039
6040# Is the header present?
1995c9ff
AK
6041{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6042echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6043cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049#include <$ac_header>
6050_ACEOF
7a197a62
AK
6051if { (ac_try="$ac_cpp conftest.$ac_ext"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
1995c9ff 6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
1995c9ff 6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6063 (exit $ac_status); } >/dev/null && {
6064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 }; then
ad6254c5
AK
6067 ac_header_preproc=yes
6068else
1995c9ff 6069 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 ac_header_preproc=no
6073fi
7a197a62 6074
ad6254c5 6075rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
6076{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6077echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6078
6079# So? What about this header?
8a2fc586
AK
6080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6081 yes:no: )
1995c9ff
AK
6082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6086 ac_header_preproc=yes
ad6254c5 6087 ;;
8a2fc586 6088 no:yes:* )
1995c9ff
AK
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6101
ad6254c5
AK
6102 ;;
6103esac
1995c9ff
AK
6104{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6107 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6108else
8a2fc586 6109 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6110fi
1995c9ff
AK
6111ac_res=`eval echo '${'$as_ac_Header'}'`
6112 { echo "$as_me:$LINENO: result: $ac_res" >&5
6113echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6114
795ca3e5 6115fi
1995c9ff 6116if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6117 cat >>confdefs.h <<_ACEOF
1995c9ff 6118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6119_ACEOF
6120
6121fi
6122
6123done
795ca3e5 6124
ad6254c5
AK
6125
6126
6127for ac_func in fork vfork
6128do
1995c9ff
AK
6129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6132if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6133 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6134else
ad6254c5 6135 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6136/* confdefs.h. */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h. */
8a2fc586
AK
6141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6143#define $ac_func innocuous_$ac_func
6144
ad6254c5
AK
6145/* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char $ac_func (); below.
6147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6148 <limits.h> exists even on freestanding compilers. */
8a2fc586 6149
ad6254c5
AK
6150#ifdef __STDC__
6151# include <limits.h>
6152#else
6153# include <assert.h>
795ca3e5 6154#endif
8a2fc586
AK
6155
6156#undef $ac_func
6157
7a197a62
AK
6158/* Override any GCC internal prototype to avoid an error.
6159 Use char because int might match the return type of a GCC
6160 builtin and then its argument prototype would still apply. */
795ca3e5 6161#ifdef __cplusplus
ad6254c5 6162extern "C"
ad6254c5 6163#endif
ad6254c5
AK
6164char $ac_func ();
6165/* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
7a197a62 6168#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6169choke me
795ca3e5
AK
6170#endif
6171
ad6254c5
AK
6172int
6173main ()
6174{
7a197a62 6175return $ac_func ();
ad6254c5
AK
6176 ;
6177 return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6181if { (ac_try="$ac_link"
6182case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
1995c9ff 6186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6187 (eval "$ac_link") 2>conftest.er1
ad6254c5 6188 ac_status=$?
8a2fc586
AK
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
1995c9ff 6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6193 (exit $ac_status); } && {
6194 test -z "$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6196 } && test -s conftest$ac_exeext &&
6197 $as_test_x conftest$ac_exeext; then
ad6254c5 6198 eval "$as_ac_var=yes"
795ca3e5 6199else
1995c9ff 6200 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
7a197a62 6203 eval "$as_ac_var=no"
795ca3e5 6204fi
7a197a62 6205
25fbec5b 6206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6207 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6208fi
1995c9ff
AK
6209ac_res=`eval echo '${'$as_ac_var'}'`
6210 { echo "$as_me:$LINENO: result: $ac_res" >&5
6211echo "${ECHO_T}$ac_res" >&6; }
6212if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6213 cat >>confdefs.h <<_ACEOF
1995c9ff 6214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6215_ACEOF
6216
6217fi
6218done
6219
6220if test "x$ac_cv_func_fork" = xyes; then
1995c9ff
AK
6221 { echo "$as_me:$LINENO: checking for working fork" >&5
6222echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6223if test "${ac_cv_func_fork_works+set}" = set; then
1995c9ff 6224 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6225else
6226 if test "$cross_compiling" = yes; then
6227 ac_cv_func_fork_works=cross
6228else
6229 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6230/* confdefs.h. */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h. */
6235$ac_includes_default
6236int
6237main ()
6238{
6239
6240 /* By Ruediger Kuhlmann. */
6241 return fork () < 0;
6242
6243 ;
6244 return 0;
6245}
ad6254c5
AK
6246_ACEOF
6247rm -f conftest$ac_exeext
7a197a62
AK
6248if { (ac_try="$ac_link"
6249case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
1995c9ff 6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6254 (eval "$ac_link") 2>&5
ad6254c5 6255 ac_status=$?
1995c9ff 6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6258 { (case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
1995c9ff 6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6263 (eval "$ac_try") 2>&5
ad6254c5 6264 ac_status=$?
1995c9ff 6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6266 (exit $ac_status); }; }; then
6267 ac_cv_func_fork_works=yes
6268else
1995c9ff
AK
6269 echo "$as_me: program exited with status $ac_status" >&5
6270echo "$as_me: failed program was:" >&5
ad6254c5
AK
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273( exit $ac_status )
6274ac_cv_func_fork_works=no
6275fi
7a197a62 6276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6277fi
7a197a62
AK
6278
6279
ad6254c5 6280fi
1995c9ff
AK
6281{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6282echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6283
6284else
6285 ac_cv_func_fork_works=$ac_cv_func_fork
6286fi
6287if test "x$ac_cv_func_fork_works" = xcross; then
6288 case $host in
6289 *-*-amigaos* | *-*-msdosdjgpp*)
6290 # Override, as these systems have only a dummy fork() stub
6291 ac_cv_func_fork_works=no
6292 ;;
6293 *)
6294 ac_cv_func_fork_works=yes
6295 ;;
6296 esac
1995c9ff
AK
6297 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6298echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6299fi
6300ac_cv_func_vfork_works=$ac_cv_func_vfork
6301if test "x$ac_cv_func_vfork" = xyes; then
1995c9ff
AK
6302 { echo "$as_me:$LINENO: checking for working vfork" >&5
6303echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6304if test "${ac_cv_func_vfork_works+set}" = set; then
1995c9ff 6305 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6306else
6307 if test "$cross_compiling" = yes; then
6308 ac_cv_func_vfork_works=cross
6309else
6310 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6311/* confdefs.h. */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
6315/* end confdefs.h. */
6316/* Thanks to Paul Eggert for this test. */
7a197a62 6317$ac_includes_default
ad6254c5 6318#include <sys/wait.h>
25fbec5b 6319#ifdef HAVE_VFORK_H
ad6254c5
AK
6320# include <vfork.h>
6321#endif
6322/* On some sparc systems, changes by the child to local and incoming
6323 argument registers are propagated back to the parent. The compiler
6324 is told about this with #include <vfork.h>, but some compilers
6325 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6326 static variable whose address is put into a register that is
6327 clobbered by the vfork. */
6328static void
6329#ifdef __cplusplus
6330sparc_address_test (int arg)
6331# else
6332sparc_address_test (arg) int arg;
6333#endif
6334{
6335 static pid_t child;
6336 if (!child) {
6337 child = vfork ();
6338 if (child < 0) {
6339 perror ("vfork");
6340 _exit(2);
6341 }
6342 if (!child) {
6343 arg = getpid();
6344 write(-1, "", 0);
6345 _exit (arg);
6346 }
6347 }
6348}
6349
6350int
6351main ()
6352{
6353 pid_t parent = getpid ();
6354 pid_t child;
6355
6356 sparc_address_test (0);
6357
6358 child = vfork ();
6359
6360 if (child == 0) {
6361 /* Here is another test for sparc vfork register problems. This
6362 test uses lots of local variables, at least as many local
6363 variables as main has allocated so far including compiler
6364 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6365 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6366 reuse the register of parent for one of the local variables,
6367 since it will think that parent can't possibly be used any more
6368 in this routine. Assigning to the local variable will thus
6369 munge parent in the parent process. */
6370 pid_t
6371 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6372 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6373 /* Convince the compiler that p..p7 are live; otherwise, it might
6374 use the same hardware register for all 8 local variables. */
6375 if (p != p1 || p != p2 || p != p3 || p != p4
6376 || p != p5 || p != p6 || p != p7)
6377 _exit(1);
6378
6379 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6380 from child file descriptors. If the child closes a descriptor
6381 before it execs or exits, this munges the parent's descriptor
6382 as well. Test for this by closing stdout in the child. */
6383 _exit(close(fileno(stdout)) != 0);
6384 } else {
6385 int status;
6386 struct stat st;
6387
6388 while (wait(&status) != child)
6389 ;
7a197a62 6390 return (
ad6254c5
AK
6391 /* Was there some problem with vforking? */
6392 child < 0
6393
6394 /* Did the child fail? (This shouldn't happen.) */
6395 || status
6396
6397 /* Did the vfork/compiler bug occur? */
6398 || parent != getpid()
6399
6400 /* Did the file descriptor bug occur? */
6401 || fstat(fileno(stdout), &st) != 0
6402 );
6403 }
6404}
6405_ACEOF
6406rm -f conftest$ac_exeext
7a197a62
AK
6407if { (ac_try="$ac_link"
6408case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411esac
1995c9ff 6412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6413 (eval "$ac_link") 2>&5
ad6254c5 6414 ac_status=$?
1995c9ff 6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6417 { (case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6420esac
1995c9ff 6421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6422 (eval "$ac_try") 2>&5
ad6254c5 6423 ac_status=$?
1995c9ff 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6425 (exit $ac_status); }; }; then
6426 ac_cv_func_vfork_works=yes
6427else
1995c9ff
AK
6428 echo "$as_me: program exited with status $ac_status" >&5
6429echo "$as_me: failed program was:" >&5
ad6254c5
AK
6430sed 's/^/| /' conftest.$ac_ext >&5
6431
6432( exit $ac_status )
6433ac_cv_func_vfork_works=no
6434fi
7a197a62 6435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6436fi
7a197a62
AK
6437
6438
ad6254c5 6439fi
1995c9ff
AK
6440{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6441echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6442
6443fi;
6444if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6445 ac_cv_func_vfork_works=$ac_cv_func_vfork
1995c9ff
AK
6446 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6447echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6448fi
6449
6450if test "x$ac_cv_func_vfork_works" = xyes; then
6451
6452cat >>confdefs.h <<\_ACEOF
6453#define HAVE_WORKING_VFORK 1
6454_ACEOF
6455
6456else
6457
6458cat >>confdefs.h <<\_ACEOF
6459#define vfork fork
6460_ACEOF
6461
6462fi
6463if test "x$ac_cv_func_fork_works" = xyes; then
6464
6465cat >>confdefs.h <<\_ACEOF
6466#define HAVE_WORKING_FORK 1
6467_ACEOF
6468
6469fi
6470
1995c9ff
AK
6471{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6472echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6473if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
1995c9ff 6474 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6475else
6476 rm -f conftest.sym conftest.file
6477echo >conftest.file
6478if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6479 if test "$cross_compiling" = yes; then
6480 ac_cv_func_lstat_dereferences_slashed_symlink=no
6481else
6482 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488$ac_includes_default
6489int
6490main ()
6491{
6492struct stat sbuf;
6493 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6494 That is better in the sense that it means we will not
6495 have to compile and use the lstat wrapper. */
7a197a62 6496 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
6497 ;
6498 return 0;
6499}
6500_ACEOF
6501rm -f conftest$ac_exeext
7a197a62
AK
6502if { (ac_try="$ac_link"
6503case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
1995c9ff 6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6508 (eval "$ac_link") 2>&5
ad6254c5 6509 ac_status=$?
1995c9ff 6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6512 { (case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
1995c9ff 6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6517 (eval "$ac_try") 2>&5
ad6254c5 6518 ac_status=$?
1995c9ff 6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6520 (exit $ac_status); }; }; then
6521 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6522else
1995c9ff
AK
6523 echo "$as_me: program exited with status $ac_status" >&5
6524echo "$as_me: failed program was:" >&5
ad6254c5
AK
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527( exit $ac_status )
6528ac_cv_func_lstat_dereferences_slashed_symlink=no
6529fi
7a197a62 6530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6531fi
7a197a62
AK
6532
6533
ad6254c5
AK
6534else
6535 # If the `ln -s' command failed, then we probably don't even
6536 # have an lstat function.
6537 ac_cv_func_lstat_dereferences_slashed_symlink=no
6538fi
6539rm -f conftest.sym conftest.file
6540
6541fi
1995c9ff
AK
6542{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6543echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
6544
6545test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6546
6547cat >>confdefs.h <<_ACEOF
6548#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6549_ACEOF
6550
6551
6552if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 6553 case " $LIBOBJS " in
8a2fc586 6554 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6555 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6556 ;;
8a2fc586
AK
6557esac
6558
ad6254c5
AK
6559fi
6560
1995c9ff
AK
6561{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6562echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 6563if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
1995c9ff 6564 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6565else
6566 if test "$cross_compiling" = yes; then
6567 ac_cv_func_lstat_empty_string_bug=yes
6568else
6569 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
6575$ac_includes_default
6576int
6577main ()
6578{
6579struct stat sbuf;
7a197a62 6580 return lstat ("", &sbuf) == 0;
ad6254c5
AK
6581 ;
6582 return 0;
6583}
6584_ACEOF
6585rm -f conftest$ac_exeext
7a197a62
AK
6586if { (ac_try="$ac_link"
6587case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590esac
1995c9ff 6591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6592 (eval "$ac_link") 2>&5
ad6254c5 6593 ac_status=$?
1995c9ff 6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6596 { (case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599esac
1995c9ff 6600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6601 (eval "$ac_try") 2>&5
ad6254c5 6602 ac_status=$?
1995c9ff 6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6604 (exit $ac_status); }; }; then
7a197a62 6605 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 6606else
1995c9ff
AK
6607 echo "$as_me: program exited with status $ac_status" >&5
6608echo "$as_me: failed program was:" >&5
ad6254c5
AK
6609sed 's/^/| /' conftest.$ac_ext >&5
6610
6611( exit $ac_status )
7a197a62 6612ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 6613fi
7a197a62 6614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6615fi
7a197a62
AK
6616
6617
ad6254c5 6618fi
1995c9ff
AK
6619{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6620echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 6621if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 6622 case " $LIBOBJS " in
8a2fc586 6623 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6624 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6625 ;;
8a2fc586
AK
6626esac
6627
ad6254c5
AK
6628
6629cat >>confdefs.h <<_ACEOF
6630#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6631_ACEOF
6632
6633fi
6634
6635
6636for ac_header in stdlib.h
6637do
1995c9ff 6638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
6640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6643 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6644fi
1995c9ff
AK
6645ac_res=`eval echo '${'$as_ac_Header'}'`
6646 { echo "$as_me:$LINENO: result: $ac_res" >&5
6647echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6648else
6649 # Is the header compilable?
1995c9ff
AK
6650{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6652cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6653/* confdefs.h. */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h. */
6658$ac_includes_default
6659#include <$ac_header>
6660_ACEOF
6661rm -f conftest.$ac_objext
7a197a62
AK
6662if { (ac_try="$ac_compile"
6663case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666esac
1995c9ff 6667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6668 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6669 ac_status=$?
8a2fc586
AK
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
1995c9ff 6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6678 ac_header_compiler=yes
6679else
1995c9ff 6680 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6681sed 's/^/| /' conftest.$ac_ext >&5
6682
7a197a62 6683 ac_header_compiler=no
ad6254c5 6684fi
7a197a62
AK
6685
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
6687{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6688echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6689
6690# Is the header present?
1995c9ff
AK
6691{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6693cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
6699#include <$ac_header>
6700_ACEOF
7a197a62
AK
6701if { (ac_try="$ac_cpp conftest.$ac_ext"
6702case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705esac
1995c9ff 6706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
1995c9ff 6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6713 (exit $ac_status); } >/dev/null && {
6714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 }; then
ad6254c5
AK
6717 ac_header_preproc=yes
6718else
1995c9ff 6719 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6720sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 ac_header_preproc=no
6723fi
7a197a62 6724
ad6254c5 6725rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
6726{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6727echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6728
6729# So? What about this header?
8a2fc586
AK
6730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6731 yes:no: )
1995c9ff
AK
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6736 ac_header_preproc=yes
ad6254c5 6737 ;;
8a2fc586 6738 no:yes:* )
1995c9ff
AK
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6751
ad6254c5
AK
6752 ;;
6753esac
1995c9ff
AK
6754{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6757 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6758else
8a2fc586 6759 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6760fi
1995c9ff
AK
6761ac_res=`eval echo '${'$as_ac_Header'}'`
6762 { echo "$as_me:$LINENO: result: $ac_res" >&5
6763echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6764
6765fi
1995c9ff 6766if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6767 cat >>confdefs.h <<_ACEOF
1995c9ff 6768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6769_ACEOF
6770
6771fi
6772
6773done
6774
1995c9ff
AK
6775{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6776echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 6777if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
1995c9ff 6778 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6779else
6780 if test "$cross_compiling" = yes; then
6781 ac_cv_func_malloc_0_nonnull=no
6782else
6783 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
25fbec5b 6789#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
6790# include <stdlib.h>
6791#else
6792char *malloc ();
6793#endif
6794
6795int
6796main ()
6797{
7a197a62 6798return ! malloc (0);
ad6254c5
AK
6799 ;
6800 return 0;
6801}
6802_ACEOF
6803rm -f conftest$ac_exeext
7a197a62
AK
6804if { (ac_try="$ac_link"
6805case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808esac
1995c9ff 6809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6810 (eval "$ac_link") 2>&5
ad6254c5 6811 ac_status=$?
1995c9ff 6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6814 { (case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817esac
1995c9ff 6818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6819 (eval "$ac_try") 2>&5
ad6254c5 6820 ac_status=$?
1995c9ff 6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6822 (exit $ac_status); }; }; then
6823 ac_cv_func_malloc_0_nonnull=yes
6824else
1995c9ff
AK
6825 echo "$as_me: program exited with status $ac_status" >&5
6826echo "$as_me: failed program was:" >&5
ad6254c5
AK
6827sed 's/^/| /' conftest.$ac_ext >&5
6828
6829( exit $ac_status )
6830ac_cv_func_malloc_0_nonnull=no
6831fi
7a197a62 6832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6833fi
7a197a62
AK
6834
6835
ad6254c5 6836fi
1995c9ff
AK
6837{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6838echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
6839if test $ac_cv_func_malloc_0_nonnull = yes; then
6840
6841cat >>confdefs.h <<\_ACEOF
6842#define HAVE_MALLOC 1
6843_ACEOF
6844
6845else
6846 cat >>confdefs.h <<\_ACEOF
6847#define HAVE_MALLOC 0
6848_ACEOF
6849
7a197a62 6850 case " $LIBOBJS " in
8a2fc586 6851 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
6852 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6853 ;;
8a2fc586
AK
6854esac
6855
ad6254c5
AK
6856
6857cat >>confdefs.h <<\_ACEOF
6858#define malloc rpl_malloc
6859_ACEOF
6860
6861fi
6862
6863
6864
1995c9ff
AK
6865{ echo "$as_me:$LINENO: checking for working memcmp" >&5
6866echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 6867if test "${ac_cv_func_memcmp_working+set}" = set; then
1995c9ff 6868 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6869else
6870 if test "$cross_compiling" = yes; then
6871 ac_cv_func_memcmp_working=no
6872else
6873 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
8a2fc586 6879$ac_includes_default
ad6254c5
AK
6880int
6881main ()
6882{
6883
6884 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 6885 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 6886 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 6887 return 1;
ad6254c5
AK
6888
6889 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6890 or more and with at least one buffer not starting on a 4-byte boundary.
6891 William Lewis provided this test program. */
6892 {
6893 char foo[21];
6894 char bar[21];
6895 int i;
6896 for (i = 0; i < 4; i++)
6897 {
8a2fc586
AK
6898 char *a = foo + i;
6899 char *b = bar + i;
6900 strcpy (a, "--------01111111");
6901 strcpy (b, "--------10000000");
6902 if (memcmp (a, b, 16) >= 0)
7a197a62 6903 return 1;
ad6254c5 6904 }
7a197a62 6905 return 0;
ad6254c5
AK
6906 }
6907
6908 ;
6909 return 0;
6910}
6911_ACEOF
6912rm -f conftest$ac_exeext
7a197a62
AK
6913if { (ac_try="$ac_link"
6914case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917esac
1995c9ff 6918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6919 (eval "$ac_link") 2>&5
ad6254c5 6920 ac_status=$?
1995c9ff 6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6923 { (case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6926esac
1995c9ff 6927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6928 (eval "$ac_try") 2>&5
ad6254c5 6929 ac_status=$?
1995c9ff 6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6931 (exit $ac_status); }; }; then
6932 ac_cv_func_memcmp_working=yes
6933else
1995c9ff
AK
6934 echo "$as_me: program exited with status $ac_status" >&5
6935echo "$as_me: failed program was:" >&5
ad6254c5
AK
6936sed 's/^/| /' conftest.$ac_ext >&5
6937
6938( exit $ac_status )
6939ac_cv_func_memcmp_working=no
6940fi
7a197a62 6941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6942fi
7a197a62
AK
6943
6944
ad6254c5 6945fi
1995c9ff
AK
6946{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6947echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 6948test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 6949 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
6950 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6951 ;;
8a2fc586
AK
6952esac
6953
ad6254c5
AK
6954
6955
6956
6957for ac_header in stdlib.h unistd.h
6958do
1995c9ff 6959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
6961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6964 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6965fi
1995c9ff
AK
6966ac_res=`eval echo '${'$as_ac_Header'}'`
6967 { echo "$as_me:$LINENO: result: $ac_res" >&5
6968echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6969else
6970 # Is the header compilable?
1995c9ff
AK
6971{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6973cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6974/* confdefs.h. */
6975_ACEOF
6976cat confdefs.h >>conftest.$ac_ext
6977cat >>conftest.$ac_ext <<_ACEOF
6978/* end confdefs.h. */
6979$ac_includes_default
6980#include <$ac_header>
6981_ACEOF
6982rm -f conftest.$ac_objext
7a197a62
AK
6983if { (ac_try="$ac_compile"
6984case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987esac
1995c9ff 6988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6989 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6990 ac_status=$?
8a2fc586
AK
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
1995c9ff 6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6999 ac_header_compiler=yes
7000else
1995c9ff 7001 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7002sed 's/^/| /' conftest.$ac_ext >&5
7003
7a197a62 7004 ac_header_compiler=no
ad6254c5 7005fi
7a197a62
AK
7006
7007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
7008{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7009echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7010
7011# Is the header present?
1995c9ff
AK
7012{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7014cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7015/* confdefs.h. */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h. */
7020#include <$ac_header>
7021_ACEOF
7a197a62
AK
7022if { (ac_try="$ac_cpp conftest.$ac_ext"
7023case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026esac
1995c9ff 7027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7029 ac_status=$?
7030 grep -v '^ *+' conftest.er1 >conftest.err
7031 rm -f conftest.er1
7032 cat conftest.err >&5
1995c9ff 7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7034 (exit $ac_status); } >/dev/null && {
7035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7036 test ! -s conftest.err
7037 }; then
ad6254c5
AK
7038 ac_header_preproc=yes
7039else
1995c9ff 7040 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7041sed 's/^/| /' conftest.$ac_ext >&5
7042
7043 ac_header_preproc=no
7044fi
7a197a62 7045
ad6254c5 7046rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
7047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7048echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7049
7050# So? What about this header?
8a2fc586
AK
7051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7052 yes:no: )
1995c9ff
AK
7053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7057 ac_header_preproc=yes
ad6254c5 7058 ;;
8a2fc586 7059 no:yes:* )
1995c9ff
AK
7060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7072
ad6254c5
AK
7073 ;;
7074esac
1995c9ff
AK
7075{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7078 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7079else
8a2fc586 7080 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7081fi
1995c9ff
AK
7082ac_res=`eval echo '${'$as_ac_Header'}'`
7083 { echo "$as_me:$LINENO: result: $ac_res" >&5
7084echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7085
7086fi
1995c9ff 7087if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7088 cat >>confdefs.h <<_ACEOF
1995c9ff 7089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7090_ACEOF
7091
7092fi
7093
7094done
7095
7096
7097for ac_func in getpagesize
7098do
1995c9ff
AK
7099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7100{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7102if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7103 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7104else
7105 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7106/* confdefs.h. */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h. */
8a2fc586
AK
7111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7113#define $ac_func innocuous_$ac_func
7114
ad6254c5
AK
7115/* System header to define __stub macros and hopefully few prototypes,
7116 which can conflict with char $ac_func (); below.
7117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7118 <limits.h> exists even on freestanding compilers. */
8a2fc586 7119
ad6254c5
AK
7120#ifdef __STDC__
7121# include <limits.h>
7122#else
7123# include <assert.h>
7124#endif
8a2fc586
AK
7125
7126#undef $ac_func
7127
7a197a62
AK
7128/* Override any GCC internal prototype to avoid an error.
7129 Use char because int might match the return type of a GCC
7130 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7131#ifdef __cplusplus
7132extern "C"
ad6254c5 7133#endif
ad6254c5
AK
7134char $ac_func ();
7135/* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7a197a62 7138#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7139choke me
ad6254c5
AK
7140#endif
7141
7142int
7143main ()
7144{
7a197a62 7145return $ac_func ();
ad6254c5
AK
7146 ;
7147 return 0;
7148}
7149_ACEOF
7150rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7151if { (ac_try="$ac_link"
7152case "(($ac_try" in
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7155esac
1995c9ff 7156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7157 (eval "$ac_link") 2>conftest.er1
ad6254c5 7158 ac_status=$?
8a2fc586
AK
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
1995c9ff 7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7163 (exit $ac_status); } && {
7164 test -z "$ac_c_werror_flag" ||
7165 test ! -s conftest.err
7166 } && test -s conftest$ac_exeext &&
7167 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7168 eval "$as_ac_var=yes"
7169else
1995c9ff 7170 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7171sed 's/^/| /' conftest.$ac_ext >&5
7172
7a197a62 7173 eval "$as_ac_var=no"
ad6254c5 7174fi
7a197a62 7175
25fbec5b 7176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7177 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7178fi
1995c9ff
AK
7179ac_res=`eval echo '${'$as_ac_var'}'`
7180 { echo "$as_me:$LINENO: result: $ac_res" >&5
7181echo "${ECHO_T}$ac_res" >&6; }
7182if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7183 cat >>confdefs.h <<_ACEOF
1995c9ff 7184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7185_ACEOF
7186
7187fi
7188done
7189
1995c9ff
AK
7190{ echo "$as_me:$LINENO: checking for working mmap" >&5
7191echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7192if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
1995c9ff 7193 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7194else
7195 if test "$cross_compiling" = yes; then
7196 ac_cv_func_mmap_fixed_mapped=no
7197else
7198 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7199/* confdefs.h. */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h. */
7204$ac_includes_default
7205/* malloc might have been renamed as rpl_malloc. */
7206#undef malloc
7207
7208/* Thanks to Mike Haertel and Jim Avera for this test.
7209 Here is a matrix of mmap possibilities:
7210 mmap private not fixed
7211 mmap private fixed at somewhere currently unmapped
7212 mmap private fixed at somewhere already mapped
7213 mmap shared not fixed
7214 mmap shared fixed at somewhere currently unmapped
7215 mmap shared fixed at somewhere already mapped
7216 For private mappings, we should verify that changes cannot be read()
7217 back from the file, nor mmap's back from the file at a different
7218 address. (There have been systems where private was not correctly
7219 implemented like the infamous i386 svr4.0, and systems where the
7220 VM page cache was not coherent with the file system buffer cache
7221 like early versions of FreeBSD and possibly contemporary NetBSD.)
7222 For shared mappings, we should conversely verify that changes get
7223 propagated back to all the places they're supposed to be.
7224
7225 Grep wants private fixed already mapped.
7226 The main things grep needs to know about mmap are:
7227 * does it exist and is it safe to write into the mmap'd area
7228 * how to use it (BSD variants) */
7229
7230#include <fcntl.h>
7231#include <sys/mman.h>
7232
25fbec5b 7233#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7234char *malloc ();
7235#endif
7236
7237/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7238#ifndef HAVE_GETPAGESIZE
ad6254c5 7239/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7240# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7241# define HAVE_SYS_PARAM_H 1
7242# endif
7243
7244# ifdef _SC_PAGESIZE
7245# define getpagesize() sysconf(_SC_PAGESIZE)
7246# else /* no _SC_PAGESIZE */
25fbec5b 7247# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7248# include <sys/param.h>
7249# ifdef EXEC_PAGESIZE
7250# define getpagesize() EXEC_PAGESIZE
7251# else /* no EXEC_PAGESIZE */
7252# ifdef NBPG
7253# define getpagesize() NBPG * CLSIZE
7254# ifndef CLSIZE
7255# define CLSIZE 1
7256# endif /* no CLSIZE */
7257# else /* no NBPG */
7258# ifdef NBPC
7259# define getpagesize() NBPC
7260# else /* no NBPC */
7261# ifdef PAGESIZE
7262# define getpagesize() PAGESIZE
7263# endif /* PAGESIZE */
7264# endif /* no NBPC */
7265# endif /* no NBPG */
7266# endif /* no EXEC_PAGESIZE */
7267# else /* no HAVE_SYS_PARAM_H */
7268# define getpagesize() 8192 /* punt totally */
7269# endif /* no HAVE_SYS_PARAM_H */
7270# endif /* no _SC_PAGESIZE */
7271
7272#endif /* no HAVE_GETPAGESIZE */
7273
7274int
7275main ()
7276{
7277 char *data, *data2, *data3;
7278 int i, pagesize;
7279 int fd;
7280
7281 pagesize = getpagesize ();
7282
7283 /* First, make a file with some known garbage in it. */
7284 data = (char *) malloc (pagesize);
7285 if (!data)
7a197a62 7286 return 1;
ad6254c5
AK
7287 for (i = 0; i < pagesize; ++i)
7288 *(data + i) = rand ();
7289 umask (0);
7290 fd = creat ("conftest.mmap", 0600);
7291 if (fd < 0)
7a197a62 7292 return 1;
ad6254c5 7293 if (write (fd, data, pagesize) != pagesize)
7a197a62 7294 return 1;
ad6254c5
AK
7295 close (fd);
7296
7297 /* Next, try to mmap the file at a fixed address which already has
7298 something else allocated at it. If we can, also make sure that
7299 we see the same garbage. */
7300 fd = open ("conftest.mmap", O_RDWR);
7301 if (fd < 0)
7a197a62 7302 return 1;
ad6254c5
AK
7303 data2 = (char *) malloc (2 * pagesize);
7304 if (!data2)
7a197a62
AK
7305 return 1;
7306 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7307 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7308 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7309 return 1;
ad6254c5
AK
7310 for (i = 0; i < pagesize; ++i)
7311 if (*(data + i) != *(data2 + i))
7a197a62 7312 return 1;
ad6254c5
AK
7313
7314 /* Finally, make sure that changes to the mapped area do not
7315 percolate back to the file as seen by read(). (This is a bug on
7316 some variants of i386 svr4.0.) */
7317 for (i = 0; i < pagesize; ++i)
7318 *(data2 + i) = *(data2 + i) + 1;
7319 data3 = (char *) malloc (pagesize);
7320 if (!data3)
7a197a62 7321 return 1;
ad6254c5 7322 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7323 return 1;
ad6254c5
AK
7324 for (i = 0; i < pagesize; ++i)
7325 if (*(data + i) != *(data3 + i))
7a197a62 7326 return 1;
ad6254c5 7327 close (fd);
7a197a62 7328 return 0;
ad6254c5
AK
7329}
7330_ACEOF
7331rm -f conftest$ac_exeext
7a197a62
AK
7332if { (ac_try="$ac_link"
7333case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336esac
1995c9ff 7337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7338 (eval "$ac_link") 2>&5
ad6254c5 7339 ac_status=$?
1995c9ff 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7342 { (case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345esac
1995c9ff 7346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7347 (eval "$ac_try") 2>&5
ad6254c5 7348 ac_status=$?
1995c9ff 7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7350 (exit $ac_status); }; }; then
7351 ac_cv_func_mmap_fixed_mapped=yes
7352else
1995c9ff
AK
7353 echo "$as_me: program exited with status $ac_status" >&5
7354echo "$as_me: failed program was:" >&5
ad6254c5
AK
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
7357( exit $ac_status )
7358ac_cv_func_mmap_fixed_mapped=no
7359fi
7a197a62 7360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7361fi
7a197a62
AK
7362
7363
ad6254c5 7364fi
1995c9ff
AK
7365{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7366echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7367if test $ac_cv_func_mmap_fixed_mapped = yes; then
7368
7369cat >>confdefs.h <<\_ACEOF
7370#define HAVE_MMAP 1
7371_ACEOF
7372
7373fi
7374rm -f conftest.mmap
7375
1995c9ff
AK
7376{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7377echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7378if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
1995c9ff 7379 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7380else
7381 if test "$cross_compiling" = yes; then
7382 ac_cv_func_stat_empty_string_bug=yes
7383else
7384 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7385/* confdefs.h. */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h. */
7390$ac_includes_default
7391int
7392main ()
7393{
7394struct stat sbuf;
7a197a62 7395 return stat ("", &sbuf) == 0;
ad6254c5
AK
7396 ;
7397 return 0;
7398}
7399_ACEOF
7400rm -f conftest$ac_exeext
7a197a62
AK
7401if { (ac_try="$ac_link"
7402case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405esac
1995c9ff 7406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7407 (eval "$ac_link") 2>&5
ad6254c5 7408 ac_status=$?
1995c9ff 7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7411 { (case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414esac
1995c9ff 7415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7416 (eval "$ac_try") 2>&5
ad6254c5 7417 ac_status=$?
1995c9ff 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7419 (exit $ac_status); }; }; then
7a197a62 7420 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7421else
1995c9ff
AK
7422 echo "$as_me: program exited with status $ac_status" >&5
7423echo "$as_me: failed program was:" >&5
ad6254c5
AK
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426( exit $ac_status )
7a197a62 7427ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7428fi
7a197a62 7429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7430fi
7a197a62
AK
7431
7432
ad6254c5 7433fi
1995c9ff
AK
7434{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7435echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7436if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7437 case " $LIBOBJS " in
8a2fc586 7438 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7439 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7440 ;;
8a2fc586
AK
7441esac
7442
ad6254c5
AK
7443
7444cat >>confdefs.h <<_ACEOF
7445#define HAVE_STAT_EMPTY_STRING_BUG 1
7446_ACEOF
7447
7448fi
7449
1995c9ff
AK
7450{ echo "$as_me:$LINENO: checking for working strtod" >&5
7451echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7452if test "${ac_cv_func_strtod+set}" = set; then
1995c9ff 7453 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7454else
7455 if test "$cross_compiling" = yes; then
7456 ac_cv_func_strtod=no
7457else
7458 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7459/* confdefs.h. */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h. */
7464
7a197a62
AK
7465$ac_includes_default
7466#ifndef strtod
ad6254c5 7467double strtod ();
7a197a62 7468#endif
ad6254c5
AK
7469int
7470main()
7471{
7472 {
7473 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7474 char *string = " +69";
7475 char *term;
7476 double value;
7477 value = strtod (string, &term);
7478 if (value != 69 || term != (string + 4))
7a197a62 7479 return 1;
ad6254c5
AK
7480 }
7481
7482 {
7483 /* Under Solaris 2.4, strtod returns the wrong value for the
7484 terminating character under some conditions. */
7485 char *string = "NaN";
7486 char *term;
7487 strtod (string, &term);
7488 if (term != string && *(term - 1) == 0)
7a197a62 7489 return 1;
ad6254c5 7490 }
7a197a62 7491 return 0;
ad6254c5
AK
7492}
7493
7494_ACEOF
7495rm -f conftest$ac_exeext
7a197a62
AK
7496if { (ac_try="$ac_link"
7497case "(($ac_try" in
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7500esac
1995c9ff 7501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7502 (eval "$ac_link") 2>&5
ad6254c5 7503 ac_status=$?
1995c9ff 7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7506 { (case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
1995c9ff 7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7511 (eval "$ac_try") 2>&5
ad6254c5 7512 ac_status=$?
1995c9ff 7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7514 (exit $ac_status); }; }; then
7515 ac_cv_func_strtod=yes
7516else
1995c9ff
AK
7517 echo "$as_me: program exited with status $ac_status" >&5
7518echo "$as_me: failed program was:" >&5
ad6254c5
AK
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521( exit $ac_status )
7522ac_cv_func_strtod=no
7523fi
7a197a62 7524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7525fi
7a197a62
AK
7526
7527
ad6254c5 7528fi
1995c9ff
AK
7529{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
7530echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 7531if test $ac_cv_func_strtod = no; then
7a197a62 7532 case " $LIBOBJS " in
8a2fc586 7533 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
7534 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7535 ;;
8a2fc586
AK
7536esac
7537
1995c9ff
AK
7538{ echo "$as_me:$LINENO: checking for pow" >&5
7539echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 7540if test "${ac_cv_func_pow+set}" = set; then
1995c9ff 7541 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7542else
7543 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7544/* confdefs.h. */
7545_ACEOF
7546cat confdefs.h >>conftest.$ac_ext
7547cat >>conftest.$ac_ext <<_ACEOF
7548/* end confdefs.h. */
8a2fc586
AK
7549/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7551#define pow innocuous_pow
7552
ad6254c5
AK
7553/* System header to define __stub macros and hopefully few prototypes,
7554 which can conflict with char pow (); below.
7555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7556 <limits.h> exists even on freestanding compilers. */
8a2fc586 7557
ad6254c5
AK
7558#ifdef __STDC__
7559# include <limits.h>
7560#else
7561# include <assert.h>
7562#endif
8a2fc586
AK
7563
7564#undef pow
7565
7a197a62
AK
7566/* Override any GCC internal prototype to avoid an error.
7567 Use char because int might match the return type of a GCC
7568 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7569#ifdef __cplusplus
7570extern "C"
ad6254c5 7571#endif
ad6254c5
AK
7572char pow ();
7573/* The GNU C library defines this for functions which it implements
7574 to always fail with ENOSYS. Some functions are actually named
7575 something starting with __ and the normal name is an alias. */
7a197a62 7576#if defined __stub_pow || defined __stub___pow
ad6254c5 7577choke me
ad6254c5
AK
7578#endif
7579
7580int
7581main ()
7582{
7a197a62 7583return pow ();
ad6254c5
AK
7584 ;
7585 return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7589if { (ac_try="$ac_link"
7590case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593esac
1995c9ff 7594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7595 (eval "$ac_link") 2>conftest.er1
ad6254c5 7596 ac_status=$?
8a2fc586
AK
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
1995c9ff 7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest$ac_exeext &&
7605 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7606 ac_cv_func_pow=yes
7607else
1995c9ff 7608 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7a197a62 7611 ac_cv_func_pow=no
ad6254c5 7612fi
7a197a62 7613
25fbec5b 7614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7615 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7616fi
1995c9ff
AK
7617{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7618echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
7619
7620if test $ac_cv_func_pow = no; then
1995c9ff
AK
7621 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
7622echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 7623if test "${ac_cv_lib_m_pow+set}" = set; then
1995c9ff 7624 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7625else
7626 ac_check_lib_save_LIBS=$LIBS
7627LIBS="-lm $LIBS"
7628cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7629/* confdefs.h. */
7630_ACEOF
7631cat confdefs.h >>conftest.$ac_ext
7632cat >>conftest.$ac_ext <<_ACEOF
7633/* end confdefs.h. */
7634
7a197a62
AK
7635/* Override any GCC internal prototype to avoid an error.
7636 Use char because int might match the return type of a GCC
7637 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7638#ifdef __cplusplus
7639extern "C"
7640#endif
ad6254c5
AK
7641char pow ();
7642int
7643main ()
7644{
7a197a62 7645return pow ();
ad6254c5
AK
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7651if { (ac_try="$ac_link"
7652case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655esac
1995c9ff 7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7657 (eval "$ac_link") 2>conftest.er1
ad6254c5 7658 ac_status=$?
8a2fc586
AK
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
1995c9ff 7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7663 (exit $ac_status); } && {
7664 test -z "$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 } && test -s conftest$ac_exeext &&
7667 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7668 ac_cv_lib_m_pow=yes
7669else
1995c9ff 7670 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7a197a62 7673 ac_cv_lib_m_pow=no
ad6254c5 7674fi
7a197a62 7675
25fbec5b 7676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7677 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7678LIBS=$ac_check_lib_save_LIBS
7679fi
1995c9ff
AK
7680{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7681echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
ad6254c5
AK
7682if test $ac_cv_lib_m_pow = yes; then
7683 POW_LIB=-lm
7684else
1995c9ff
AK
7685 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7686echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
ad6254c5
AK
7687fi
7688
7689fi
7690
7691fi
7692
7693
7694################################################################################
7695
7696
7697################################################################################
7a197a62 7698# Check whether --enable-jobs was given.
ad6254c5 7699if test "${enable_jobs+set}" = set; then
7a197a62 7700 enableval=$enable_jobs; JOBS=-j$enableval
ad6254c5
AK
7701else
7702 JOBS=-j2
7a197a62
AK
7703fi
7704
ad6254c5
AK
7705
7706################################################################################
1995c9ff
AK
7707{ echo "$as_me:$LINENO: checking file owner" >&5
7708echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
ad6254c5
AK
7709OWNER="root"
7710
7711
7a197a62 7712# Check whether --with-user was given.
ad6254c5 7713if test "${with_user+set}" = set; then
7a197a62
AK
7714 withval=$with_user; OWNER="$withval"
7715fi
7716
1995c9ff
AK
7717{ echo "$as_me:$LINENO: result: $OWNER" >&5
7718echo "${ECHO_T}$OWNER" >&6; }
ad6254c5
AK
7719
7720if test x$OWNER != x; then
7721 OWNER="-o $OWNER"
7722fi
7723
7724################################################################################
1995c9ff
AK
7725{ echo "$as_me:$LINENO: checking group owner" >&5
7726echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
ad6254c5
AK
7727GROUP="root"
7728
7a197a62 7729# Check whether --with-group was given.
ad6254c5 7730if test "${with_group+set}" = set; then
7a197a62
AK
7731 withval=$with_group; GROUP="$withval"
7732fi
7733
1995c9ff
AK
7734{ echo "$as_me:$LINENO: result: $GROUP" >&5
7735echo "${ECHO_T}$GROUP" >&6; }
ad6254c5
AK
7736
7737if test x$GROUP != x; then
7738 GROUP="-g $GROUP"
7739fi
7740
7741################################################################################
1995c9ff
AK
7742{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7743echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
7a197a62 7744# Check whether --enable-lvm1_fallback was given.
ad6254c5 7745if test "${enable_lvm1_fallback+set}" = set; then
7a197a62 7746 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
ad6254c5
AK
7747else
7748 LVM1_FALLBACK=no
7a197a62
AK
7749fi
7750
1995c9ff
AK
7751{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7752echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5
AK
7753
7754if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
7755
7756cat >>confdefs.h <<\_ACEOF
7757#define LVM1_FALLBACK 1
7758_ACEOF
7759
ad6254c5
AK
7760fi
7761
7762################################################################################
1995c9ff
AK
7763{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7764echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
ad6254c5 7765
7a197a62 7766# Check whether --with-lvm1 was given.
ad6254c5 7767if test "${with_lvm1+set}" = set; then
7a197a62 7768 withval=$with_lvm1; LVM1="$withval"
ad6254c5
AK
7769else
7770 LVM1="internal"
7a197a62
AK
7771fi
7772
1995c9ff
AK
7773{ echo "$as_me:$LINENO: result: $LVM1" >&5
7774echo "${ECHO_T}$LVM1" >&6; }
ad6254c5
AK
7775
7776if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
1995c9ff 7777 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
ad6254c5 7778" >&5
1995c9ff 7779echo "$as_me: error: --with-lvm1 parameter invalid
ad6254c5
AK
7780" >&2;}
7781 { (exit 1); exit 1; }; }
7782fi;
7783
7784if test x$LVM1 = xinternal; then
72b2cb61
AK
7785
7786cat >>confdefs.h <<\_ACEOF
7787#define LVM1_INTERNAL 1
7788_ACEOF
7789
ad6254c5
AK
7790fi
7791
7792################################################################################
1995c9ff
AK
7793{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7794echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
ad6254c5 7795
7a197a62 7796# Check whether --with-pool was given.
ad6254c5 7797if test "${with_pool+set}" = set; then
7a197a62 7798 withval=$with_pool; POOL="$withval"
ad6254c5
AK
7799else
7800 POOL="internal"
7a197a62
AK
7801fi
7802
1995c9ff
AK
7803{ echo "$as_me:$LINENO: result: $POOL" >&5
7804echo "${ECHO_T}$POOL" >&6; }
ad6254c5
AK
7805
7806if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
1995c9ff 7807 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
ad6254c5 7808" >&5
1995c9ff 7809echo "$as_me: error: --with-pool parameter invalid
ad6254c5
AK
7810" >&2;}
7811 { (exit 1); exit 1; }; }
7812fi;
7813
7814if test x$POOL = xinternal; then
72b2cb61
AK
7815
7816cat >>confdefs.h <<\_ACEOF
7817#define POOL_INTERNAL 1
7818_ACEOF
7819
ad6254c5
AK
7820fi
7821
7822################################################################################
1995c9ff
AK
7823{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7824echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
ad6254c5 7825
7a197a62 7826# Check whether --with-cluster was given.
ad6254c5 7827if test "${with_cluster+set}" = set; then
7a197a62
AK
7828 withval=$with_cluster; CLUSTER="$withval"
7829fi
7830
1995c9ff
AK
7831{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
7832echo "${ECHO_T}$CLUSTER" >&6; }
ad6254c5
AK
7833
7834if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
1995c9ff 7835 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
ad6254c5 7836" >&5
1995c9ff 7837echo "$as_me: error: --with-cluster parameter invalid
ad6254c5
AK
7838" >&2;}
7839 { (exit 1); exit 1; }; }
7840fi;
7841
7842if test x$CLUSTER = xinternal; then
72b2cb61
AK
7843
7844cat >>confdefs.h <<\_ACEOF
7845#define CLUSTER_LOCKING_INTERNAL 1
7846_ACEOF
7847
ad6254c5
AK
7848fi
7849
7850################################################################################
1995c9ff
AK
7851{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7852echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 7853
7a197a62 7854# Check whether --with-snapshots was given.
ad6254c5 7855if test "${with_snapshots+set}" = set; then
7a197a62 7856 withval=$with_snapshots; SNAPSHOTS="$withval"
ad6254c5
AK
7857else
7858 SNAPSHOTS="internal"
7a197a62
AK
7859fi
7860
1995c9ff
AK
7861{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7862echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5
AK
7863
7864if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
1995c9ff 7865 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
ad6254c5 7866" >&5
1995c9ff 7867echo "$as_me: error: --with-snapshots parameter invalid
ad6254c5
AK
7868" >&2;}
7869 { (exit 1); exit 1; }; }
7870fi;
7871
7872if test x$SNAPSHOTS = xinternal; then
72b2cb61
AK
7873
7874cat >>confdefs.h <<\_ACEOF
7875#define SNAPSHOT_INTERNAL 1
7876_ACEOF
7877
ad6254c5
AK
7878fi
7879
7880################################################################################
1995c9ff
AK
7881{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7882echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
ad6254c5 7883
7a197a62 7884# Check whether --with-mirrors was given.
ad6254c5 7885if test "${with_mirrors+set}" = set; then
7a197a62 7886 withval=$with_mirrors; MIRRORS="$withval"
ad6254c5
AK
7887else
7888 MIRRORS="internal"
7a197a62
AK
7889fi
7890
1995c9ff
AK
7891{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
7892echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5
AK
7893
7894if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
1995c9ff 7895 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
ad6254c5 7896" >&5
1995c9ff 7897echo "$as_me: error: --with-mirrors parameter invalid
ad6254c5
AK
7898" >&2;}
7899 { (exit 1); exit 1; }; }
7900fi;
7901
7902if test x$MIRRORS = xinternal; then
72b2cb61
AK
7903
7904cat >>confdefs.h <<\_ACEOF
7905#define MIRRORED_INTERNAL 1
7906_ACEOF
7907
ad6254c5
AK
7908fi
7909
7910################################################################################
1995c9ff
AK
7911{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
7912echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
7a197a62 7913# Check whether --enable-static_link was given.
ad6254c5 7914if test "${enable_static_link+set}" = set; then
7a197a62 7915 enableval=$enable_static_link; STATIC_LINK=$enableval
ad6254c5
AK
7916else
7917 STATIC_LINK=no
7a197a62
AK
7918fi
7919
1995c9ff
AK
7920{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7921echo "${ECHO_T}$STATIC_LINK" >&6; }
ad6254c5
AK
7922
7923################################################################################
1995c9ff
AK
7924{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
7925echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
7a197a62 7926# Check whether --enable-readline was given.
ad6254c5 7927if test "${enable_readline+set}" = set; then
7a197a62 7928 enableval=$enable_readline; READLINE=$enableval
ad6254c5
AK
7929else
7930 READLINE=no
7a197a62
AK
7931fi
7932
1995c9ff
AK
7933{ echo "$as_me:$LINENO: result: $READLINE" >&5
7934echo "${ECHO_T}$READLINE" >&6; }
ad6254c5
AK
7935
7936if test x$READLINE = xyes; then
72b2cb61
AK
7937
7938cat >>confdefs.h <<\_ACEOF
7939#define READLINE_SUPPORT 1
7940_ACEOF
7941
ad6254c5
AK
7942fi
7943
7944################################################################################
1995c9ff
AK
7945{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7946echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
7a197a62 7947# Check whether --enable-selinux was given.
ad6254c5 7948if test "${enable_selinux+set}" = set; then
7a197a62
AK
7949 enableval=$enable_selinux; SELINUX=$enableval
7950fi
7951
1995c9ff
AK
7952{ echo "$as_me:$LINENO: result: $SELINUX" >&5
7953echo "${ECHO_T}$SELINUX" >&6; }
ad6254c5 7954
8b1a3214 7955################################################################################
1995c9ff
AK
7956{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
7957echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
7a197a62 7958# Check whether --enable-realtime was given.
8b1a3214 7959if test "${enable_realtime+set}" = set; then
7a197a62
AK
7960 enableval=$enable_realtime; REALTIME=$enableval
7961fi
7962
1995c9ff
AK
7963{ echo "$as_me:$LINENO: result: $REALTIME" >&5
7964echo "${ECHO_T}$REALTIME" >&6; }
8b1a3214 7965
ad6254c5 7966################################################################################
1995c9ff
AK
7967{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7968echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
ad6254c5 7969
7a197a62 7970# Check whether --with-clvmd was given.
ad6254c5 7971if test "${with_clvmd+set}" = set; then
7a197a62 7972 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 7973else
a266258f 7974 CLVMD="none"
7a197a62
AK
7975fi
7976
a266258f 7977if test x$CLVMD = xyes; then
5c7fc7c4 7978 CLVMD=all
b1098701 7979fi
1995c9ff
AK
7980{ echo "$as_me:$LINENO: result: $CLVMD" >&5
7981echo "${ECHO_T}$CLVMD" >&6; }
ad6254c5 7982
a266258f 7983if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7984 CLUSTER=internal
7985fi
7986
7987################################################################################
1995c9ff
AK
7988{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7989echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
7a197a62 7990# Check whether --enable-debug was given.
ad6254c5 7991if test "${enable_debug+set}" = set; then
7a197a62 7992 enableval=$enable_debug; DEBUG=$enableval
ad6254c5
AK
7993else
7994 DEBUG=no
7a197a62
AK
7995fi
7996
1995c9ff
AK
7997{ echo "$as_me:$LINENO: result: $DEBUG" >&5
7998echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5
AK
7999
8000if test x$DEBUG = xyes; then
8001 COPTIMISE_FLAG=
8a2fc586
AK
8002else
8003 CSCOPE_CMD=
ad6254c5
AK
8004fi
8005
8006################################################################################
1995c9ff
AK
8007{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8008echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
ad6254c5 8009
7a197a62 8010# Check whether --with-optimisation was given.
ad6254c5 8011if test "${with_optimisation+set}" = set; then
7a197a62
AK
8012 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8013fi
8014
1995c9ff
AK
8015{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8016echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
ad6254c5
AK
8017
8018################################################################################
1995c9ff
AK
8019{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8020echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
7a197a62 8021# Check whether --enable-devmapper was given.
ad6254c5 8022if test "${enable_devmapper+set}" = set; then
7a197a62
AK
8023 enableval=$enable_devmapper; DEVMAPPER=$enableval
8024fi
8025
1995c9ff
AK
8026{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8027echo "${ECHO_T}$DEVMAPPER" >&6; }
ad6254c5
AK
8028
8029if test x$DEVMAPPER = xyes; then
72b2cb61
AK
8030
8031cat >>confdefs.h <<\_ACEOF
8032#define DEVMAPPER_SUPPORT 1
8033_ACEOF
8034
ad6254c5
AK
8035fi
8036
8037################################################################################
1995c9ff
AK
8038{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8039echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
7a197a62 8040# Check whether --enable-o_direct was given.
ad6254c5 8041if test "${enable_o_direct+set}" = set; then
7a197a62
AK
8042 enableval=$enable_o_direct; ODIRECT=$enableval
8043fi
8044
1995c9ff
AK
8045{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8046echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5
AK
8047
8048if test x$ODIRECT = xyes; then
72b2cb61
AK
8049
8050cat >>confdefs.h <<\_ACEOF
8051#define O_DIRECT_SUPPORT 1
8052_ACEOF
8053
ad6254c5
AK
8054fi
8055
8056################################################################################
1995c9ff
AK
8057{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8058echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
7a197a62 8059# Check whether --enable-cmdlib was given.
ad6254c5 8060if test "${enable_cmdlib+set}" = set; then
7a197a62 8061 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5
AK
8062else
8063 CMDLIB=no
7a197a62
AK
8064fi
8065
1995c9ff
AK
8066{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8067echo "${ECHO_T}$CMDLIB" >&6; }
ad6254c5 8068
ad6254c5 8069################################################################################
1995c9ff
AK
8070{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8071echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
7a197a62 8072# Check whether --enable-fsadm was given.
ad6254c5 8073if test "${enable_fsadm+set}" = set; then
7a197a62
AK
8074 enableval=$enable_fsadm; FSADM=$enableval
8075fi
8076
1995c9ff
AK
8077{ echo "$as_me:$LINENO: result: $FSADM" >&5
8078echo "${ECHO_T}$FSADM" >&6; }
ad6254c5 8079
06f62ad1 8080################################################################################
1995c9ff
AK
8081{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8082echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
7a197a62 8083# Check whether --enable-dmeventd was given.
06f62ad1 8084if test "${enable_dmeventd+set}" = set; then
7a197a62
AK
8085 enableval=$enable_dmeventd; DMEVENTD=$enableval
8086fi
8087
1995c9ff
AK
8088{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8089echo "${ECHO_T}$DMEVENTD" >&6; }
06f62ad1
AK
8090
8091if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
1995c9ff 8092{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
06f62ad1 8093" >&5
1995c9ff 8094echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
06f62ad1
AK
8095" >&2;}
8096 { (exit 1); exit 1; }; }
8097fi
8098
15d91f5a 8099if test x$DMEVENTD = xyes; then
72b2cb61
AK
8100
8101cat >>confdefs.h <<\_ACEOF
8102#define DMEVENTD 1
8103_ACEOF
8104
15d91f5a 8105fi
ad6254c5
AK
8106################################################################################
8107if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8108 then exec_prefix="";
8109fi;
8110
8111################################################################################
8112if test $ac_cv_c_compiler_gnu = yes; then
1995c9ff
AK
8113 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8114echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
ad6254c5 8115if test "${ac_cv_prog_gcc_traditional+set}" = set; then
1995c9ff 8116 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8117else
8118 ac_pattern="Autoconf.*'x'"
8119 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125#include <sgtty.h>
8126Autoconf TIOCGETP
8127_ACEOF
8128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8130 ac_cv_prog_gcc_traditional=yes
8131else
8132 ac_cv_prog_gcc_traditional=no
8133fi
8134rm -f conftest*
8135
8136
8137 if test $ac_cv_prog_gcc_traditional = no; then
8138 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
8144#include <termio.h>
8145Autoconf TCGETA
8146_ACEOF
8147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8148 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8149 ac_cv_prog_gcc_traditional=yes
8150fi
8151rm -f conftest*
8152
8153 fi
8154fi
1995c9ff
AK
8155{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8156echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
ad6254c5
AK
8157 if test $ac_cv_prog_gcc_traditional = yes; then
8158 CC="$CC -traditional"
8159 fi
8160fi
8161
1995c9ff
AK
8162{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8163echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
ad6254c5 8164if test "${ac_cv_type_signal+set}" = set; then
1995c9ff 8165 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8166else
8167 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173#include <sys/types.h>
8174#include <signal.h>
ad6254c5
AK
8175
8176int
8177main ()
8178{
7a197a62 8179return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
8180 ;
8181 return 0;
8182}
8183_ACEOF
8184rm -f conftest.$ac_objext
7a197a62
AK
8185if { (ac_try="$ac_compile"
8186case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189esac
1995c9ff 8190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8191 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8192 ac_status=$?
8a2fc586
AK
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
1995c9ff 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
7a197a62 8201 ac_cv_type_signal=int
ad6254c5 8202else
1995c9ff 8203 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8204sed 's/^/| /' conftest.$ac_ext >&5
8205
7a197a62 8206 ac_cv_type_signal=void
ad6254c5 8207fi
7a197a62
AK
8208
8209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 8210fi
1995c9ff
AK
8211{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8212echo "${ECHO_T}$ac_cv_type_signal" >&6; }
ad6254c5
AK
8213
8214cat >>confdefs.h <<_ACEOF
8215#define RETSIGTYPE $ac_cv_type_signal
8216_ACEOF
8217
8218
8219
8220for ac_func in vprintf
8221do
1995c9ff
AK
8222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8223{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 8225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 8226 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8227else
8228 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8229/* confdefs.h. */
8230_ACEOF
8231cat confdefs.h >>conftest.$ac_ext
8232cat >>conftest.$ac_ext <<_ACEOF
8233/* end confdefs.h. */
8a2fc586
AK
8234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8236#define $ac_func innocuous_$ac_func
8237
ad6254c5
AK
8238/* System header to define __stub macros and hopefully few prototypes,
8239 which can conflict with char $ac_func (); below.
8240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8241 <limits.h> exists even on freestanding compilers. */
8a2fc586 8242
ad6254c5
AK
8243#ifdef __STDC__
8244# include <limits.h>
8245#else
8246# include <assert.h>
8247#endif
8a2fc586
AK
8248
8249#undef $ac_func
8250
7a197a62
AK
8251/* Override any GCC internal prototype to avoid an error.
8252 Use char because int might match the return type of a GCC
8253 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8254#ifdef __cplusplus
8255extern "C"
ad6254c5 8256#endif
ad6254c5
AK
8257char $ac_func ();
8258/* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
7a197a62 8261#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8262choke me
ad6254c5
AK
8263#endif
8264
8265int
8266main ()
8267{
7a197a62 8268return $ac_func ();
ad6254c5
AK
8269 ;
8270 return 0;
8271}
8272_ACEOF
8273rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8274if { (ac_try="$ac_link"
8275case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278esac
1995c9ff 8279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8280 (eval "$ac_link") 2>conftest.er1
ad6254c5 8281 ac_status=$?
8a2fc586
AK
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
1995c9ff 8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest$ac_exeext &&
8290 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8291 eval "$as_ac_var=yes"
8292else
1995c9ff 8293 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
7a197a62 8296 eval "$as_ac_var=no"
ad6254c5 8297fi
7a197a62 8298
25fbec5b 8299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8300 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8301fi
1995c9ff
AK
8302ac_res=`eval echo '${'$as_ac_var'}'`
8303 { echo "$as_me:$LINENO: result: $ac_res" >&5
8304echo "${ECHO_T}$ac_res" >&6; }
8305if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 8306 cat >>confdefs.h <<_ACEOF
1995c9ff 8307#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8308_ACEOF
8309
1995c9ff
AK
8310{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8311echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
ad6254c5 8312if test "${ac_cv_func__doprnt+set}" = set; then
1995c9ff 8313 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8314else
8315 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8316/* confdefs.h. */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
8320/* end confdefs.h. */
8a2fc586
AK
8321/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8323#define _doprnt innocuous__doprnt
8324
ad6254c5
AK
8325/* System header to define __stub macros and hopefully few prototypes,
8326 which can conflict with char _doprnt (); below.
8327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8328 <limits.h> exists even on freestanding compilers. */
8a2fc586 8329
ad6254c5
AK
8330#ifdef __STDC__
8331# include <limits.h>
8332#else
8333# include <assert.h>
8334#endif
8a2fc586
AK
8335
8336#undef _doprnt
8337
7a197a62
AK
8338/* Override any GCC internal prototype to avoid an error.
8339 Use char because int might match the return type of a GCC
8340 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8341#ifdef __cplusplus
8342extern "C"
ad6254c5 8343#endif
ad6254c5
AK
8344char _doprnt ();
8345/* The GNU C library defines this for functions which it implements
8346 to always fail with ENOSYS. Some functions are actually named
8347 something starting with __ and the normal name is an alias. */
7a197a62 8348#if defined __stub__doprnt || defined __stub____doprnt
ad6254c5 8349choke me
ad6254c5
AK
8350#endif
8351
8352int
8353main ()
8354{
7a197a62 8355return _doprnt ();
ad6254c5
AK
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8361if { (ac_try="$ac_link"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
1995c9ff 8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8367 (eval "$ac_link") 2>conftest.er1
ad6254c5 8368 ac_status=$?
8a2fc586
AK
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
1995c9ff 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest$ac_exeext &&
8377 $as_test_x conftest$ac_exeext; then
fc54be10
AK
8378 ac_cv_func__doprnt=yes
8379else
8380 echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_func__doprnt=no
8384fi
8385
25fbec5b 8386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8387 conftest$ac_exeext conftest.$ac_ext
8388fi
8389{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8390echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8391if test $ac_cv_func__doprnt = yes; then
ad6254c5
AK
8392
8393cat >>confdefs.h <<\_ACEOF
8394#define HAVE_DOPRNT 1
8395_ACEOF
8396
8397fi
8398
8399fi
8400done
8401
8402
8403
8404
8405
8406for ac_func in mkdir rmdir uname
8407do
1995c9ff
AK
8408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 8411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 8412 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8413else
8414 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8415/* confdefs.h. */
8416_ACEOF
8417cat confdefs.h >>conftest.$ac_ext
8418cat >>conftest.$ac_ext <<_ACEOF
8419/* end confdefs.h. */
8a2fc586
AK
8420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8422#define $ac_func innocuous_$ac_func
8423
ad6254c5
AK
8424/* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char $ac_func (); below.
8426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8427 <limits.h> exists even on freestanding compilers. */
8a2fc586 8428
ad6254c5
AK
8429#ifdef __STDC__
8430# include <limits.h>
8431#else
8432# include <assert.h>
8433#endif
8a2fc586
AK
8434
8435#undef $ac_func
8436
7a197a62
AK
8437/* Override any GCC internal prototype to avoid an error.
8438 Use char because int might match the return type of a GCC
8439 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8440#ifdef __cplusplus
8441extern "C"
ad6254c5 8442#endif
ad6254c5
AK
8443char $ac_func ();
8444/* The GNU C library defines this for functions which it implements
8445 to always fail with ENOSYS. Some functions are actually named
8446 something starting with __ and the normal name is an alias. */
7a197a62 8447#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8448choke me
ad6254c5
AK
8449#endif
8450
8451int
8452main ()
8453{
7a197a62 8454return $ac_func ();
ad6254c5
AK
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8460if { (ac_try="$ac_link"
8461case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
1995c9ff 8465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8466 (eval "$ac_link") 2>conftest.er1
ad6254c5 8467 ac_status=$?
8a2fc586
AK
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
1995c9ff 8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest$ac_exeext &&
8476 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8477 eval "$as_ac_var=yes"
8478else
1995c9ff 8479 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8480sed 's/^/| /' conftest.$ac_ext >&5
8481
7a197a62 8482 eval "$as_ac_var=no"
ad6254c5 8483fi
7a197a62 8484
25fbec5b 8485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8486 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8487fi
1995c9ff
AK
8488ac_res=`eval echo '${'$as_ac_var'}'`
8489 { echo "$as_me:$LINENO: result: $ac_res" >&5
8490echo "${ECHO_T}$ac_res" >&6; }
8491if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 8492 cat >>confdefs.h <<_ACEOF
1995c9ff 8493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8494_ACEOF
8495
8496else
1995c9ff
AK
8497 { { echo "$as_me:$LINENO: error: bailing out" >&5
8498echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8499 { (exit 1); exit 1; }; }
8500fi
8501done
8502
8503
8504################################################################################
8505if test x$READLINE = xyes; then
1995c9ff
AK
8506 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8507echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 8508if test "${ac_cv_search_tgetent+set}" = set; then
1995c9ff 8509 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8510else
8511 ac_func_search_save_LIBS=$LIBS
ad6254c5 8512cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8513/* confdefs.h. */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h. */
8518
7a197a62
AK
8519/* Override any GCC internal prototype to avoid an error.
8520 Use char because int might match the return type of a GCC
8521 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8522#ifdef __cplusplus
8523extern "C"
8524#endif
ad6254c5
AK
8525char tgetent ();
8526int
8527main ()
8528{
7a197a62 8529return tgetent ();
ad6254c5
AK
8530 ;
8531 return 0;
8532}
8533_ACEOF
7a197a62
AK
8534for ac_lib in '' ncurses curses termcap termlib; do
8535 if test -z "$ac_lib"; then
8536 ac_res="none required"
8537 else
8538 ac_res=-l$ac_lib
8539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8540 fi
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542if { (ac_try="$ac_link"
8543case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
1995c9ff 8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8548 (eval "$ac_link") 2>conftest.er1
ad6254c5 8549 ac_status=$?
8a2fc586
AK
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
1995c9ff 8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest$ac_exeext &&
8558 $as_test_x conftest$ac_exeext; then
7a197a62 8559 ac_cv_search_tgetent=$ac_res
ad6254c5 8560else
1995c9ff 8561 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8562sed 's/^/| /' conftest.$ac_ext >&5
8563
ad6254c5 8564
7a197a62 8565fi
ad6254c5 8566
25fbec5b 8567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
8568 conftest$ac_exeext
8569 if test "${ac_cv_search_tgetent+set}" = set; then
8570 break
ad6254c5 8571fi
7a197a62
AK
8572done
8573if test "${ac_cv_search_tgetent+set}" = set; then
8574 :
8575else
8576 ac_cv_search_tgetent=no
ad6254c5 8577fi
7a197a62 8578rm conftest.$ac_ext
ad6254c5
AK
8579LIBS=$ac_func_search_save_LIBS
8580fi
1995c9ff
AK
8581{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8582echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
8583ac_res=$ac_cv_search_tgetent
8584if test "$ac_res" != no; then
8585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5
AK
8586
8587else
1995c9ff 8588 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
8589--enable-readline option (which is enabled by default). Either disable readline
8590support with --disable-readline or download and install termcap from:
8591 ftp.gnu.org/gnu/termcap
8592Note: if you are using precompiled packages you will also need the development
8593 package as well (which may be called termcap-devel or something similar).
8594Note: (n)curses also seems to work as a substitute for termcap. This was
8595 not found either - but you could try installing that as well.
8596" >&5
1995c9ff 8597echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
8598--enable-readline option (which is enabled by default). Either disable readline
8599support with --disable-readline or download and install termcap from:
8600 ftp.gnu.org/gnu/termcap
8601Note: if you are using precompiled packages you will also need the development
8602 package as well (which may be called termcap-devel or something similar).
8603Note: (n)curses also seems to work as a substitute for termcap. This was
8604 not found either - but you could try installing that as well.
8605" >&2;}
8606 { (exit 1); exit 1; }; }
8607
8608fi
8609
8610fi
8611
8612################################################################################
1995c9ff
AK
8613{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8614echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 8615if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1995c9ff 8616 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8617else
8618 ac_check_lib_save_LIBS=$LIBS
8619LIBS="-ldl $LIBS"
8620cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8621/* confdefs.h. */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h. */
8626
7a197a62
AK
8627/* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8630#ifdef __cplusplus
8631extern "C"
8632#endif
ad6254c5
AK
8633char dlopen ();
8634int
8635main ()
8636{
7a197a62 8637return dlopen ();
ad6254c5
AK
8638 ;
8639 return 0;
8640}
8641_ACEOF
8642rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8643if { (ac_try="$ac_link"
8644case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647esac
1995c9ff 8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8649 (eval "$ac_link") 2>conftest.er1
ad6254c5 8650 ac_status=$?
8a2fc586
AK
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
1995c9ff 8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest$ac_exeext &&
8659 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8660 ac_cv_lib_dl_dlopen=yes
8661else
1995c9ff 8662 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
7a197a62 8665 ac_cv_lib_dl_dlopen=no
ad6254c5 8666fi
7a197a62 8667
25fbec5b 8668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8669 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8670LIBS=$ac_check_lib_save_LIBS
8671fi
1995c9ff
AK
8672{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8673echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
8674if test $ac_cv_lib_dl_dlopen = yes; then
8675 HAVE_LIBDL=yes
8676else
8677 HAVE_LIBDL=no
8678fi
8679
8680
7e9e9502 8681if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8682
8683cat >>confdefs.h <<\_ACEOF
8684#define HAVE_LIBDL 1
8685_ACEOF
8686
ad6254c5
AK
8687 LIBS="-ldl $LIBS"
8688else
8689 HAVE_LIBDL=no
8690fi
8691
8692################################################################################
8693if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8694 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8695 \) -a "x$STATIC_LINK" = xyes ];
1995c9ff 8696 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 8697" >&5
1995c9ff 8698echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
8699" >&2;}
8700 { (exit 1); exit 1; }; }
8701fi
8702
8703################################################################################
8704if test x$SELINUX = xyes; then
1995c9ff
AK
8705 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8706echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 8707if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
1995c9ff 8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
8709else
8710 ac_check_lib_save_LIBS=$LIBS
8711LIBS="-lsepol $LIBS"
8712cat >conftest.$ac_ext <<_ACEOF
8713/* confdefs.h. */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h. */
8718
7a197a62
AK
8719/* Override any GCC internal prototype to avoid an error.
8720 Use char because int might match the return type of a GCC
8721 builtin and then its argument prototype would still apply. */
8a2fc586
AK
8722#ifdef __cplusplus
8723extern "C"
8724#endif
8a2fc586
AK
8725char sepol_check_context ();
8726int
8727main ()
8728{
7a197a62 8729return sepol_check_context ();
8a2fc586
AK
8730 ;
8731 return 0;
8732}
8733_ACEOF
8734rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8735if { (ac_try="$ac_link"
8736case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739esac
1995c9ff 8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8741 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
1995c9ff 8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8747 (exit $ac_status); } && {
8748 test -z "$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 } && test -s conftest$ac_exeext &&
8751 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
8752 ac_cv_lib_sepol_sepol_check_context=yes
8753else
1995c9ff 8754 echo "$as_me: failed program was:" >&5
8a2fc586
AK
8755sed 's/^/| /' conftest.$ac_ext >&5
8756
7a197a62 8757 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 8758fi
7a197a62 8759
25fbec5b 8760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
8761 conftest$ac_exeext conftest.$ac_ext
8762LIBS=$ac_check_lib_save_LIBS
8763fi
1995c9ff
AK
8764{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8765echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
8766if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8767 HAVE_SEPOL=yes
8768else
8769 HAVE_SEPOL=no
8770fi
8771
8a2fc586
AK
8772
8773 if test x$HAVE_SEPOL = xyes; then
8774 LIBS="-lsepol $LIBS"
8775 fi
8776
1995c9ff
AK
8777 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8778echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 8779if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
1995c9ff 8780 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8781else
8782 ac_check_lib_save_LIBS=$LIBS
8783LIBS="-lselinux $LIBS"
8784cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8785/* confdefs.h. */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h. */
8790
7a197a62
AK
8791/* Override any GCC internal prototype to avoid an error.
8792 Use char because int might match the return type of a GCC
8793 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8794#ifdef __cplusplus
8795extern "C"
8796#endif
ad6254c5
AK
8797char is_selinux_enabled ();
8798int
8799main ()
8800{
7a197a62 8801return is_selinux_enabled ();
ad6254c5
AK
8802 ;
8803 return 0;
8804}
8805_ACEOF
8806rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8807if { (ac_try="$ac_link"
8808case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811esac
1995c9ff 8812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8813 (eval "$ac_link") 2>conftest.er1
ad6254c5 8814 ac_status=$?
8a2fc586
AK
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
1995c9ff 8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest$ac_exeext &&
8823 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8824 ac_cv_lib_selinux_is_selinux_enabled=yes
8825else
1995c9ff 8826 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
7a197a62 8829 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 8830fi
7a197a62 8831
25fbec5b 8832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8833 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8834LIBS=$ac_check_lib_save_LIBS
8835fi
1995c9ff
AK
8836{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8837echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
8838if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8839 HAVE_SELINUX=yes
8840else
8841 HAVE_SELINUX=no
8842fi
8843
ad6254c5
AK
8844
8845 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
8846
8847cat >>confdefs.h <<\_ACEOF
8848#define HAVE_SELINUX 1
8849_ACEOF
8850
ad6254c5
AK
8851 LIBS="-lselinux $LIBS"
8852 else
1995c9ff
AK
8853 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8854echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
8855 fi
8856
8857 # With --enable-static_link and selinux enabled, linking lvm.static
8858 # fails on at least Debian unstable due to unsatisfied references
8859 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
8860 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
8861 lvm_saved_libs=$LIBS
8862 LIBS="$LIBS -static"
1995c9ff
AK
8863 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
8864echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 8865if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
1995c9ff 8866 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
8867else
8868 ac_func_search_save_LIBS=$LIBS
8869cat >conftest.$ac_ext <<_ACEOF
8870/* confdefs.h. */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h. */
8875
8876/* Override any GCC internal prototype to avoid an error.
8877 Use char because int might match the return type of a GCC
8878 builtin and then its argument prototype would still apply. */
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8882char pthread_mutex_lock ();
8883int
8884main ()
8885{
8886return pthread_mutex_lock ();
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891for ac_lib in '' pthread; do
8892 if test -z "$ac_lib"; then
8893 ac_res="none required"
8894 else
8895 ac_res=-l$ac_lib
8896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8897 fi
8898 rm -f conftest.$ac_objext conftest$ac_exeext
8899if { (ac_try="$ac_link"
8900case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903esac
1995c9ff 8904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
8905 (eval "$ac_link") 2>conftest.er1
8906 ac_status=$?
8907 grep -v '^ *+' conftest.er1 >conftest.err
8908 rm -f conftest.er1
8909 cat conftest.err >&5
1995c9ff 8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest$ac_exeext &&
8915 $as_test_x conftest$ac_exeext; then
66e941e8
JM
8916 ac_cv_search_pthread_mutex_lock=$ac_res
8917else
1995c9ff 8918 echo "$as_me: failed program was:" >&5
66e941e8
JM
8919sed 's/^/| /' conftest.$ac_ext >&5
8920
8921
8922fi
8923
25fbec5b 8924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
8925 conftest$ac_exeext
8926 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
8927 break
8928fi
8929done
8930if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
8931 :
8932else
8933 ac_cv_search_pthread_mutex_lock=no
8934fi
8935rm conftest.$ac_ext
8936LIBS=$ac_func_search_save_LIBS
8937fi
1995c9ff
AK
8938{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
8939echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
8940ac_res=$ac_cv_search_pthread_mutex_lock
8941if test "$ac_res" != no; then
8942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8943 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
8944 LIB_PTHREAD=-lpthread
8945fi
8946
8947 LIBS=$lvm_saved_libs
ad6254c5
AK
8948 fi
8949fi
8950
8b1a3214
AK
8951################################################################################
8952if test x$REALTIME = xyes; then
1995c9ff
AK
8953 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8954echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 8955if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
1995c9ff 8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
8957else
8958 ac_check_lib_save_LIBS=$LIBS
8959LIBS="-lrt $LIBS"
8960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h. */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h. */
8966
7a197a62
AK
8967/* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8b1a3214
AK
8970#ifdef __cplusplus
8971extern "C"
8972#endif
8b1a3214
AK
8973char clock_gettime ();
8974int
8975main ()
8976{
7a197a62 8977return clock_gettime ();
8b1a3214
AK
8978 ;
8979 return 0;
8980}
8981_ACEOF
8982rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8983if { (ac_try="$ac_link"
8984case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8987esac
1995c9ff 8988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8989 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
8990 ac_status=$?
8991 grep -v '^ *+' conftest.er1 >conftest.err
8992 rm -f conftest.er1
8993 cat conftest.err >&5
1995c9ff 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8995 (exit $ac_status); } && {
8996 test -z "$ac_c_werror_flag" ||
8997 test ! -s conftest.err
8998 } && test -s conftest$ac_exeext &&
8999 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9000 ac_cv_lib_rt_clock_gettime=yes
9001else
1995c9ff 9002 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9003sed 's/^/| /' conftest.$ac_ext >&5
9004
7a197a62 9005 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9006fi
7a197a62 9007
25fbec5b 9008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9009 conftest$ac_exeext conftest.$ac_ext
9010LIBS=$ac_check_lib_save_LIBS
9011fi
1995c9ff
AK
9012{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9013echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9014if test $ac_cv_lib_rt_clock_gettime = yes; then
9015 HAVE_REALTIME=yes
9016else
9017 HAVE_REALTIME=no
9018fi
9019
8b1a3214
AK
9020
9021 if test x$HAVE_REALTIME = xyes; then
9022
9023cat >>confdefs.h <<\_ACEOF
9024#define HAVE_REALTIME 1
9025_ACEOF
9026
9027 LIBS="-lrt $LIBS"
9028 else
1995c9ff
AK
9029 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9030echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9031 fi
9032fi
9033
ad6254c5
AK
9034################################################################################
9035
9036for ac_header in getopt.h
9037do
1995c9ff 9038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9043 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9044fi
1995c9ff
AK
9045ac_res=`eval echo '${'$as_ac_Header'}'`
9046 { echo "$as_me:$LINENO: result: $ac_res" >&5
9047echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9048else
9049 # Is the header compilable?
1995c9ff
AK
9050{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9052cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9053/* confdefs.h. */
9054_ACEOF
9055cat confdefs.h >>conftest.$ac_ext
9056cat >>conftest.$ac_ext <<_ACEOF
9057/* end confdefs.h. */
9058$ac_includes_default
9059#include <$ac_header>
9060_ACEOF
9061rm -f conftest.$ac_objext
7a197a62
AK
9062if { (ac_try="$ac_compile"
9063case "(($ac_try" in
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9066esac
1995c9ff 9067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9068 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9069 ac_status=$?
8a2fc586
AK
9070 grep -v '^ *+' conftest.er1 >conftest.err
9071 rm -f conftest.er1
9072 cat conftest.err >&5
1995c9ff 9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9074 (exit $ac_status); } && {
9075 test -z "$ac_c_werror_flag" ||
9076 test ! -s conftest.err
9077 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9078 ac_header_compiler=yes
9079else
1995c9ff 9080 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
7a197a62 9083 ac_header_compiler=no
ad6254c5 9084fi
7a197a62
AK
9085
9086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
9087{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9089
9090# Is the header present?
1995c9ff
AK
9091{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9093cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099#include <$ac_header>
9100_ACEOF
7a197a62
AK
9101if { (ac_try="$ac_cpp conftest.$ac_ext"
9102case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105esac
1995c9ff 9106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
1995c9ff 9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9113 (exit $ac_status); } >/dev/null && {
9114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9115 test ! -s conftest.err
9116 }; then
ad6254c5
AK
9117 ac_header_preproc=yes
9118else
1995c9ff 9119 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_header_preproc=no
9123fi
7a197a62 9124
ad6254c5 9125rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
9126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9127echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9128
9129# So? What about this header?
8a2fc586
AK
9130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9131 yes:no: )
1995c9ff
AK
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9136 ac_header_preproc=yes
ad6254c5 9137 ;;
8a2fc586 9138 no:yes:* )
1995c9ff
AK
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9151
ad6254c5
AK
9152 ;;
9153esac
1995c9ff
AK
9154{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9157 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9158else
8a2fc586 9159 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9160fi
1995c9ff
AK
9161ac_res=`eval echo '${'$as_ac_Header'}'`
9162 { echo "$as_me:$LINENO: result: $ac_res" >&5
9163echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9164
9165fi
1995c9ff 9166if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9167 cat >>confdefs.h <<_ACEOF
1995c9ff 9168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9169_ACEOF
72b2cb61
AK
9170
9171cat >>confdefs.h <<\_ACEOF
9172#define HAVE_GETOPTLONG 1
9173_ACEOF
9174
ad6254c5
AK
9175fi
9176
9177done
9178
9179
9180################################################################################
9181if test x$READLINE = xyes; then
9182
1995c9ff
AK
9183{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9184echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9185if test "${ac_cv_lib_readline_readline+set}" = set; then
1995c9ff 9186 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9187else
9188 ac_check_lib_save_LIBS=$LIBS
9189LIBS="-lreadline $LIBS"
9190cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
9196
7a197a62
AK
9197/* Override any GCC internal prototype to avoid an error.
9198 Use char because int might match the return type of a GCC
9199 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9200#ifdef __cplusplus
9201extern "C"
9202#endif
ad6254c5
AK
9203char readline ();
9204int
9205main ()
9206{
7a197a62 9207return readline ();
ad6254c5
AK
9208 ;
9209 return 0;
9210}
9211_ACEOF
9212rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9213if { (ac_try="$ac_link"
9214case "(($ac_try" in
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9217esac
1995c9ff 9218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9219 (eval "$ac_link") 2>conftest.er1
ad6254c5 9220 ac_status=$?
8a2fc586
AK
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
1995c9ff 9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest$ac_exeext &&
9229 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9230 ac_cv_lib_readline_readline=yes
9231else
1995c9ff 9232 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9233sed 's/^/| /' conftest.$ac_ext >&5
9234
7a197a62 9235 ac_cv_lib_readline_readline=no
ad6254c5 9236fi
7a197a62 9237
25fbec5b 9238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9239 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9240LIBS=$ac_check_lib_save_LIBS
9241fi
1995c9ff
AK
9242{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9243echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5
AK
9244if test $ac_cv_lib_readline_readline = yes; then
9245 cat >>confdefs.h <<_ACEOF
9246#define HAVE_LIBREADLINE 1
9247_ACEOF
9248
9249 LIBS="-lreadline $LIBS"
9250
9251else
1995c9ff 9252 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9253--enable-readline option (which is enabled by default). Either disable readline
9254support with --disable-readline or download and install readline from:
9255 ftp.gnu.org/gnu/readline
9256Note: if you are using precompiled packages you will also need the development
9257package as well (which may be called readline-devel or something similar).
9258" >&5
1995c9ff 9259echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9260--enable-readline option (which is enabled by default). Either disable readline
9261support with --disable-readline or download and install readline from:
9262 ftp.gnu.org/gnu/readline
9263Note: if you are using precompiled packages you will also need the development
9264package as well (which may be called readline-devel or something similar).
9265" >&2;}
9266 { (exit 1); exit 1; }; }
9267
9268fi
9269
1995c9ff
AK
9270 { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
9271echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; }
ad6254c5 9272if test "${ac_cv_func_rl_completion_matches+set}" = set; then
1995c9ff 9273 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9274else
9275 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
8a2fc586
AK
9281/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
9282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9283#define rl_completion_matches innocuous_rl_completion_matches
9284
ad6254c5
AK
9285/* System header to define __stub macros and hopefully few prototypes,
9286 which can conflict with char rl_completion_matches (); below.
9287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288 <limits.h> exists even on freestanding compilers. */
8a2fc586 9289
ad6254c5
AK
9290#ifdef __STDC__
9291# include <limits.h>
9292#else
9293# include <assert.h>
9294#endif
8a2fc586
AK
9295
9296#undef rl_completion_matches
9297
7a197a62
AK
9298/* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9301#ifdef __cplusplus
9302extern "C"
ad6254c5 9303#endif
ad6254c5
AK
9304char rl_completion_matches ();
9305/* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
7a197a62 9308#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 9309choke me
ad6254c5
AK
9310#endif
9311
9312int
9313main ()
9314{
7a197a62 9315return rl_completion_matches ();
ad6254c5
AK
9316 ;
9317 return 0;
9318}
9319_ACEOF
9320rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9321if { (ac_try="$ac_link"
9322case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325esac
1995c9ff 9326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9327 (eval "$ac_link") 2>conftest.er1
ad6254c5 9328 ac_status=$?
8a2fc586
AK
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
1995c9ff 9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest$ac_exeext &&
9337 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9338 ac_cv_func_rl_completion_matches=yes
9339else
1995c9ff 9340 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9341sed 's/^/| /' conftest.$ac_ext >&5
9342
7a197a62 9343 ac_cv_func_rl_completion_matches=no
ad6254c5 9344fi
7a197a62 9345
25fbec5b 9346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9347 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9348fi
1995c9ff
AK
9349{ echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
9350echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 9351if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 9352
72b2cb61
AK
9353cat >>confdefs.h <<\_ACEOF
9354#define HAVE_RL_COMPLETION_MATCHES 1
9355_ACEOF
9356
9357fi
ad6254c5
AK
9358
9359fi
9360
9361################################################################################
1995c9ff
AK
9362{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9363echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 9364# Check whether --enable-nls was given.
ad6254c5 9365if test "${enable_nls+set}" = set; then
7a197a62 9366 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9367else
9368 INTL=no
7a197a62
AK
9369fi
9370
1995c9ff
AK
9371{ echo "$as_me:$LINENO: result: $INTL" >&5
9372echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9373
9374if test x$INTL = xyes; then
9375 INTL_PACKAGE="lvm2"
9376 # Extract the first word of "msgfmt", so it can be a program name with args.
9377set dummy msgfmt; ac_word=$2
1995c9ff
AK
9378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 9380if test "${ac_cv_path_MSGFMT+set}" = set; then
1995c9ff 9381 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9382else
9383 case $MSGFMT in
9384 [\\/]* | ?:[\\/]*)
9385 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9386 ;;
9387 *)
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389for as_dir in $PATH
9390do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 9395 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 9396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
9397 break 2
9398 fi
9399done
9400done
7a197a62 9401IFS=$as_save_IFS
ad6254c5
AK
9402
9403 ;;
9404esac
9405fi
9406MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 9407if test -n "$MSGFMT"; then
1995c9ff
AK
9408 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9409echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 9410else
1995c9ff
AK
9411 { echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6; }
ad6254c5
AK
9413fi
9414
7a197a62 9415
ad6254c5 9416 if [ "x$MSGFMT" == x ];
1995c9ff 9417 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 9418 " >&5
1995c9ff 9419echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
9420 " >&2;}
9421 { (exit 1); exit 1; }; }
9422 fi;
9423
9424
7a197a62 9425# Check whether --with-localedir was given.
ad6254c5 9426if test "${with_localedir+set}" = set; then
7a197a62 9427 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
9428else
9429 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
9430fi
9431
ad6254c5
AK
9432fi
9433
9434################################################################################
9435
7a197a62 9436# Check whether --with-confdir was given.
ad6254c5 9437if test "${with_confdir+set}" = set; then
7a197a62 9438 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
9439else
9440 CONFDIR='/etc'
7a197a62
AK
9441fi
9442
ad6254c5
AK
9443
9444
7a197a62 9445# Check whether --with-staticdir was given.
ad6254c5 9446if test "${with_staticdir+set}" = set; then
7a197a62 9447 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
9448else
9449 STATICDIR='${exec_prefix}/sbin'
7a197a62 9450fi
ad6254c5 9451
33f732c5 9452
7a197a62
AK
9453
9454# Check whether --with-dmdir was given.
33f732c5 9455if test "${with_dmdir+set}" = set; then
7a197a62 9456 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
9457else
9458 DMDIR=
7a197a62
AK
9459fi
9460
33f732c5 9461
09339e2b 9462# Convert a relative dir name to absolute.
25fbec5b
AK
9463case $DMDIR in
9464 /*) ;;
9465 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
9466esac
9467
ad6254c5
AK
9468################################################################################
9469if test x$READLINE = xyes; then
9470
9471
9472for ac_header in readline/readline.h readline/history.h
9473do
1995c9ff 9474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9479 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9480fi
1995c9ff
AK
9481ac_res=`eval echo '${'$as_ac_Header'}'`
9482 { echo "$as_me:$LINENO: result: $ac_res" >&5
9483echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9484else
9485 # Is the header compilable?
1995c9ff
AK
9486{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9488cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9489/* confdefs.h. */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h. */
9494$ac_includes_default
9495#include <$ac_header>
9496_ACEOF
9497rm -f conftest.$ac_objext
7a197a62
AK
9498if { (ac_try="$ac_compile"
9499case "(($ac_try" in
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9502esac
1995c9ff 9503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9504 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9505 ac_status=$?
8a2fc586
AK
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
1995c9ff 9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9510 (exit $ac_status); } && {
9511 test -z "$ac_c_werror_flag" ||
9512 test ! -s conftest.err
9513 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9514 ac_header_compiler=yes
9515else
1995c9ff 9516 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9517sed 's/^/| /' conftest.$ac_ext >&5
9518
7a197a62 9519 ac_header_compiler=no
ad6254c5 9520fi
7a197a62
AK
9521
9522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
9523{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9524echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9525
9526# Is the header present?
1995c9ff
AK
9527{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9529cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535#include <$ac_header>
9536_ACEOF
7a197a62
AK
9537if { (ac_try="$ac_cpp conftest.$ac_ext"
9538case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541esac
1995c9ff 9542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
1995c9ff 9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9549 (exit $ac_status); } >/dev/null && {
9550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 }; then
ad6254c5
AK
9553 ac_header_preproc=yes
9554else
1995c9ff 9555 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9556sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 ac_header_preproc=no
9559fi
7a197a62 9560
ad6254c5 9561rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
9562{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9563echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9564
9565# So? What about this header?
8a2fc586
AK
9566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9567 yes:no: )
1995c9ff
AK
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9572 ac_header_preproc=yes
ad6254c5 9573 ;;
8a2fc586 9574 no:yes:* )
1995c9ff
AK
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9587
ad6254c5
AK
9588 ;;
9589esac
1995c9ff
AK
9590{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9593 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9594else
8a2fc586 9595 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9596fi
1995c9ff
AK
9597ac_res=`eval echo '${'$as_ac_Header'}'`
9598 { echo "$as_me:$LINENO: result: $ac_res" >&5
9599echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9600
9601fi
1995c9ff 9602if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9603 cat >>confdefs.h <<_ACEOF
1995c9ff 9604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9605_ACEOF
9606
9607else
1995c9ff
AK
9608 { { echo "$as_me:$LINENO: error: bailing out" >&5
9609echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
9610 { (exit 1); exit 1; }; }
9611fi
9612
9613done
9614
9615fi
9616
5c7fc7c4 9617if test x$CLVMD != xnone; then
ad6254c5
AK
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628for 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
9629do
1995c9ff 9630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9635 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9636fi
1995c9ff
AK
9637ac_res=`eval echo '${'$as_ac_Header'}'`
9638 { echo "$as_me:$LINENO: result: $ac_res" >&5
9639echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9640else
9641 # Is the header compilable?
1995c9ff
AK
9642{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9644cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
9650$ac_includes_default
9651#include <$ac_header>
9652_ACEOF
9653rm -f conftest.$ac_objext
7a197a62
AK
9654if { (ac_try="$ac_compile"
9655case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
1995c9ff 9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9660 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9661 ac_status=$?
8a2fc586
AK
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
1995c9ff 9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9670 ac_header_compiler=yes
9671else
1995c9ff 9672 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
7a197a62 9675 ac_header_compiler=no
ad6254c5 9676fi
7a197a62
AK
9677
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
9679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9680echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9681
9682# Is the header present?
1995c9ff
AK
9683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9685cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691#include <$ac_header>
9692_ACEOF
7a197a62
AK
9693if { (ac_try="$ac_cpp conftest.$ac_ext"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
1995c9ff 9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
1995c9ff 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9705 (exit $ac_status); } >/dev/null && {
9706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 }; then
ad6254c5
AK
9709 ac_header_preproc=yes
9710else
1995c9ff 9711 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9712sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_header_preproc=no
9715fi
7a197a62 9716
ad6254c5 9717rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
9718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9719echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9720
9721# So? What about this header?
8a2fc586
AK
9722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9723 yes:no: )
1995c9ff
AK
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9728 ac_header_preproc=yes
ad6254c5 9729 ;;
8a2fc586 9730 no:yes:* )
1995c9ff
AK
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9743
ad6254c5
AK
9744 ;;
9745esac
1995c9ff
AK
9746{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9749 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9750else
8a2fc586 9751 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9752fi
1995c9ff
AK
9753ac_res=`eval echo '${'$as_ac_Header'}'`
9754 { echo "$as_me:$LINENO: result: $ac_res" >&5
9755echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9756
9757fi
1995c9ff 9758if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9759 cat >>confdefs.h <<_ACEOF
1995c9ff 9760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9761_ACEOF
9762
9763else
1995c9ff
AK
9764 { { echo "$as_me:$LINENO: error: bailing out" >&5
9765echo "$as_me: error: bailing out" >&2;}
ad6254c5 9766 { (exit 1); exit 1; }; }
795ca3e5
AK
9767fi
9768
ad6254c5
AK
9769done
9770
9771
795ca3e5 9772
8106cdd5 9773
ad6254c5
AK
9774
9775
9776for ac_func in dup2 getmntent memmove select socket
9777do
1995c9ff
AK
9778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9779{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 9781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9782 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9783else
ad6254c5 9784 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9785/* confdefs.h. */
9786_ACEOF
9787cat confdefs.h >>conftest.$ac_ext
9788cat >>conftest.$ac_ext <<_ACEOF
9789/* end confdefs.h. */
8a2fc586
AK
9790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9792#define $ac_func innocuous_$ac_func
9793
795ca3e5 9794/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9795 which can conflict with char $ac_func (); below.
9796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9797 <limits.h> exists even on freestanding compilers. */
8a2fc586 9798
ad6254c5
AK
9799#ifdef __STDC__
9800# include <limits.h>
9801#else
9802# include <assert.h>
9803#endif
8a2fc586
AK
9804
9805#undef $ac_func
9806
7a197a62
AK
9807/* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9810#ifdef __cplusplus
9811extern "C"
ad6254c5 9812#endif
ad6254c5 9813char $ac_func ();
795ca3e5
AK
9814/* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
7a197a62 9817#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 9818choke me
795ca3e5
AK
9819#endif
9820
ad6254c5
AK
9821int
9822main ()
9823{
7a197a62 9824return $ac_func ();
ad6254c5
AK
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9830if { (ac_try="$ac_link"
9831case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
1995c9ff 9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9836 (eval "$ac_link") 2>conftest.er1
ad6254c5 9837 ac_status=$?
8a2fc586
AK
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
1995c9ff 9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9842 (exit $ac_status); } && {
9843 test -z "$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9845 } && test -s conftest$ac_exeext &&
9846 $as_test_x conftest$ac_exeext; then
ad6254c5 9847 eval "$as_ac_var=yes"
795ca3e5 9848else
1995c9ff 9849 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
7a197a62 9852 eval "$as_ac_var=no"
80992638 9853fi
7a197a62 9854
25fbec5b 9855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9856 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9857fi
1995c9ff
AK
9858ac_res=`eval echo '${'$as_ac_var'}'`
9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9860echo "${ECHO_T}$ac_res" >&6; }
9861if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 9862 cat >>confdefs.h <<_ACEOF
1995c9ff 9863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9864_ACEOF
80992638
AK
9865
9866else
1995c9ff
AK
9867 { { echo "$as_me:$LINENO: error: bailing out" >&5
9868echo "$as_me: error: bailing out" >&2;}
ad6254c5 9869 { (exit 1); exit 1; }; }
8106cdd5 9870fi
ad6254c5 9871done
795ca3e5 9872
25fbec5b
AK
9873 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9874# -lseq on Dynix/PTX, -lgen on Unixware.
9875{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
9876echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
9877if test "${ac_cv_search_getmntent+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880 ac_func_search_save_LIBS=$LIBS
9881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
80992638 9887
7a197a62
AK
9888/* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
ad6254c5 9890 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9891#ifdef __cplusplus
9892extern "C"
9893#endif
25fbec5b 9894char getmntent ();
ad6254c5
AK
9895int
9896main ()
9897{
25fbec5b 9898return getmntent ();
ad6254c5
AK
9899 ;
9900 return 0;
9901}
9902_ACEOF
25fbec5b
AK
9903for ac_lib in '' sun seq gen; do
9904 if test -z "$ac_lib"; then
9905 ac_res="none required"
9906 else
9907 ac_res=-l$ac_lib
9908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9909 fi
9910 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9911if { (ac_try="$ac_link"
9912case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
1995c9ff 9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9917 (eval "$ac_link") 2>conftest.er1
ad6254c5 9918 ac_status=$?
8a2fc586
AK
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
1995c9ff 9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9923 (exit $ac_status); } && {
9924 test -z "$ac_c_werror_flag" ||
9925 test ! -s conftest.err
9926 } && test -s conftest$ac_exeext &&
9927 $as_test_x conftest$ac_exeext; then
9928 ac_cv_search_getmntent=$ac_res
80992638 9929else
1995c9ff 9930 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9931sed 's/^/| /' conftest.$ac_ext >&5
9932
25fbec5b 9933
795ca3e5
AK
9934fi
9935
25fbec5b
AK
9936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937 conftest$ac_exeext
9938 if test "${ac_cv_search_getmntent+set}" = set; then
9939 break
795ca3e5 9940fi
25fbec5b
AK
9941done
9942if test "${ac_cv_search_getmntent+set}" = set; then
9943 :
9944else
9945 ac_cv_search_getmntent=no
9946fi
9947rm conftest.$ac_ext
9948LIBS=$ac_func_search_save_LIBS
9949fi
9950{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
9951echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
9952ac_res=$ac_cv_search_getmntent
9953if test "$ac_res" != no; then
9954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9955 ac_cv_func_getmntent=yes
9956
9957cat >>confdefs.h <<\_ACEOF
9958#define HAVE_GETMNTENT
ad6254c5 9959_ACEOF
795ca3e5 9960
25fbec5b
AK
9961else
9962 ac_cv_func_getmntent=no
795ca3e5 9963fi
795ca3e5
AK
9964
9965
ad6254c5
AK
9966# AC_FUNC_REALLOC
9967
9968
9969for ac_header in sys/select.h sys/socket.h
9970do
1995c9ff 9971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9976 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9977fi
1995c9ff
AK
9978ac_res=`eval echo '${'$as_ac_Header'}'`
9979 { echo "$as_me:$LINENO: result: $ac_res" >&5
9980echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 9981else
ad6254c5 9982 # Is the header compilable?
1995c9ff
AK
9983{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9985cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h. */
9991$ac_includes_default
9992#include <$ac_header>
9993_ACEOF
9994rm -f conftest.$ac_objext
7a197a62
AK
9995if { (ac_try="$ac_compile"
9996case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999esac
1995c9ff 10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10001 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10002 ac_status=$?
8a2fc586
AK
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
1995c9ff 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest.$ac_objext; then
ad6254c5 10011 ac_header_compiler=yes
80992638 10012else
1995c9ff 10013 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
7a197a62 10016 ac_header_compiler=no
ad6254c5 10017fi
7a197a62
AK
10018
10019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10022
10023# Is the header present?
1995c9ff
AK
10024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10026cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10027/* confdefs.h. */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h. */
10032#include <$ac_header>
10033_ACEOF
7a197a62
AK
10034if { (ac_try="$ac_cpp conftest.$ac_ext"
10035case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
1995c9ff 10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
1995c9ff 10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10046 (exit $ac_status); } >/dev/null && {
10047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 }; then
ad6254c5
AK
10050 ac_header_preproc=yes
10051else
1995c9ff 10052 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
10055 ac_header_preproc=no
10056fi
7a197a62 10057
ad6254c5 10058rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10059{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10061
10062# So? What about this header?
8a2fc586
AK
10063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10064 yes:no: )
1995c9ff
AK
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10066echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10068echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10069 ac_header_preproc=yes
ad6254c5 10070 ;;
8a2fc586 10071 no:yes:* )
1995c9ff
AK
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10075echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10077echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10079echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10081echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10083echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10084
ad6254c5
AK
10085 ;;
10086esac
1995c9ff
AK
10087{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10090 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10091else
8a2fc586 10092 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10093fi
1995c9ff
AK
10094ac_res=`eval echo '${'$as_ac_Header'}'`
10095 { echo "$as_me:$LINENO: result: $ac_res" >&5
10096echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10097
795ca3e5 10098fi
1995c9ff 10099if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10100 cat >>confdefs.h <<_ACEOF
1995c9ff 10101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10102_ACEOF
10103
795ca3e5
AK
10104fi
10105
ad6254c5
AK
10106done
10107
1995c9ff
AK
10108{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10109echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10110if test "${ac_cv_func_select_args+set}" = set; then
1995c9ff 10111 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10112else
ad6254c5 10113 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10114 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10115 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10116 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10117/* confdefs.h. */
10118_ACEOF
10119cat confdefs.h >>conftest.$ac_ext
10120cat >>conftest.$ac_ext <<_ACEOF
10121/* end confdefs.h. */
10122$ac_includes_default
25fbec5b 10123#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10124# include <sys/select.h>
10125#endif
25fbec5b 10126#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10127# include <sys/socket.h>
10128#endif
10129
10130int
10131main ()
10132{
10133extern int select ($ac_arg1,
8a2fc586
AK
10134 $ac_arg234, $ac_arg234, $ac_arg234,
10135 $ac_arg5);
ad6254c5
AK
10136 ;
10137 return 0;
10138}
10139_ACEOF
10140rm -f conftest.$ac_objext
7a197a62
AK
10141if { (ac_try="$ac_compile"
10142case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145esac
1995c9ff 10146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10147 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10148 ac_status=$?
8a2fc586
AK
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
1995c9ff 10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10157 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10158else
1995c9ff 10159 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
7a197a62 10162
ad6254c5 10163fi
7a197a62
AK
10164
10165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10166 done
10167 done
10168done
10169# Provide a safe default value.
10170: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10171
26e7f2e0 10172fi
1995c9ff
AK
10173{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10174echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10175ac_save_IFS=$IFS; IFS=','
10176set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10177IFS=$ac_save_IFS
10178shift
10179
10180cat >>confdefs.h <<_ACEOF
10181#define SELECT_TYPE_ARG1 $1
10182_ACEOF
10183
10184
10185cat >>confdefs.h <<_ACEOF
10186#define SELECT_TYPE_ARG234 ($2)
10187_ACEOF
10188
10189
10190cat >>confdefs.h <<_ACEOF
10191#define SELECT_TYPE_ARG5 ($3)
10192_ACEOF
10193
80992638 10194rm -f conftest*
80992638 10195
8106cdd5 10196fi
ad6254c5 10197
ad6254c5
AK
10198if test x$CLUSTER != xnone; then
10199
10200
10201for ac_header in sys/socket.h sys/un.h
b896caa1 10202do
1995c9ff 10203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10208 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10209fi
1995c9ff
AK
10210ac_res=`eval echo '${'$as_ac_Header'}'`
10211 { echo "$as_me:$LINENO: result: $ac_res" >&5
10212echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10213else
10214 # Is the header compilable?
1995c9ff
AK
10215{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10217cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10218/* confdefs.h. */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h. */
10223$ac_includes_default
10224#include <$ac_header>
10225_ACEOF
10226rm -f conftest.$ac_objext
7a197a62
AK
10227if { (ac_try="$ac_compile"
10228case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231esac
1995c9ff 10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10233 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10234 ac_status=$?
8a2fc586
AK
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
1995c9ff 10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10243 ac_header_compiler=yes
10244else
1995c9ff 10245 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10246sed 's/^/| /' conftest.$ac_ext >&5
10247
7a197a62 10248 ac_header_compiler=no
ad6254c5 10249fi
7a197a62
AK
10250
10251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10252{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10253echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10254
10255# Is the header present?
1995c9ff
AK
10256{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10258cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10259/* confdefs.h. */
10260_ACEOF
10261cat confdefs.h >>conftest.$ac_ext
10262cat >>conftest.$ac_ext <<_ACEOF
10263/* end confdefs.h. */
10264#include <$ac_header>
10265_ACEOF
7a197a62
AK
10266if { (ac_try="$ac_cpp conftest.$ac_ext"
10267case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270esac
1995c9ff 10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
1995c9ff 10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10278 (exit $ac_status); } >/dev/null && {
10279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 }; then
ad6254c5
AK
10282 ac_header_preproc=yes
10283else
1995c9ff 10284 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10285sed 's/^/| /' conftest.$ac_ext >&5
10286
10287 ac_header_preproc=no
10288fi
7a197a62 10289
ad6254c5 10290rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10292echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10293
10294# So? What about this header?
8a2fc586
AK
10295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10296 yes:no: )
1995c9ff
AK
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10301 ac_header_preproc=yes
ad6254c5 10302 ;;
8a2fc586 10303 no:yes:* )
1995c9ff
AK
10304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10316
ad6254c5
AK
10317 ;;
10318esac
1995c9ff
AK
10319{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10322 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10323else
8a2fc586 10324 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10325fi
1995c9ff
AK
10326ac_res=`eval echo '${'$as_ac_Header'}'`
10327 { echo "$as_me:$LINENO: result: $ac_res" >&5
10328echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10329
10330fi
1995c9ff 10331if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10332 cat >>confdefs.h <<_ACEOF
1995c9ff 10333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10334_ACEOF
10335
80992638 10336else
1995c9ff
AK
10337 { { echo "$as_me:$LINENO: error: bailing out" >&5
10338echo "$as_me: error: bailing out" >&2;}
ad6254c5 10339 { (exit 1); exit 1; }; }
b896caa1 10340fi
ad6254c5 10341
b896caa1
AK
10342done
10343
10344
ad6254c5
AK
10345for ac_func in socket
10346do
1995c9ff
AK
10347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10348{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10350if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10351 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10352else
ad6254c5 10353 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h. */
8a2fc586
AK
10359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10361#define $ac_func innocuous_$ac_func
10362
ad6254c5
AK
10363/* System header to define __stub macros and hopefully few prototypes,
10364 which can conflict with char $ac_func (); below.
10365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10366 <limits.h> exists even on freestanding compilers. */
8a2fc586 10367
ad6254c5
AK
10368#ifdef __STDC__
10369# include <limits.h>
10370#else
10371# include <assert.h>
10372#endif
8a2fc586
AK
10373
10374#undef $ac_func
10375
7a197a62
AK
10376/* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10379#ifdef __cplusplus
10380extern "C"
ad6254c5 10381#endif
ad6254c5
AK
10382char $ac_func ();
10383/* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
7a197a62 10386#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10387choke me
ad6254c5
AK
10388#endif
10389
10390int
10391main ()
10392{
7a197a62 10393return $ac_func ();
ad6254c5
AK
10394 ;
10395 return 0;
10396}
10397_ACEOF
10398rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10399if { (ac_try="$ac_link"
10400case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
1995c9ff 10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10405 (eval "$ac_link") 2>conftest.er1
ad6254c5 10406 ac_status=$?
8a2fc586
AK
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
1995c9ff 10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest$ac_exeext &&
10415 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
10416 eval "$as_ac_var=yes"
10417else
1995c9ff 10418 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10419sed 's/^/| /' conftest.$ac_ext >&5
10420
7a197a62 10421 eval "$as_ac_var=no"
ad6254c5 10422fi
7a197a62 10423
25fbec5b 10424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10425 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10426fi
1995c9ff
AK
10427ac_res=`eval echo '${'$as_ac_var'}'`
10428 { echo "$as_me:$LINENO: result: $ac_res" >&5
10429echo "${ECHO_T}$ac_res" >&6; }
10430if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10431 cat >>confdefs.h <<_ACEOF
1995c9ff 10432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10433_ACEOF
10434
10435else
1995c9ff
AK
10436 { { echo "$as_me:$LINENO: error: bailing out" >&5
10437echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10438 { (exit 1); exit 1; }; }
10439fi
10440done
10441
10442fi
10443
10444if test x$HAVE_LIBDL = xyes; then
10445
10446for ac_header in dlfcn.h
10447do
1995c9ff 10448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10453 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10454fi
1995c9ff
AK
10455ac_res=`eval echo '${'$as_ac_Header'}'`
10456 { echo "$as_me:$LINENO: result: $ac_res" >&5
10457echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10458else
10459 # Is the header compilable?
1995c9ff
AK
10460{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10462cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
10468$ac_includes_default
10469#include <$ac_header>
10470_ACEOF
10471rm -f conftest.$ac_objext
7a197a62
AK
10472if { (ac_try="$ac_compile"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
1995c9ff 10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10478 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10479 ac_status=$?
8a2fc586
AK
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
1995c9ff 10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10488 ac_header_compiler=yes
10489else
1995c9ff 10490 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
7a197a62 10493 ac_header_compiler=no
ad6254c5 10494fi
7a197a62
AK
10495
10496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10497{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10498echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10499
10500# Is the header present?
1995c9ff
AK
10501{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10503cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10504/* confdefs.h. */
10505_ACEOF
10506cat confdefs.h >>conftest.$ac_ext
10507cat >>conftest.$ac_ext <<_ACEOF
10508/* end confdefs.h. */
10509#include <$ac_header>
10510_ACEOF
7a197a62
AK
10511if { (ac_try="$ac_cpp conftest.$ac_ext"
10512case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
1995c9ff 10516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
1995c9ff 10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10523 (exit $ac_status); } >/dev/null && {
10524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 }; then
ad6254c5
AK
10527 ac_header_preproc=yes
10528else
1995c9ff 10529 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10530sed 's/^/| /' conftest.$ac_ext >&5
10531
10532 ac_header_preproc=no
10533fi
7a197a62 10534
ad6254c5 10535rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10538
10539# So? What about this header?
8a2fc586
AK
10540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541 yes:no: )
1995c9ff
AK
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10546 ac_header_preproc=yes
ad6254c5 10547 ;;
8a2fc586 10548 no:yes:* )
1995c9ff
AK
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10561
ad6254c5
AK
10562 ;;
10563esac
1995c9ff
AK
10564{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10567 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10568else
8a2fc586 10569 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10570fi
1995c9ff
AK
10571ac_res=`eval echo '${'$as_ac_Header'}'`
10572 { echo "$as_me:$LINENO: result: $ac_res" >&5
10573echo "${ECHO_T}$ac_res" >&6; }
80992638 10574
8106cdd5 10575fi
1995c9ff 10576if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10577 cat >>confdefs.h <<_ACEOF
1995c9ff 10578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10579_ACEOF
795ca3e5
AK
10580
10581else
1995c9ff
AK
10582 { { echo "$as_me:$LINENO: error: bailing out" >&5
10583echo "$as_me: error: bailing out" >&2;}
ad6254c5 10584 { (exit 1); exit 1; }; }
795ca3e5
AK
10585fi
10586
ad6254c5 10587done
80992638 10588
ad6254c5 10589fi
80992638 10590
ad6254c5 10591if test x$INTL = xyes; then
83912faa 10592
ad6254c5
AK
10593for ac_header in libintl.h
10594do
1995c9ff 10595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10600 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10601fi
1995c9ff
AK
10602ac_res=`eval echo '${'$as_ac_Header'}'`
10603 { echo "$as_me:$LINENO: result: $ac_res" >&5
10604echo "${ECHO_T}$ac_res" >&6; }
83912faa 10605else
ad6254c5 10606 # Is the header compilable?
1995c9ff
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
1995c9ff 10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 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
1995c9ff 10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
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
1995c9ff 10637 echo "$as_me: failed program was:" >&5
ad6254c5
AK
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
1995c9ff
AK
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?
1995c9ff
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
1995c9ff 10663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 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
1995c9ff 10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
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
1995c9ff 10676 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10677sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_header_preproc=no
10680fi
7a197a62 10681
ad6254c5 10682rm -f conftest.err conftest.$ac_ext
1995c9ff
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: )
1995c9ff
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;}
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;}
8a2fc586 10693 ac_header_preproc=yes
ad6254c5 10694 ;;
8a2fc586 10695 no:yes:* )
1995c9ff
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;}
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;}
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;}
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
1995c9ff
AK
10711{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10714 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10715else
8a2fc586 10716 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10717fi
1995c9ff
AK
10718ac_res=`eval echo '${'$as_ac_Header'}'`
10719 { echo "$as_me:$LINENO: result: $ac_res" >&5
10720echo "${ECHO_T}$ac_res" >&6; }
83912faa 10721
69792976 10722fi
1995c9ff 10723if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10724 cat >>confdefs.h <<_ACEOF
1995c9ff 10725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10726_ACEOF
69792976 10727
69792976 10728else
1995c9ff
AK
10729 { { echo "$as_me:$LINENO: error: bailing out" >&5
10730echo "$as_me: error: bailing out" >&2;}
ad6254c5 10731 { (exit 1); exit 1; }; }
80992638
AK
10732fi
10733
ad6254c5 10734done
69792976 10735
ad6254c5
AK
10736fi
10737
ad6254c5
AK
10738
10739for ac_header in libdevmapper.h
10740do
1995c9ff 10741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10746 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10747fi
1995c9ff
AK
10748ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750echo "${ECHO_T}$ac_res" >&6; }
69792976 10751else
ad6254c5 10752 # Is the header compilable?
1995c9ff
AK
10753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10755cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761$ac_includes_default
10762#include <$ac_header>
10763_ACEOF
10764rm -f conftest.$ac_objext
7a197a62
AK
10765if { (ac_try="$ac_compile"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
1995c9ff 10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10771 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10772 ac_status=$?
8a2fc586
AK
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
1995c9ff 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10781 ac_header_compiler=yes
10782else
1995c9ff 10783 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
7a197a62 10786 ac_header_compiler=no
ad6254c5 10787fi
7a197a62
AK
10788
10789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10790{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10791echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10792
10793# Is the header present?
1995c9ff
AK
10794{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10796cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10797/* confdefs.h. */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h. */
10802#include <$ac_header>
10803_ACEOF
7a197a62
AK
10804if { (ac_try="$ac_cpp conftest.$ac_ext"
10805case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808esac
1995c9ff 10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
1995c9ff 10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10816 (exit $ac_status); } >/dev/null && {
10817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10818 test ! -s conftest.err
10819 }; then
ad6254c5
AK
10820 ac_header_preproc=yes
10821else
1995c9ff 10822 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_header_preproc=no
10826fi
7a197a62 10827
ad6254c5 10828rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10829{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10830echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10831
10832# So? What about this header?
8a2fc586
AK
10833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10834 yes:no: )
1995c9ff
AK
10835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10839 ac_header_preproc=yes
ad6254c5 10840 ;;
8a2fc586 10841 no:yes:* )
1995c9ff
AK
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10854
ad6254c5
AK
10855 ;;
10856esac
1995c9ff
AK
10857{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10860 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 10861else
8a2fc586 10862 eval "$as_ac_Header=\$ac_header_preproc"
69792976 10863fi
1995c9ff
AK
10864ac_res=`eval echo '${'$as_ac_Header'}'`
10865 { echo "$as_me:$LINENO: result: $ac_res" >&5
10866echo "${ECHO_T}$ac_res" >&6; }
69792976 10867
ad6254c5 10868fi
1995c9ff 10869if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10870 cat >>confdefs.h <<_ACEOF
1995c9ff 10871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10872_ACEOF
69792976 10873
69792976 10874else
1995c9ff
AK
10875 { { echo "$as_me:$LINENO: error: bailing out" >&5
10876echo "$as_me: error: bailing out" >&2;}
ad6254c5 10877 { (exit 1); exit 1; }; }
83912faa
AK
10878fi
10879
ad6254c5
AK
10880done
10881
4a7f3eb2 10882
ad6254c5
AK
10883if test x$HAVE_SELINUX = xyes; then
10884
10885for ac_header in selinux/selinux.h
10886do
1995c9ff 10887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10892 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10893fi
1995c9ff
AK
10894ac_res=`eval echo '${'$as_ac_Header'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 10897else
ad6254c5 10898 # Is the header compilable?
1995c9ff
AK
10899{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10901cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10902/* confdefs.h. */
10903_ACEOF
10904cat confdefs.h >>conftest.$ac_ext
10905cat >>conftest.$ac_ext <<_ACEOF
10906/* end confdefs.h. */
10907$ac_includes_default
10908#include <$ac_header>
10909_ACEOF
10910rm -f conftest.$ac_objext
7a197a62
AK
10911if { (ac_try="$ac_compile"
10912case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
1995c9ff 10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10917 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10918 ac_status=$?
8a2fc586
AK
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
1995c9ff 10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10927 ac_header_compiler=yes
10928else
1995c9ff 10929 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10930sed 's/^/| /' conftest.$ac_ext >&5
10931
7a197a62 10932 ac_header_compiler=no
ad6254c5 10933fi
7a197a62
AK
10934
10935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10937echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10938
10939# Is the header present?
1995c9ff
AK
10940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10942cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h. */
10948#include <$ac_header>
10949_ACEOF
7a197a62
AK
10950if { (ac_try="$ac_cpp conftest.$ac_ext"
10951case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
1995c9ff 10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
1995c9ff 10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10962 (exit $ac_status); } >/dev/null && {
10963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 }; then
ad6254c5
AK
10966 ac_header_preproc=yes
10967else
1995c9ff 10968 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_header_preproc=no
10972fi
7a197a62 10973
ad6254c5 10974rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10975{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10976echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10977
10978# So? What about this header?
8a2fc586
AK
10979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 yes:no: )
1995c9ff
AK
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10985 ac_header_preproc=yes
ad6254c5 10986 ;;
8a2fc586 10987 no:yes:* )
1995c9ff
AK
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10995echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11000
ad6254c5
AK
11001 ;;
11002esac
1995c9ff
AK
11003{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11006 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11007else
8a2fc586 11008 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11009fi
1995c9ff
AK
11010ac_res=`eval echo '${'$as_ac_Header'}'`
11011 { echo "$as_me:$LINENO: result: $ac_res" >&5
11012echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11013
ad6254c5 11014fi
1995c9ff 11015if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11016 cat >>confdefs.h <<_ACEOF
1995c9ff 11017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11018_ACEOF
0a62c911 11019
0a62c911 11020else
1995c9ff
AK
11021 { { echo "$as_me:$LINENO: error: bailing out" >&5
11022echo "$as_me: error: bailing out" >&2;}
ad6254c5 11023 { (exit 1); exit 1; }; }
80992638
AK
11024fi
11025
ad6254c5 11026done
0a62c911 11027
ad6254c5 11028fi
0a62c911 11029
a653923f
AK
11030################################################################################
11031# Extract the first word of "modprobe", so it can be a program name with args.
11032set dummy modprobe; ac_word=$2
1995c9ff
AK
11033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11035if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
1995c9ff 11036 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11037else
11038 case $MODPROBE_CMD in
11039 [\\/]* | ?:[\\/]*)
11040 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11041 ;;
11042 *)
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044for as_dir in $PATH
11045do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11050 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 11051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11052 break 2
11053 fi
11054done
11055done
7a197a62 11056IFS=$as_save_IFS
72b2cb61
AK
11057
11058 ;;
11059esac
11060fi
11061MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11062if test -n "$MODPROBE_CMD"; then
1995c9ff
AK
11063 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11064echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11065else
1995c9ff
AK
11066 { echo "$as_me:$LINENO: result: no" >&5
11067echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11068fi
11069
a653923f 11070
7a197a62 11071
a653923f 11072if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11073
11074cat >>confdefs.h <<_ACEOF
11075#define MODPROBE_CMD "$MODPROBE_CMD"
11076_ACEOF
11077
a653923f
AK
11078fi
11079
80992638 11080################################################################################
fae0c576
AK
11081if test "-f VERSION"; then
11082 LVM_VERSION="\"`cat VERSION`\""
11083else
11084 LVM_VERSION="Unknown"
11085fi
11086
80992638 11087################################################################################
fae0c576 11088
83912faa 11089
795ca3e5
AK
11090
11091
11092
11093
11094
11095
5a52dca9 11096
8ef2b021 11097
199e490e 11098
69792976
AK
11099
11100
11101
11102
8106cdd5
AK
11103
11104
11105
11106
11107
d68a82ec 11108
036f273a 11109
7d1552c9 11110
8106cdd5 11111
0a62c911 11112
8106cdd5 11113
4a7f3eb2 11114
4922197a
AK
11115
11116
d8ac0fbc 11117
1a9ea74d 11118
8a2fc586
AK
11119
11120
11121
8ce0cbda 11122
8b1a3214 11123
33f732c5 11124
66e941e8 11125
d3c8211f
AK
11126
11127
80992638 11128################################################################################
67961c7c 11129ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h"
7a197a62 11130
ad6254c5 11131cat >confcache <<\_ACEOF
795ca3e5
AK
11132# This file is a shell script that caches the results of configure
11133# tests run on this system so they can be shared between configure
ad6254c5
AK
11134# scripts and configure runs, see configure's option --config-cache.
11135# It is not useful on other systems. If it contains results you don't
11136# want to keep, you may remove or edit it.
795ca3e5 11137#
ad6254c5
AK
11138# config.status only pays attention to the cache file if you give it
11139# the --recheck option to rerun configure.
795ca3e5 11140#
ad6254c5
AK
11141# `ac_cv_env_foo' variables (set or unset) will be overridden when
11142# loading this file, other *unset* `ac_cv_foo' will be assigned the
11143# following values.
11144
11145_ACEOF
11146
795ca3e5
AK
11147# The following way of writing the cache mishandles newlines in values,
11148# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11149# So, we kill variables containing newlines.
795ca3e5
AK
11150# Ultrix sh set writes to stderr and can't be redirected directly,
11151# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11152(
11153 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11154 eval ac_val=\$$ac_var
11155 case $ac_val in #(
11156 *${as_nl}*)
11157 case $ac_var in #(
1995c9ff
AK
11158 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11159echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11160 esac
11161 case $ac_var in #(
11162 _ | IFS | as_nl) ;; #(
11163 *) $as_unset $ac_var ;;
11164 esac ;;
11165 esac
11166 done
11167
ad6254c5 11168 (set) 2>&1 |
7a197a62
AK
11169 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11170 *${as_nl}ac_space=\ *)
ad6254c5
AK
11171 # `set' does not quote correctly, so add quotes (double-quote
11172 # substitution turns \\\\ into \\, and sed turns \\ into \).
11173 sed -n \
8a2fc586
AK
11174 "s/'/'\\\\''/g;
11175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11176 ;; #(
ad6254c5
AK
11177 *)
11178 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11180 ;;
7a197a62
AK
11181 esac |
11182 sort
11183) |
ad6254c5 11184 sed '
7a197a62 11185 /^ac_cv_env_/b end
ad6254c5 11186 t clear
7a197a62 11187 :clear
ad6254c5
AK
11188 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11189 t end
7a197a62
AK
11190 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11191 :end' >>confcache
11192if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11193 if test -w "$cache_file"; then
11194 test "x$cache_file" != "x/dev/null" &&
1995c9ff
AK
11195 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11196echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11197 cat confcache >$cache_file
795ca3e5 11198 else
1995c9ff
AK
11199 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11200echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11201 fi
11202fi
11203rm -f confcache
11204
795ca3e5
AK
11205test "x$prefix" = xNONE && prefix=$ac_default_prefix
11206# Let make expand exec_prefix.
11207test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11208
72b2cb61 11209DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11210
11211ac_libobjs=
11212ac_ltlibobjs=
11213for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11214 # 1. Remove the extension, and $U if already installed.
7a197a62 11215 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1995c9ff 11216 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11217 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11218 # will be set to the directory where LIBOBJS objects are built.
11219 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11220 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11221done
11222LIBOBJS=$ac_libobjs
80992638 11223
ad6254c5
AK
11224LTLIBOBJS=$ac_ltlibobjs
11225
11226
11227
11228: ${CONFIG_STATUS=./config.status}
11229ac_clean_files_save=$ac_clean_files
11230ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1995c9ff
AK
11231{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11232echo "$as_me: creating $CONFIG_STATUS" >&6;}
ad6254c5
AK
11233cat >$CONFIG_STATUS <<_ACEOF
11234#! $SHELL
11235# Generated by $as_me.
795ca3e5 11236# Run this file to recreate the current configuration.
795ca3e5 11237# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11238# configure, is in config.log if it exists.
11239
11240debug=false
11241ac_cs_recheck=false
11242ac_cs_silent=false
11243SHELL=\${CONFIG_SHELL-$SHELL}
11244_ACEOF
11245
11246cat >>$CONFIG_STATUS <<\_ACEOF
11247## --------------------- ##
11248## M4sh Initialization. ##
11249## --------------------- ##
11250
25fbec5b
AK
11251# Be more Bourne compatible
11252DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11253if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11254 emulate sh
11255 NULLCMD=:
11256 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11257 # is contrary to our usage. Disable this feature.
11258 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11259 setopt NO_GLOB_SUBST
11260else
25fbec5b
AK
11261 case `(set -o) 2>/dev/null` in
11262 *posix*) set -o posix ;;
11263esac
11264
7a197a62 11265fi
25fbec5b
AK
11266
11267
7a197a62
AK
11268
11269
11270# PATH needs CR
11271# Avoid depending upon Character Ranges.
11272as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11274as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11275as_cr_digits='0123456789'
11276as_cr_alnum=$as_cr_Letters$as_cr_digits
11277
11278# The user is always right.
11279if test "${PATH_SEPARATOR+set}" != set; then
11280 echo "#! /bin/sh" >conf$$.sh
11281 echo "exit 0" >>conf$$.sh
11282 chmod +x conf$$.sh
11283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11284 PATH_SEPARATOR=';'
11285 else
11286 PATH_SEPARATOR=:
11287 fi
11288 rm -f conf$$.sh
ad6254c5
AK
11289fi
11290
11291# Support unset when possible.
8a2fc586 11292if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11293 as_unset=unset
11294else
11295 as_unset=false
11296fi
8106cdd5 11297
ad6254c5 11298
7a197a62
AK
11299# IFS
11300# We need space, tab and new line, in precisely that order. Quoting is
11301# there to prevent editors from complaining about space-tab.
11302# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11303# splitting by setting IFS to empty value.)
1995c9ff
AK
11304as_nl='
11305'
7a197a62
AK
11306IFS=" "" $as_nl"
11307
11308# Find who we are. Look in the path if we contain no directory separator.
11309case $0 in
11310 *[\\/]* ) as_myself=$0 ;;
11311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11317done
11318IFS=$as_save_IFS
11319
11320 ;;
11321esac
11322# We did not find ourselves, most probably we were run as `sh COMMAND'
11323# in which case we are not to be found in the path.
11324if test "x$as_myself" = x; then
11325 as_myself=$0
11326fi
11327if test ! -f "$as_myself"; then
1995c9ff 11328 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
11329 { (exit 1); exit 1; }
11330fi
11331
ad6254c5 11332# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11333for as_var in ENV MAIL MAILPATH
11334do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11335done
ad6254c5
AK
11336PS1='$ '
11337PS2='> '
11338PS4='+ '
11339
11340# NLS nuisances.
11341for as_var in \
11342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11344 LC_TELEPHONE LC_TIME
8106cdd5 11345do
8a2fc586 11346 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11347 eval $as_var=C; export $as_var
11348 else
7a197a62 11349 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5 11350 fi
8106cdd5
AK
11351done
11352
ad6254c5 11353# Required to use basename.
7a197a62
AK
11354if expr a : '\(a\)' >/dev/null 2>&1 &&
11355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11356 as_expr=expr
11357else
11358 as_expr=false
11359fi
8106cdd5 11360
7a197a62 11361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11362 as_basename=basename
11363else
11364 as_basename=false
11365fi
11366
11367
11368# Name of the executable.
7a197a62 11369as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11370$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11371 X"$0" : 'X\(//\)$' \| \
7a197a62 11372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 11373echo X/"$0" |
7a197a62
AK
11374 sed '/^.*\/\([^/][^/]*\)\/*$/{
11375 s//\1/
11376 q
11377 }
11378 /^X\/\(\/\/\)$/{
11379 s//\1/
11380 q
11381 }
11382 /^X\/\(\/\).*/{
11383 s//\1/
11384 q
11385 }
11386 s/.*/./; q'`
ad6254c5 11387
7a197a62
AK
11388# CDPATH.
11389$as_unset CDPATH
ad6254c5
AK
11390
11391
ad6254c5 11392
ad6254c5
AK
11393 as_lineno_1=$LINENO
11394 as_lineno_2=$LINENO
ad6254c5 11395 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11396 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11397
ad6254c5
AK
11398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11399 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11400 # line-number line after each line using $LINENO; the second 'sed'
11401 # does the real work. The second script uses 'N' to pair each
11402 # line-number line with the line containing $LINENO, and appends
11403 # trailing '-' during substitution so that $LINENO is not a special
11404 # case at line end.
ad6254c5 11405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
11406 # scripts with optimization help from Paolo Bonzini. Blame Lee
11407 # E. McMahon (1931-1989) for sed's syntax. :-)
11408 sed -n '
11409 p
11410 /[$]LINENO/=
11411 ' <$as_myself |
ad6254c5 11412 sed '
7a197a62
AK
11413 s/[$]LINENO.*/&-/
11414 t lineno
11415 b
11416 :lineno
ad6254c5 11417 N
7a197a62
AK
11418 :loop
11419 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 11420 t loop
7a197a62 11421 s/-\n.*//
ad6254c5 11422 ' >$as_me.lineno &&
7a197a62 11423 chmod +x "$as_me.lineno" ||
1995c9ff 11424 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
11425 { (exit 1); exit 1; }; }
11426
11427 # Don't try to exec as it changes $[0], causing all sort of problems
11428 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
11429 # original and so on. Autoconf is especially sensitive to this).
11430 . "./$as_me.lineno"
ad6254c5
AK
11431 # Exit status is that of the last command.
11432 exit
11433}
11434
11435
7a197a62
AK
11436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11437 as_dirname=dirname
11438else
11439 as_dirname=false
11440fi
11441
11442ECHO_C= ECHO_N= ECHO_T=
11443case `echo -n x` in
11444-n*)
11445 case `echo 'x\c'` in
11446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11447 *) ECHO_C='\c';;
11448 esac;;
11449*)
11450 ECHO_N='-n';;
ad6254c5 11451esac
1995c9ff 11452
7a197a62
AK
11453if expr a : '\(a\)' >/dev/null 2>&1 &&
11454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11455 as_expr=expr
11456else
11457 as_expr=false
11458fi
80992638 11459
ad6254c5 11460rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
11461if test -d conf$$.dir; then
11462 rm -f conf$$.dir/conf$$.file
11463else
11464 rm -f conf$$.dir
11465 mkdir conf$$.dir
11466fi
ad6254c5
AK
11467echo >conf$$.file
11468if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
11469 as_ln_s='ln -s'
11470 # ... but there are two gotchas:
11471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11473 # In both cases, we have to default to `cp -p'.
11474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 11475 as_ln_s='cp -p'
ad6254c5
AK
11476elif ln conf$$.file conf$$ 2>/dev/null; then
11477 as_ln_s=ln
11478else
11479 as_ln_s='cp -p'
11480fi
7a197a62
AK
11481rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11482rmdir conf$$.dir 2>/dev/null
8106cdd5 11483
ad6254c5
AK
11484if mkdir -p . 2>/dev/null; then
11485 as_mkdir_p=:
11486else
8a2fc586 11487 test -d ./-p && rmdir ./-p
ad6254c5
AK
11488 as_mkdir_p=false
11489fi
11490
25fbec5b
AK
11491if test -x / >/dev/null 2>&1; then
11492 as_test_x='test -x'
7a197a62 11493else
25fbec5b
AK
11494 if ls -dL / >/dev/null 2>&1; then
11495 as_ls_L_option=L
11496 else
11497 as_ls_L_option=
11498 fi
11499 as_test_x='
11500 eval sh -c '\''
11501 if test -d "$1"; then
11502 test -d "$1/.";
11503 else
11504 case $1 in
11505 -*)set "./$1";;
11506 esac;
11507 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11508 ???[sx]*):;;*)false;;esac;fi
11509 '\'' sh
11510 '
7a197a62 11511fi
25fbec5b 11512as_executable_p=$as_test_x
ad6254c5
AK
11513
11514# Sed expression to map a string onto a valid CPP name.
8a2fc586 11515as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11516
11517# Sed expression to map a string onto a valid variable name.
8a2fc586 11518as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11519
11520
ad6254c5
AK
11521exec 6>&1
11522
7a197a62 11523# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 11524# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11525# values after options handling.
11526ac_log="
ad6254c5 11527This file was extended by $as_me, which was
25fbec5b 11528generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
11529
11530 CONFIG_FILES = $CONFIG_FILES
11531 CONFIG_HEADERS = $CONFIG_HEADERS
11532 CONFIG_LINKS = $CONFIG_LINKS
11533 CONFIG_COMMANDS = $CONFIG_COMMANDS
11534 $ $0 $@
11535
7a197a62
AK
11536on `(hostname || uname -n) 2>/dev/null | sed 1q`
11537"
11538
ad6254c5
AK
11539_ACEOF
11540
7a197a62 11541cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11542# Files that config.status was made for.
7a197a62
AK
11543config_files="$ac_config_files"
11544config_headers="$ac_config_headers"
ad6254c5 11545
7a197a62 11546_ACEOF
ad6254c5
AK
11547
11548cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11549ac_cs_usage="\
11550\`$as_me' instantiates files from templates according to the
11551current configuration.
11552
11553Usage: $0 [OPTIONS] [FILE]...
11554
11555 -h, --help print this help, then exit
25fbec5b 11556 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
11557 -q, --quiet do not print progress messages
11558 -d, --debug don't remove temporary files
11559 --recheck update $as_me by reconfiguring in the same conditions
11560 --file=FILE[:TEMPLATE]
8a2fc586 11561 instantiate the configuration file FILE
72b2cb61
AK
11562 --header=FILE[:TEMPLATE]
11563 instantiate the configuration header FILE
ad6254c5
AK
11564
11565Configuration files:
11566$config_files
11567
72b2cb61
AK
11568Configuration headers:
11569$config_headers
11570
ad6254c5 11571Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 11572
7a197a62 11573_ACEOF
ad6254c5
AK
11574cat >>$CONFIG_STATUS <<_ACEOF
11575ac_cs_version="\\
11576config.status
25fbec5b 11577configured by $0, generated by GNU Autoconf 2.61,
1995c9ff 11578 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 11579
7a197a62 11580Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
11581This config.status script is free software; the Free Software Foundation
11582gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11583
11584ac_pwd='$ac_pwd'
11585srcdir='$srcdir'
11586INSTALL='$INSTALL'
ad6254c5
AK
11587_ACEOF
11588
11589cat >>$CONFIG_STATUS <<\_ACEOF
11590# If no file are specified by the user, then we need to provide default
11591# value. By we need to know if files were specified by the user.
11592ac_need_defaults=:
11593while test $# != 0
11594do
11595 case $1 in
11596 --*=*)
7a197a62
AK
11597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11599 ac_shift=:
11600 ;;
7a197a62 11601 *)
ad6254c5
AK
11602 ac_option=$1
11603 ac_optarg=$2
11604 ac_shift=shift
11605 ;;
ad6254c5
AK
11606 esac
11607
11608 case $ac_option in
11609 # Handling of the options.
ad6254c5
AK
11610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11611 ac_cs_recheck=: ;;
7a197a62 11612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1995c9ff 11613 echo "$ac_cs_version"; exit ;;
7a197a62 11614 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11615 debug=: ;;
11616 --file | --fil | --fi | --f )
11617 $ac_shift
11618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11619 ac_need_defaults=false;;
11620 --header | --heade | --head | --hea )
11621 $ac_shift
11622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11623 ac_need_defaults=false;;
7a197a62
AK
11624 --he | --h)
11625 # Conflict between --help and --header
1995c9ff 11626 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
11627Try \`$0 --help' for more information." >&2
11628 { (exit 1); exit 1; }; };;
11629 --help | --hel | -h )
1995c9ff 11630 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11633 ac_cs_silent=: ;;
11634
11635 # This is an error.
1995c9ff 11636 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 11637Try \`$0 --help' for more information." >&2
ad6254c5
AK
11638 { (exit 1); exit 1; }; } ;;
11639
7a197a62
AK
11640 *) ac_config_targets="$ac_config_targets $1"
11641 ac_need_defaults=false ;;
ad6254c5
AK
11642
11643 esac
11644 shift
11645done
11646
11647ac_configure_extra_args=
11648
11649if $ac_cs_silent; then
11650 exec 6>/dev/null
11651 ac_configure_extra_args="$ac_configure_extra_args --silent"
11652fi
11653
11654_ACEOF
11655cat >>$CONFIG_STATUS <<_ACEOF
11656if \$ac_cs_recheck; then
1995c9ff
AK
11657 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11658 CONFIG_SHELL=$SHELL
7a197a62 11659 export CONFIG_SHELL
1995c9ff 11660 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
11661fi
11662
11663_ACEOF
7a197a62
AK
11664cat >>$CONFIG_STATUS <<\_ACEOF
11665exec 5>>config.log
11666{
11667 echo
11668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11669## Running $as_me. ##
11670_ASBOX
1995c9ff 11671 echo "$ac_log"
7a197a62 11672} >&5
ad6254c5 11673
7a197a62
AK
11674_ACEOF
11675cat >>$CONFIG_STATUS <<_ACEOF
11676_ACEOF
ad6254c5
AK
11677
11678cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
11679
11680# Handling of arguments.
ad6254c5
AK
11681for ac_config_target in $ac_config_targets
11682do
7a197a62
AK
11683 case $ac_config_target in
11684 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11685 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11686 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11687 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11688 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11689 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
11690 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
25fbec5b 11691 "dmeventd/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62
AK
11692 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11693 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11694 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11695 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11696 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11697 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11698 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11699 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 11700 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
11701 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11702 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11703 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11704 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11705 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 11706
1995c9ff
AK
11707 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11708echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 11709 { (exit 1); exit 1; }; };;
80992638 11710 esac
ad6254c5
AK
11711done
11712
7a197a62 11713
ad6254c5
AK
11714# If the user did not use the arguments to specify the items to instantiate,
11715# then the envvar interface is used. Set only those that are not.
11716# We use the long form for the default assignment because of an extremely
11717# bizarre bug on SunOS 4.1.3.
11718if $ac_need_defaults; then
11719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11721fi
11722
11723# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11724# simply because there is no reason against having it here, and in addition,
ad6254c5 11725# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11726# Hook for its removal unless debugging.
11727# Note that there is a small window in which the directory will not be cleaned:
11728# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11729$debug ||
11730{
7a197a62
AK
11731 tmp=
11732 trap 'exit_status=$?
11733 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11734' 0
ad6254c5
AK
11735 trap '{ (exit 1); exit 1; }' 1 2 13 15
11736}
ad6254c5
AK
11737# Create a (secure) tmp directory for tmp files.
11738
11739{
7a197a62 11740 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11741 test -n "$tmp" && test -d "$tmp"
11742} ||
11743{
7a197a62
AK
11744 tmp=./conf$$-$RANDOM
11745 (umask 077 && mkdir "$tmp")
ad6254c5
AK
11746} ||
11747{
1995c9ff 11748 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
11749 { (exit 1); exit 1; }
11750}
11751
1995c9ff
AK
11752#
11753# Set up the sed scripts for CONFIG_FILES section.
11754#
7a197a62 11755
1995c9ff
AK
11756# No need to generate the scripts if there are no CONFIG_FILES.
11757# This happens for instance when ./config.status config.h
11758if test -n "$CONFIG_FILES"; then
7a197a62 11759
66e941e8 11760_ACEOF
7a197a62
AK
11761
11762
1995c9ff 11763
7a197a62
AK
11764ac_delim='%!_!# '
11765for ac_last_try in false false false false false :; do
1995c9ff
AK
11766 cat >conf$$subs.sed <<_ACEOF
11767SHELL!$SHELL$ac_delim
11768PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11769PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11770PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11771PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11772PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11773PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11774exec_prefix!$exec_prefix$ac_delim
11775prefix!$prefix$ac_delim
11776program_transform_name!$program_transform_name$ac_delim
11777bindir!$bindir$ac_delim
11778sbindir!$sbindir$ac_delim
11779libexecdir!$libexecdir$ac_delim
11780datarootdir!$datarootdir$ac_delim
11781datadir!$datadir$ac_delim
11782sysconfdir!$sysconfdir$ac_delim
11783sharedstatedir!$sharedstatedir$ac_delim
11784localstatedir!$localstatedir$ac_delim
11785includedir!$includedir$ac_delim
11786oldincludedir!$oldincludedir$ac_delim
11787docdir!$docdir$ac_delim
11788infodir!$infodir$ac_delim
11789htmldir!$htmldir$ac_delim
11790dvidir!$dvidir$ac_delim
11791pdfdir!$pdfdir$ac_delim
11792psdir!$psdir$ac_delim
11793libdir!$libdir$ac_delim
11794localedir!$localedir$ac_delim
11795mandir!$mandir$ac_delim
11796DEFS!$DEFS$ac_delim
11797ECHO_C!$ECHO_C$ac_delim
11798ECHO_N!$ECHO_N$ac_delim
11799ECHO_T!$ECHO_T$ac_delim
11800LIBS!$LIBS$ac_delim
11801build_alias!$build_alias$ac_delim
11802host_alias!$host_alias$ac_delim
11803target_alias!$target_alias$ac_delim
11804build!$build$ac_delim
11805build_cpu!$build_cpu$ac_delim
11806build_vendor!$build_vendor$ac_delim
11807build_os!$build_os$ac_delim
11808host!$host$ac_delim
11809host_cpu!$host_cpu$ac_delim
11810host_vendor!$host_vendor$ac_delim
11811host_os!$host_os$ac_delim
11812target!$target$ac_delim
11813target_cpu!$target_cpu$ac_delim
11814target_vendor!$target_vendor$ac_delim
11815target_os!$target_os$ac_delim
11816AWK!$AWK$ac_delim
11817CC!$CC$ac_delim
11818CFLAGS!$CFLAGS$ac_delim
11819LDFLAGS!$LDFLAGS$ac_delim
11820CPPFLAGS!$CPPFLAGS$ac_delim
11821ac_ct_CC!$ac_ct_CC$ac_delim
11822EXEEXT!$EXEEXT$ac_delim
11823OBJEXT!$OBJEXT$ac_delim
11824INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11825INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11826INSTALL_DATA!$INSTALL_DATA$ac_delim
11827LN_S!$LN_S$ac_delim
11828SET_MAKE!$SET_MAKE$ac_delim
11829RANLIB!$RANLIB$ac_delim
11830CFLOW_CMD!$CFLOW_CMD$ac_delim
11831CSCOPE_CMD!$CSCOPE_CMD$ac_delim
11832CPP!$CPP$ac_delim
11833GREP!$GREP$ac_delim
11834EGREP!$EGREP$ac_delim
11835ALLOCA!$ALLOCA$ac_delim
11836LIBOBJS!$LIBOBJS$ac_delim
11837POW_LIB!$POW_LIB$ac_delim
11838MSGFMT!$MSGFMT$ac_delim
11839MODPROBE_CMD!$MODPROBE_CMD$ac_delim
11840JOBS!$JOBS$ac_delim
11841STATIC_LINK!$STATIC_LINK$ac_delim
11842LVM1!$LVM1$ac_delim
11843POOL!$POOL$ac_delim
11844SNAPSHOTS!$SNAPSHOTS$ac_delim
11845MIRRORS!$MIRRORS$ac_delim
11846OWNER!$OWNER$ac_delim
11847GROUP!$GROUP$ac_delim
11848COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
11849CLDFLAGS!$CLDFLAGS$ac_delim
11850CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
11851CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
11852LDDEPS!$LDDEPS$ac_delim
11853LIB_SUFFIX!$LIB_SUFFIX$ac_delim
11854LVM_VERSION!$LVM_VERSION$ac_delim
11855LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
11856DEBUG!$DEBUG$ac_delim
11857DEVMAPPER!$DEVMAPPER$ac_delim
11858HAVE_LIBDL!$HAVE_LIBDL$ac_delim
11859HAVE_SELINUX!$HAVE_SELINUX$ac_delim
11860HAVE_REALTIME!$HAVE_REALTIME$ac_delim
11861CMDLIB!$CMDLIB$ac_delim
11862LOCALEDIR!$LOCALEDIR$ac_delim
11863CONFDIR!$CONFDIR$ac_delim
11864_ACEOF
11865
11866 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7a197a62
AK
11867 break
11868 elif $ac_last_try; then
1995c9ff
AK
11869 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11870echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7a197a62
AK
11871 { (exit 1); exit 1; }; }
11872 else
11873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ad6254c5 11874 fi
7a197a62 11875done
1995c9ff
AK
11876
11877ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11878if test -n "$ac_eof"; then
11879 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11880 ac_eof=`expr $ac_eof + 1`
11881fi
7a197a62
AK
11882
11883cat >>$CONFIG_STATUS <<_ACEOF
1995c9ff
AK
11884cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11886_ACEOF
11887sed '
11888s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11889s/^/s,@/; s/!/@,|#_!!_#|/
11890:n
11891t n
11892s/'"$ac_delim"'$/,g/; t
11893s/$/\\/; p
11894N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11895' >>$CONFIG_STATUS <conf$$subs.sed
11896rm -f conf$$subs.sed
7a197a62 11897cat >>$CONFIG_STATUS <<_ACEOF
1995c9ff
AK
11898CEOF$ac_eof
11899_ACEOF
7a197a62 11900
8106cdd5 11901
1995c9ff
AK
11902ac_delim='%!_!# '
11903for ac_last_try in false false false false false :; do
11904 cat >conf$$subs.sed <<_ACEOF
11905STATICDIR!$STATICDIR$ac_delim
11906DMDIR!$DMDIR$ac_delim
11907INTL_PACKAGE!$INTL_PACKAGE$ac_delim
11908INTL!$INTL$ac_delim
11909CLVMD!$CLVMD$ac_delim
11910CLUSTER!$CLUSTER$ac_delim
11911FSADM!$FSADM$ac_delim
11912DMEVENTD!$DMEVENTD$ac_delim
11913LIB_PTHREAD!$LIB_PTHREAD$ac_delim
11914LTLIBOBJS!$LTLIBOBJS$ac_delim
11915_ACEOF
11916
11917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
11918 break
11919 elif $ac_last_try; then
11920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11921echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11922 { (exit 1); exit 1; }; }
11923 else
11924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11925 fi
11926done
11927
11928ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11929if test -n "$ac_eof"; then
11930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11931 ac_eof=`expr $ac_eof + 1`
11932fi
7a197a62 11933
1995c9ff
AK
11934cat >>$CONFIG_STATUS <<_ACEOF
11935cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11936/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11937_ACEOF
11938sed '
11939s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11940s/^/s,@/; s/!/@,|#_!!_#|/
11941:n
11942t n
11943s/'"$ac_delim"'$/,g/; t
11944s/$/\\/; p
11945N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11946' >>$CONFIG_STATUS <conf$$subs.sed
11947rm -f conf$$subs.sed
11948cat >>$CONFIG_STATUS <<_ACEOF
11949:end
11950s/|#_!!_#|//g
11951CEOF$ac_eof
7a197a62
AK
11952_ACEOF
11953
1995c9ff 11954
7a197a62
AK
11955# VPATH may cause trouble with some makes, so we remove $(srcdir),
11956# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11957# trailing colons and then remove the whole line if VPATH becomes empty
11958# (actually we leave an empty line to preserve line numbers).
11959if test "x$srcdir" = x.; then
11960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11961s/:*\$(srcdir):*/:/
11962s/:*\${srcdir}:*/:/
11963s/:*@srcdir@:*/:/
11964s/^\([^=]*=[ ]*\):*/\1/
11965s/:*$//
11966s/^[^=]*=[ ]*$//
11967}'
11968fi
11969
ad6254c5 11970cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
11971fi # test -n "$CONFIG_FILES"
11972
11973
11974for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11975do
11976 case $ac_tag in
11977 :[FHLC]) ac_mode=$ac_tag; continue;;
11978 esac
11979 case $ac_mode$ac_tag in
11980 :[FHL]*:*);;
1995c9ff
AK
11981 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11982echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
11983 { (exit 1); exit 1; }; };;
11984 :[FH]-) ac_tag=-:-;;
11985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11986 esac
11987 ac_save_IFS=$IFS
11988 IFS=:
11989 set x $ac_tag
11990 IFS=$ac_save_IFS
11991 shift
11992 ac_file=$1
11993 shift
11994
11995 case $ac_mode in
11996 :L) ac_source=$1;;
11997 :[FH])
11998 ac_file_inputs=
11999 for ac_f
12000 do
12001 case $ac_f in
12002 -) ac_f="$tmp/stdin";;
12003 *) # Look for the file first in the build tree, then in the source tree
12004 # (if the path is not absolute). The absolute path cannot be DOS-style,
12005 # because $ac_f cannot contain `:'.
12006 test -f "$ac_f" ||
12007 case $ac_f in
12008 [\\/$]*) false;;
12009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12010 esac ||
1995c9ff
AK
12011 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12012echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12013 { (exit 1); exit 1; }; };;
12014 esac
12015 ac_file_inputs="$ac_file_inputs $ac_f"
12016 done
12017
12018 # Let's still pretend it is `configure' which instantiates (i.e., don't
12019 # use $as_me), people would be surprised to read:
12020 # /* config.h. Generated by config.status. */
1995c9ff
AK
12021 configure_input="Generated from "`IFS=:
12022 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12023 if test x"$ac_file" != x-; then
12024 configure_input="$ac_file. $configure_input"
1995c9ff
AK
12025 { echo "$as_me:$LINENO: creating $ac_file" >&5
12026echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12027 fi
12028
12029 case $ac_tag in
12030 *:-:* | *:-) cat >"$tmp/stdin";;
12031 esac
12032 ;;
80992638 12033 esac
8106cdd5 12034
7a197a62 12035 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12036$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12037 X"$ac_file" : 'X\(//\)[^/]' \| \
12038 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 12040echo X"$ac_file" |
7a197a62
AK
12041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12042 s//\1/
12043 q
12044 }
12045 /^X\(\/\/\)[^/].*/{
12046 s//\1/
12047 q
12048 }
12049 /^X\(\/\/\)$/{
12050 s//\1/
12051 q
12052 }
12053 /^X\(\/\).*/{
12054 s//\1/
12055 q
12056 }
12057 s/.*/./; q'`
12058 { as_dir="$ac_dir"
12059 case $as_dir in #(
12060 -*) as_dir=./$as_dir;;
12061 esac
12062 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12063 as_dirs=
7a197a62
AK
12064 while :; do
12065 case $as_dir in #(
1995c9ff 12066 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12067 *) as_qdir=$as_dir;;
12068 esac
12069 as_dirs="'$as_qdir' $as_dirs"
12070 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12072 X"$as_dir" : 'X\(//\)[^/]' \| \
12073 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 12075echo X"$as_dir" |
7a197a62
AK
12076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12077 s//\1/
12078 q
12079 }
12080 /^X\(\/\/\)[^/].*/{
12081 s//\1/
12082 q
12083 }
12084 /^X\(\/\/\)$/{
12085 s//\1/
12086 q
12087 }
12088 /^X\(\/\).*/{
12089 s//\1/
12090 q
12091 }
12092 s/.*/./; q'`
12093 test -d "$as_dir" && break
ad6254c5 12094 done
7a197a62 12095 test -z "$as_dirs" || eval "mkdir $as_dirs"
1995c9ff
AK
12096 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12097echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12098 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12099 ac_builddir=.
12100
7a197a62
AK
12101case "$ac_dir" in
12102.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12103*)
1995c9ff 12104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12105 # A ".." for each directory in $ac_dir_suffix.
1995c9ff 12106 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12107 case $ac_top_builddir_sub in
12108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12110 esac ;;
12111esac
12112ac_abs_top_builddir=$ac_pwd
12113ac_abs_builddir=$ac_pwd$ac_dir_suffix
12114# for backward compatibility:
12115ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12116
12117case $srcdir in
7a197a62 12118 .) # We are building in place.
ad6254c5 12119 ac_srcdir=.
7a197a62
AK
12120 ac_top_srcdir=$ac_top_builddir_sub
12121 ac_abs_top_srcdir=$ac_pwd ;;
12122 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12123 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12124 ac_top_srcdir=$srcdir
12125 ac_abs_top_srcdir=$srcdir ;;
12126 *) # Relative name.
12127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12128 ac_top_srcdir=$ac_top_build_prefix$srcdir
12129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12130esac
7a197a62 12131ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12132
ad6254c5 12133
7a197a62
AK
12134 case $ac_mode in
12135 :F)
12136 #
12137 # CONFIG_FILE
12138 #
ad6254c5
AK
12139
12140 case $INSTALL in
12141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12143 esac
7a197a62 12144_ACEOF
795ca3e5 12145
7a197a62
AK
12146cat >>$CONFIG_STATUS <<\_ACEOF
12147# If the template does not know about datarootdir, expand it.
12148# FIXME: This hack should be removed a few years after 2.60.
12149ac_datarootdir_hack=; ac_datarootdir_seen=
12150
12151case `sed -n '/datarootdir/ {
12152 p
12153 q
12154}
12155/@datadir@/p
12156/@docdir@/p
12157/@infodir@/p
12158/@localedir@/p
12159/@mandir@/p
12160' $ac_file_inputs` in
12161*datarootdir*) ac_datarootdir_seen=yes;;
12162*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1995c9ff
AK
12163 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12164echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12165_ACEOF
7a197a62
AK
12166cat >>$CONFIG_STATUS <<_ACEOF
12167 ac_datarootdir_hack='
12168 s&@datadir@&$datadir&g
12169 s&@docdir@&$docdir&g
12170 s&@infodir@&$infodir&g
12171 s&@localedir@&$localedir&g
12172 s&@mandir@&$mandir&g
12173 s&\\\${datarootdir}&$datarootdir&g' ;;
12174esac
12175_ACEOF
12176
12177# Neutralize VPATH when `$srcdir' = `.'.
12178# Shell code in configure.ac might set extrasub.
12179# FIXME: do we really want to maintain this feature?
ad6254c5
AK
12180cat >>$CONFIG_STATUS <<_ACEOF
12181 sed "$ac_vpsub
12182$extrasub
12183_ACEOF
12184cat >>$CONFIG_STATUS <<\_ACEOF
12185:t
12186/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7a197a62
AK
12187s&@configure_input@&$configure_input&;t t
12188s&@top_builddir@&$ac_top_builddir_sub&;t t
12189s&@srcdir@&$ac_srcdir&;t t
12190s&@abs_srcdir@&$ac_abs_srcdir&;t t
12191s&@top_srcdir@&$ac_top_srcdir&;t t
12192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12193s&@builddir@&$ac_builddir&;t t
12194s&@abs_builddir@&$ac_abs_builddir&;t t
12195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12196s&@INSTALL@&$ac_INSTALL&;t t
12197$ac_datarootdir_hack
1995c9ff 12198" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12199
12200test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12201 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1995c9ff 12203 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12204which seems to be undefined. Please make sure it is defined." >&5
1995c9ff 12205echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12206which seems to be undefined. Please make sure it is defined." >&2;}
12207
12208 rm -f "$tmp/stdin"
72b2cb61 12209 case $ac_file in
7a197a62
AK
12210 -) cat "$tmp/out"; rm -f "$tmp/out";;
12211 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
72b2cb61 12212 esac
7a197a62
AK
12213 ;;
12214 :H)
12215 #
12216 # CONFIG_HEADER
12217 #
12218_ACEOF
12219
12220# Transform confdefs.h into a sed script `conftest.defines', that
12221# substitutes the proper values into config.h.in to produce config.h.
12222rm -f conftest.defines conftest.tail
12223# First, append a space to every undef/define line, to ease matching.
12224echo 's/$/ /' >conftest.defines
12225# Then, protect against being on the right side of a sed subst, or in
12226# an unquoted here document, in config.status. If some macros were
12227# called several times there might be several #defines for the same
12228# symbol, which is useless. But do not sort them, since the last
12229# AC_DEFINE must be honored.
12230ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12231# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12232# NAME is the cpp macro being defined, VALUE is the value it is being given.
12233# PARAMS is the parameter list in the macro definition--in most cases, it's
12234# just an empty string.
12235ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12236ac_dB='\\)[ (].*,\\1define\\2'
12237ac_dC=' '
12238ac_dD=' ,'
12239
12240uniq confdefs.h |
12241 sed -n '
12242 t rset
12243 :rset
12244 s/^[ ]*#[ ]*define[ ][ ]*//
12245 t ok
12246 d
12247 :ok
12248 s/[\\&,]/\\&/g
12249 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12250 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12251 ' >>conftest.defines
12252
12253# Remove the space that was appended to ease matching.
12254# Then replace #undef with comments. This is necessary, for
72b2cb61
AK
12255# example, in the case of _POSIX_SOURCE, which is predefined and required
12256# on some systems where configure will not decide to define it.
7a197a62
AK
12257# (The regexp can be short, since the line contains either #define or #undef.)
12258echo 's/ $//
12259s,^[ #]*u.*,/* & */,' >>conftest.defines
12260
12261# Break up conftest.defines:
12262ac_max_sed_lines=50
12263
12264# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12265# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12266# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12267# et cetera.
12268ac_in='$ac_file_inputs'
12269ac_out='"$tmp/out1"'
12270ac_nxt='"$tmp/out2"'
12271
12272while :
72b2cb61 12273do
7a197a62
AK
12274 # Write a here document:
12275 cat >>$CONFIG_STATUS <<_ACEOF
12276 # First, check the format of the line:
12277 cat >"\$tmp/defines.sed" <<\\CEOF
12278/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12279/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12280b
12281:def
12282_ACEOF
12283 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
72b2cb61 12284 echo 'CEOF
7a197a62
AK
12285 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12286 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12287 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12288 grep . conftest.tail >/dev/null || break
72b2cb61
AK
12289 rm -f conftest.defines
12290 mv conftest.tail conftest.defines
12291done
7a197a62 12292rm -f conftest.defines conftest.tail
72b2cb61 12293
7a197a62 12294echo "ac_result=$ac_in" >>$CONFIG_STATUS
72b2cb61 12295cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12296 if test x"$ac_file" != x-; then
1995c9ff 12297 echo "/* $configure_input */" >"$tmp/config.h"
7a197a62
AK
12298 cat "$ac_result" >>"$tmp/config.h"
12299 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
1995c9ff
AK
12300 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12301echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 12302 else
72b2cb61 12303 rm -f $ac_file
7a197a62 12304 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12305 fi
12306 else
1995c9ff 12307 echo "/* $configure_input */"
7a197a62 12308 cat "$ac_result"
72b2cb61 12309 fi
7a197a62
AK
12310 rm -f "$tmp/out12"
12311 ;;
12312
12313
12314 esac
12315
12316done # for ac_tag
795ca3e5 12317
795ca3e5 12318
ad6254c5
AK
12319{ (exit 0); exit 0; }
12320_ACEOF
795ca3e5 12321chmod +x $CONFIG_STATUS
ad6254c5
AK
12322ac_clean_files=$ac_clean_files_save
12323
12324
12325# configure is writing to config.log, and then calls config.status.
12326# config.status does its own redirection, appending to config.log.
12327# Unfortunately, on DOS this fails, as config.log is still kept open
12328# by configure, so config.status won't be able to write to it; its
12329# output is simply discarded. So we exec the FD to /dev/null,
12330# effectively closing config.log, so it can be properly (re)opened and
12331# appended to by config.status. When coming back to configure, we
12332# need to make the FD available again.
12333if test "$no_create" != yes; then
12334 ac_cs_success=:
12335 ac_config_status_args=
12336 test "$silent" = yes &&
12337 ac_config_status_args="$ac_config_status_args --quiet"
12338 exec 5>/dev/null
12339 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12340 exec 5>>config.log
12341 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12342 # would make configure fail if this is the last instruction.
12343 $ac_cs_success || { (exit 1); exit 1; }
12344fi
795ca3e5 12345
2dc95e1c
AK
12346
12347if test x$ODIRECT != xyes; then
1995c9ff
AK
12348 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12349echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12350fi
809fae91
AK
12351
12352if test x$FSADM == xyes; then
1995c9ff
AK
12353 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12354echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12355fi
06f62ad1
AK
12356
12357if test x$DMEVENTD == xyes; then
1995c9ff
AK
12358 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12359echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 12360fi
This page took 1.498209 seconds and 5 git commands to generate.