]> sourceware.org Git - lvm2.git/blame - configure
Update api/test/vgtest.c error handling.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
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
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe
AK
641usrlibdir
642tmpdir
643kernelvsn
644missingkernel
645kerneldir
646interface
647LIB_PTHREAD
648STATIC_LINK
649STATICDIR
650SNAPSHOTS
651POOL
652PKGCONFIG
653OWNER
654MIRRORS
655LVM_RELEASE_DATE
656LVM_RELEASE
657LVM_PATCHLEVEL
658LVM_MINOR
659LVM_MAJOR
660LVM_VERSION
ec6a6fbe
AK
661LVM1_FALLBACK
662LVM1
663LOCALEDIR
664LIB_SUFFIX
665LDDEPS
666JOBS
667INTL_PACKAGE
668INTL
669HAVE_SELINUX
670HAVE_REALTIME
671HAVE_LIBDL
672GROUP
673FSADM
674DM_LIB_PATCHLEVEL
675DM_LIB_VERSION
676DM_IOCTLS
677DM_DEVICE_UID
678DM_DEVICE_MODE
679DM_DEVICE_GID
680DM_COMPAT
681DMEVENTD
682DEVMAPPER
683DEBUG
684COPTIMISE_FLAG
e2997b73 685CONFDIR
ec6a6fbe
AK
686CMDLIB
687CLVMD
688CLUSTER
689CLDWHOLEARCHIVE
690CLDNOWHOLEARCHIVE
691CLDFLAGS
692BUILD_DMEVENTD
572fefeb 693APPLIB
ec6a6fbe
AK
694MODPROBE_CMD
695MSGFMT
696LVM2CMD_LIB
572fefeb 697LVM2APP_LIB
ec6a6fbe
AK
698GENHTML
699LCOV
e2997b73
AK
700CPG_LIBS
701CPG_CFLAGS
702CONFDB_LIBS
703CONFDB_CFLAGS
704QUORUM_LIBS
705QUORUM_CFLAGS
706PKG_CONFIG
ec6a6fbe
AK
707POW_LIB
708LIBOBJS
709ALLOCA
710CSCOPE_CMD
711CFLOW_CMD
712RANLIB
713MKDIR_P
714SET_MAKE
715LN_S
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719EGREP
720GREP
721CPP
722OBJEXT
723EXEEXT
724ac_ct_CC
725CPPFLAGS
726LDFLAGS
727CFLAGS
728CC
729AWK
730SED
731target_os
732target_vendor
733target_cpu
734target
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL'
ad6254c5 780ac_subst_files=''
ec6a6fbe
AK
781ac_user_opts='
782enable_option_checking
783enable_static_link
784with_user
785with_group
786with_device_uid
787with_device_gid
788with_device_mode
789enable_lvm1_fallback
790with_lvm1
791with_pool
792with_cluster
793with_snapshots
794with_mirrors
795enable_readline
796enable_realtime
797with_clvmd
798enable_debug
799with_optimisation
800enable_profiling
801enable_devmapper
802enable_compat
803enable_ioctl
804enable_o_direct
572fefeb 805enable_applib
ec6a6fbe
AK
806enable_cmdlib
807enable_pkgconfig
808enable_fsadm
809enable_dmeventd
810enable_selinux
811enable_nls
812with_localedir
813with_confdir
814with_staticdir
815with_usrlibdir
816with_usrsbindir
817with_dmeventd_pidfile
818with_dmeventd_path
819with_interface
820'
7a197a62
AK
821 ac_precious_vars='build_alias
822host_alias
823target_alias
824CC
825CFLAGS
826LDFLAGS
25fbec5b 827LIBS
7a197a62 828CPPFLAGS
e2997b73
AK
829CPP
830PKG_CONFIG
831QUORUM_CFLAGS
832QUORUM_LIBS
833CONFDB_CFLAGS
834CONFDB_LIBS
835CPG_CFLAGS
836CPG_LIBS'
7a197a62 837
795ca3e5
AK
838
839# Initialize some variables set by options.
ad6254c5
AK
840ac_init_help=
841ac_init_version=false
ec6a6fbe
AK
842ac_unrecognized_opts=
843ac_unrecognized_sep=
795ca3e5
AK
844# The variables have the same names as the options, with
845# dashes changed to underlines.
ad6254c5 846cache_file=/dev/null
795ca3e5 847exec_prefix=NONE
795ca3e5 848no_create=
795ca3e5
AK
849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
795ca3e5
AK
857verbose=
858x_includes=NONE
859x_libraries=NONE
ad6254c5
AK
860
861# Installation directory options.
862# These are left unexpanded so users can "make install exec_prefix=/foo"
863# and all the variables that are supposed to be based on exec_prefix
864# by default will actually change.
865# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 866# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
7a197a62
AK
870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
795ca3e5
AK
872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
795ca3e5
AK
875includedir='${prefix}/include'
876oldincludedir='/usr/include'
7a197a62
AK
877docdir='${datarootdir}/doc/${PACKAGE}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
795ca3e5 886
795ca3e5 887ac_prev=
7a197a62 888ac_dashdash=
795ca3e5
AK
889for ac_option
890do
795ca3e5
AK
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
7a197a62 893 eval $ac_prev=\$ac_option
795ca3e5
AK
894 ac_prev=
895 continue
896 fi
897
7a197a62
AK
898 case $ac_option in
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *) ac_optarg=yes ;;
901 esac
795ca3e5
AK
902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
7a197a62
AK
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
795ca3e5
AK
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 912 bindir=$ac_optarg ;;
795ca3e5
AK
913
914 -build | --build | --buil | --bui | --bu)
ad6254c5 915 ac_prev=build_alias ;;
795ca3e5 916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 917 build_alias=$ac_optarg ;;
795ca3e5
AK
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
795ca3e5 928
7a197a62 929 -datadir | --datadir | --datadi | --datad)
795ca3e5 930 ac_prev=datadir ;;
7a197a62 931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 932 datadir=$ac_optarg ;;
795ca3e5 933
7a197a62
AK
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
795ca3e5 941 -disable-* | --disable-*)
ec6a6fbe 942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 943 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 946 { (exit 1); exit 1; }; }
ec6a6fbe
AK
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
7a197a62
AK
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
795ca3e5
AK
967
968 -enable-* | --enable-*)
ec6a6fbe 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 970 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 973 { (exit 1); exit 1; }; }
ec6a6fbe
AK
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
ad6254c5 992 exec_prefix=$ac_optarg ;;
795ca3e5
AK
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
ad6254c5
AK
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
795ca3e5
AK
1004
1005 -host | --host | --hos | --ho)
ad6254c5 1006 ac_prev=host_alias ;;
795ca3e5 1007 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1008 host_alias=$ac_optarg ;;
795ca3e5 1009
7a197a62
AK
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
795ca3e5
AK
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1021 includedir=$ac_optarg ;;
795ca3e5
AK
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1026 infodir=$ac_optarg ;;
795ca3e5
AK
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1031 libdir=$ac_optarg ;;
795ca3e5
AK
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1038 libexecdir=$ac_optarg ;;
795ca3e5 1039
7a197a62
AK
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
795ca3e5 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1046 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1050 localstatedir=$ac_optarg ;;
795ca3e5
AK
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1055 mandir=$ac_optarg ;;
795ca3e5
AK
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1062 | --no-cr | --no-c | -n)
795ca3e5
AK
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1076 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1081 prefix=$ac_optarg ;;
795ca3e5
AK
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1088 program_prefix=$ac_optarg ;;
795ca3e5
AK
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1095 program_suffix=$ac_optarg ;;
795ca3e5
AK
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1112 program_transform_name=$ac_optarg ;;
795ca3e5 1113
7a197a62
AK
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
795ca3e5
AK
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
ad6254c5 1132 sbindir=$ac_optarg ;;
795ca3e5
AK
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
ad6254c5 1143 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
ad6254c5 1148 site=$ac_optarg ;;
795ca3e5
AK
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1153 srcdir=$ac_optarg ;;
795ca3e5
AK
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1160 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1163 ac_prev=target_alias ;;
795ca3e5 1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1165 target_alias=$ac_optarg ;;
795ca3e5
AK
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
ad6254c5
AK
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
795ca3e5
AK
1172
1173 -with-* | --with-*)
ec6a6fbe 1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1175 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1178 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"with_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1189
1190 -without-* | --without-*)
ec6a6fbe 1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1192 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1195 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
795ca3e5
AK
1206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1216 x_includes=$ac_optarg ;;
795ca3e5
AK
1217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1223 x_libraries=$ac_optarg ;;
795ca3e5 1224
ec6a6fbe 1225 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1226Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
795ca3e5
AK
1228 ;;
1229
ad6254c5
AK
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1234 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1235 { (exit 1); exit 1; }; }
7a197a62 1236 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1237 export $ac_envvar ;;
1238
795ca3e5 1239 *)
ad6254c5 1240 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1245 ;;
1246
1247 esac
1248done
1249
1250if test -n "$ac_prev"; then
ad6254c5 1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1252 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1253 { (exit 1); exit 1; }; }
795ca3e5 1254fi
795ca3e5 1255
ec6a6fbe
AK
1256if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1260 { (exit 1); exit 1; }; } ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1263fi
1264
1265# Check all directory arguments for consistency.
7a197a62
AK
1266for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
795ca3e5 1270do
7a197a62 1271 eval ac_val=\$$ac_var
ec6a6fbe
AK
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
ad6254c5 1279 case $ac_val in
7a197a62
AK
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1282 esac
ec6a6fbe 1283 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1284 { (exit 1); exit 1; }; }
795ca3e5
AK
1285done
1286
ad6254c5
AK
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
1293
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
ec6a6fbe 1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303fi
8106cdd5 1304
ad6254c5
AK
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
795ca3e5 1309
795ca3e5 1310
7a197a62
AK
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1314 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1315 { (exit 1); exit 1; }; }
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1317 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1318 { (exit 1); exit 1; }; }
1319
1320
795ca3e5
AK
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
7a197a62 1324 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
7a197a62
AK
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
795ca3e5 1348 srcdir=$ac_confdir
7a197a62 1349 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1350 srcdir=..
1351 fi
1352else
1353 ac_srcdir_defaulted=no
1354fi
7a197a62
AK
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1357 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1358 { (exit 1); exit 1; }; }
795ca3e5 1359fi
7a197a62
AK
1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361ac_abs_confdir=`(
ec6a6fbe 1362 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1363 { (exit 1); exit 1; }; }
7a197a62
AK
1364 pwd)`
1365# When building in place, set srcdir=.
1366if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368fi
1369# Remove unnecessary trailing slashes from srcdir.
1370# Double slashes in file names in object file debugging info
1371# mess up M-x gdb in Emacs.
1372case $srcdir in
1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374esac
1375for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
ad6254c5
AK
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389\`configure' configures this package to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
ad6254c5
AK
1409Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1411 [$ac_default_prefix]
ad6254c5 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1413 [PREFIX]
ad6254c5
AK
1414
1415By default, \`make install' will install all the files in
1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418for instance \`--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
ec6a6fbe
AK
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1442_ACEOF
1443
1444 cat <<\_ACEOF
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457Optional Features:
ec6a6fbe 1458 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1461 --enable-static_link Use this to link the tools to their libraries
1462 statically. Default is dynamic linking
ad6254c5
AK
1463 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1464 device-mapper is missing from the kernel
1b523347 1465 --disable-readline Disable readline support
3d978351 1466 --disable-realtime Disable realtime clock support
ad6254c5 1467 --enable-debug Enable debugging
5556819a 1468 --enable-profiling Gather gcov profiling data
93bd259b
AK
1469 --disable-devmapper Disable LVM2 device-mapper interaction
1470 --enable-compat Enable support for old device-mapper versions
1471 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1472 --disable-o_direct Disable O_DIRECT
572fefeb 1473 --enable-applib Build application library
ad6254c5 1474 --enable-cmdlib Build shared command library
93bd259b 1475 --enable-pkgconfig Install pkgconfig support
ad6254c5 1476 --enable-fsadm Enable fsadm
15d91f5a 1477 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1478 --disable-selinux Disable selinux support
ad6254c5
AK
1479 --enable-nls Enable Native Language Support
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1484 --with-user=USER Set the owner of installed files [USER=root]
1485 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1486 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1487 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1488 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1489 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1490 TYPE=internal
1491 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1492 TYPE=internal
1493 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1494 TYPE=internal
1495 --with-snapshots=TYPE Snapshot support: internal/shared/none
1496 TYPE=internal
1497 --with-mirrors=TYPE Mirror support: internal/shared/none
1498 TYPE=internal
ec6a6fbe 1499 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
a266258f 1500 TYPE=none
d0191583
JM
1501 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1502 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1503 --with-confdir=DIR Configuration files in DIR /etc
1504 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
68f2de6d
AK
1505 --with-usrlibdir=DIR
1506 --with-usrsbindir=DIR
93bd259b
AK
1507 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1508 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1509 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1510
1511Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
25fbec5b 1516 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1517 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
ad6254c5 1519 CPP C preprocessor
e2997b73
AK
1520 PKG_CONFIG path to pkg-config utility
1521 QUORUM_CFLAGS
1522 C compiler flags for QUORUM, overriding pkg-config
1523 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1524 CONFDB_CFLAGS
1525 C compiler flags for CONFDB, overriding pkg-config
1526 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1527 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1528 CPG_LIBS linker flags for CPG, overriding pkg-config
ad6254c5
AK
1529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533_ACEOF
7a197a62 1534ac_status=$?
ad6254c5
AK
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
ad6254c5 1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
ad6254c5
AK
1543 ac_builddir=.
1544
7a197a62
AK
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
ec6a6fbe 1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1549 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1560
1561case $srcdir in
7a197a62 1562 .) # We are building in place.
ad6254c5 1563 ac_srcdir=.
7a197a62
AK
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1567 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1574esac
7a197a62
AK
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1585 else
ec6a6fbe 1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1589 done
1590fi
1591
7a197a62 1592test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1593if $ac_init_version; then
1594 cat <<\_ACEOF
7a197a62 1595configure
ec6a6fbe 1596generated by GNU Autoconf 2.63
ad6254c5 1597
7a197a62 1598Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 15992002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
1602_ACEOF
7a197a62 1603 exit
ad6254c5 1604fi
7a197a62 1605cat >config.log <<_ACEOF
ad6254c5
AK
1606This file contains any messages produced by compilers while
1607running configure, to aid debugging if configure makes a mistake.
1608
1609It was created by $as_me, which was
ec6a6fbe 1610generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1611
1612 $ $0 $@
1613
1614_ACEOF
7a197a62 1615exec 5>>config.log
ad6254c5
AK
1616{
1617cat <<_ASUNAME
1618## --------- ##
1619## Platform. ##
1620## --------- ##
1621
1622hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627
1628/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1630
1631/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1632/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1633/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1634/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1635/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1636/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1637/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1638
1639_ASUNAME
1640
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
ec6a6fbe 1646 $as_echo "PATH: $as_dir"
ad6254c5 1647done
7a197a62 1648IFS=$as_save_IFS
ad6254c5
AK
1649
1650} >&5
1651
1652cat >&5 <<_ACEOF
1653
1654
1655## ----------- ##
1656## Core tests. ##
1657## ----------- ##
1658
1659_ACEOF
1660
1661
1662# Keep a trace of the command line.
1663# Strip out --no-create and --no-recursion so they do not pile up.
1664# Strip out --silent because we don't want to record it for future runs.
1665# Also quote any args containing shell meta-characters.
1666# Make two passes to allow for proper duplicate-argument suppression.
1667ac_configure_args=
1668ac_configure_args0=
1669ac_configure_args1=
ad6254c5
AK
1670ac_must_keep_next=false
1671for ac_pass in 1 2
1672do
1673 for ac_arg
1674 do
1675 case $ac_arg in
1676 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678 | -silent | --silent | --silen | --sile | --sil)
1679 continue ;;
7a197a62 1680 *\'*)
ec6a6fbe 1681 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1682 esac
1683 case $ac_pass in
1684 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685 2)
1686 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687 if test $ac_must_keep_next = true; then
8a2fc586 1688 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1689 else
8a2fc586
AK
1690 case $ac_arg in
1691 *=* | --config-cache | -C | -disable-* | --disable-* \
1692 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694 | -with-* | --with-* | -without-* | --without-* | --x)
1695 case "$ac_configure_args0 " in
1696 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697 esac
1698 ;;
1699 -* ) ac_must_keep_next=true ;;
1700 esac
ad6254c5 1701 fi
7a197a62 1702 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1703 ;;
1704 esac
1705 done
1706done
1707$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709
1710# When interrupted or exit'd, cleanup temporary files, and complete
1711# config.log. We remove comments because anyway the quotes in there
1712# would cause problems or look ugly.
7a197a62
AK
1713# WARNING: Use '\'' to represent an apostrophe within the trap.
1714# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1715trap 'exit_status=$?
1716 # Save into config.log some information that might help in debugging.
1717 {
1718 echo
1719
1720 cat <<\_ASBOX
1721## ---------------- ##
1722## Cache variables. ##
1723## ---------------- ##
1724_ASBOX
1725 echo
1726 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1727(
1728 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729 eval ac_val=\$$ac_var
1730 case $ac_val in #(
1731 *${as_nl}*)
1732 case $ac_var in #(
ec6a6fbe
AK
1733 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1734$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1735 esac
1736 case $ac_var in #(
1737 _ | IFS | as_nl) ;; #(
ec6a6fbe 1738 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1739 *) $as_unset $ac_var ;;
1740 esac ;;
1741 esac
1742 done
ad6254c5 1743 (set) 2>&1 |
7a197a62
AK
1744 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1745 *${as_nl}ac_space=\ *)
ad6254c5 1746 sed -n \
7a197a62
AK
1747 "s/'\''/'\''\\\\'\'''\''/g;
1748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1749 ;; #(
ad6254c5 1750 *)
7a197a62 1751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1752 ;;
7a197a62
AK
1753 esac |
1754 sort
1755)
ad6254c5
AK
1756 echo
1757
1758 cat <<\_ASBOX
1759## ----------------- ##
1760## Output variables. ##
1761## ----------------- ##
1762_ASBOX
1763 echo
1764 for ac_var in $ac_subst_vars
1765 do
7a197a62
AK
1766 eval ac_val=\$$ac_var
1767 case $ac_val in
ec6a6fbe 1768 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1769 esac
ec6a6fbe 1770 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1771 done | sort
1772 echo
1773
1774 if test -n "$ac_subst_files"; then
1775 cat <<\_ASBOX
7a197a62
AK
1776## ------------------- ##
1777## File substitutions. ##
1778## ------------------- ##
ad6254c5
AK
1779_ASBOX
1780 echo
1781 for ac_var in $ac_subst_files
1782 do
7a197a62
AK
1783 eval ac_val=\$$ac_var
1784 case $ac_val in
ec6a6fbe 1785 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1786 esac
ec6a6fbe 1787 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1788 done | sort
1789 echo
1790 fi
1791
1792 if test -s confdefs.h; then
1793 cat <<\_ASBOX
1794## ----------- ##
1795## confdefs.h. ##
1796## ----------- ##
1797_ASBOX
1798 echo
7a197a62 1799 cat confdefs.h
ad6254c5
AK
1800 echo
1801 fi
1802 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1803 $as_echo "$as_me: caught signal $ac_signal"
1804 $as_echo "$as_me: exit $exit_status"
ad6254c5 1805 } >&5
7a197a62
AK
1806 rm -f core *.core core.conftest.* &&
1807 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1808 exit $exit_status
7a197a62 1809' 0
ad6254c5
AK
1810for ac_signal in 1 2 13 15; do
1811 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1812done
1813ac_signal=0
1814
1815# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1816rm -f -r conftest* confdefs.h
ad6254c5
AK
1817
1818# Predefined preprocessor variables.
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_NAME "$PACKAGE_NAME"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_VERSION "$PACKAGE_VERSION"
1832_ACEOF
8106cdd5 1833
ad6254c5
AK
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_STRING "$PACKAGE_STRING"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1842_ACEOF
1843
1844
1845# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1846# Prefer an explicitly selected file to automatically selected ones.
1847ac_site_file1=NONE
1848ac_site_file2=NONE
7a197a62 1849if test -n "$CONFIG_SITE"; then
ec6a6fbe 1850 ac_site_file1=$CONFIG_SITE
7a197a62 1851elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1852 ac_site_file1=$prefix/share/config.site
1853 ac_site_file2=$prefix/etc/config.site
7a197a62 1854else
ec6a6fbe
AK
1855 ac_site_file1=$ac_default_prefix/share/config.site
1856 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1857fi
ec6a6fbe 1858for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1859do
ec6a6fbe 1860 test "x$ac_site_file" = xNONE && continue
795ca3e5 1861 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1862 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1864 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1865 . "$ac_site_file"
1866 fi
1867done
1868
1869if test -r "$cache_file"; then
ad6254c5
AK
1870 # Some versions of bash will fail to source /dev/null (special
1871 # files actually), so we avoid doing that.
1872 if test -f "$cache_file"; then
ec6a6fbe
AK
1873 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1875 case $cache_file in
7a197a62
AK
1876 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877 *) . "./$cache_file";;
ad6254c5
AK
1878 esac
1879 fi
795ca3e5 1880else
ec6a6fbe
AK
1881 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1883 >$cache_file
1884fi
1885
1886# Check that the precious variables saved in the cache have kept the same
1887# value.
1888ac_cache_corrupted=false
7a197a62 1889for ac_var in $ac_precious_vars; do
ad6254c5
AK
1890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1892 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1894 case $ac_old_set,$ac_new_set in
1895 set,)
ec6a6fbe
AK
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1897$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1898 ac_cache_corrupted=: ;;
1899 ,set)
ec6a6fbe
AK
1900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1901$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1902 ac_cache_corrupted=: ;;
1903 ,);;
1904 *)
1905 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1906 # differences in whitespace do not lead to failure.
1907 ac_old_val_w=`echo x $ac_old_val`
1908 ac_new_val_w=`echo x $ac_new_val`
1909 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1910 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912 ac_cache_corrupted=:
1913 else
1914 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1915$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1916 eval $ac_var=\$ac_old_val
1917 fi
1918 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1919$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1920 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1921$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1922 fi;;
1923 esac
1924 # Pass precious variables to config.status.
1925 if test "$ac_new_set" = set; then
1926 case $ac_new_val in
ec6a6fbe 1927 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1928 *) ac_arg=$ac_var=$ac_new_val ;;
1929 esac
1930 case " $ac_configure_args " in
1931 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1932 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1933 esac
1934 fi
1935done
1936if $ac_cache_corrupted; then
ec6a6fbe
AK
1937 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1939 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1940$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1941 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1942$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1943 { (exit 1); exit 1; }; }
795ca3e5
AK
1944fi
1945
ad6254c5
AK
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
7a197a62
AK
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1967
795ca3e5
AK
1968
1969
7a197a62 1970ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1971
1972
80992638 1973################################################################################
795ca3e5 1974ac_aux_dir=
7a197a62
AK
1975for ac_dir in autoconf "$srcdir"/autoconf; do
1976 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 break
7a197a62 1980 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 break
7a197a62 1984 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 break
795ca3e5
AK
1988 fi
1989done
1990if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
1991 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1992$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1993 { (exit 1); exit 1; }; }
795ca3e5 1994fi
7a197a62
AK
1995
1996# These three variables are undocumented and unsupported,
1997# and are intended to be withdrawn in a future Autoconf release.
1998# They can cause serious problems if a builder's source tree is in a directory
1999# whose full name contains unusual characters.
2000ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2003
8ce0cbda
AK
2004
2005
ad6254c5 2006################################################################################
8ce0cbda 2007# Make sure we can run config.sub.
7a197a62 2008$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2009 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2010$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2011 { (exit 1); exit 1; }; }
2012
ec6a6fbe
AK
2013{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2014$as_echo_n "checking build system type... " >&6; }
ad6254c5 2015if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2016 $as_echo_n "(cached) " >&6
ad6254c5 2017else
7a197a62
AK
2018 ac_build_alias=$build_alias
2019test "x$ac_build_alias" = x &&
2020 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2021test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2022 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2023$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2024 { (exit 1); exit 1; }; }
7a197a62 2025ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2026 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2027$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2028 { (exit 1); exit 1; }; }
2029
2030fi
ec6a6fbe
AK
2031{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2032$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2033case $ac_cv_build in
2034*-*-*) ;;
ec6a6fbe
AK
2035*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2036$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2037 { (exit 1); exit 1; }; };;
2038esac
ad6254c5 2039build=$ac_cv_build
7a197a62
AK
2040ac_save_IFS=$IFS; IFS='-'
2041set x $ac_cv_build
2042shift
2043build_cpu=$1
2044build_vendor=$2
2045shift; shift
2046# Remember, the first character of IFS is used to create $*,
2047# except with old shells:
2048build_os=$*
2049IFS=$ac_save_IFS
2050case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2051
2052
ec6a6fbe
AK
2053{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2054$as_echo_n "checking host system type... " >&6; }
ad6254c5 2055if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2056 $as_echo_n "(cached) " >&6
ad6254c5 2057else
7a197a62
AK
2058 if test "x$host_alias" = x; then
2059 ac_cv_host=$ac_cv_build
2060else
2061 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2062 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2063$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2064 { (exit 1); exit 1; }; }
7a197a62 2065fi
ad6254c5
AK
2066
2067fi
ec6a6fbe
AK
2068{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2069$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2070case $ac_cv_host in
2071*-*-*) ;;
ec6a6fbe
AK
2072*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2073$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2074 { (exit 1); exit 1; }; };;
2075esac
ad6254c5 2076host=$ac_cv_host
7a197a62
AK
2077ac_save_IFS=$IFS; IFS='-'
2078set x $ac_cv_host
2079shift
2080host_cpu=$1
2081host_vendor=$2
2082shift; shift
2083# Remember, the first character of IFS is used to create $*,
2084# except with old shells:
2085host_os=$*
2086IFS=$ac_save_IFS
2087case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2088
2089
ec6a6fbe
AK
2090{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2091$as_echo_n "checking target system type... " >&6; }
ad6254c5 2092if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2093 $as_echo_n "(cached) " >&6
ad6254c5 2094else
7a197a62
AK
2095 if test "x$target_alias" = x; then
2096 ac_cv_target=$ac_cv_host
2097else
2098 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2099 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2100$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2101 { (exit 1); exit 1; }; }
7a197a62 2102fi
8ce0cbda 2103
ad6254c5 2104fi
ec6a6fbe
AK
2105{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2106$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2107case $ac_cv_target in
2108*-*-*) ;;
ec6a6fbe
AK
2109*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2110$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2111 { (exit 1); exit 1; }; };;
2112esac
ad6254c5 2113target=$ac_cv_target
7a197a62
AK
2114ac_save_IFS=$IFS; IFS='-'
2115set x $ac_cv_target
2116shift
2117target_cpu=$1
2118target_vendor=$2
2119shift; shift
2120# Remember, the first character of IFS is used to create $*,
2121# except with old shells:
2122target_os=$*
2123IFS=$ac_save_IFS
2124case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2125
8ce0cbda 2126
ad6254c5
AK
2127# The aliases save the names the user supplied, while $host etc.
2128# will get canonicalized.
2129test -n "$target_alias" &&
8ce0cbda
AK
2130 test "$program_prefix$program_suffix$program_transform_name" = \
2131 NONENONEs,x,x, &&
2132 program_prefix=${target_alias}-
2133
8ce0cbda
AK
2134case "$host_os" in
2135 linux*)
7f54ef36 2136 CFLAGS="$CFLAGS"
8ce0cbda
AK
2137 COPTIMISE_FLAG="-O2"
2138 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2139 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2140 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2141 LDDEPS="$LDDEPS .export.sym"
2142 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2143 LIB_SUFFIX=so
8ce0cbda
AK
2144 DEVMAPPER=yes
2145 ODIRECT=yes
d0191583 2146 DM_IOCTLS=yes
8ce0cbda 2147 SELINUX=yes
8b1a3214 2148 REALTIME=yes
8ce0cbda 2149 CLUSTER=internal
93bd259b 2150 FSADM=yes
d0191583 2151 ;;
8ce0cbda
AK
2152 darwin*)
2153 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2154 COPTIMISE_FLAG="-O2"
2155 CLDFLAGS="$CLDFLAGS"
2156 CLDWHOLEARCHIVE="-all_load"
2157 CLDNOWHOLEARCHIVE=
d0191583 2158 LIB_SUFFIX=dylib
a653923f 2159 DEVMAPPER=yes
8ce0cbda 2160 ODIRECT=no
d0191583 2161 DM_IOCTLS=no
8ce0cbda 2162 SELINUX=no
8b1a3214 2163 REALTIME=no
8ce0cbda 2164 CLUSTER=none
d0191583
JM
2165 FSADM=no
2166 ;;
8ce0cbda
AK
2167esac
2168
80992638 2169################################################################################
ec6a6fbe
AK
2170{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2171$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2172if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2173 $as_echo_n "(cached) " >&6
5951ef33
AK
2174else
2175 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2176 for ac_i in 1 2 3 4 5 6 7; do
2177 ac_script="$ac_script$as_nl$ac_script"
2178 done
ec6a6fbe 2179 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2180 $as_unset ac_script || ac_script=
ec6a6fbe 2181 if test -z "$SED"; then
5951ef33 2182 ac_path_SED_found=false
ec6a6fbe
AK
2183 # Loop through the user's path and test for each of PROGNAME-LIST
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_prog in sed gsed; do
ec6a6fbe
AK
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2192 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2193# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2194 # Check for GNU $ac_path_SED
2195case `"$ac_path_SED" --version 2>&1` in
2196*GNU*)
2197 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2198*)
2199 ac_count=0
ec6a6fbe 2200 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2201 while :
2202 do
2203 cat "conftest.in" "conftest.in" >"conftest.tmp"
2204 mv "conftest.tmp" "conftest.in"
2205 cp "conftest.in" "conftest.nl"
ec6a6fbe 2206 $as_echo '' >> "conftest.nl"
5951ef33
AK
2207 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2209 ac_count=`expr $ac_count + 1`
2210 if test $ac_count -gt ${ac_path_SED_max-0}; then
2211 # Best one so far, save it but keep looking for a better one
2212 ac_cv_path_SED="$ac_path_SED"
2213 ac_path_SED_max=$ac_count
2214 fi
2215 # 10*(2^10) chars as input seems more than enough
2216 test $ac_count -gt 10 && break
2217 done
2218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2219esac
2220
ec6a6fbe
AK
2221 $ac_path_SED_found && break 3
2222 done
5951ef33
AK
2223 done
2224done
5951ef33 2225IFS=$as_save_IFS
ec6a6fbe
AK
2226 if test -z "$ac_cv_path_SED"; then
2227 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2228$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2229 { (exit 1); exit 1; }; }
ec6a6fbe 2230 fi
5951ef33
AK
2231else
2232 ac_cv_path_SED=$SED
2233fi
2234
2235fi
ec6a6fbe
AK
2236{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2237$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2238 SED="$ac_cv_path_SED"
2239 rm -f conftest.sed
2240
ad6254c5 2241for ac_prog in gawk mawk nawk awk
795ca3e5 2242do
ad6254c5 2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2244set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2246$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2247if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2248 $as_echo_n "(cached) " >&6
795ca3e5
AK
2249else
2250 if test -n "$AWK"; then
2251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2252else
ad6254c5
AK
2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH
2255do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2260 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2262 break 2
2263 fi
2264done
2265done
7a197a62 2266IFS=$as_save_IFS
ad6254c5 2267
795ca3e5
AK
2268fi
2269fi
ad6254c5 2270AWK=$ac_cv_prog_AWK
795ca3e5 2271if test -n "$AWK"; then
ec6a6fbe
AK
2272 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2273$as_echo "$AWK" >&6; }
795ca3e5 2274else
ec6a6fbe
AK
2275 { $as_echo "$as_me:$LINENO: result: no" >&5
2276$as_echo "no" >&6; }
795ca3e5
AK
2277fi
2278
7a197a62 2279
ad6254c5
AK
2280 test -n "$AWK" && break
2281done
2282
2283ac_ext=c
2284ac_cpp='$CPP $CPPFLAGS'
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2290set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2292$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2293if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2294 $as_echo_n "(cached) " >&6
ad6254c5
AK
2295else
2296 if test -n "$CC"; then
2297 ac_cv_prog_CC="$CC" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2306 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2308 break 2
2309 fi
2310done
8106cdd5 2311done
7a197a62 2312IFS=$as_save_IFS
8106cdd5 2313
ad6254c5
AK
2314fi
2315fi
2316CC=$ac_cv_prog_CC
2317if test -n "$CC"; then
ec6a6fbe
AK
2318 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2319$as_echo "$CC" >&6; }
ad6254c5 2320else
ec6a6fbe
AK
2321 { $as_echo "$as_me:$LINENO: result: no" >&5
2322$as_echo "no" >&6; }
ad6254c5
AK
2323fi
2324
7a197a62 2325
ad6254c5
AK
2326fi
2327if test -z "$ac_cv_prog_CC"; then
2328 ac_ct_CC=$CC
2329 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2330set dummy gcc; ac_word=$2
ec6a6fbe
AK
2331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2332$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2334 $as_echo_n "(cached) " >&6
ad6254c5
AK
2335else
2336 if test -n "$ac_ct_CC"; then
2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2346 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2348 break 2
2349 fi
2350done
2351done
7a197a62 2352IFS=$as_save_IFS
ad6254c5
AK
2353
2354fi
2355fi
2356ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2358 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2360else
ec6a6fbe
AK
2361 { $as_echo "$as_me:$LINENO: result: no" >&5
2362$as_echo "no" >&6; }
ad6254c5
AK
2363fi
2364
7a197a62
AK
2365 if test "x$ac_ct_CC" = x; then
2366 CC=""
2367 else
2368 case $cross_compiling:$ac_tool_warned in
2369yes:)
ec6a6fbe
AK
2370{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2372ac_tool_warned=yes ;;
2373esac
2374 CC=$ac_ct_CC
2375 fi
ad6254c5
AK
2376else
2377 CC="$ac_cv_prog_CC"
2378fi
2379
2380if test -z "$CC"; then
7a197a62
AK
2381 if test -n "$ac_tool_prefix"; then
2382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2383set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2385$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2386if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2387 $as_echo_n "(cached) " >&6
8106cdd5
AK
2388else
2389 if test -n "$CC"; then
2390 ac_cv_prog_CC="$CC" # Let the user override the test.
2391else
ad6254c5
AK
2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2399 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2401 break 2
2402 fi
2403done
2404done
7a197a62 2405IFS=$as_save_IFS
ad6254c5 2406
8106cdd5
AK
2407fi
2408fi
ad6254c5 2409CC=$ac_cv_prog_CC
8106cdd5 2410if test -n "$CC"; then
ec6a6fbe
AK
2411 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2412$as_echo "$CC" >&6; }
ad6254c5 2413else
ec6a6fbe
AK
2414 { $as_echo "$as_me:$LINENO: result: no" >&5
2415$as_echo "no" >&6; }
ad6254c5
AK
2416fi
2417
8106cdd5 2418
7a197a62 2419 fi
ad6254c5 2420fi
795ca3e5
AK
2421if test -z "$CC"; then
2422 # Extract the first word of "cc", so it can be a program name with args.
2423set dummy cc; ac_word=$2
ec6a6fbe
AK
2424{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2426if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2427 $as_echo_n "(cached) " >&6
795ca3e5
AK
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
795ca3e5 2432 ac_prog_rejected=no
ad6254c5
AK
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2441 ac_prog_rejected=yes
2442 continue
2443 fi
2444 ac_cv_prog_CC="cc"
ec6a6fbe 2445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2446 break 2
2447 fi
2448done
2449done
7a197a62 2450IFS=$as_save_IFS
ad6254c5 2451
795ca3e5
AK
2452if test $ac_prog_rejected = yes; then
2453 # We found a bogon in the path, so make sure we never use it.
2454 set dummy $ac_cv_prog_CC
2455 shift
ad6254c5 2456 if test $# != 0; then
795ca3e5
AK
2457 # We chose a different compiler from the bogus one.
2458 # However, it has the same basename, so the bogon will be chosen
2459 # first if we set CC to just the basename; use the full file name.
2460 shift
ad6254c5 2461 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2462 fi
2463fi
2464fi
2465fi
ad6254c5 2466CC=$ac_cv_prog_CC
795ca3e5 2467if test -n "$CC"; then
ec6a6fbe
AK
2468 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2469$as_echo "$CC" >&6; }
795ca3e5 2470else
ec6a6fbe
AK
2471 { $as_echo "$as_me:$LINENO: result: no" >&5
2472$as_echo "no" >&6; }
795ca3e5
AK
2473fi
2474
7a197a62 2475
ad6254c5
AK
2476fi
2477if test -z "$CC"; then
2478 if test -n "$ac_tool_prefix"; then
7a197a62 2479 for ac_prog in cl.exe
ad6254c5
AK
2480 do
2481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2483{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2484$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2485if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2486 $as_echo_n "(cached) " >&6
795ca3e5
AK
2487else
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC="$CC" # Let the user override the test.
2490else
ad6254c5
AK
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2500 break 2
2501 fi
2502done
2503done
7a197a62 2504IFS=$as_save_IFS
ad6254c5 2505
795ca3e5
AK
2506fi
2507fi
ad6254c5 2508CC=$ac_cv_prog_CC
795ca3e5 2509if test -n "$CC"; then
ec6a6fbe
AK
2510 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2511$as_echo "$CC" >&6; }
795ca3e5 2512else
ec6a6fbe
AK
2513 { $as_echo "$as_me:$LINENO: result: no" >&5
2514$as_echo "no" >&6; }
795ca3e5 2515fi
ad6254c5 2516
7a197a62 2517
ad6254c5
AK
2518 test -n "$CC" && break
2519 done
2520fi
2521if test -z "$CC"; then
2522 ac_ct_CC=$CC
7a197a62 2523 for ac_prog in cl.exe
ad6254c5
AK
2524do
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2527{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2529if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2530 $as_echo_n "(cached) " >&6
ad6254c5
AK
2531else
2532 if test -n "$ac_ct_CC"; then
2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2542 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2544 break 2
795ca3e5 2545 fi
ad6254c5
AK
2546done
2547done
7a197a62 2548IFS=$as_save_IFS
ad6254c5
AK
2549
2550fi
2551fi
2552ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2554 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2555$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2556else
ec6a6fbe
AK
2557 { $as_echo "$as_me:$LINENO: result: no" >&5
2558$as_echo "no" >&6; }
795ca3e5
AK
2559fi
2560
7a197a62 2561
ad6254c5
AK
2562 test -n "$ac_ct_CC" && break
2563done
795ca3e5 2564
7a197a62
AK
2565 if test "x$ac_ct_CC" = x; then
2566 CC=""
2567 else
2568 case $cross_compiling:$ac_tool_warned in
2569yes:)
ec6a6fbe
AK
2570{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2572ac_tool_warned=yes ;;
2573esac
2574 CC=$ac_ct_CC
2575 fi
ad6254c5
AK
2576fi
2577
2578fi
2579
2580
ec6a6fbe
AK
2581test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2584See \`config.log' for more details." >&5
ec6a6fbe 2585$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2586See \`config.log' for more details." >&2;}
ec6a6fbe 2587 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2588
2589# Provide some information about the compiler.
ec6a6fbe
AK
2590$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2591set X $ac_compile
2592ac_compiler=$2
7a197a62
AK
2593{ (ac_try="$ac_compiler --version >&5"
2594case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
ec6a6fbe
AK
2598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2599$as_echo "$ac_try_echo") >&5
7a197a62 2600 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2601 ac_status=$?
ec6a6fbe 2602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2603 (exit $ac_status); }
7a197a62
AK
2604{ (ac_try="$ac_compiler -v >&5"
2605case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608esac
ec6a6fbe
AK
2609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2610$as_echo "$ac_try_echo") >&5
7a197a62 2611 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2612 ac_status=$?
ec6a6fbe 2613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2614 (exit $ac_status); }
7a197a62
AK
2615{ (ac_try="$ac_compiler -V >&5"
2616case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619esac
ec6a6fbe
AK
2620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2621$as_echo "$ac_try_echo") >&5
7a197a62 2622 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2623 ac_status=$?
ec6a6fbe 2624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2625 (exit $ac_status); }
2626
2627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
2633
2634int
2635main ()
2636{
2637
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642ac_clean_files_save=$ac_clean_files
ec6a6fbe 2643ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2644# Try to create an executable without -o first, disregard a.out.
2645# It will help us diagnose broken compilers, and finding out an intuition
2646# of exeext.
ec6a6fbe
AK
2647{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2648$as_echo_n "checking for C compiler default output file name... " >&6; }
2649ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650
2651# The possible output files:
2652ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653
7a197a62
AK
2654ac_rmfiles=
2655for ac_file in $ac_files
2656do
2657 case $ac_file in
ec6a6fbe 2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660 esac
2661done
2662rm -f $ac_rmfiles
2663
2664if { (ac_try="$ac_link_default"
2665case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668esac
ec6a6fbe
AK
2669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670$as_echo "$ac_try_echo") >&5
7a197a62 2671 (eval "$ac_link_default") 2>&5
ad6254c5 2672 ac_status=$?
ec6a6fbe 2673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2674 (exit $ac_status); }; then
7a197a62
AK
2675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2676# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2677# in a Makefile. We should not override ac_cv_exeext if it was cached,
2678# so that the user can short-circuit this test for compilers unknown to
2679# Autoconf.
25fbec5b 2680for ac_file in $ac_files ''
ad6254c5
AK
2681do
2682 test -f "$ac_file" || continue
2683 case $ac_file in
ec6a6fbe 2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2685 ;;
ad6254c5 2686 [ab].out )
8a2fc586
AK
2687 # We found the default executable, but exeext='' is most
2688 # certainly right.
2689 break;;
ad6254c5 2690 *.* )
7a197a62
AK
2691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692 then :; else
2693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 fi
2695 # We set ac_cv_exeext here because the later test for it is not
2696 # safe: cross compilers may not add the suffix if given an `-o'
2697 # argument, so we may need to know it at that point already.
2698 # Even if this section looks crufty: it has the advantage of
2699 # actually working.
8a2fc586 2700 break;;
ad6254c5 2701 * )
8a2fc586 2702 break;;
ad6254c5
AK
2703 esac
2704done
7a197a62
AK
2705test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
ad6254c5 2707else
25fbec5b
AK
2708 ac_file=''
2709fi
2710
ec6a6fbe
AK
2711{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2712$as_echo "$ac_file" >&6; }
25fbec5b 2713if test -z "$ac_file"; then
ec6a6fbe 2714 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
ec6a6fbe
AK
2717{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2720See \`config.log' for more details." >&5
ec6a6fbe 2721$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2722See \`config.log' for more details." >&2;}
ec6a6fbe 2723 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2724fi
2725
2726ac_exeext=$ac_cv_exeext
ad6254c5 2727
7a197a62 2728# Check that the compiler produces executables we can run. If not, either
ad6254c5 2729# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2730{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2731$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2732# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2733# If not cross compiling, check that we can run a simple program.
2734if test "$cross_compiling" != yes; then
2735 if { ac_try='./$ac_file'
7a197a62
AK
2736 { (case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
ec6a6fbe
AK
2740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2741$as_echo "$ac_try_echo") >&5
7a197a62 2742 (eval "$ac_try") 2>&5
ad6254c5 2743 ac_status=$?
ec6a6fbe 2744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2745 (exit $ac_status); }; }; then
2746 cross_compiling=no
795ca3e5 2747 else
ad6254c5
AK
2748 if test "$cross_compiling" = maybe; then
2749 cross_compiling=yes
2750 else
ec6a6fbe
AK
2751 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2754If you meant to cross compile, use \`--host'.
2755See \`config.log' for more details." >&5
ec6a6fbe 2756$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2757If you meant to cross compile, use \`--host'.
2758See \`config.log' for more details." >&2;}
ec6a6fbe 2759 { (exit 1); exit 1; }; }; }
ad6254c5 2760 fi
795ca3e5 2761 fi
80992638 2762fi
ec6a6fbe
AK
2763{ $as_echo "$as_me:$LINENO: result: yes" >&5
2764$as_echo "yes" >&6; }
ad6254c5 2765
ec6a6fbe 2766rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2767ac_clean_files=$ac_clean_files_save
7a197a62 2768# Check that the compiler produces executables we can run. If not, either
ad6254c5 2769# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2770{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2771$as_echo_n "checking whether we are cross compiling... " >&6; }
2772{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2773$as_echo "$cross_compiling" >&6; }
7a197a62 2774
ec6a6fbe
AK
2775{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2776$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2777if { (ac_try="$ac_link"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
ec6a6fbe
AK
2782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2783$as_echo "$ac_try_echo") >&5
7a197a62 2784 (eval "$ac_link") 2>&5
ad6254c5 2785 ac_status=$?
ec6a6fbe 2786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2787 (exit $ac_status); }; then
2788 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2789# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2790# work properly (i.e., refer to `conftest.exe'), while it won't with
2791# `rm'.
2792for ac_file in conftest.exe conftest conftest.*; do
2793 test -f "$ac_file" || continue
2794 case $ac_file in
ec6a6fbe 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2796 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2797 break;;
ad6254c5
AK
2798 * ) break;;
2799 esac
2800done
80992638 2801else
ec6a6fbe
AK
2802 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2805See \`config.log' for more details." >&5
ec6a6fbe 2806$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2807See \`config.log' for more details." >&2;}
ec6a6fbe 2808 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2809fi
2810
2811rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2812{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2813$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2814
2815rm -f conftest.$ac_ext
2816EXEEXT=$ac_cv_exeext
2817ac_exeext=$EXEEXT
ec6a6fbe
AK
2818{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2819$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2820if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2821 $as_echo_n "(cached) " >&6
795ca3e5 2822else
ad6254c5 2823 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2824/* confdefs.h. */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h. */
2829
2830int
2831main ()
2832{
2833
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838rm -f conftest.o conftest.obj
7a197a62
AK
2839if { (ac_try="$ac_compile"
2840case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
ec6a6fbe
AK
2844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2845$as_echo "$ac_try_echo") >&5
7a197a62 2846 (eval "$ac_compile") 2>&5
ad6254c5 2847 ac_status=$?
ec6a6fbe 2848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2849 (exit $ac_status); }; then
7a197a62
AK
2850 for ac_file in conftest.o conftest.obj conftest.*; do
2851 test -f "$ac_file" || continue;
ad6254c5 2852 case $ac_file in
ec6a6fbe 2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2855 break;;
2856 esac
2857done
2858else
ec6a6fbe 2859 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
ec6a6fbe
AK
2862{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2865See \`config.log' for more details." >&5
ec6a6fbe 2866$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2867See \`config.log' for more details." >&2;}
ec6a6fbe 2868 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2869fi
2870
2871rm -f conftest.$ac_cv_objext conftest.$ac_ext
2872fi
ec6a6fbe
AK
2873{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2874$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2875OBJEXT=$ac_cv_objext
2876ac_objext=$OBJEXT
ec6a6fbe
AK
2877{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2878$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2879if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2880 $as_echo_n "(cached) " >&6
ad6254c5
AK
2881else
2882 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2883/* confdefs.h. */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h. */
2888
2889int
2890main ()
2891{
2892#ifndef __GNUC__
2893 choke me
2894#endif
80992638 2895
ad6254c5
AK
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext
7a197a62
AK
2901if { (ac_try="$ac_compile"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
ec6a6fbe
AK
2906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2907$as_echo "$ac_try_echo") >&5
7a197a62 2908 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2909 ac_status=$?
8a2fc586
AK
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
ec6a6fbe 2913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2914 (exit $ac_status); } && {
2915 test -z "$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 } && test -s conftest.$ac_objext; then
ad6254c5 2918 ac_compiler_gnu=yes
80992638 2919else
ec6a6fbe 2920 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
7a197a62 2923 ac_compiler_gnu=no
8106cdd5 2924fi
7a197a62
AK
2925
2926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2927ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2928
ad6254c5 2929fi
ec6a6fbe
AK
2930{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2931$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2932if test $ac_compiler_gnu = yes; then
2933 GCC=yes
2934else
2935 GCC=
2936fi
ad6254c5
AK
2937ac_test_CFLAGS=${CFLAGS+set}
2938ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
2939{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2940$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2941if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 2942 $as_echo_n "(cached) " >&6
795ca3e5 2943else
7a197a62
AK
2944 ac_save_c_werror_flag=$ac_c_werror_flag
2945 ac_c_werror_flag=yes
2946 ac_cv_prog_cc_g=no
2947 CFLAGS="-g"
2948 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2949/* confdefs.h. */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h. */
2954
2955int
2956main ()
2957{
2958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext
7a197a62
AK
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
ec6a6fbe
AK
2969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2970$as_echo "$ac_try_echo") >&5
7a197a62 2971 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2972 ac_status=$?
8a2fc586
AK
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
ec6a6fbe 2976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2977 (exit $ac_status); } && {
2978 test -z "$ac_c_werror_flag" ||
2979 test ! -s conftest.err
2980 } && test -s conftest.$ac_objext; then
7a197a62
AK
2981 ac_cv_prog_cc_g=yes
2982else
ec6a6fbe 2983 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 CFLAGS=""
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993
2994int
2995main ()
2996{
2997
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
ec6a6fbe
AK
3008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009$as_echo "$ac_try_echo") >&5
7a197a62 3010 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3011 ac_status=$?
7a197a62
AK
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
ec6a6fbe 3015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
7a197a62
AK
3020 :
3021else
ec6a6fbe 3022 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025 ac_c_werror_flag=$ac_save_c_werror_flag
3026 CFLAGS="-g"
3027 cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h. */
3033
3034int
3035main ()
3036{
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
ec6a6fbe
AK
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
7a197a62 3050 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3051 ac_status=$?
7a197a62
AK
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
ec6a6fbe 3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3060 ac_cv_prog_cc_g=yes
3061else
ec6a6fbe 3062 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3063sed 's/^/| /' conftest.$ac_ext >&5
80992638 3064
7a197a62
AK
3065
3066fi
3067
3068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3069fi
3070
3071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3072fi
7a197a62
AK
3073
3074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3076fi
ec6a6fbe
AK
3077{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3078$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3079if test "$ac_test_CFLAGS" = set; then
ad6254c5 3080 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3081elif test $ac_cv_prog_cc_g = yes; then
3082 if test "$GCC" = yes; then
3083 CFLAGS="-g -O2"
3084 else
3085 CFLAGS="-g"
3086 fi
3087else
3088 if test "$GCC" = yes; then
3089 CFLAGS="-O2"
3090 else
3091 CFLAGS=
3092 fi
3093fi
ec6a6fbe
AK
3094{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3095$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3096if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3097 $as_echo_n "(cached) " >&6
ad6254c5 3098else
7a197a62 3099 ac_cv_prog_cc_c89=no
ad6254c5
AK
3100ac_save_CC=$CC
3101cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107#include <stdarg.h>
3108#include <stdio.h>
3109#include <sys/types.h>
3110#include <sys/stat.h>
3111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3112struct buf { int x; };
3113FILE * (*rcsopen) (struct buf *, struct stat *, int);
3114static char *e (p, i)
3115 char **p;
3116 int i;
3117{
3118 return p[i];
3119}
3120static char *f (char * (*g) (char **, int), char **p, ...)
3121{
3122 char *s;
3123 va_list v;
3124 va_start (v,p);
3125 s = g (p, va_arg (v,int));
3126 va_end (v);
3127 return s;
3128}
8a2fc586
AK
3129
3130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3131 function prototypes and stuff, but not '\xHH' hex character constants.
3132 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3133 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3135 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3136 that's true only with -std. */
8a2fc586
AK
3137int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3138
7a197a62
AK
3139/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3140 inside strings and character constants. */
3141#define FOO(x) 'x'
3142int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3143
ad6254c5
AK
3144int test (int i, double x);
3145struct s1 {int (*f) (int a);};
3146struct s2 {int (*f) (double a);};
3147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3148int argc;
3149char **argv;
3150int
3151main ()
3152{
3153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3154 ;
3155 return 0;
3156}
3157_ACEOF
7a197a62
AK
3158for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3160do
3161 CC="$ac_save_CC $ac_arg"
3162 rm -f conftest.$ac_objext
7a197a62
AK
3163if { (ac_try="$ac_compile"
3164case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
ec6a6fbe
AK
3168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169$as_echo "$ac_try_echo") >&5
7a197a62 3170 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3171 ac_status=$?
8a2fc586
AK
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
ec6a6fbe 3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
7a197a62 3180 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3181else
ec6a6fbe 3182 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
7a197a62 3185
ad6254c5 3186fi
7a197a62
AK
3187
3188rm -f core conftest.err conftest.$ac_objext
3189 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3190done
7a197a62 3191rm -f conftest.$ac_ext
ad6254c5
AK
3192CC=$ac_save_CC
3193
3194fi
7a197a62
AK
3195# AC_CACHE_VAL
3196case "x$ac_cv_prog_cc_c89" in
3197 x)
ec6a6fbe
AK
3198 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3199$as_echo "none needed" >&6; } ;;
7a197a62 3200 xno)
ec6a6fbe
AK
3201 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3202$as_echo "unsupported" >&6; } ;;
ad6254c5 3203 *)
7a197a62 3204 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3205 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3206$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3207esac
3208
ad6254c5 3209
ad6254c5
AK
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3215
d0191583
JM
3216
3217
3218ac_ext=c
3219ac_cpp='$CPP $CPPFLAGS'
3220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3223{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3224$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3225# On Suns, sometimes $CPP names a directory.
3226if test -n "$CPP" && test -d "$CPP"; then
3227 CPP=
3228fi
3229if test -z "$CPP"; then
3230 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3231 $as_echo_n "(cached) " >&6
ad6254c5 3232else
d0191583
JM
3233 # Double quotes because CPP needs to be expanded
3234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3235 do
3236 ac_preproc_ok=false
3237for ac_c_preproc_warn_flag in '' yes
ad6254c5 3238do
d0191583
JM
3239 # Use a header file that comes with gcc, so configuring glibc
3240 # with a fresh cross-compiler works.
3241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242 # <limits.h> exists even on freestanding compilers.
3243 # On the NeXT, cc -E runs the code through the compiler's parser,
3244 # not just through cpp. "Syntax error" is here to catch this case.
3245 cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h. */
3251#ifdef __STDC__
3252# include <limits.h>
3253#else
3254# include <assert.h>
3255#endif
3256 Syntax error
3257_ACEOF
3258if { (ac_try="$ac_cpp conftest.$ac_ext"
3259case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
ad6254c5 3262esac
ec6a6fbe
AK
3263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264$as_echo "$ac_try_echo") >&5
d0191583
JM
3265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
ec6a6fbe 3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3271 (exit $ac_status); } >/dev/null && {
3272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 }; then
3275 :
3276else
ec6a6fbe 3277 $as_echo "$as_me: failed program was:" >&5
d0191583 3278sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3279
d0191583
JM
3280 # Broken: fails on valid input.
3281continue
795ca3e5 3282fi
795ca3e5 3283
d0191583 3284rm -f conftest.err conftest.$ac_ext
795ca3e5 3285
d0191583
JM
3286 # OK, works on sane cases. Now check whether nonexistent headers
3287 # can be detected and how.
3288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294#include <ac_nonexistent.h>
3295_ACEOF
3296if { (ac_try="$ac_cpp conftest.$ac_ext"
3297case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
ec6a6fbe
AK
3301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3302$as_echo "$ac_try_echo") >&5
d0191583
JM
3303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
ec6a6fbe 3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3309 (exit $ac_status); } >/dev/null && {
3310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 }; then
3313 # Broken: success on invalid input.
3314continue
3315else
ec6a6fbe 3316 $as_echo "$as_me: failed program was:" >&5
d0191583 3317sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3318
d0191583
JM
3319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
795ca3e5 3323
d0191583
JM
3324rm -f conftest.err conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.err conftest.$ac_ext
3329if $ac_preproc_ok; then
3330 break
795ca3e5
AK
3331fi
3332
d0191583
JM
3333 done
3334 ac_cv_prog_CPP=$CPP
3335
3336fi
3337 CPP=$ac_cv_prog_CPP
795ca3e5 3338else
d0191583
JM
3339 ac_cv_prog_CPP=$CPP
3340fi
ec6a6fbe
AK
3341{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3342$as_echo "$CPP" >&6; }
d0191583
JM
3343ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h. */
ad6254c5 3354_ACEOF
d0191583
JM
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
3358#ifdef __STDC__
3359# include <limits.h>
3360#else
3361# include <assert.h>
3362#endif
3363 Syntax error
3364_ACEOF
3365if { (ac_try="$ac_cpp conftest.$ac_ext"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
7a197a62 3369esac
ec6a6fbe
AK
3370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3371$as_echo "$ac_try_echo") >&5
d0191583
JM
3372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
ec6a6fbe 3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3378 (exit $ac_status); } >/dev/null && {
3379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3380 test ! -s conftest.err
3381 }; then
3382 :
795ca3e5 3383else
ec6a6fbe 3384 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 # Broken: fails on valid input.
3388continue
795ca3e5
AK
3389fi
3390
d0191583
JM
3391rm -f conftest.err conftest.$ac_ext
3392
3393 # OK, works on sane cases. Now check whether nonexistent headers
3394 # can be detected and how.
3395 cat >conftest.$ac_ext <<_ACEOF
3396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h. */
3401#include <ac_nonexistent.h>
3402_ACEOF
3403if { (ac_try="$ac_cpp conftest.$ac_ext"
3404case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
ec6a6fbe
AK
3408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409$as_echo "$ac_try_echo") >&5
d0191583
JM
3410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
ec6a6fbe 3415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3416 (exit $ac_status); } >/dev/null && {
3417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 }; then
3420 # Broken: success on invalid input.
3421continue
795ca3e5 3422else
ec6a6fbe 3423 $as_echo "$as_me: failed program was:" >&5
d0191583 3424sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3425
d0191583
JM
3426 # Passes both tests.
3427ac_preproc_ok=:
3428break
795ca3e5 3429fi
d0191583
JM
3430
3431rm -f conftest.err conftest.$ac_ext
3432
3433done
3434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435rm -f conftest.err conftest.$ac_ext
3436if $ac_preproc_ok; then
3437 :
8106cdd5 3438else
ec6a6fbe
AK
3439 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3442See \`config.log' for more details." >&5
ec6a6fbe 3443$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3444See \`config.log' for more details." >&2;}
ec6a6fbe 3445 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3446fi
3447
d0191583
JM
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
7a197a62 3454
ec6a6fbe
AK
3455{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3456$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3457if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3458 $as_echo_n "(cached) " >&6
ad6254c5 3459else
ec6a6fbe 3460 if test -z "$GREP"; then
d0191583 3461 ac_path_GREP_found=false
ec6a6fbe
AK
3462 # Loop through the user's path and test for each of PROGNAME-LIST
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3465do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
d0191583 3468 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3471 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3472# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3473 # Check for GNU $ac_path_GREP
3474case `"$ac_path_GREP" --version 2>&1` in
3475*GNU*)
3476 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3477*)
3478 ac_count=0
ec6a6fbe 3479 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3480 while :
3481 do
3482 cat "conftest.in" "conftest.in" >"conftest.tmp"
3483 mv "conftest.tmp" "conftest.in"
3484 cp "conftest.in" "conftest.nl"
ec6a6fbe 3485 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3486 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3488 ac_count=`expr $ac_count + 1`
3489 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3490 # Best one so far, save it but keep looking for a better one
3491 ac_cv_path_GREP="$ac_path_GREP"
3492 ac_path_GREP_max=$ac_count
3493 fi
3494 # 10*(2^10) chars as input seems more than enough
3495 test $ac_count -gt 10 && break
3496 done
3497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3498esac
3499
ec6a6fbe
AK
3500 $ac_path_GREP_found && break 3
3501 done
d0191583 3502 done
ad6254c5 3503done
7a197a62 3504IFS=$as_save_IFS
ec6a6fbe
AK
3505 if test -z "$ac_cv_path_GREP"; then
3506 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3507$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3508 { (exit 1); exit 1; }; }
ec6a6fbe 3509 fi
80992638 3510else
d0191583 3511 ac_cv_path_GREP=$GREP
8106cdd5 3512fi
8106cdd5 3513
80992638 3514fi
ec6a6fbe
AK
3515{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3516$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3517 GREP="$ac_cv_path_GREP"
795ca3e5 3518
d0191583 3519
ec6a6fbe
AK
3520{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3521$as_echo_n "checking for egrep... " >&6; }
d0191583 3522if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3523 $as_echo_n "(cached) " >&6
8a2fc586 3524else
d0191583
JM
3525 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3526 then ac_cv_path_EGREP="$GREP -E"
3527 else
ec6a6fbe 3528 if test -z "$EGREP"; then
d0191583 3529 ac_path_EGREP_found=false
ec6a6fbe
AK
3530 # Loop through the user's path and test for each of PROGNAME-LIST
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
d0191583 3536 for ac_prog in egrep; do
ec6a6fbe
AK
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3539 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3540# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3541 # Check for GNU $ac_path_EGREP
3542case `"$ac_path_EGREP" --version 2>&1` in
3543*GNU*)
3544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3545*)
3546 ac_count=0
ec6a6fbe 3547 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3548 while :
3549 do
3550 cat "conftest.in" "conftest.in" >"conftest.tmp"
3551 mv "conftest.tmp" "conftest.in"
3552 cp "conftest.in" "conftest.nl"
ec6a6fbe 3553 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3556 ac_count=`expr $ac_count + 1`
3557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3558 # Best one so far, save it but keep looking for a better one
3559 ac_cv_path_EGREP="$ac_path_EGREP"
3560 ac_path_EGREP_max=$ac_count
3561 fi
3562 # 10*(2^10) chars as input seems more than enough
3563 test $ac_count -gt 10 && break
3564 done
3565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3566esac
8a2fc586 3567
ec6a6fbe
AK
3568 $ac_path_EGREP_found && break 3
3569 done
d0191583 3570 done
8a2fc586 3571done
7a197a62 3572IFS=$as_save_IFS
ec6a6fbe
AK
3573 if test -z "$ac_cv_path_EGREP"; then
3574 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3575$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3576 { (exit 1); exit 1; }; }
ec6a6fbe 3577 fi
d0191583
JM
3578else
3579 ac_cv_path_EGREP=$EGREP
3580fi
ad6254c5 3581
d0191583
JM
3582 fi
3583fi
ec6a6fbe
AK
3584{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3585$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3586 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3587
3588
d0191583 3589if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3590 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3591$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3592if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3593 $as_echo_n "(cached) " >&6
8106cdd5 3594else
d0191583 3595 ac_pattern="Autoconf.*'x'"
ad6254c5 3596 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3597/* confdefs.h. */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h. */
d0191583
JM
3602#include <sgtty.h>
3603Autoconf TIOCGETP
ad6254c5 3604_ACEOF
d0191583
JM
3605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3607 ac_cv_prog_gcc_traditional=yes
8106cdd5 3608else
d0191583 3609 ac_cv_prog_gcc_traditional=no
80992638 3610fi
d0191583 3611rm -f conftest*
ad6254c5 3612
8106cdd5 3613
d0191583
JM
3614 if test $ac_cv_prog_gcc_traditional = no; then
3615 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h. */
d0191583
JM
3621#include <termio.h>
3622Autoconf TCGETA
ad6254c5 3623_ACEOF
d0191583
JM
3624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3625 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3626 ac_cv_prog_gcc_traditional=yes
7a197a62 3627fi
d0191583 3628rm -f conftest*
795ca3e5 3629
d0191583 3630 fi
795ca3e5 3631fi
ec6a6fbe
AK
3632{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3633$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3634 if test $ac_cv_prog_gcc_traditional = yes; then
3635 CC="$CC -traditional"
3636 fi
795ca3e5
AK
3637fi
3638
d0191583
JM
3639# Find a good install program. We prefer a C program (faster),
3640# so one script is as good as another. But avoid the broken or
3641# incompatible versions:
3642# SysV /etc/install, /usr/sbin/install
3643# SunOS /usr/etc/install
3644# IRIX /sbin/install
3645# AIX /bin/install
3646# AmigaOS /C/install, which installs bootblocks on floppy discs
3647# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3648# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3649# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3650# OS/2's system install, which has a completely different semantic
3651# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3652# Reject install programs that cannot install multiple files.
3653{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3654$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3655if test -z "$INSTALL"; then
3656if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3657 $as_echo_n "(cached) " >&6
ad6254c5 3658else
d0191583
JM
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 # Account for people who put trailing slashes in PATH elements.
3665case $as_dir/ in
3666 ./ | .// | /cC/* | \
3667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3669 /usr/ucb/* ) ;;
3670 *)
3671 # OSF1 and SCO ODT 3.0 have their own names for install.
3672 # Don't use installbsd from OSF since it installs stuff as root
3673 # by default.
3674 for ac_prog in ginstall scoinst install; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3677 if test $ac_prog = install &&
3678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # AIX install. It has an incompatible calling convention.
3680 :
3681 elif test $ac_prog = install &&
3682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683 # program-specific install script used by HP pwplus--don't use.
3684 :
3685 else
ec6a6fbe
AK
3686 rm -rf conftest.one conftest.two conftest.dir
3687 echo one > conftest.one
3688 echo two > conftest.two
3689 mkdir conftest.dir
3690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3691 test -s conftest.one && test -s conftest.two &&
3692 test -s conftest.dir/conftest.one &&
3693 test -s conftest.dir/conftest.two
3694 then
3695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3696 break 3
3697 fi
d0191583
JM
3698 fi
3699 fi
3700 done
3701 done
3702 ;;
3703esac
ec6a6fbe 3704
d0191583
JM
3705done
3706IFS=$as_save_IFS
80992638 3707
ec6a6fbe 3708rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3709
3710fi
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
7a197a62 3713 else
d0191583
JM
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 INSTALL=$ac_install_sh
7a197a62 3719 fi
d0191583 3720fi
ec6a6fbe
AK
3721{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3722$as_echo "$INSTALL" >&6; }
ad6254c5 3723
d0191583
JM
3724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725# It thinks the first close brace ends the variable substitution.
3726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3727
d0191583 3728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3729
d0191583
JM
3730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3731
ec6a6fbe
AK
3732{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3733$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3734LN_S=$as_ln_s
3735if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3736 { $as_echo "$as_me:$LINENO: result: yes" >&5
3737$as_echo "yes" >&6; }
d0191583 3738else
ec6a6fbe
AK
3739 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3740$as_echo "no, using $LN_S" >&6; }
795ca3e5 3741fi
d0191583 3742
ec6a6fbe
AK
3743{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3744$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3745set x ${MAKE-make}
3746ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3747if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3748 $as_echo_n "(cached) " >&6
7a197a62 3749else
d0191583
JM
3750 cat >conftest.make <<\_ACEOF
3751SHELL = /bin/sh
3752all:
3753 @echo '@@@%%%=$(MAKE)=@@@%%%'
3754_ACEOF
3755# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3756case `${MAKE-make} -f conftest.make 2>/dev/null` in
3757 *@@@%%%=?*=@@@%%%*)
3758 eval ac_cv_prog_make_${ac_make}_set=yes;;
3759 *)
3760 eval ac_cv_prog_make_${ac_make}_set=no;;
3761esac
3762rm -f conftest.make
ad6254c5 3763fi
d0191583 3764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3765 { $as_echo "$as_me:$LINENO: result: yes" >&5
3766$as_echo "yes" >&6; }
d0191583
JM
3767 SET_MAKE=
3768else
ec6a6fbe
AK
3769 { $as_echo "$as_me:$LINENO: result: no" >&5
3770$as_echo "no" >&6; }
d0191583 3771 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3772fi
8106cdd5 3773
ec6a6fbe
AK
3774{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3775$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3776if test -z "$MKDIR_P"; then
3777 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3778 $as_echo_n "(cached) " >&6
5556819a
AK
3779else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_prog in mkdir gmkdir; do
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3788 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3789 'mkdir (GNU coreutils) '* | \
3790 'mkdir (coreutils) '* | \
3791 'mkdir (fileutils) '4.1*)
3792 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3793 break 3;;
3794 esac
3795 done
3796 done
3797done
3798IFS=$as_save_IFS
3799
3800fi
3801
3802 if test "${ac_cv_path_mkdir+set}" = set; then
3803 MKDIR_P="$ac_cv_path_mkdir -p"
3804 else
3805 # As a last resort, use the slow shell script. Don't cache a
3806 # value for MKDIR_P within a source directory, because that will
3807 # break other packages using the cache if that directory is
3808 # removed, or if the value is a relative name.
3809 test -d ./--version && rmdir ./--version
3810 MKDIR_P="$ac_install_sh -d"
3811 fi
3812fi
ec6a6fbe
AK
3813{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3814$as_echo "$MKDIR_P" >&6; }
5556819a 3815
d0191583
JM
3816if test -n "$ac_tool_prefix"; then
3817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3819{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3821if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3822 $as_echo_n "(cached) " >&6
d0191583
JM
3823else
3824 if test -n "$RANLIB"; then
3825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3826else
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3836 break 2
3837 fi
3838done
3839done
3840IFS=$as_save_IFS
8106cdd5 3841
795ca3e5 3842fi
d0191583
JM
3843fi
3844RANLIB=$ac_cv_prog_RANLIB
3845if test -n "$RANLIB"; then
ec6a6fbe
AK
3846 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3847$as_echo "$RANLIB" >&6; }
d0191583 3848else
ec6a6fbe
AK
3849 { $as_echo "$as_me:$LINENO: result: no" >&5
3850$as_echo "no" >&6; }
d0191583
JM
3851fi
3852
8106cdd5 3853
ad6254c5 3854fi
d0191583
JM
3855if test -z "$ac_cv_prog_RANLIB"; then
3856 ac_ct_RANLIB=$RANLIB
3857 # Extract the first word of "ranlib", so it can be a program name with args.
3858set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3862 $as_echo_n "(cached) " >&6
ad6254c5 3863else
d0191583
JM
3864 if test -n "$ac_ct_RANLIB"; then
3865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
8106cdd5 3869do
d0191583
JM
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3876 break 2
3877 fi
3878done
3879done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3885if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3886 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3887$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3888else
ec6a6fbe
AK
3889 { $as_echo "$as_me:$LINENO: result: no" >&5
3890$as_echo "no" >&6; }
d0191583 3891fi
ad6254c5 3892
d0191583
JM
3893 if test "x$ac_ct_RANLIB" = x; then
3894 RANLIB=":"
3895 else
3896 case $cross_compiling:$ac_tool_warned in
3897yes:)
ec6a6fbe
AK
3898{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3900ac_tool_warned=yes ;;
3901esac
3902 RANLIB=$ac_ct_RANLIB
3903 fi
3904else
3905 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3906fi
7a197a62 3907
d0191583
JM
3908# Extract the first word of "cflow", so it can be a program name with args.
3909set dummy cflow; ac_word=$2
ec6a6fbe
AK
3910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3912if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3913 $as_echo_n "(cached) " >&6
d0191583
JM
3914else
3915 case $CFLOW_CMD in
3916 [\\/]* | ?:[\\/]*)
3917 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3918 ;;
3919 *)
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3929 break 2
3930 fi
3931done
3932done
3933IFS=$as_save_IFS
ad6254c5 3934
d0191583 3935 ;;
7a197a62 3936esac
d0191583
JM
3937fi
3938CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3939if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
3940 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3941$as_echo "$CFLOW_CMD" >&6; }
80992638 3942else
ec6a6fbe
AK
3943 { $as_echo "$as_me:$LINENO: result: no" >&5
3944$as_echo "no" >&6; }
795ca3e5 3945fi
7a197a62 3946
ad6254c5 3947
d0191583
JM
3948# Extract the first word of "cscope", so it can be a program name with args.
3949set dummy cscope; ac_word=$2
ec6a6fbe
AK
3950{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3951$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3952if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 3953 $as_echo_n "(cached) " >&6
d0191583
JM
3954else
3955 case $CSCOPE_CMD in
3956 [\\/]* | ?:[\\/]*)
3957 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3958 ;;
3959 *)
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3969 break 2
3970 fi
795ca3e5 3971done
d0191583
JM
3972done
3973IFS=$as_save_IFS
795ca3e5 3974
d0191583
JM
3975 ;;
3976esac
ad6254c5 3977fi
d0191583
JM
3978CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3979if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
3980 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3981$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3982else
ec6a6fbe
AK
3983 { $as_echo "$as_me:$LINENO: result: no" >&5
3984$as_echo "no" >&6; }
795ca3e5 3985fi
ad6254c5 3986
7a197a62 3987
ad6254c5 3988
d0191583
JM
3989################################################################################
3990
3991
3992
3993
3994
3995ac_header_dirent=no
3996for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
3997 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3998{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3999$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4001 $as_echo_n "(cached) " >&6
d0191583 4002else
ad6254c5 4003 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4004/* confdefs.h. */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h. */
d0191583
JM
4009#include <sys/types.h>
4010#include <$ac_hdr>
4011
4012int
4013main ()
4014{
4015if ((DIR *) 0)
4016return 0;
4017 ;
4018 return 0;
4019}
ad6254c5 4020_ACEOF
d0191583
JM
4021rm -f conftest.$ac_objext
4022if { (ac_try="$ac_compile"
7a197a62
AK
4023case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026esac
ec6a6fbe
AK
4027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028$as_echo "$ac_try_echo") >&5
d0191583 4029 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
ec6a6fbe 4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4035 (exit $ac_status); } && {
4036 test -z "$ac_c_werror_flag" ||
25fbec5b 4037 test ! -s conftest.err
d0191583
JM
4038 } && test -s conftest.$ac_objext; then
4039 eval "$as_ac_Header=yes"
ad6254c5 4040else
ec6a6fbe 4041 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4042sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4043
d0191583 4044 eval "$as_ac_Header=no"
795ca3e5 4045fi
7a197a62 4046
d0191583 4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4048fi
ec6a6fbe
AK
4049ac_res=`eval 'as_val=${'$as_ac_Header'}
4050 $as_echo "$as_val"'`
4051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4052$as_echo "$ac_res" >&6; }
4053as_val=`eval 'as_val=${'$as_ac_Header'}
4054 $as_echo "$as_val"'`
4055 if test "x$as_val" = x""yes; then
d0191583 4056 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4057#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4058_ACEOF
795ca3e5 4059
d0191583
JM
4060ac_header_dirent=$ac_hdr; break
4061fi
ad6254c5 4062
d0191583
JM
4063done
4064# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4065if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4066 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4067$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4068if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4069 $as_echo_n "(cached) " >&6
ad6254c5 4070else
d0191583
JM
4071 ac_func_search_save_LIBS=$LIBS
4072cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h. */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h. */
ad6254c5 4078
d0191583
JM
4079/* Override any GCC internal prototype to avoid an error.
4080 Use char because int might match the return type of a GCC
4081 builtin and then its argument prototype would still apply. */
4082#ifdef __cplusplus
4083extern "C"
4084#endif
4085char opendir ();
4086int
4087main ()
4088{
4089return opendir ();
4090 ;
4091 return 0;
4092}
4093_ACEOF
4094for ac_lib in '' dir; do
4095 if test -z "$ac_lib"; then
4096 ac_res="none required"
4097 else
4098 ac_res=-l$ac_lib
4099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4100 fi
4101 rm -f conftest.$ac_objext conftest$ac_exeext
4102if { (ac_try="$ac_link"
4103case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
ec6a6fbe
AK
4107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108$as_echo "$ac_try_echo") >&5
d0191583
JM
4109 (eval "$ac_link") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
ec6a6fbe 4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
ec6a6fbe
AK
4118 } && test -s conftest$ac_exeext && {
4119 test "$cross_compiling" = yes ||
4120 $as_test_x conftest$ac_exeext
4121 }; then
d0191583
JM
4122 ac_cv_search_opendir=$ac_res
4123else
ec6a6fbe 4124 $as_echo "$as_me: failed program was:" >&5
d0191583 4125sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4126
ad6254c5 4127
795ca3e5 4128fi
ad6254c5 4129
ec6a6fbe 4130rm -rf conftest.dSYM
d0191583
JM
4131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4132 conftest$ac_exeext
4133 if test "${ac_cv_search_opendir+set}" = set; then
4134 break
7a197a62 4135fi
d0191583
JM
4136done
4137if test "${ac_cv_search_opendir+set}" = set; then
4138 :
7a197a62 4139else
d0191583 4140 ac_cv_search_opendir=no
7a197a62 4141fi
d0191583
JM
4142rm conftest.$ac_ext
4143LIBS=$ac_func_search_save_LIBS
7a197a62 4144fi
ec6a6fbe
AK
4145{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4146$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4147ac_res=$ac_cv_search_opendir
4148if test "$ac_res" != no; then
4149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4150
d0191583 4151fi
7a197a62 4152
7a197a62 4153else
ec6a6fbe
AK
4154 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4155$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4156if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4157 $as_echo_n "(cached) " >&6
7a197a62 4158else
d0191583
JM
4159 ac_func_search_save_LIBS=$LIBS
4160cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h. */
7a197a62 4166
d0191583
JM
4167/* Override any GCC internal prototype to avoid an error.
4168 Use char because int might match the return type of a GCC
4169 builtin and then its argument prototype would still apply. */
4170#ifdef __cplusplus
4171extern "C"
4172#endif
4173char opendir ();
4174int
4175main ()
4176{
4177return opendir ();
4178 ;
4179 return 0;
4180}
4181_ACEOF
4182for ac_lib in '' x; do
4183 if test -z "$ac_lib"; then
4184 ac_res="none required"
4185 else
4186 ac_res=-l$ac_lib
4187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4188 fi
4189 rm -f conftest.$ac_objext conftest$ac_exeext
4190if { (ac_try="$ac_link"
4191case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
ec6a6fbe
AK
4195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4196$as_echo "$ac_try_echo") >&5
d0191583
JM
4197 (eval "$ac_link") 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
ec6a6fbe 4202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4203 (exit $ac_status); } && {
4204 test -z "$ac_c_werror_flag" ||
4205 test ! -s conftest.err
ec6a6fbe
AK
4206 } && test -s conftest$ac_exeext && {
4207 test "$cross_compiling" = yes ||
4208 $as_test_x conftest$ac_exeext
4209 }; then
d0191583
JM
4210 ac_cv_search_opendir=$ac_res
4211else
ec6a6fbe 4212 $as_echo "$as_me: failed program was:" >&5
d0191583 4213sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4214
4215
4216fi
4217
ec6a6fbe 4218rm -rf conftest.dSYM
d0191583
JM
4219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4220 conftest$ac_exeext
4221 if test "${ac_cv_search_opendir+set}" = set; then
4222 break
7a197a62 4223fi
d0191583
JM
4224done
4225if test "${ac_cv_search_opendir+set}" = set; then
4226 :
7a197a62 4227else
d0191583 4228 ac_cv_search_opendir=no
7a197a62 4229fi
d0191583
JM
4230rm conftest.$ac_ext
4231LIBS=$ac_func_search_save_LIBS
4232fi
ec6a6fbe
AK
4233{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4234$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4235ac_res=$ac_cv_search_opendir
4236if test "$ac_res" != no; then
4237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4238
7a197a62 4239fi
7a197a62 4240
d0191583 4241fi
7a197a62 4242
ec6a6fbe
AK
4243{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4244$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4245if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4246 $as_echo_n "(cached) " >&6
7a197a62
AK
4247else
4248 cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
4254#include <stdlib.h>
4255#include <stdarg.h>
4256#include <string.h>
4257#include <float.h>
4258
4259int
4260main ()
4261{
4262
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext
4268if { (ac_try="$ac_compile"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
ec6a6fbe
AK
4273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4274$as_echo "$ac_try_echo") >&5
7a197a62
AK
4275 (eval "$ac_compile") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
ec6a6fbe 4280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest.$ac_objext; then
7a197a62
AK
4285 ac_cv_header_stdc=yes
4286else
ec6a6fbe 4287 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4288sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 ac_cv_header_stdc=no
4291fi
4292
4293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294
4295if test $ac_cv_header_stdc = yes; then
4296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4297 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4298/* confdefs.h. */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h. */
4303#include <string.h>
8106cdd5 4304
ad6254c5
AK
4305_ACEOF
4306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307 $EGREP "memchr" >/dev/null 2>&1; then
4308 :
4309else
4310 ac_cv_header_stdc=no
80992638 4311fi
ad6254c5 4312rm -f conftest*
795ca3e5
AK
4313
4314fi
4315
ad6254c5
AK
4316if test $ac_cv_header_stdc = yes; then
4317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4319/* confdefs.h. */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h. */
80992638 4324#include <stdlib.h>
ad6254c5
AK
4325
4326_ACEOF
80992638 4327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4328 $EGREP "free" >/dev/null 2>&1; then
4329 :
795ca3e5 4330else
ad6254c5 4331 ac_cv_header_stdc=no
795ca3e5 4332fi
80992638 4333rm -f conftest*
8106cdd5 4334
795ca3e5
AK
4335fi
4336
ad6254c5
AK
4337if test $ac_cv_header_stdc = yes; then
4338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4339 if test "$cross_compiling" = yes; then
4340 :
795ca3e5 4341else
ad6254c5 4342 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4343/* confdefs.h. */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h. */
4348#include <ctype.h>
7a197a62 4349#include <stdlib.h>
ad6254c5
AK
4350#if ((' ' & 0x0FF) == 0x020)
4351# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4352# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4353#else
4354# define ISLOWER(c) \
8a2fc586
AK
4355 (('a' <= (c) && (c) <= 'i') \
4356 || ('j' <= (c) && (c) <= 'r') \
4357 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4358# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4359#endif
ad6254c5
AK
4360
4361#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4362int
4363main ()
4364{
4365 int i;
4366 for (i = 0; i < 256; i++)
4367 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4368 || toupper (i) != TOUPPER (i))
7a197a62
AK
4369 return 2;
4370 return 0;
ad6254c5
AK
4371}
4372_ACEOF
4373rm -f conftest$ac_exeext
7a197a62
AK
4374if { (ac_try="$ac_link"
4375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
ec6a6fbe
AK
4379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4380$as_echo "$ac_try_echo") >&5
7a197a62 4381 (eval "$ac_link") 2>&5
ad6254c5 4382 ac_status=$?
ec6a6fbe 4383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4385 { (case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
ec6a6fbe
AK
4389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4390$as_echo "$ac_try_echo") >&5
7a197a62 4391 (eval "$ac_try") 2>&5
ad6254c5 4392 ac_status=$?
ec6a6fbe 4393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4394 (exit $ac_status); }; }; then
4395 :
795ca3e5 4396else
ec6a6fbe
AK
4397 $as_echo "$as_me: program exited with status $ac_status" >&5
4398$as_echo "$as_me: failed program was:" >&5
ad6254c5 4399sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4400
ad6254c5
AK
4401( exit $ac_status )
4402ac_cv_header_stdc=no
80992638 4403fi
ec6a6fbe 4404rm -rf conftest.dSYM
7a197a62 4405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4406fi
7a197a62
AK
4407
4408
ad6254c5
AK
4409fi
4410fi
ec6a6fbe
AK
4411{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4413if test $ac_cv_header_stdc = yes; then
4414
4415cat >>confdefs.h <<\_ACEOF
4416#define STDC_HEADERS 1
4417_ACEOF
795ca3e5
AK
4418
4419fi
4420
ec6a6fbe
AK
4421{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4422$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4423if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4424 $as_echo_n "(cached) " >&6
8106cdd5 4425else
ad6254c5 4426 cat >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. */
80992638 4432#include <sys/types.h>
ad6254c5
AK
4433#include <sys/wait.h>
4434#ifndef WEXITSTATUS
7a197a62 4435# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4436#endif
4437#ifndef WIFEXITED
4438# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4439#endif
4440
4441int
4442main ()
4443{
4444 int s;
4445 wait (&s);
4446 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4447 ;
4448 return 0;
4449}
4450_ACEOF
4451rm -f conftest.$ac_objext
7a197a62
AK
4452if { (ac_try="$ac_compile"
4453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
ec6a6fbe
AK
4457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458$as_echo "$ac_try_echo") >&5
7a197a62 4459 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4460 ac_status=$?
8a2fc586
AK
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
ec6a6fbe 4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4469 ac_cv_header_sys_wait_h=yes
4470else
ec6a6fbe 4471 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
7a197a62 4474 ac_cv_header_sys_wait_h=no
8106cdd5 4475fi
7a197a62
AK
4476
4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4478fi
ec6a6fbe
AK
4479{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4480$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4481if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4482
ad6254c5
AK
4483cat >>confdefs.h <<\_ACEOF
4484#define HAVE_SYS_WAIT_H 1
4485_ACEOF
795ca3e5
AK
4486
4487fi
4488
ec6a6fbe
AK
4489{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4490$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4491if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4492 $as_echo_n "(cached) " >&6
795ca3e5 4493else
ad6254c5 4494 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4495/* confdefs.h. */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h. */
795ca3e5
AK
4500#include <sys/types.h>
4501#include <sys/time.h>
4502#include <time.h>
ad6254c5
AK
4503
4504int
4505main ()
4506{
4507if ((struct tm *) 0)
4508return 0;
4509 ;
4510 return 0;
4511}
4512_ACEOF
4513rm -f conftest.$ac_objext
7a197a62
AK
4514if { (ac_try="$ac_compile"
4515case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518esac
ec6a6fbe
AK
4519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4520$as_echo "$ac_try_echo") >&5
7a197a62 4521 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4522 ac_status=$?
8a2fc586
AK
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
ec6a6fbe 4526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4527 (exit $ac_status); } && {
4528 test -z "$ac_c_werror_flag" ||
4529 test ! -s conftest.err
4530 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4531 ac_cv_header_time=yes
4532else
ec6a6fbe 4533 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4534sed 's/^/| /' conftest.$ac_ext >&5
4535
7a197a62 4536 ac_cv_header_time=no
795ca3e5 4537fi
7a197a62
AK
4538
4539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4540fi
ec6a6fbe
AK
4541{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4542$as_echo "$ac_cv_header_time" >&6; }
80992638 4543if test $ac_cv_header_time = yes; then
ad6254c5
AK
4544
4545cat >>confdefs.h <<\_ACEOF
795ca3e5 4546#define TIME_WITH_SYS_TIME 1
ad6254c5 4547_ACEOF
b896caa1 4548
8106cdd5 4549fi
b896caa1 4550
b896caa1 4551
d0191583
JM
4552# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4563 inttypes.h stdint.h unistd.h
4564do
ec6a6fbe
AK
4565as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4567$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4569 $as_echo_n "(cached) " >&6
d0191583
JM
4570else
4571 cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h. */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h. */
4577$ac_includes_default
4578
4579#include <$ac_header>
4580_ACEOF
4581rm -f conftest.$ac_objext
4582if { (ac_try="$ac_compile"
4583case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
ec6a6fbe
AK
4587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588$as_echo "$ac_try_echo") >&5
d0191583
JM
4589 (eval "$ac_compile") 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
ec6a6fbe 4594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
4599 eval "$as_ac_Header=yes"
4600else
ec6a6fbe 4601 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4602sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 eval "$as_ac_Header=no"
4605fi
4606
4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608fi
ec6a6fbe
AK
4609ac_res=`eval 'as_val=${'$as_ac_Header'}
4610 $as_echo "$as_val"'`
4611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4612$as_echo "$ac_res" >&6; }
4613as_val=`eval 'as_val=${'$as_ac_Header'}
4614 $as_echo "$as_val"'`
4615 if test "x$as_val" = x""yes; then
d0191583 4616 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4618_ACEOF
4619
4620fi
4621
4622done
4623
b896caa1 4624
b896caa1
AK
4625
4626
795ca3e5 4627
8106cdd5 4628
80992638 4629
795ca3e5 4630
a38df97f 4631
80992638 4632
d0191583
JM
4633
4634
4635
4636
4637
4638for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4639 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4640do
ec6a6fbe 4641as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4644$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4646 $as_echo_n "(cached) " >&6
d0191583 4647fi
ec6a6fbe
AK
4648ac_res=`eval 'as_val=${'$as_ac_Header'}
4649 $as_echo "$as_val"'`
4650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4651$as_echo "$ac_res" >&6; }
ad6254c5 4652else
d0191583 4653 # Is the header compilable?
ec6a6fbe
AK
4654{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4655$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4656cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662$ac_includes_default
ad6254c5
AK
4663#include <$ac_header>
4664_ACEOF
4665rm -f conftest.$ac_objext
7a197a62
AK
4666if { (ac_try="$ac_compile"
4667case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
ec6a6fbe
AK
4671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672$as_echo "$ac_try_echo") >&5
7a197a62 4673 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4674 ac_status=$?
8a2fc586
AK
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
ec6a6fbe 4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4679 (exit $ac_status); } && {
4680 test -z "$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest.$ac_objext; then
d0191583 4683 ac_header_compiler=yes
ad6254c5 4684else
ec6a6fbe 4685 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4686sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4687
d0191583 4688 ac_header_compiler=no
ad6254c5 4689fi
7a197a62
AK
4690
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4692{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4693$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4694
4695# Is the header present?
ec6a6fbe
AK
4696{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4697$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4698cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
4704#include <$ac_header>
4705_ACEOF
4706if { (ac_try="$ac_cpp conftest.$ac_ext"
4707case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710esac
ec6a6fbe
AK
4711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4712$as_echo "$ac_try_echo") >&5
d0191583
JM
4713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
ec6a6fbe 4718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4719 (exit $ac_status); } >/dev/null && {
4720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 }; then
4723 ac_header_preproc=yes
4724else
ec6a6fbe 4725 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ac_header_preproc=no
4729fi
4730
4731rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4732{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4733$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4734
4735# So? What about this header?
4736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4737 yes:no: )
ec6a6fbe
AK
4738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4739$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4741$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4742 ac_header_preproc=yes
4743 ;;
4744 no:yes:* )
ec6a6fbe
AK
4745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4746$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4748$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4750$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4752$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4754$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4756$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4757
4758 ;;
4759esac
ec6a6fbe
AK
4760{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4761$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4763 $as_echo_n "(cached) " >&6
d0191583
JM
4764else
4765 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4766fi
ec6a6fbe
AK
4767ac_res=`eval 'as_val=${'$as_ac_Header'}
4768 $as_echo "$as_val"'`
4769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4770$as_echo "$ac_res" >&6; }
d0191583
JM
4771
4772fi
ec6a6fbe
AK
4773as_val=`eval 'as_val=${'$as_ac_Header'}
4774 $as_echo "$as_val"'`
4775 if test "x$as_val" = x""yes; then
ad6254c5 4776 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4778_ACEOF
a38df97f 4779
d0191583 4780else
ec6a6fbe
AK
4781 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4782$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4783 { (exit 1); exit 1; }; }
80992638
AK
4784fi
4785
ad6254c5
AK
4786done
4787
7d1552c9 4788
d0191583
JM
4789case "$host_os" in
4790 linux*)
7d1552c9 4791
80992638 4792
5a52dca9 4793
d0191583 4794for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4795do
ec6a6fbe 4796as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4799$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4801 $as_echo_n "(cached) " >&6
ad6254c5 4802fi
ec6a6fbe
AK
4803ac_res=`eval 'as_val=${'$as_ac_Header'}
4804 $as_echo "$as_val"'`
4805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4806$as_echo "$ac_res" >&6; }
ad6254c5
AK
4807else
4808 # Is the header compilable?
ec6a6fbe
AK
4809{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4810$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4811cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817$ac_includes_default
4818#include <$ac_header>
4819_ACEOF
4820rm -f conftest.$ac_objext
7a197a62
AK
4821if { (ac_try="$ac_compile"
4822case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4825esac
ec6a6fbe
AK
4826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827$as_echo "$ac_try_echo") >&5
7a197a62 4828 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4829 ac_status=$?
8a2fc586
AK
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
ec6a6fbe 4833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4834 (exit $ac_status); } && {
4835 test -z "$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4837 } && test -s conftest.$ac_objext; then
fc54be10
AK
4838 ac_header_compiler=yes
4839else
ec6a6fbe 4840 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4841sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ac_header_compiler=no
4844fi
4845
4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4847{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4849
4850# Is the header present?
ec6a6fbe
AK
4851{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4852$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4853cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4854/* confdefs.h. */
4855_ACEOF
4856cat confdefs.h >>conftest.$ac_ext
4857cat >>conftest.$ac_ext <<_ACEOF
4858/* end confdefs.h. */
4859#include <$ac_header>
4860_ACEOF
7a197a62
AK
4861if { (ac_try="$ac_cpp conftest.$ac_ext"
4862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
ec6a6fbe
AK
4866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867$as_echo "$ac_try_echo") >&5
7a197a62 4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
ec6a6fbe 4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 }; then
ad6254c5
AK
4878 ac_header_preproc=yes
4879else
ec6a6fbe 4880 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_header_preproc=no
4884fi
7a197a62 4885
ad6254c5 4886rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4887{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4889
4890# So? What about this header?
8a2fc586
AK
4891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4892 yes:no: )
ec6a6fbe
AK
4893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4894$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4896$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4897 ac_header_preproc=yes
ad6254c5 4898 ;;
8a2fc586 4899 no:yes:* )
ec6a6fbe
AK
4900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4901$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4903$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4905$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4907$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4909$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4911$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4912
ad6254c5
AK
4913 ;;
4914esac
ec6a6fbe
AK
4915{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4916$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4918 $as_echo_n "(cached) " >&6
ad6254c5 4919else
8a2fc586 4920 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4921fi
ec6a6fbe
AK
4922ac_res=`eval 'as_val=${'$as_ac_Header'}
4923 $as_echo "$as_val"'`
4924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4925$as_echo "$ac_res" >&6; }
ad6254c5
AK
4926
4927fi
ec6a6fbe
AK
4928as_val=`eval 'as_val=${'$as_ac_Header'}
4929 $as_echo "$as_val"'`
4930 if test "x$as_val" = x""yes; then
ad6254c5 4931 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4933_ACEOF
b896caa1 4934
d8ac0fbc 4935else
ec6a6fbe
AK
4936 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4937$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4938 { (exit 1); exit 1; }; }
80992638
AK
4939fi
4940
ad6254c5 4941done
d0191583
JM
4942 ;;
4943 darwin*)
d8ac0fbc 4944
d8ac0fbc 4945
d0191583 4946for ac_header in machine/endian.h sys/disk.h
ad6254c5 4947do
ec6a6fbe 4948as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4951$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4953 $as_echo_n "(cached) " >&6
ad6254c5 4954fi
ec6a6fbe
AK
4955ac_res=`eval 'as_val=${'$as_ac_Header'}
4956 $as_echo "$as_val"'`
4957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4958$as_echo "$ac_res" >&6; }
ad6254c5
AK
4959else
4960 # Is the header compilable?
ec6a6fbe
AK
4961{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4962$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4963cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4964/* confdefs.h. */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h. */
4969$ac_includes_default
4970#include <$ac_header>
4971_ACEOF
4972rm -f conftest.$ac_objext
7a197a62
AK
4973if { (ac_try="$ac_compile"
4974case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977esac
ec6a6fbe
AK
4978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4979$as_echo "$ac_try_echo") >&5
7a197a62 4980 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4981 ac_status=$?
8a2fc586
AK
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
ec6a6fbe 4985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4986 (exit $ac_status); } && {
4987 test -z "$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4990 ac_header_compiler=yes
4991else
ec6a6fbe 4992 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
7a197a62 4995 ac_header_compiler=no
ad6254c5 4996fi
7a197a62
AK
4997
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4999{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5000$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5001
5002# Is the header present?
ec6a6fbe
AK
5003{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5004$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5005cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
5011#include <$ac_header>
5012_ACEOF
7a197a62
AK
5013if { (ac_try="$ac_cpp conftest.$ac_ext"
5014case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017esac
ec6a6fbe
AK
5018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5019$as_echo "$ac_try_echo") >&5
7a197a62 5020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
ec6a6fbe 5025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5026 (exit $ac_status); } >/dev/null && {
5027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5028 test ! -s conftest.err
5029 }; then
ad6254c5
AK
5030 ac_header_preproc=yes
5031else
ec6a6fbe 5032 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 ac_header_preproc=no
5036fi
7a197a62 5037
ad6254c5 5038rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5039{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5040$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5041
5042# So? What about this header?
8a2fc586
AK
5043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5044 yes:no: )
ec6a6fbe
AK
5045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5046$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5048$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5049 ac_header_preproc=yes
ad6254c5 5050 ;;
8a2fc586 5051 no:yes:* )
ec6a6fbe
AK
5052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5053$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5055$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5057$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5059$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5061$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5063$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5064
ad6254c5
AK
5065 ;;
5066esac
ec6a6fbe
AK
5067{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5068$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5070 $as_echo_n "(cached) " >&6
ad6254c5 5071else
8a2fc586 5072 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5073fi
ec6a6fbe
AK
5074ac_res=`eval 'as_val=${'$as_ac_Header'}
5075 $as_echo "$as_val"'`
5076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5077$as_echo "$ac_res" >&6; }
ad6254c5
AK
5078
5079fi
ec6a6fbe
AK
5080as_val=`eval 'as_val=${'$as_ac_Header'}
5081 $as_echo "$as_val"'`
5082 if test "x$as_val" = x""yes; then
ad6254c5 5083 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5085_ACEOF
4922197a 5086
4922197a 5087else
ec6a6fbe
AK
5088 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5089$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5090 { (exit 1); exit 1; }; }
80992638
AK
5091fi
5092
ad6254c5 5093done
d0191583
JM
5094 ;;
5095esac
4922197a 5096
4922197a 5097
4922197a 5098
ad6254c5
AK
5099
5100
d0191583
JM
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5114 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5115 sys/types.h unistd.h
ad6254c5 5116do
ec6a6fbe 5117as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5120$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5122 $as_echo_n "(cached) " >&6
ad6254c5 5123fi
ec6a6fbe
AK
5124ac_res=`eval 'as_val=${'$as_ac_Header'}
5125 $as_echo "$as_val"'`
5126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5127$as_echo "$ac_res" >&6; }
795ca3e5 5128else
ad6254c5 5129 # Is the header compilable?
ec6a6fbe
AK
5130{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5131$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5132cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5133/* confdefs.h. */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h. */
5138$ac_includes_default
5139#include <$ac_header>
5140_ACEOF
5141rm -f conftest.$ac_objext
7a197a62
AK
5142if { (ac_try="$ac_compile"
5143case "(($ac_try" in
5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145 *) ac_try_echo=$ac_try;;
5146esac
ec6a6fbe
AK
5147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5148$as_echo "$ac_try_echo") >&5
7a197a62 5149 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5150 ac_status=$?
8a2fc586
AK
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
ec6a6fbe 5154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5155 (exit $ac_status); } && {
5156 test -z "$ac_c_werror_flag" ||
5157 test ! -s conftest.err
5158 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5159 ac_header_compiler=yes
5160else
ec6a6fbe 5161 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
7a197a62 5164 ac_header_compiler=no
ad6254c5 5165fi
7a197a62
AK
5166
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5168{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5169$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5170
5171# Is the header present?
ec6a6fbe
AK
5172{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5173$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5174cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5175/* confdefs.h. */
5176_ACEOF
5177cat confdefs.h >>conftest.$ac_ext
5178cat >>conftest.$ac_ext <<_ACEOF
5179/* end confdefs.h. */
5180#include <$ac_header>
5181_ACEOF
7a197a62
AK
5182if { (ac_try="$ac_cpp conftest.$ac_ext"
5183case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
ec6a6fbe
AK
5187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5188$as_echo "$ac_try_echo") >&5
7a197a62 5189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
ec6a6fbe 5194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5195 (exit $ac_status); } >/dev/null && {
5196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5197 test ! -s conftest.err
5198 }; then
ad6254c5
AK
5199 ac_header_preproc=yes
5200else
ec6a6fbe 5201 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ac_header_preproc=no
5205fi
7a197a62 5206
ad6254c5 5207rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5208{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5209$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5210
5211# So? What about this header?
8a2fc586
AK
5212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5213 yes:no: )
ec6a6fbe
AK
5214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5215$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5217$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5218 ac_header_preproc=yes
ad6254c5 5219 ;;
8a2fc586 5220 no:yes:* )
ec6a6fbe
AK
5221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5222$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5224$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5226$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5228$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5230$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5232$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5233
ad6254c5
AK
5234 ;;
5235esac
ec6a6fbe
AK
5236{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5237$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5239 $as_echo_n "(cached) " >&6
ad6254c5 5240else
8a2fc586 5241 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5242fi
ec6a6fbe
AK
5243ac_res=`eval 'as_val=${'$as_ac_Header'}
5244 $as_echo "$as_val"'`
5245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5246$as_echo "$ac_res" >&6; }
80992638 5247
ad6254c5 5248fi
ec6a6fbe
AK
5249as_val=`eval 'as_val=${'$as_ac_Header'}
5250 $as_echo "$as_val"'`
5251 if test "x$as_val" = x""yes; then
ad6254c5 5252 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5254_ACEOF
795ca3e5 5255
795ca3e5 5256else
ec6a6fbe
AK
5257 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5258$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5259 { (exit 1); exit 1; }; }
80992638
AK
5260fi
5261
ad6254c5 5262done
ad6254c5 5263
795ca3e5 5264
d0191583
JM
5265
5266for ac_header in termios.h sys/statvfs.h
ad6254c5 5267do
ec6a6fbe 5268as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5271$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5273 $as_echo_n "(cached) " >&6
ad6254c5 5274fi
ec6a6fbe
AK
5275ac_res=`eval 'as_val=${'$as_ac_Header'}
5276 $as_echo "$as_val"'`
5277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5278$as_echo "$ac_res" >&6; }
ad6254c5
AK
5279else
5280 # Is the header compilable?
ec6a6fbe
AK
5281{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5282$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5283cat >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
5290#include <$ac_header>
5291_ACEOF
5292rm -f conftest.$ac_objext
7a197a62
AK
5293if { (ac_try="$ac_compile"
5294case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
ec6a6fbe
AK
5298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5299$as_echo "$ac_try_echo") >&5
7a197a62 5300 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5301 ac_status=$?
8a2fc586
AK
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
ec6a6fbe 5305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5306 (exit $ac_status); } && {
5307 test -z "$ac_c_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5310 ac_header_compiler=yes
5311else
ec6a6fbe 5312 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
7a197a62 5315 ac_header_compiler=no
ad6254c5 5316fi
7a197a62
AK
5317
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5319{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5320$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5321
5322# Is the header present?
ec6a6fbe
AK
5323{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5324$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5325cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
5331#include <$ac_header>
5332_ACEOF
7a197a62
AK
5333if { (ac_try="$ac_cpp conftest.$ac_ext"
5334case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337esac
ec6a6fbe
AK
5338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5339$as_echo "$ac_try_echo") >&5
7a197a62 5340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
ec6a6fbe 5345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5346 (exit $ac_status); } >/dev/null && {
5347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5349 }; then
ad6254c5
AK
5350 ac_header_preproc=yes
5351else
ec6a6fbe 5352 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_header_preproc=no
5356fi
7a197a62 5357
ad6254c5 5358rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5359{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5360$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5361
5362# So? What about this header?
8a2fc586
AK
5363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5364 yes:no: )
ec6a6fbe
AK
5365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5366$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5368$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5369 ac_header_preproc=yes
ad6254c5 5370 ;;
8a2fc586 5371 no:yes:* )
ec6a6fbe
AK
5372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5373$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5375$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5377$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5379$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5381$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5383$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5384
ad6254c5
AK
5385 ;;
5386esac
ec6a6fbe
AK
5387{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5388$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5390 $as_echo_n "(cached) " >&6
ad6254c5 5391else
8a2fc586 5392 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5393fi
ec6a6fbe
AK
5394ac_res=`eval 'as_val=${'$as_ac_Header'}
5395 $as_echo "$as_val"'`
5396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5397$as_echo "$ac_res" >&6; }
b896caa1 5398
ad6254c5 5399fi
ec6a6fbe
AK
5400as_val=`eval 'as_val=${'$as_ac_Header'}
5401 $as_echo "$as_val"'`
5402 if test "x$as_val" = x""yes; then
ad6254c5 5403 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5405_ACEOF
5406
80992638
AK
5407fi
5408
ad6254c5 5409done
d0191583 5410
d3c8211f 5411
80992638 5412################################################################################
ec6a6fbe
AK
5413{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5414$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5415if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5416 $as_echo_n "(cached) " >&6
d3c8211f 5417else
ad6254c5 5418 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424
5425int
5426main ()
5427{
5428/* FIXME: Include the comments suggested by Paul. */
5429#ifndef __cplusplus
5430 /* Ultrix mips cc rejects this. */
5431 typedef int charset[2];
25fbec5b 5432 const charset cs;
ad6254c5 5433 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5434 char const *const *pcpcc;
5435 char **ppc;
ad6254c5
AK
5436 /* NEC SVR4.0.2 mips cc rejects this. */
5437 struct point {int x, y;};
5438 static struct point const zero = {0,0};
5439 /* AIX XL C 1.02.0.0 rejects this.
5440 It does not let you subtract one const X* pointer from another in
5441 an arm of an if-expression whose if-part is not a constant
5442 expression */
5443 const char *g = "string";
25fbec5b 5444 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5445 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5446 ++pcpcc;
5447 ppc = (char**) pcpcc;
5448 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5449 { /* SCO 3.2v4 cc rejects this. */
5450 char *t;
5451 char const *s = 0 ? (char *) 0 : (char const *) 0;
5452
5453 *t++ = 0;
7a197a62 5454 if (s) return 0;
ad6254c5
AK
5455 }
5456 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5457 int x[] = {25, 17};
5458 const int *foo = &x[0];
5459 ++foo;
5460 }
5461 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5462 typedef const int *iptr;
5463 iptr p = 0;
5464 ++p;
5465 }
5466 { /* AIX XL C 1.02.0.0 rejects this saying
5467 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5468 struct s { int j; const int *ap[3]; };
5469 struct s *b; b->j = 5;
5470 }
5471 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5472 const int foo = 10;
7a197a62 5473 if (!foo) return 0;
ad6254c5 5474 }
25fbec5b 5475 return !cs[0] && !zero.x;
ad6254c5
AK
5476#endif
5477
5478 ;
5479 return 0;
5480}
5481_ACEOF
5482rm -f conftest.$ac_objext
7a197a62
AK
5483if { (ac_try="$ac_compile"
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
ec6a6fbe
AK
5488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489$as_echo "$ac_try_echo") >&5
7a197a62 5490 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5491 ac_status=$?
8a2fc586
AK
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
ec6a6fbe 5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5500 ac_cv_c_const=yes
5501else
ec6a6fbe 5502 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
7a197a62 5505 ac_cv_c_const=no
ad6254c5 5506fi
7a197a62
AK
5507
5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5509fi
ec6a6fbe
AK
5510{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5511$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5512if test $ac_cv_c_const = no; then
80992638 5513
ad6254c5 5514cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5515#define const /**/
ad6254c5 5516_ACEOF
80992638 5517
d3c8211f 5518fi
d3c8211f 5519
ec6a6fbe
AK
5520{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5521$as_echo_n "checking for inline... " >&6; }
ad6254c5 5522if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5523 $as_echo_n "(cached) " >&6
8ef2b021 5524else
ad6254c5
AK
5525 ac_cv_c_inline=no
5526for ac_kw in inline __inline__ __inline; do
5527 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5528/* confdefs.h. */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */
5533#ifndef __cplusplus
5534typedef int foo_t;
5535static $ac_kw foo_t static_foo () {return 0; }
5536$ac_kw foo_t foo () {return 0; }
5537#endif
80992638 5538
ad6254c5
AK
5539_ACEOF
5540rm -f conftest.$ac_objext
7a197a62
AK
5541if { (ac_try="$ac_compile"
5542case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545esac
ec6a6fbe
AK
5546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5547$as_echo "$ac_try_echo") >&5
7a197a62 5548 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5549 ac_status=$?
8a2fc586
AK
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
ec6a6fbe 5553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5554 (exit $ac_status); } && {
5555 test -z "$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.$ac_objext; then
7a197a62 5558 ac_cv_c_inline=$ac_kw
ad6254c5 5559else
ec6a6fbe 5560 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5561sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5562
7a197a62 5563
8ce0cbda 5564fi
7a197a62
AK
5565
5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 test "$ac_cv_c_inline" != no && break
ad6254c5 5568done
8ce0cbda 5569
8ce0cbda 5570fi
ec6a6fbe
AK
5571{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5572$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5573
5574
ad6254c5
AK
5575case $ac_cv_c_inline in
5576 inline | yes) ;;
8a2fc586
AK
5577 *)
5578 case $ac_cv_c_inline in
5579 no) ac_val=;;
5580 *) ac_val=$ac_cv_c_inline;;
5581 esac
5582 cat >>confdefs.h <<_ACEOF
5583#ifndef __cplusplus
5584#define inline $ac_val
5585#endif
c1c065a3 5586_ACEOF
d0191583
JM
5587 ;;
5588esac
5589
ec6a6fbe
AK
5590{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5591$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5592if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5593 $as_echo_n "(cached) " >&6
d0191583
JM
5594else
5595 cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601$ac_includes_default
5602int
5603main ()
5604{
5605static struct stat ac_aggr;
5606if (ac_aggr.st_rdev)
5607return 0;
5608 ;
5609 return 0;
5610}
5611_ACEOF
5612rm -f conftest.$ac_objext
5613if { (ac_try="$ac_compile"
5614case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
ec6a6fbe
AK
5618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5619$as_echo "$ac_try_echo") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_cv_member_struct_stat_st_rdev=yes
5631else
5632 $as_echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */
5641$ac_includes_default
5642int
5643main ()
5644{
5645static struct stat ac_aggr;
5646if (sizeof ac_aggr.st_rdev)
5647return 0;
5648 ;
5649 return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657esac
5658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659$as_echo "$ac_try_echo") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest.$ac_objext; then
5670 ac_cv_member_struct_stat_st_rdev=yes
5671else
5672 $as_echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 ac_cv_member_struct_stat_st_rdev=no
5676fi
5677
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679fi
5680
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682fi
5683{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5684$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5685if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5686
5687cat >>confdefs.h <<_ACEOF
5688#define HAVE_STRUCT_STAT_ST_RDEV 1
5689_ACEOF
5690
5691
5692fi
5693
5694{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5695$as_echo_n "checking for off_t... " >&6; }
5696if test "${ac_cv_type_off_t+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5698else
5699 ac_cv_type_off_t=no
5700cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h. */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h. */
5706$ac_includes_default
5707int
5708main ()
5709{
5710if (sizeof (off_t))
5711 return 0;
5712 ;
5713 return 0;
5714}
5715_ACEOF
5716rm -f conftest.$ac_objext
5717if { (ac_try="$ac_compile"
5718case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723$as_echo "$ac_try_echo") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740$ac_includes_default
5741int
5742main ()
5743{
5744if (sizeof ((off_t)))
5745 return 0;
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750rm -f conftest.$ac_objext
5751if { (ac_try="$ac_compile"
5752case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5755esac
5756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5757$as_echo "$ac_try_echo") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 :
5769else
5770 $as_echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_cv_type_off_t=yes
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777else
5778 $as_echo "$as_me: failed program was:" >&5
5779sed 's/^/| /' conftest.$ac_ext >&5
5780
5781
5782fi
5783
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785fi
5786{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5787$as_echo "$ac_cv_type_off_t" >&6; }
5788if test "x$ac_cv_type_off_t" = x""yes; then
5789 :
5790else
5791
5792cat >>confdefs.h <<_ACEOF
5793#define off_t long int
5794_ACEOF
5795
5796fi
5797
5798{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5799$as_echo_n "checking for pid_t... " >&6; }
5800if test "${ac_cv_type_pid_t+set}" = set; then
5801 $as_echo_n "(cached) " >&6
5802else
5803 ac_cv_type_pid_t=no
5804cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h. */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
5810$ac_includes_default
5811int
5812main ()
5813{
5814if (sizeof (pid_t))
5815 return 0;
5816 ;
5817 return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (ac_try="$ac_compile"
5822case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825esac
5826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5827$as_echo "$ac_try_echo") >&5
d0191583
JM
5828 (eval "$ac_compile") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
ec6a6fbe 5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5834 (exit $ac_status); } && {
5835 test -z "$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 } && test -s conftest.$ac_objext; then
ec6a6fbe 5838 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5839/* confdefs.h. */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h. */
5844$ac_includes_default
5845int
5846main ()
5847{
ec6a6fbe
AK
5848if (sizeof ((pid_t)))
5849 return 0;
d0191583
JM
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854rm -f conftest.$ac_objext
5855if { (ac_try="$ac_compile"
5856case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5859esac
ec6a6fbe
AK
5860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5861$as_echo "$ac_try_echo") >&5
d0191583
JM
5862 (eval "$ac_compile") 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
ec6a6fbe 5867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5868 (exit $ac_status); } && {
5869 test -z "$ac_c_werror_flag" ||
5870 test ! -s conftest.err
5871 } && test -s conftest.$ac_objext; then
ec6a6fbe 5872 :
d0191583 5873else
ec6a6fbe 5874 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
ec6a6fbe 5877 ac_cv_type_pid_t=yes
d0191583
JM
5878fi
5879
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5881else
5882 $as_echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885
d0191583
JM
5886fi
5887
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
ec6a6fbe
AK
5890{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5891$as_echo "$ac_cv_type_pid_t" >&6; }
5892if test "x$ac_cv_type_pid_t" = x""yes; then
5893 :
5894else
d0191583
JM
5895
5896cat >>confdefs.h <<_ACEOF
ec6a6fbe 5897#define pid_t int
d0191583
JM
5898_ACEOF
5899
d0191583 5900fi
8ce0cbda 5901
ec6a6fbe
AK
5902{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5903$as_echo_n "checking return type of signal handlers... " >&6; }
5904if test "${ac_cv_type_signal+set}" = set; then
5905 $as_echo_n "(cached) " >&6
ad6254c5 5906else
b145d876
ZK
5907 cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
ec6a6fbe
AK
5913#include <sys/types.h>
5914#include <signal.h>
5915
b145d876
ZK
5916int
5917main ()
5918{
ec6a6fbe 5919return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5920 ;
5921 return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext
7a197a62
AK
5925if { (ac_try="$ac_compile"
5926case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929esac
ec6a6fbe
AK
5930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5931$as_echo "$ac_try_echo") >&5
7a197a62 5932 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5933 ac_status=$?
8a2fc586
AK
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
ec6a6fbe 5937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest.$ac_objext; then
ec6a6fbe 5942 ac_cv_type_signal=int
b145d876 5943else
ec6a6fbe 5944 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
ec6a6fbe 5947 ac_cv_type_signal=void
ad6254c5 5948fi
b145d876
ZK
5949
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951fi
ec6a6fbe
AK
5952{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5953$as_echo "$ac_cv_type_signal" >&6; }
80992638 5954
ad6254c5 5955cat >>confdefs.h <<_ACEOF
ec6a6fbe 5956#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 5957_ACEOF
199e490e 5958
b896caa1 5959
ec6a6fbe
AK
5960{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5961$as_echo_n "checking for size_t... " >&6; }
5962if test "${ac_cv_type_size_t+set}" = set; then
5963 $as_echo_n "(cached) " >&6
ad6254c5 5964else
ec6a6fbe
AK
5965 ac_cv_type_size_t=no
5966cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972$ac_includes_default
5973int
5974main ()
5975{
ec6a6fbe
AK
5976if (sizeof (size_t))
5977 return 0;
ad6254c5
AK
5978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext
7a197a62
AK
5983if { (ac_try="$ac_compile"
5984case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
ec6a6fbe
AK
5988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5989$as_echo "$ac_try_echo") >&5
7a197a62 5990 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5991 ac_status=$?
8a2fc586
AK
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
ec6a6fbe 5995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5996 (exit $ac_status); } && {
5997 test -z "$ac_c_werror_flag" ||
5998 test ! -s conftest.err
5999 } && test -s conftest.$ac_objext; then
d0191583
JM
6000 cat >conftest.$ac_ext <<_ACEOF
6001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
ec6a6fbe 6006$ac_includes_default
d0191583
JM
6007int
6008main ()
6009{
ec6a6fbe
AK
6010if (sizeof ((size_t)))
6011 return 0;
d0191583
JM
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016rm -f conftest.$ac_objext
6017if { (ac_try="$ac_compile"
6018case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021esac
ec6a6fbe
AK
6022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6023$as_echo "$ac_try_echo") >&5
d0191583
JM
6024 (eval "$ac_compile") 2>conftest.er1
6025 ac_status=$?
6026 grep -v '^ *+' conftest.er1 >conftest.err
6027 rm -f conftest.er1
6028 cat conftest.err >&5
ec6a6fbe 6029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6030 (exit $ac_status); } && {
6031 test -z "$ac_c_werror_flag" ||
6032 test ! -s conftest.err
6033 } && test -s conftest.$ac_objext; then
ec6a6fbe 6034 :
d0191583 6035else
ec6a6fbe 6036 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
ec6a6fbe
AK
6039 ac_cv_type_size_t=yes
6040fi
6041
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043else
6044 $as_echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047
d0191583
JM
6048fi
6049
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051fi
ec6a6fbe
AK
6052{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6053$as_echo "$ac_cv_type_size_t" >&6; }
6054if test "x$ac_cv_type_size_t" = x""yes; then
6055 :
6056else
d0191583
JM
6057
6058cat >>confdefs.h <<_ACEOF
ec6a6fbe 6059#define size_t unsigned int
d0191583
JM
6060_ACEOF
6061
ec6a6fbe 6062fi
d0191583 6063
ec6a6fbe
AK
6064{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6065$as_echo_n "checking for mode_t... " >&6; }
6066if test "${ac_cv_type_mode_t+set}" = set; then
6067 $as_echo_n "(cached) " >&6
8106cdd5 6068else
ec6a6fbe
AK
6069 ac_cv_type_mode_t=no
6070cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h. */
6076$ac_includes_default
6077int
6078main ()
6079{
ec6a6fbe
AK
6080if (sizeof (mode_t))
6081 return 0;
ad6254c5
AK
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext
7a197a62
AK
6087if { (ac_try="$ac_compile"
6088case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
ec6a6fbe
AK
6092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093$as_echo "$ac_try_echo") >&5
7a197a62 6094 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6095 ac_status=$?
8a2fc586
AK
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
ec6a6fbe 6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
b145d876
ZK
6104 cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h. */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h. */
6110$ac_includes_default
6111int
6112main ()
6113{
ec6a6fbe
AK
6114if (sizeof ((mode_t)))
6115 return 0;
ad6254c5
AK
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120rm -f conftest.$ac_objext
7a197a62
AK
6121if { (ac_try="$ac_compile"
6122case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125esac
ec6a6fbe
AK
6126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127$as_echo "$ac_try_echo") >&5
7a197a62 6128 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6129 ac_status=$?
8a2fc586
AK
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
ec6a6fbe 6133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6134 (exit $ac_status); } && {
6135 test -z "$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6138 :
6139else
6140 $as_echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_cv_type_mode_t=yes
6144fi
6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6147else
ec6a6fbe 6148 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
ec6a6fbe 6151
80992638 6152fi
7a197a62
AK
6153
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6155fi
ec6a6fbe
AK
6156{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6157$as_echo "$ac_cv_type_mode_t" >&6; }
6158if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6159 :
6160else
80992638 6161
ad6254c5
AK
6162cat >>confdefs.h <<_ACEOF
6163#define mode_t int
6164_ACEOF
6165
6166fi
6167
ec6a6fbe
AK
6168{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6169$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6170if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6171 $as_echo_n "(cached) " >&6
ad6254c5
AK
6172else
6173 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179$ac_includes_default
6180int
6181main ()
6182{
6183static struct stat ac_aggr;
6184if (ac_aggr.st_rdev)
6185return 0;
6186 ;
6187 return 0;
6188}
6189_ACEOF
6190rm -f conftest.$ac_objext
7a197a62
AK
6191if { (ac_try="$ac_compile"
6192case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195esac
ec6a6fbe
AK
6196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6197$as_echo "$ac_try_echo") >&5
7a197a62 6198 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6199 ac_status=$?
8a2fc586
AK
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
ec6a6fbe 6203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6208 ac_cv_member_struct_stat_st_rdev=yes
6209else
ec6a6fbe 6210 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
7a197a62 6213 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6214/* confdefs.h. */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h. */
6219$ac_includes_default
6220int
6221main ()
6222{
6223static struct stat ac_aggr;
6224if (sizeof ac_aggr.st_rdev)
6225return 0;
6226 ;
6227 return 0;
6228}
6229_ACEOF
6230rm -f conftest.$ac_objext
7a197a62
AK
6231if { (ac_try="$ac_compile"
6232case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
ec6a6fbe
AK
6236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6237$as_echo "$ac_try_echo") >&5
7a197a62 6238 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6239 ac_status=$?
8a2fc586
AK
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
ec6a6fbe 6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6248 ac_cv_member_struct_stat_st_rdev=yes
6249else
ec6a6fbe 6250 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
7a197a62 6253 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6254fi
7a197a62
AK
6255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6257fi
7a197a62
AK
6258
6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6260fi
ec6a6fbe
AK
6261{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6262$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6263if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6264
6265cat >>confdefs.h <<_ACEOF
6266#define HAVE_STRUCT_STAT_ST_RDEV 1
6267_ACEOF
6268
6269
ad6254c5
AK
6270fi
6271
ec6a6fbe
AK
6272{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6273$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6274if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6275 $as_echo_n "(cached) " >&6
ad6254c5
AK
6276else
6277 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6278/* confdefs.h. */
6279_ACEOF
6280cat confdefs.h >>conftest.$ac_ext
6281cat >>conftest.$ac_ext <<_ACEOF
6282/* end confdefs.h. */
6283#include <sys/types.h>
6284#include <time.h>
6285
6286int
6287main ()
6288{
25fbec5b
AK
6289struct tm tm;
6290 int *p = &tm.tm_sec;
ec6a6fbe 6291 return !p;
ad6254c5
AK
6292 ;
6293 return 0;
6294}
6295_ACEOF
6296rm -f conftest.$ac_objext
7a197a62
AK
6297if { (ac_try="$ac_compile"
6298case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
ec6a6fbe
AK
6302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303$as_echo "$ac_try_echo") >&5
7a197a62 6304 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6305 ac_status=$?
8a2fc586
AK
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
ec6a6fbe 6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6314 ac_cv_struct_tm=time.h
6315else
ec6a6fbe 6316 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6317sed 's/^/| /' conftest.$ac_ext >&5
6318
7a197a62 6319 ac_cv_struct_tm=sys/time.h
ad6254c5 6320fi
7a197a62
AK
6321
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6323fi
ec6a6fbe
AK
6324{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6325$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6326if test $ac_cv_struct_tm = sys/time.h; then
6327
6328cat >>confdefs.h <<\_ACEOF
6329#define TM_IN_SYS_TIME 1
6330_ACEOF
6331
6332fi
809fae91 6333
795ca3e5 6334
80992638 6335################################################################################
ad6254c5
AK
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
d0191583
JM
6350
6351
6352
6353for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6354 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6355 uname
ad6254c5 6356do
ec6a6fbe
AK
6357as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6358{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6359$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6361 $as_echo_n "(cached) " >&6
795ca3e5 6362else
ad6254c5 6363 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h. */
8a2fc586
AK
6369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6371#define $ac_func innocuous_$ac_func
6372
ad6254c5
AK
6373/* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char $ac_func (); below.
6375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6376 <limits.h> exists even on freestanding compilers. */
8a2fc586 6377
ad6254c5
AK
6378#ifdef __STDC__
6379# include <limits.h>
6380#else
6381# include <assert.h>
6382#endif
8a2fc586
AK
6383
6384#undef $ac_func
6385
7a197a62
AK
6386/* Override any GCC internal prototype to avoid an error.
6387 Use char because int might match the return type of a GCC
6388 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6389#ifdef __cplusplus
6390extern "C"
ad6254c5 6391#endif
ad6254c5
AK
6392char $ac_func ();
6393/* The GNU C library defines this for functions which it implements
6394 to always fail with ENOSYS. Some functions are actually named
6395 something starting with __ and the normal name is an alias. */
7a197a62 6396#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6397choke me
ad6254c5
AK
6398#endif
6399
6400int
6401main ()
6402{
7a197a62 6403return $ac_func ();
ad6254c5
AK
6404 ;
6405 return 0;
6406}
6407_ACEOF
6408rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6409if { (ac_try="$ac_link"
6410case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
ec6a6fbe
AK
6414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6415$as_echo "$ac_try_echo") >&5
7a197a62 6416 (eval "$ac_link") 2>conftest.er1
ad6254c5 6417 ac_status=$?
8a2fc586
AK
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
ec6a6fbe 6421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
ec6a6fbe
AK
6425 } && test -s conftest$ac_exeext && {
6426 test "$cross_compiling" = yes ||
6427 $as_test_x conftest$ac_exeext
6428 }; then
fc54be10
AK
6429 eval "$as_ac_var=yes"
6430else
ec6a6fbe 6431 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 eval "$as_ac_var=no"
6435fi
6436
ec6a6fbe 6437rm -rf conftest.dSYM
25fbec5b 6438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6439 conftest$ac_exeext conftest.$ac_ext
6440fi
ec6a6fbe
AK
6441ac_res=`eval 'as_val=${'$as_ac_var'}
6442 $as_echo "$as_val"'`
6443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6444$as_echo "$ac_res" >&6; }
6445as_val=`eval 'as_val=${'$as_ac_var'}
6446 $as_echo "$as_val"'`
6447 if test "x$as_val" = x""yes; then
ad6254c5 6448 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6449#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6450_ACEOF
6451
6452else
ec6a6fbe
AK
6453 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6454$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6455 { (exit 1); exit 1; }; }
6456fi
6457done
795ca3e5 6458
ad6254c5
AK
6459# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6460# for constant arguments. Useless!
ec6a6fbe
AK
6461{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6462$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6463if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6464 $as_echo_n "(cached) " >&6
ad6254c5
AK
6465else
6466 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6467/* confdefs.h. */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h. */
6472#include <alloca.h>
6473int
6474main ()
6475{
6476char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6477 if (p) return 0;
ad6254c5
AK
6478 ;
6479 return 0;
6480}
6481_ACEOF
6482rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6483if { (ac_try="$ac_link"
6484case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487esac
ec6a6fbe
AK
6488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489$as_echo "$ac_try_echo") >&5
7a197a62 6490 (eval "$ac_link") 2>conftest.er1
ad6254c5 6491 ac_status=$?
8a2fc586
AK
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
ec6a6fbe 6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6496 (exit $ac_status); } && {
6497 test -z "$ac_c_werror_flag" ||
6498 test ! -s conftest.err
ec6a6fbe
AK
6499 } && test -s conftest$ac_exeext && {
6500 test "$cross_compiling" = yes ||
6501 $as_test_x conftest$ac_exeext
6502 }; then
ad6254c5
AK
6503 ac_cv_working_alloca_h=yes
6504else
ec6a6fbe 6505 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6506sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6507
7a197a62 6508 ac_cv_working_alloca_h=no
ad6254c5 6509fi
7a197a62 6510
ec6a6fbe 6511rm -rf conftest.dSYM
25fbec5b 6512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6513 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6514fi
ec6a6fbe
AK
6515{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6516$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6517if test $ac_cv_working_alloca_h = yes; then
6518
6519cat >>confdefs.h <<\_ACEOF
6520#define HAVE_ALLOCA_H 1
6521_ACEOF
6522
6523fi
6524
ec6a6fbe
AK
6525{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6526$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6527if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6528 $as_echo_n "(cached) " >&6
ad6254c5
AK
6529else
6530 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6531/* confdefs.h. */
6532_ACEOF
6533cat confdefs.h >>conftest.$ac_ext
6534cat >>conftest.$ac_ext <<_ACEOF
6535/* end confdefs.h. */
6536#ifdef __GNUC__
6537# define alloca __builtin_alloca
6538#else
6539# ifdef _MSC_VER
6540# include <malloc.h>
6541# define alloca _alloca
6542# else
25fbec5b 6543# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6544# include <alloca.h>
6545# else
6546# ifdef _AIX
6547 #pragma alloca
6548# else
6549# ifndef alloca /* predefined by HP cc +Olibcalls */
6550char *alloca ();
6551# endif
6552# endif
6553# endif
6554# endif
6555#endif
6556
6557int
6558main ()
6559{
6560char *p = (char *) alloca (1);
7a197a62 6561 if (p) return 0;
ad6254c5
AK
6562 ;
6563 return 0;
6564}
6565_ACEOF
6566rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6567if { (ac_try="$ac_link"
6568case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571esac
ec6a6fbe
AK
6572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6573$as_echo "$ac_try_echo") >&5
7a197a62 6574 (eval "$ac_link") 2>conftest.er1
ad6254c5 6575 ac_status=$?
8a2fc586
AK
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
ec6a6fbe 6579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6580 (exit $ac_status); } && {
6581 test -z "$ac_c_werror_flag" ||
6582 test ! -s conftest.err
ec6a6fbe
AK
6583 } && test -s conftest$ac_exeext && {
6584 test "$cross_compiling" = yes ||
6585 $as_test_x conftest$ac_exeext
6586 }; then
ad6254c5
AK
6587 ac_cv_func_alloca_works=yes
6588else
ec6a6fbe 6589 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
7a197a62 6592 ac_cv_func_alloca_works=no
ad6254c5 6593fi
7a197a62 6594
ec6a6fbe 6595rm -rf conftest.dSYM
25fbec5b 6596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6597 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6598fi
ec6a6fbe
AK
6599{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6600$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6601
6602if test $ac_cv_func_alloca_works = yes; then
6603
6604cat >>confdefs.h <<\_ACEOF
6605#define HAVE_ALLOCA 1
6606_ACEOF
6607
6608else
6609 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6610# that cause trouble. Some versions do not even contain alloca or
6611# contain a buggy version. If you still want to use their alloca,
6612# use ar to extract alloca.o from them instead of compiling alloca.c.
6613
7a197a62 6614ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6615
6616cat >>confdefs.h <<\_ACEOF
6617#define C_ALLOCA 1
6618_ACEOF
6619
6620
ec6a6fbe
AK
6621{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6622$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6623if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6624 $as_echo_n "(cached) " >&6
ad6254c5
AK
6625else
6626 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h. */
7a197a62 6632#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6633webecray
6634#else
6635wenotbecray
6636#endif
6637
6638_ACEOF
795ca3e5 6639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6640 $EGREP "webecray" >/dev/null 2>&1; then
6641 ac_cv_os_cray=yes
6642else
6643 ac_cv_os_cray=no
795ca3e5
AK
6644fi
6645rm -f conftest*
6646
795ca3e5 6647fi
ec6a6fbe
AK
6648{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6649$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6650if test $ac_cv_os_cray = yes; then
6651 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6653{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6654$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6656 $as_echo_n "(cached) " >&6
ad6254c5
AK
6657else
6658 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6659/* confdefs.h. */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h. */
8a2fc586
AK
6664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6666#define $ac_func innocuous_$ac_func
6667
ad6254c5
AK
6668/* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char $ac_func (); below.
6670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6671 <limits.h> exists even on freestanding compilers. */
8a2fc586 6672
ad6254c5
AK
6673#ifdef __STDC__
6674# include <limits.h>
6675#else
6676# include <assert.h>
6677#endif
8a2fc586
AK
6678
6679#undef $ac_func
6680
7a197a62
AK
6681/* Override any GCC internal prototype to avoid an error.
6682 Use char because int might match the return type of a GCC
6683 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6684#ifdef __cplusplus
6685extern "C"
ad6254c5 6686#endif
ad6254c5
AK
6687char $ac_func ();
6688/* The GNU C library defines this for functions which it implements
6689 to always fail with ENOSYS. Some functions are actually named
6690 something starting with __ and the normal name is an alias. */
7a197a62 6691#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6692choke me
ad6254c5
AK
6693#endif
6694
6695int
6696main ()
6697{
7a197a62 6698return $ac_func ();
ad6254c5
AK
6699 ;
6700 return 0;
6701}
6702_ACEOF
6703rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6704if { (ac_try="$ac_link"
6705case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708esac
ec6a6fbe
AK
6709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710$as_echo "$ac_try_echo") >&5
7a197a62 6711 (eval "$ac_link") 2>conftest.er1
ad6254c5 6712 ac_status=$?
8a2fc586
AK
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
ec6a6fbe 6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
ec6a6fbe
AK
6720 } && test -s conftest$ac_exeext && {
6721 test "$cross_compiling" = yes ||
6722 $as_test_x conftest$ac_exeext
6723 }; then
ad6254c5
AK
6724 eval "$as_ac_var=yes"
6725else
ec6a6fbe 6726 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6727sed 's/^/| /' conftest.$ac_ext >&5
6728
7a197a62 6729 eval "$as_ac_var=no"
ad6254c5 6730fi
7a197a62 6731
ec6a6fbe 6732rm -rf conftest.dSYM
25fbec5b 6733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6734 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6735fi
ec6a6fbe
AK
6736ac_res=`eval 'as_val=${'$as_ac_var'}
6737 $as_echo "$as_val"'`
6738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6739$as_echo "$ac_res" >&6; }
6740as_val=`eval 'as_val=${'$as_ac_var'}
6741 $as_echo "$as_val"'`
6742 if test "x$as_val" = x""yes; then
80992638 6743
ad6254c5
AK
6744cat >>confdefs.h <<_ACEOF
6745#define CRAY_STACKSEG_END $ac_func
6746_ACEOF
6747
6748 break
6749fi
6750
6751 done
6752fi
6753
ec6a6fbe
AK
6754{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6755$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6756if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6757 $as_echo_n "(cached) " >&6
ad6254c5
AK
6758else
6759 if test "$cross_compiling" = yes; then
6760 ac_cv_c_stack_direction=0
6761else
6762 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
7a197a62 6768$ac_includes_default
ad6254c5
AK
6769int
6770find_stack_direction ()
6771{
6772 static char *addr = 0;
6773 auto char dummy;
6774 if (addr == 0)
6775 {
6776 addr = &dummy;
6777 return find_stack_direction ();
6778 }
6779 else
6780 return (&dummy > addr) ? 1 : -1;
6781}
6782
6783int
6784main ()
6785{
7a197a62 6786 return find_stack_direction () < 0;
ad6254c5
AK
6787}
6788_ACEOF
6789rm -f conftest$ac_exeext
7a197a62
AK
6790if { (ac_try="$ac_link"
6791case "(($ac_try" in
6792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793 *) ac_try_echo=$ac_try;;
6794esac
ec6a6fbe
AK
6795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6796$as_echo "$ac_try_echo") >&5
7a197a62 6797 (eval "$ac_link") 2>&5
ad6254c5 6798 ac_status=$?
ec6a6fbe 6799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6801 { (case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804esac
ec6a6fbe
AK
6805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6806$as_echo "$ac_try_echo") >&5
7a197a62 6807 (eval "$ac_try") 2>&5
ad6254c5 6808 ac_status=$?
ec6a6fbe 6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6810 (exit $ac_status); }; }; then
6811 ac_cv_c_stack_direction=1
6812else
ec6a6fbe
AK
6813 $as_echo "$as_me: program exited with status $ac_status" >&5
6814$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817( exit $ac_status )
6818ac_cv_c_stack_direction=-1
6819fi
ec6a6fbe 6820rm -rf conftest.dSYM
7a197a62 6821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6822fi
7a197a62
AK
6823
6824
ad6254c5 6825fi
ec6a6fbe
AK
6826{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6827$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6828
6829cat >>confdefs.h <<_ACEOF
6830#define STACK_DIRECTION $ac_cv_c_stack_direction
6831_ACEOF
6832
6833
6834fi
6835
ec6a6fbe
AK
6836{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6837$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6838if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6839 $as_echo_n "(cached) " >&6
ad6254c5
AK
6840else
6841 if test "$cross_compiling" = yes; then
6842 ac_cv_func_closedir_void=yes
6843else
6844 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6845/* confdefs.h. */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h. */
6850$ac_includes_default
6851#include <$ac_header_dirent>
6852#ifndef __cplusplus
6853int closedir ();
6854#endif
6855
6856int
6857main ()
6858{
7a197a62 6859return closedir (opendir (".")) != 0;
ad6254c5
AK
6860 ;
6861 return 0;
6862}
6863_ACEOF
6864rm -f conftest$ac_exeext
7a197a62
AK
6865if { (ac_try="$ac_link"
6866case "(($ac_try" in
6867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6868 *) ac_try_echo=$ac_try;;
6869esac
ec6a6fbe
AK
6870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6871$as_echo "$ac_try_echo") >&5
7a197a62 6872 (eval "$ac_link") 2>&5
ad6254c5 6873 ac_status=$?
ec6a6fbe 6874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6876 { (case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879esac
ec6a6fbe
AK
6880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881$as_echo "$ac_try_echo") >&5
7a197a62 6882 (eval "$ac_try") 2>&5
ad6254c5 6883 ac_status=$?
ec6a6fbe 6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6885 (exit $ac_status); }; }; then
6886 ac_cv_func_closedir_void=no
6887else
ec6a6fbe
AK
6888 $as_echo "$as_me: program exited with status $ac_status" >&5
6889$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892( exit $ac_status )
6893ac_cv_func_closedir_void=yes
6894fi
ec6a6fbe 6895rm -rf conftest.dSYM
7a197a62 6896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6897fi
7a197a62
AK
6898
6899
ad6254c5 6900fi
ec6a6fbe
AK
6901{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6902$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6903if test $ac_cv_func_closedir_void = yes; then
6904
6905cat >>confdefs.h <<\_ACEOF
6906#define CLOSEDIR_VOID 1
6907_ACEOF
6908
6909fi
6910
6911
7a197a62 6912for ac_header in vfork.h
ad6254c5 6913do
ec6a6fbe 6914as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6917$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6919 $as_echo_n "(cached) " >&6
ad6254c5 6920fi
ec6a6fbe
AK
6921ac_res=`eval 'as_val=${'$as_ac_Header'}
6922 $as_echo "$as_val"'`
6923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6924$as_echo "$ac_res" >&6; }
ad6254c5
AK
6925else
6926 # Is the header compilable?
ec6a6fbe
AK
6927{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6928$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6929cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6930/* confdefs.h. */
6931_ACEOF
6932cat confdefs.h >>conftest.$ac_ext
6933cat >>conftest.$ac_ext <<_ACEOF
6934/* end confdefs.h. */
6935$ac_includes_default
6936#include <$ac_header>
6937_ACEOF
6938rm -f conftest.$ac_objext
7a197a62
AK
6939if { (ac_try="$ac_compile"
6940case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943esac
ec6a6fbe
AK
6944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6945$as_echo "$ac_try_echo") >&5
7a197a62 6946 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6947 ac_status=$?
8a2fc586
AK
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
ec6a6fbe 6951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6956 ac_header_compiler=yes
6957else
ec6a6fbe 6958 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
7a197a62 6961 ac_header_compiler=no
ad6254c5 6962fi
7a197a62
AK
6963
6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
6965{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6966$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6967
6968# Is the header present?
ec6a6fbe
AK
6969{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6970$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6971cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6972/* confdefs.h. */
6973_ACEOF
6974cat confdefs.h >>conftest.$ac_ext
6975cat >>conftest.$ac_ext <<_ACEOF
6976/* end confdefs.h. */
6977#include <$ac_header>
6978_ACEOF
7a197a62
AK
6979if { (ac_try="$ac_cpp conftest.$ac_ext"
6980case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983esac
ec6a6fbe
AK
6984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6985$as_echo "$ac_try_echo") >&5
7a197a62 6986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
ec6a6fbe 6991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6992 (exit $ac_status); } >/dev/null && {
6993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 }; then
ad6254c5
AK
6996 ac_header_preproc=yes
6997else
ec6a6fbe 6998 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_header_preproc=no
7002fi
7a197a62 7003
ad6254c5 7004rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7005{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7006$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7007
7008# So? What about this header?
8a2fc586
AK
7009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7010 yes:no: )
ec6a6fbe
AK
7011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7012$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7014$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7015 ac_header_preproc=yes
ad6254c5 7016 ;;
8a2fc586 7017 no:yes:* )
ec6a6fbe
AK
7018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7019$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7021$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7023$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7025$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7027$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7029$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7030
ad6254c5
AK
7031 ;;
7032esac
ec6a6fbe
AK
7033{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7034$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7036 $as_echo_n "(cached) " >&6
ad6254c5 7037else
8a2fc586 7038 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7039fi
ec6a6fbe
AK
7040ac_res=`eval 'as_val=${'$as_ac_Header'}
7041 $as_echo "$as_val"'`
7042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7043$as_echo "$ac_res" >&6; }
ad6254c5 7044
795ca3e5 7045fi
ec6a6fbe
AK
7046as_val=`eval 'as_val=${'$as_ac_Header'}
7047 $as_echo "$as_val"'`
7048 if test "x$as_val" = x""yes; then
ad6254c5 7049 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7051_ACEOF
7052
7053fi
7054
7055done
795ca3e5 7056
ad6254c5
AK
7057
7058
7059for ac_func in fork vfork
7060do
ec6a6fbe
AK
7061as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7062{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7063$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7065 $as_echo_n "(cached) " >&6
795ca3e5 7066else
ad6254c5 7067 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7068/* confdefs.h. */
7069_ACEOF
7070cat confdefs.h >>conftest.$ac_ext
7071cat >>conftest.$ac_ext <<_ACEOF
7072/* end confdefs.h. */
8a2fc586
AK
7073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7075#define $ac_func innocuous_$ac_func
7076
ad6254c5
AK
7077/* System header to define __stub macros and hopefully few prototypes,
7078 which can conflict with char $ac_func (); below.
7079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080 <limits.h> exists even on freestanding compilers. */
8a2fc586 7081
ad6254c5
AK
7082#ifdef __STDC__
7083# include <limits.h>
7084#else
7085# include <assert.h>
795ca3e5 7086#endif
8a2fc586
AK
7087
7088#undef $ac_func
7089
7a197a62
AK
7090/* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
795ca3e5 7093#ifdef __cplusplus
ad6254c5 7094extern "C"
ad6254c5 7095#endif
ad6254c5
AK
7096char $ac_func ();
7097/* The GNU C library defines this for functions which it implements
7098 to always fail with ENOSYS. Some functions are actually named
7099 something starting with __ and the normal name is an alias. */
7a197a62 7100#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7101choke me
795ca3e5
AK
7102#endif
7103
ad6254c5
AK
7104int
7105main ()
7106{
7a197a62 7107return $ac_func ();
ad6254c5
AK
7108 ;
7109 return 0;
7110}
7111_ACEOF
7112rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7113if { (ac_try="$ac_link"
7114case "(($ac_try" in
7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7117esac
ec6a6fbe
AK
7118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7119$as_echo "$ac_try_echo") >&5
7a197a62 7120 (eval "$ac_link") 2>conftest.er1
ad6254c5 7121 ac_status=$?
8a2fc586
AK
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
ec6a6fbe 7125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
ec6a6fbe
AK
7129 } && test -s conftest$ac_exeext && {
7130 test "$cross_compiling" = yes ||
7131 $as_test_x conftest$ac_exeext
7132 }; then
ad6254c5 7133 eval "$as_ac_var=yes"
795ca3e5 7134else
ec6a6fbe 7135 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7136sed 's/^/| /' conftest.$ac_ext >&5
7137
7a197a62 7138 eval "$as_ac_var=no"
795ca3e5 7139fi
7a197a62 7140
ec6a6fbe 7141rm -rf conftest.dSYM
25fbec5b 7142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7143 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7144fi
ec6a6fbe
AK
7145ac_res=`eval 'as_val=${'$as_ac_var'}
7146 $as_echo "$as_val"'`
7147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7148$as_echo "$ac_res" >&6; }
7149as_val=`eval 'as_val=${'$as_ac_var'}
7150 $as_echo "$as_val"'`
7151 if test "x$as_val" = x""yes; then
ad6254c5 7152 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7153#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7154_ACEOF
7155
7156fi
7157done
7158
7159if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7160 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7161$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7162if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7163 $as_echo_n "(cached) " >&6
ad6254c5
AK
7164else
7165 if test "$cross_compiling" = yes; then
7166 ac_cv_func_fork_works=cross
7167else
7168 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7169/* confdefs.h. */
7170_ACEOF
7171cat confdefs.h >>conftest.$ac_ext
7172cat >>conftest.$ac_ext <<_ACEOF
7173/* end confdefs.h. */
7174$ac_includes_default
7175int
7176main ()
7177{
7178
7179 /* By Ruediger Kuhlmann. */
7180 return fork () < 0;
7181
7182 ;
7183 return 0;
7184}
ad6254c5
AK
7185_ACEOF
7186rm -f conftest$ac_exeext
7a197a62
AK
7187if { (ac_try="$ac_link"
7188case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191esac
ec6a6fbe
AK
7192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193$as_echo "$ac_try_echo") >&5
7a197a62 7194 (eval "$ac_link") 2>&5
ad6254c5 7195 ac_status=$?
ec6a6fbe 7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7198 { (case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201esac
ec6a6fbe
AK
7202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203$as_echo "$ac_try_echo") >&5
7a197a62 7204 (eval "$ac_try") 2>&5
ad6254c5 7205 ac_status=$?
ec6a6fbe 7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7207 (exit $ac_status); }; }; then
7208 ac_cv_func_fork_works=yes
7209else
ec6a6fbe
AK
7210 $as_echo "$as_me: program exited with status $ac_status" >&5
7211$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7212sed 's/^/| /' conftest.$ac_ext >&5
7213
7214( exit $ac_status )
7215ac_cv_func_fork_works=no
7216fi
ec6a6fbe 7217rm -rf conftest.dSYM
7a197a62 7218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7219fi
7a197a62
AK
7220
7221
ad6254c5 7222fi
ec6a6fbe
AK
7223{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7224$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7225
7226else
7227 ac_cv_func_fork_works=$ac_cv_func_fork
7228fi
7229if test "x$ac_cv_func_fork_works" = xcross; then
7230 case $host in
7231 *-*-amigaos* | *-*-msdosdjgpp*)
7232 # Override, as these systems have only a dummy fork() stub
7233 ac_cv_func_fork_works=no
7234 ;;
7235 *)
7236 ac_cv_func_fork_works=yes
7237 ;;
7238 esac
ec6a6fbe
AK
7239 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7240$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7241fi
7242ac_cv_func_vfork_works=$ac_cv_func_vfork
7243if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7244 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7245$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7246if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7247 $as_echo_n "(cached) " >&6
ad6254c5
AK
7248else
7249 if test "$cross_compiling" = yes; then
7250 ac_cv_func_vfork_works=cross
7251else
7252 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7253/* confdefs.h. */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h. */
7258/* Thanks to Paul Eggert for this test. */
7a197a62 7259$ac_includes_default
ad6254c5 7260#include <sys/wait.h>
25fbec5b 7261#ifdef HAVE_VFORK_H
ad6254c5
AK
7262# include <vfork.h>
7263#endif
7264/* On some sparc systems, changes by the child to local and incoming
7265 argument registers are propagated back to the parent. The compiler
7266 is told about this with #include <vfork.h>, but some compilers
7267 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7268 static variable whose address is put into a register that is
7269 clobbered by the vfork. */
7270static void
7271#ifdef __cplusplus
7272sparc_address_test (int arg)
7273# else
7274sparc_address_test (arg) int arg;
7275#endif
7276{
7277 static pid_t child;
7278 if (!child) {
7279 child = vfork ();
7280 if (child < 0) {
7281 perror ("vfork");
7282 _exit(2);
7283 }
7284 if (!child) {
7285 arg = getpid();
7286 write(-1, "", 0);
7287 _exit (arg);
7288 }
7289 }
7290}
7291
7292int
7293main ()
7294{
7295 pid_t parent = getpid ();
7296 pid_t child;
7297
7298 sparc_address_test (0);
7299
7300 child = vfork ();
7301
7302 if (child == 0) {
7303 /* Here is another test for sparc vfork register problems. This
7304 test uses lots of local variables, at least as many local
7305 variables as main has allocated so far including compiler
7306 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7307 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7308 reuse the register of parent for one of the local variables,
7309 since it will think that parent can't possibly be used any more
7310 in this routine. Assigning to the local variable will thus
7311 munge parent in the parent process. */
7312 pid_t
7313 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7314 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7315 /* Convince the compiler that p..p7 are live; otherwise, it might
7316 use the same hardware register for all 8 local variables. */
7317 if (p != p1 || p != p2 || p != p3 || p != p4
7318 || p != p5 || p != p6 || p != p7)
7319 _exit(1);
7320
7321 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7322 from child file descriptors. If the child closes a descriptor
7323 before it execs or exits, this munges the parent's descriptor
7324 as well. Test for this by closing stdout in the child. */
7325 _exit(close(fileno(stdout)) != 0);
7326 } else {
7327 int status;
7328 struct stat st;
7329
7330 while (wait(&status) != child)
7331 ;
7a197a62 7332 return (
ad6254c5
AK
7333 /* Was there some problem with vforking? */
7334 child < 0
7335
7336 /* Did the child fail? (This shouldn't happen.) */
7337 || status
7338
7339 /* Did the vfork/compiler bug occur? */
7340 || parent != getpid()
7341
7342 /* Did the file descriptor bug occur? */
7343 || fstat(fileno(stdout), &st) != 0
7344 );
7345 }
7346}
7347_ACEOF
7348rm -f conftest$ac_exeext
7a197a62
AK
7349if { (ac_try="$ac_link"
7350case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353esac
ec6a6fbe
AK
7354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355$as_echo "$ac_try_echo") >&5
7a197a62 7356 (eval "$ac_link") 2>&5
ad6254c5 7357 ac_status=$?
ec6a6fbe 7358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7360 { (case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363esac
ec6a6fbe
AK
7364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7365$as_echo "$ac_try_echo") >&5
7a197a62 7366 (eval "$ac_try") 2>&5
ad6254c5 7367 ac_status=$?
ec6a6fbe 7368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7369 (exit $ac_status); }; }; then
7370 ac_cv_func_vfork_works=yes
7371else
ec6a6fbe
AK
7372 $as_echo "$as_me: program exited with status $ac_status" >&5
7373$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376( exit $ac_status )
7377ac_cv_func_vfork_works=no
7378fi
ec6a6fbe 7379rm -rf conftest.dSYM
7a197a62 7380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7381fi
7a197a62
AK
7382
7383
ad6254c5 7384fi
ec6a6fbe
AK
7385{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7386$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7387
7388fi;
7389if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7390 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7391 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7392$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7393fi
7394
7395if test "x$ac_cv_func_vfork_works" = xyes; then
7396
7397cat >>confdefs.h <<\_ACEOF
7398#define HAVE_WORKING_VFORK 1
7399_ACEOF
7400
7401else
7402
7403cat >>confdefs.h <<\_ACEOF
7404#define vfork fork
7405_ACEOF
7406
7407fi
7408if test "x$ac_cv_func_fork_works" = xyes; then
7409
7410cat >>confdefs.h <<\_ACEOF
7411#define HAVE_WORKING_FORK 1
7412_ACEOF
7413
7414fi
7415
ec6a6fbe
AK
7416{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7417$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7418if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7419 $as_echo_n "(cached) " >&6
ad6254c5
AK
7420else
7421 rm -f conftest.sym conftest.file
7422echo >conftest.file
7423if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7424 if test "$cross_compiling" = yes; then
7425 ac_cv_func_lstat_dereferences_slashed_symlink=no
7426else
7427 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433$ac_includes_default
7434int
7435main ()
7436{
7437struct stat sbuf;
7438 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7439 That is better in the sense that it means we will not
7440 have to compile and use the lstat wrapper. */
7a197a62 7441 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7442 ;
7443 return 0;
7444}
7445_ACEOF
7446rm -f conftest$ac_exeext
7a197a62
AK
7447if { (ac_try="$ac_link"
7448case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451esac
ec6a6fbe
AK
7452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7453$as_echo "$ac_try_echo") >&5
7a197a62 7454 (eval "$ac_link") 2>&5
ad6254c5 7455 ac_status=$?
ec6a6fbe 7456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7458 { (case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461esac
ec6a6fbe
AK
7462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463$as_echo "$ac_try_echo") >&5
7a197a62 7464 (eval "$ac_try") 2>&5
ad6254c5 7465 ac_status=$?
ec6a6fbe 7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7467 (exit $ac_status); }; }; then
7468 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7469else
ec6a6fbe
AK
7470 $as_echo "$as_me: program exited with status $ac_status" >&5
7471$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7472sed 's/^/| /' conftest.$ac_ext >&5
7473
7474( exit $ac_status )
7475ac_cv_func_lstat_dereferences_slashed_symlink=no
7476fi
ec6a6fbe 7477rm -rf conftest.dSYM
7a197a62 7478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7479fi
7a197a62
AK
7480
7481
ad6254c5
AK
7482else
7483 # If the `ln -s' command failed, then we probably don't even
7484 # have an lstat function.
7485 ac_cv_func_lstat_dereferences_slashed_symlink=no
7486fi
7487rm -f conftest.sym conftest.file
7488
7489fi
ec6a6fbe
AK
7490{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7491$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7492
7493test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7494
7495cat >>confdefs.h <<_ACEOF
7496#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7497_ACEOF
7498
7499
7500if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7501 case " $LIBOBJS " in
8a2fc586 7502 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7503 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7504 ;;
8a2fc586
AK
7505esac
7506
ad6254c5
AK
7507fi
7508
ec6a6fbe
AK
7509{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7510$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7511if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7512 $as_echo_n "(cached) " >&6
ad6254c5
AK
7513else
7514 if test "$cross_compiling" = yes; then
7515 ac_cv_func_lstat_empty_string_bug=yes
7516else
7517 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7518/* confdefs.h. */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h. */
7523$ac_includes_default
7524int
7525main ()
7526{
7527struct stat sbuf;
7a197a62 7528 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533rm -f conftest$ac_exeext
7a197a62
AK
7534if { (ac_try="$ac_link"
7535case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
ec6a6fbe
AK
7539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7540$as_echo "$ac_try_echo") >&5
7a197a62 7541 (eval "$ac_link") 2>&5
ad6254c5 7542 ac_status=$?
ec6a6fbe 7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
ec6a6fbe
AK
7549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550$as_echo "$ac_try_echo") >&5
7a197a62 7551 (eval "$ac_try") 2>&5
ad6254c5 7552 ac_status=$?
ec6a6fbe 7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7554 (exit $ac_status); }; }; then
7a197a62 7555 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7556else
ec6a6fbe
AK
7557 $as_echo "$as_me: program exited with status $ac_status" >&5
7558$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
7561( exit $ac_status )
7a197a62 7562ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7563fi
ec6a6fbe 7564rm -rf conftest.dSYM
7a197a62 7565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7566fi
7a197a62
AK
7567
7568
ad6254c5 7569fi
ec6a6fbe
AK
7570{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7571$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7572if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7573 case " $LIBOBJS " in
8a2fc586 7574 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7575 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7576 ;;
8a2fc586
AK
7577esac
7578
ad6254c5
AK
7579
7580cat >>confdefs.h <<_ACEOF
7581#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7582_ACEOF
7583
7584fi
7585
7586
7587for ac_header in stdlib.h
7588do
ec6a6fbe 7589as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7592$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7594 $as_echo_n "(cached) " >&6
ad6254c5 7595fi
ec6a6fbe
AK
7596ac_res=`eval 'as_val=${'$as_ac_Header'}
7597 $as_echo "$as_val"'`
7598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7599$as_echo "$ac_res" >&6; }
ad6254c5
AK
7600else
7601 # Is the header compilable?
ec6a6fbe
AK
7602{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7603$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7604cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7605/* confdefs.h. */
7606_ACEOF
7607cat confdefs.h >>conftest.$ac_ext
7608cat >>conftest.$ac_ext <<_ACEOF
7609/* end confdefs.h. */
7610$ac_includes_default
7611#include <$ac_header>
7612_ACEOF
7613rm -f conftest.$ac_objext
7a197a62
AK
7614if { (ac_try="$ac_compile"
7615case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618esac
ec6a6fbe
AK
7619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7620$as_echo "$ac_try_echo") >&5
7a197a62 7621 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7622 ac_status=$?
8a2fc586
AK
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
ec6a6fbe 7626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7631 ac_header_compiler=yes
7632else
ec6a6fbe 7633 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
7a197a62 7636 ac_header_compiler=no
ad6254c5 7637fi
7a197a62
AK
7638
7639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7640{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7641$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7642
7643# Is the header present?
ec6a6fbe
AK
7644{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7645$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7646cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
7652#include <$ac_header>
7653_ACEOF
7a197a62
AK
7654if { (ac_try="$ac_cpp conftest.$ac_ext"
7655case "(($ac_try" in
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7658esac
ec6a6fbe
AK
7659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7660$as_echo "$ac_try_echo") >&5
7a197a62 7661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
ec6a6fbe 7666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7667 (exit $ac_status); } >/dev/null && {
7668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7669 test ! -s conftest.err
7670 }; then
ad6254c5
AK
7671 ac_header_preproc=yes
7672else
ec6a6fbe 7673 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_header_preproc=no
7677fi
7a197a62 7678
ad6254c5 7679rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7680{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7682
7683# So? What about this header?
8a2fc586
AK
7684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7685 yes:no: )
ec6a6fbe
AK
7686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7687$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7689$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7690 ac_header_preproc=yes
ad6254c5 7691 ;;
8a2fc586 7692 no:yes:* )
ec6a6fbe
AK
7693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7694$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7696$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7698$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7700$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7704$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7705
ad6254c5
AK
7706 ;;
7707esac
ec6a6fbe
AK
7708{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7709$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7711 $as_echo_n "(cached) " >&6
ad6254c5 7712else
8a2fc586 7713 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7714fi
ec6a6fbe
AK
7715ac_res=`eval 'as_val=${'$as_ac_Header'}
7716 $as_echo "$as_val"'`
7717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7718$as_echo "$ac_res" >&6; }
ad6254c5
AK
7719
7720fi
ec6a6fbe
AK
7721as_val=`eval 'as_val=${'$as_ac_Header'}
7722 $as_echo "$as_val"'`
7723 if test "x$as_val" = x""yes; then
ad6254c5 7724 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7725#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7726_ACEOF
7727
7728fi
7729
7730done
7731
ec6a6fbe
AK
7732{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7733$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7734if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7735 $as_echo_n "(cached) " >&6
ad6254c5
AK
7736else
7737 if test "$cross_compiling" = yes; then
7738 ac_cv_func_malloc_0_nonnull=no
7739else
7740 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7741/* confdefs.h. */
7742_ACEOF
7743cat confdefs.h >>conftest.$ac_ext
7744cat >>conftest.$ac_ext <<_ACEOF
7745/* end confdefs.h. */
25fbec5b 7746#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7747# include <stdlib.h>
7748#else
7749char *malloc ();
7750#endif
7751
7752int
7753main ()
7754{
7a197a62 7755return ! malloc (0);
ad6254c5
AK
7756 ;
7757 return 0;
7758}
7759_ACEOF
7760rm -f conftest$ac_exeext
7a197a62
AK
7761if { (ac_try="$ac_link"
7762case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
ec6a6fbe
AK
7766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767$as_echo "$ac_try_echo") >&5
7a197a62 7768 (eval "$ac_link") 2>&5
ad6254c5 7769 ac_status=$?
ec6a6fbe 7770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7772 { (case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
ec6a6fbe
AK
7776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7777$as_echo "$ac_try_echo") >&5
7a197a62 7778 (eval "$ac_try") 2>&5
ad6254c5 7779 ac_status=$?
ec6a6fbe 7780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7781 (exit $ac_status); }; }; then
7782 ac_cv_func_malloc_0_nonnull=yes
7783else
ec6a6fbe
AK
7784 $as_echo "$as_me: program exited with status $ac_status" >&5
7785$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7786sed 's/^/| /' conftest.$ac_ext >&5
7787
7788( exit $ac_status )
7789ac_cv_func_malloc_0_nonnull=no
7790fi
ec6a6fbe 7791rm -rf conftest.dSYM
7a197a62 7792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7793fi
7a197a62
AK
7794
7795
ad6254c5 7796fi
ec6a6fbe
AK
7797{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7798$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7799if test $ac_cv_func_malloc_0_nonnull = yes; then
7800
7801cat >>confdefs.h <<\_ACEOF
7802#define HAVE_MALLOC 1
7803_ACEOF
7804
7805else
7806 cat >>confdefs.h <<\_ACEOF
7807#define HAVE_MALLOC 0
7808_ACEOF
7809
7a197a62 7810 case " $LIBOBJS " in
8a2fc586 7811 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7812 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7813 ;;
8a2fc586
AK
7814esac
7815
ad6254c5
AK
7816
7817cat >>confdefs.h <<\_ACEOF
7818#define malloc rpl_malloc
7819_ACEOF
7820
7821fi
7822
7823
7824
ec6a6fbe
AK
7825{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7826$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7827if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7828 $as_echo_n "(cached) " >&6
ad6254c5
AK
7829else
7830 if test "$cross_compiling" = yes; then
7831 ac_cv_func_memcmp_working=no
7832else
7833 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
8a2fc586 7839$ac_includes_default
ad6254c5
AK
7840int
7841main ()
7842{
7843
7844 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7845 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7846 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7847 return 1;
ad6254c5
AK
7848
7849 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7850 or more and with at least one buffer not starting on a 4-byte boundary.
7851 William Lewis provided this test program. */
7852 {
7853 char foo[21];
7854 char bar[21];
7855 int i;
7856 for (i = 0; i < 4; i++)
7857 {
8a2fc586
AK
7858 char *a = foo + i;
7859 char *b = bar + i;
7860 strcpy (a, "--------01111111");
7861 strcpy (b, "--------10000000");
7862 if (memcmp (a, b, 16) >= 0)
7a197a62 7863 return 1;
ad6254c5 7864 }
7a197a62 7865 return 0;
ad6254c5
AK
7866 }
7867
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872rm -f conftest$ac_exeext
7a197a62
AK
7873if { (ac_try="$ac_link"
7874case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
ec6a6fbe
AK
7878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7879$as_echo "$ac_try_echo") >&5
7a197a62 7880 (eval "$ac_link") 2>&5
ad6254c5 7881 ac_status=$?
ec6a6fbe 7882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887esac
ec6a6fbe
AK
7888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889$as_echo "$ac_try_echo") >&5
7a197a62 7890 (eval "$ac_try") 2>&5
ad6254c5 7891 ac_status=$?
ec6a6fbe 7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7893 (exit $ac_status); }; }; then
7894 ac_cv_func_memcmp_working=yes
7895else
ec6a6fbe
AK
7896 $as_echo "$as_me: program exited with status $ac_status" >&5
7897$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900( exit $ac_status )
7901ac_cv_func_memcmp_working=no
7902fi
ec6a6fbe 7903rm -rf conftest.dSYM
7a197a62 7904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7905fi
7a197a62
AK
7906
7907
ad6254c5 7908fi
ec6a6fbe
AK
7909{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7910$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7911test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7912 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7913 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7914 ;;
8a2fc586
AK
7915esac
7916
ad6254c5
AK
7917
7918
7919
7920for ac_header in stdlib.h unistd.h
7921do
ec6a6fbe 7922as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7925$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7927 $as_echo_n "(cached) " >&6
ad6254c5 7928fi
ec6a6fbe
AK
7929ac_res=`eval 'as_val=${'$as_ac_Header'}
7930 $as_echo "$as_val"'`
7931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7932$as_echo "$ac_res" >&6; }
ad6254c5
AK
7933else
7934 # Is the header compilable?
ec6a6fbe
AK
7935{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7936$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7937cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7938/* confdefs.h. */
7939_ACEOF
7940cat confdefs.h >>conftest.$ac_ext
7941cat >>conftest.$ac_ext <<_ACEOF
7942/* end confdefs.h. */
7943$ac_includes_default
7944#include <$ac_header>
7945_ACEOF
7946rm -f conftest.$ac_objext
7a197a62
AK
7947if { (ac_try="$ac_compile"
7948case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951esac
ec6a6fbe
AK
7952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7953$as_echo "$ac_try_echo") >&5
7a197a62 7954 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7955 ac_status=$?
8a2fc586
AK
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
ec6a6fbe 7959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7960 (exit $ac_status); } && {
7961 test -z "$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7964 ac_header_compiler=yes
7965else
ec6a6fbe 7966 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7a197a62 7969 ac_header_compiler=no
ad6254c5 7970fi
7a197a62
AK
7971
7972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7973{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7974$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7975
7976# Is the header present?
ec6a6fbe
AK
7977{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7978$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7979cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7980/* confdefs.h. */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h. */
7985#include <$ac_header>
7986_ACEOF
7a197a62
AK
7987if { (ac_try="$ac_cpp conftest.$ac_ext"
7988case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
ec6a6fbe
AK
7992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7993$as_echo "$ac_try_echo") >&5
7a197a62 7994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
ec6a6fbe 7999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8000 (exit $ac_status); } >/dev/null && {
8001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 }; then
ad6254c5
AK
8004 ac_header_preproc=yes
8005else
ec6a6fbe 8006 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ac_header_preproc=no
8010fi
7a197a62 8011
ad6254c5 8012rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8013{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8014$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8015
8016# So? What about this header?
8a2fc586
AK
8017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8018 yes:no: )
ec6a6fbe
AK
8019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8020$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8022$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8023 ac_header_preproc=yes
ad6254c5 8024 ;;
8a2fc586 8025 no:yes:* )
ec6a6fbe
AK
8026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8027$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8029$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8031$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8033$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8035$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8037$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8038
ad6254c5
AK
8039 ;;
8040esac
ec6a6fbe
AK
8041{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8042$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8044 $as_echo_n "(cached) " >&6
ad6254c5 8045else
8a2fc586 8046 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8047fi
ec6a6fbe
AK
8048ac_res=`eval 'as_val=${'$as_ac_Header'}
8049 $as_echo "$as_val"'`
8050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8051$as_echo "$ac_res" >&6; }
ad6254c5
AK
8052
8053fi
ec6a6fbe
AK
8054as_val=`eval 'as_val=${'$as_ac_Header'}
8055 $as_echo "$as_val"'`
8056 if test "x$as_val" = x""yes; then
ad6254c5 8057 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8059_ACEOF
8060
8061fi
8062
8063done
8064
8065
8066for ac_func in getpagesize
8067do
ec6a6fbe
AK
8068as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8069{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8070$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8071if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8072 $as_echo_n "(cached) " >&6
ad6254c5
AK
8073else
8074 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h. */
8a2fc586
AK
8080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8082#define $ac_func innocuous_$ac_func
8083
ad6254c5
AK
8084/* System header to define __stub macros and hopefully few prototypes,
8085 which can conflict with char $ac_func (); below.
8086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087 <limits.h> exists even on freestanding compilers. */
8a2fc586 8088
ad6254c5
AK
8089#ifdef __STDC__
8090# include <limits.h>
8091#else
8092# include <assert.h>
8093#endif
8a2fc586
AK
8094
8095#undef $ac_func
8096
7a197a62
AK
8097/* Override any GCC internal prototype to avoid an error.
8098 Use char because int might match the return type of a GCC
8099 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8100#ifdef __cplusplus
8101extern "C"
ad6254c5 8102#endif
ad6254c5
AK
8103char $ac_func ();
8104/* The GNU C library defines this for functions which it implements
8105 to always fail with ENOSYS. Some functions are actually named
8106 something starting with __ and the normal name is an alias. */
7a197a62 8107#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8108choke me
ad6254c5
AK
8109#endif
8110
8111int
8112main ()
8113{
7a197a62 8114return $ac_func ();
ad6254c5
AK
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8120if { (ac_try="$ac_link"
8121case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
ec6a6fbe
AK
8125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8126$as_echo "$ac_try_echo") >&5
7a197a62 8127 (eval "$ac_link") 2>conftest.er1
ad6254c5 8128 ac_status=$?
8a2fc586
AK
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
ec6a6fbe 8132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
ec6a6fbe
AK
8136 } && test -s conftest$ac_exeext && {
8137 test "$cross_compiling" = yes ||
8138 $as_test_x conftest$ac_exeext
8139 }; then
ad6254c5
AK
8140 eval "$as_ac_var=yes"
8141else
ec6a6fbe 8142 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
7a197a62 8145 eval "$as_ac_var=no"
ad6254c5 8146fi
7a197a62 8147
ec6a6fbe 8148rm -rf conftest.dSYM
25fbec5b 8149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8150 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8151fi
ec6a6fbe
AK
8152ac_res=`eval 'as_val=${'$as_ac_var'}
8153 $as_echo "$as_val"'`
8154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8155$as_echo "$ac_res" >&6; }
8156as_val=`eval 'as_val=${'$as_ac_var'}
8157 $as_echo "$as_val"'`
8158 if test "x$as_val" = x""yes; then
ad6254c5 8159 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8161_ACEOF
8162
8163fi
8164done
8165
ec6a6fbe
AK
8166{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8167$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8168if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8169 $as_echo_n "(cached) " >&6
ad6254c5
AK
8170else
8171 if test "$cross_compiling" = yes; then
8172 ac_cv_func_mmap_fixed_mapped=no
8173else
8174 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8175/* confdefs.h. */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h. */
8180$ac_includes_default
8181/* malloc might have been renamed as rpl_malloc. */
8182#undef malloc
8183
8184/* Thanks to Mike Haertel and Jim Avera for this test.
8185 Here is a matrix of mmap possibilities:
8186 mmap private not fixed
8187 mmap private fixed at somewhere currently unmapped
8188 mmap private fixed at somewhere already mapped
8189 mmap shared not fixed
8190 mmap shared fixed at somewhere currently unmapped
8191 mmap shared fixed at somewhere already mapped
8192 For private mappings, we should verify that changes cannot be read()
8193 back from the file, nor mmap's back from the file at a different
8194 address. (There have been systems where private was not correctly
8195 implemented like the infamous i386 svr4.0, and systems where the
8196 VM page cache was not coherent with the file system buffer cache
8197 like early versions of FreeBSD and possibly contemporary NetBSD.)
8198 For shared mappings, we should conversely verify that changes get
8199 propagated back to all the places they're supposed to be.
8200
8201 Grep wants private fixed already mapped.
8202 The main things grep needs to know about mmap are:
8203 * does it exist and is it safe to write into the mmap'd area
8204 * how to use it (BSD variants) */
8205
8206#include <fcntl.h>
8207#include <sys/mman.h>
8208
25fbec5b 8209#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8210char *malloc ();
8211#endif
8212
8213/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8214#ifndef HAVE_GETPAGESIZE
ad6254c5 8215/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8216# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8217# define HAVE_SYS_PARAM_H 1
8218# endif
8219
8220# ifdef _SC_PAGESIZE
8221# define getpagesize() sysconf(_SC_PAGESIZE)
8222# else /* no _SC_PAGESIZE */
25fbec5b 8223# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8224# include <sys/param.h>
8225# ifdef EXEC_PAGESIZE
8226# define getpagesize() EXEC_PAGESIZE
8227# else /* no EXEC_PAGESIZE */
8228# ifdef NBPG
8229# define getpagesize() NBPG * CLSIZE
8230# ifndef CLSIZE
8231# define CLSIZE 1
8232# endif /* no CLSIZE */
8233# else /* no NBPG */
8234# ifdef NBPC
8235# define getpagesize() NBPC
8236# else /* no NBPC */
8237# ifdef PAGESIZE
8238# define getpagesize() PAGESIZE
8239# endif /* PAGESIZE */
8240# endif /* no NBPC */
8241# endif /* no NBPG */
8242# endif /* no EXEC_PAGESIZE */
8243# else /* no HAVE_SYS_PARAM_H */
8244# define getpagesize() 8192 /* punt totally */
8245# endif /* no HAVE_SYS_PARAM_H */
8246# endif /* no _SC_PAGESIZE */
8247
8248#endif /* no HAVE_GETPAGESIZE */
8249
8250int
8251main ()
8252{
8253 char *data, *data2, *data3;
8254 int i, pagesize;
8255 int fd;
8256
8257 pagesize = getpagesize ();
8258
8259 /* First, make a file with some known garbage in it. */
8260 data = (char *) malloc (pagesize);
8261 if (!data)
7a197a62 8262 return 1;
ad6254c5
AK
8263 for (i = 0; i < pagesize; ++i)
8264 *(data + i) = rand ();
8265 umask (0);
8266 fd = creat ("conftest.mmap", 0600);
8267 if (fd < 0)
7a197a62 8268 return 1;
ad6254c5 8269 if (write (fd, data, pagesize) != pagesize)
7a197a62 8270 return 1;
ad6254c5
AK
8271 close (fd);
8272
8273 /* Next, try to mmap the file at a fixed address which already has
8274 something else allocated at it. If we can, also make sure that
8275 we see the same garbage. */
8276 fd = open ("conftest.mmap", O_RDWR);
8277 if (fd < 0)
7a197a62 8278 return 1;
ad6254c5
AK
8279 data2 = (char *) malloc (2 * pagesize);
8280 if (!data2)
7a197a62
AK
8281 return 1;
8282 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8283 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8284 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8285 return 1;
ad6254c5
AK
8286 for (i = 0; i < pagesize; ++i)
8287 if (*(data + i) != *(data2 + i))
7a197a62 8288 return 1;
ad6254c5
AK
8289
8290 /* Finally, make sure that changes to the mapped area do not
8291 percolate back to the file as seen by read(). (This is a bug on
8292 some variants of i386 svr4.0.) */
8293 for (i = 0; i < pagesize; ++i)
8294 *(data2 + i) = *(data2 + i) + 1;
8295 data3 = (char *) malloc (pagesize);
8296 if (!data3)
7a197a62 8297 return 1;
ad6254c5 8298 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8299 return 1;
ad6254c5
AK
8300 for (i = 0; i < pagesize; ++i)
8301 if (*(data + i) != *(data3 + i))
7a197a62 8302 return 1;
ad6254c5 8303 close (fd);
7a197a62 8304 return 0;
ad6254c5
AK
8305}
8306_ACEOF
8307rm -f conftest$ac_exeext
7a197a62
AK
8308if { (ac_try="$ac_link"
8309case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312esac
ec6a6fbe
AK
8313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8314$as_echo "$ac_try_echo") >&5
7a197a62 8315 (eval "$ac_link") 2>&5
ad6254c5 8316 ac_status=$?
ec6a6fbe 8317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8319 { (case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322esac
ec6a6fbe
AK
8323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8324$as_echo "$ac_try_echo") >&5
7a197a62 8325 (eval "$ac_try") 2>&5
ad6254c5 8326 ac_status=$?
ec6a6fbe 8327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8328 (exit $ac_status); }; }; then
8329 ac_cv_func_mmap_fixed_mapped=yes
8330else
ec6a6fbe
AK
8331 $as_echo "$as_me: program exited with status $ac_status" >&5
8332$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335( exit $ac_status )
8336ac_cv_func_mmap_fixed_mapped=no
8337fi
ec6a6fbe 8338rm -rf conftest.dSYM
7a197a62 8339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8340fi
7a197a62
AK
8341
8342
ad6254c5 8343fi
ec6a6fbe
AK
8344{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8345$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8346if test $ac_cv_func_mmap_fixed_mapped = yes; then
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define HAVE_MMAP 1
8350_ACEOF
8351
8352fi
8353rm -f conftest.mmap
8354
ec6a6fbe
AK
8355{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8356$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8357if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8358 $as_echo_n "(cached) " >&6
ad6254c5
AK
8359else
8360 if test "$cross_compiling" = yes; then
8361 ac_cv_func_stat_empty_string_bug=yes
8362else
8363 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369$ac_includes_default
8370int
8371main ()
8372{
8373struct stat sbuf;
7a197a62 8374 return stat ("", &sbuf) == 0;
ad6254c5
AK
8375 ;
8376 return 0;
8377}
8378_ACEOF
8379rm -f conftest$ac_exeext
7a197a62
AK
8380if { (ac_try="$ac_link"
8381case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8384esac
ec6a6fbe
AK
8385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8386$as_echo "$ac_try_echo") >&5
7a197a62 8387 (eval "$ac_link") 2>&5
ad6254c5 8388 ac_status=$?
ec6a6fbe 8389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394esac
ec6a6fbe
AK
8395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396$as_echo "$ac_try_echo") >&5
7a197a62 8397 (eval "$ac_try") 2>&5
ad6254c5 8398 ac_status=$?
ec6a6fbe 8399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8400 (exit $ac_status); }; }; then
7a197a62 8401 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8402else
ec6a6fbe
AK
8403 $as_echo "$as_me: program exited with status $ac_status" >&5
8404$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407( exit $ac_status )
7a197a62 8408ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8409fi
ec6a6fbe 8410rm -rf conftest.dSYM
7a197a62 8411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8412fi
7a197a62
AK
8413
8414
ad6254c5 8415fi
ec6a6fbe
AK
8416{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8417$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8418if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8419 case " $LIBOBJS " in
8a2fc586 8420 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8421 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8422 ;;
8a2fc586
AK
8423esac
8424
ad6254c5
AK
8425
8426cat >>confdefs.h <<_ACEOF
8427#define HAVE_STAT_EMPTY_STRING_BUG 1
8428_ACEOF
8429
8430fi
8431
ec6a6fbe
AK
8432{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8433$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8434if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8435 $as_echo_n "(cached) " >&6
ad6254c5
AK
8436else
8437 if test "$cross_compiling" = yes; then
8438 ac_cv_func_strtod=no
8439else
8440 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446
7a197a62
AK
8447$ac_includes_default
8448#ifndef strtod
ad6254c5 8449double strtod ();
7a197a62 8450#endif
ad6254c5
AK
8451int
8452main()
8453{
8454 {
8455 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8456 char *string = " +69";
8457 char *term;
8458 double value;
8459 value = strtod (string, &term);
8460 if (value != 69 || term != (string + 4))
7a197a62 8461 return 1;
ad6254c5
AK
8462 }
8463
8464 {
8465 /* Under Solaris 2.4, strtod returns the wrong value for the
8466 terminating character under some conditions. */
8467 char *string = "NaN";
8468 char *term;
8469 strtod (string, &term);
8470 if (term != string && *(term - 1) == 0)
7a197a62 8471 return 1;
ad6254c5 8472 }
7a197a62 8473 return 0;
ad6254c5
AK
8474}
8475
8476_ACEOF
8477rm -f conftest$ac_exeext
7a197a62
AK
8478if { (ac_try="$ac_link"
8479case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482esac
ec6a6fbe
AK
8483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484$as_echo "$ac_try_echo") >&5
7a197a62 8485 (eval "$ac_link") 2>&5
ad6254c5 8486 ac_status=$?
ec6a6fbe 8487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8489 { (case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492esac
ec6a6fbe
AK
8493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494$as_echo "$ac_try_echo") >&5
7a197a62 8495 (eval "$ac_try") 2>&5
ad6254c5 8496 ac_status=$?
ec6a6fbe 8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8498 (exit $ac_status); }; }; then
8499 ac_cv_func_strtod=yes
8500else
ec6a6fbe
AK
8501 $as_echo "$as_me: program exited with status $ac_status" >&5
8502$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8503sed 's/^/| /' conftest.$ac_ext >&5
8504
8505( exit $ac_status )
8506ac_cv_func_strtod=no
8507fi
ec6a6fbe 8508rm -rf conftest.dSYM
7a197a62 8509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8510fi
7a197a62
AK
8511
8512
ad6254c5 8513fi
ec6a6fbe
AK
8514{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8515$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8516if test $ac_cv_func_strtod = no; then
7a197a62 8517 case " $LIBOBJS " in
8a2fc586 8518 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8519 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8520 ;;
8a2fc586
AK
8521esac
8522
ec6a6fbe
AK
8523{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8524$as_echo_n "checking for pow... " >&6; }
ad6254c5 8525if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8526 $as_echo_n "(cached) " >&6
ad6254c5
AK
8527else
8528 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
8a2fc586
AK
8534/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8536#define pow innocuous_pow
8537
ad6254c5
AK
8538/* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char pow (); below.
8540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8541 <limits.h> exists even on freestanding compilers. */
8a2fc586 8542
ad6254c5
AK
8543#ifdef __STDC__
8544# include <limits.h>
8545#else
8546# include <assert.h>
8547#endif
8a2fc586
AK
8548
8549#undef pow
8550
7a197a62
AK
8551/* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8554#ifdef __cplusplus
8555extern "C"
ad6254c5 8556#endif
ad6254c5
AK
8557char pow ();
8558/* The GNU C library defines this for functions which it implements
8559 to always fail with ENOSYS. Some functions are actually named
8560 something starting with __ and the normal name is an alias. */
7a197a62 8561#if defined __stub_pow || defined __stub___pow
ad6254c5 8562choke me
ad6254c5
AK
8563#endif
8564
8565int
8566main ()
8567{
7a197a62 8568return pow ();
ad6254c5
AK
8569 ;
8570 return 0;
8571}
8572_ACEOF
8573rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8574if { (ac_try="$ac_link"
8575case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
ec6a6fbe
AK
8579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580$as_echo "$ac_try_echo") >&5
7a197a62 8581 (eval "$ac_link") 2>conftest.er1
ad6254c5 8582 ac_status=$?
8a2fc586
AK
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
ec6a6fbe 8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
ec6a6fbe
AK
8590 } && test -s conftest$ac_exeext && {
8591 test "$cross_compiling" = yes ||
8592 $as_test_x conftest$ac_exeext
8593 }; then
ad6254c5
AK
8594 ac_cv_func_pow=yes
8595else
ec6a6fbe 8596 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
7a197a62 8599 ac_cv_func_pow=no
ad6254c5 8600fi
7a197a62 8601
ec6a6fbe 8602rm -rf conftest.dSYM
25fbec5b 8603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8604 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8605fi
ec6a6fbe
AK
8606{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8607$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8608
8609if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8610 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8611$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8612if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8613 $as_echo_n "(cached) " >&6
ad6254c5
AK
8614else
8615 ac_check_lib_save_LIBS=$LIBS
8616LIBS="-lm $LIBS"
8617cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8618/* confdefs.h. */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h. */
8623
7a197a62
AK
8624/* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8627#ifdef __cplusplus
8628extern "C"
8629#endif
ad6254c5
AK
8630char pow ();
8631int
8632main ()
8633{
7a197a62 8634return pow ();
ad6254c5
AK
8635 ;
8636 return 0;
8637}
8638_ACEOF
8639rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8640if { (ac_try="$ac_link"
8641case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644esac
ec6a6fbe
AK
8645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8646$as_echo "$ac_try_echo") >&5
7a197a62 8647 (eval "$ac_link") 2>conftest.er1
ad6254c5 8648 ac_status=$?
8a2fc586
AK
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
ec6a6fbe 8652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8653 (exit $ac_status); } && {
8654 test -z "$ac_c_werror_flag" ||
8655 test ! -s conftest.err
ec6a6fbe
AK
8656 } && test -s conftest$ac_exeext && {
8657 test "$cross_compiling" = yes ||
8658 $as_test_x conftest$ac_exeext
8659 }; then
ad6254c5
AK
8660 ac_cv_lib_m_pow=yes
8661else
ec6a6fbe 8662 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
7a197a62 8665 ac_cv_lib_m_pow=no
ad6254c5 8666fi
7a197a62 8667
ec6a6fbe 8668rm -rf conftest.dSYM
25fbec5b 8669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8670 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8671LIBS=$ac_check_lib_save_LIBS
d0191583 8672fi
ec6a6fbe
AK
8673{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8674$as_echo "$ac_cv_lib_m_pow" >&6; }
8675if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8676 POW_LIB=-lm
8677else
ec6a6fbe
AK
8678 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8679$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8680fi
72b2cb61 8681
d0191583 8682fi
72b2cb61 8683
ad6254c5
AK
8684fi
8685
ad6254c5 8686
d0191583
JM
8687for ac_func in vprintf
8688do
ec6a6fbe
AK
8689as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8690{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8691$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8692if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8693 $as_echo_n "(cached) " >&6
ad6254c5 8694else
d0191583
JM
8695 cat >conftest.$ac_ext <<_ACEOF
8696/* confdefs.h. */
8697_ACEOF
8698cat confdefs.h >>conftest.$ac_ext
8699cat >>conftest.$ac_ext <<_ACEOF
8700/* end confdefs.h. */
8701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8703#define $ac_func innocuous_$ac_func
7a197a62 8704
d0191583
JM
8705/* System header to define __stub macros and hopefully few prototypes,
8706 which can conflict with char $ac_func (); below.
8707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8708 <limits.h> exists even on freestanding compilers. */
ad6254c5 8709
d0191583
JM
8710#ifdef __STDC__
8711# include <limits.h>
8712#else
8713# include <assert.h>
8714#endif
ad6254c5 8715
d0191583 8716#undef $ac_func
72b2cb61 8717
d0191583
JM
8718/* Override any GCC internal prototype to avoid an error.
8719 Use char because int might match the return type of a GCC
8720 builtin and then its argument prototype would still apply. */
8721#ifdef __cplusplus
8722extern "C"
8723#endif
8724char $ac_func ();
8725/* The GNU C library defines this for functions which it implements
8726 to always fail with ENOSYS. Some functions are actually named
8727 something starting with __ and the normal name is an alias. */
8728#if defined __stub_$ac_func || defined __stub___$ac_func
8729choke me
8730#endif
8731
8732int
8733main ()
8734{
8735return $ac_func ();
8736 ;
8737 return 0;
8738}
72b2cb61 8739_ACEOF
d0191583
JM
8740rm -f conftest.$ac_objext conftest$ac_exeext
8741if { (ac_try="$ac_link"
8742case "(($ac_try" in
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8745esac
ec6a6fbe
AK
8746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8747$as_echo "$ac_try_echo") >&5
d0191583
JM
8748 (eval "$ac_link") 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
ec6a6fbe 8753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8754 (exit $ac_status); } && {
8755 test -z "$ac_c_werror_flag" ||
8756 test ! -s conftest.err
ec6a6fbe
AK
8757 } && test -s conftest$ac_exeext && {
8758 test "$cross_compiling" = yes ||
8759 $as_test_x conftest$ac_exeext
8760 }; then
d0191583
JM
8761 eval "$as_ac_var=yes"
8762else
ec6a6fbe 8763 $as_echo "$as_me: failed program was:" >&5
d0191583 8764sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8765
d0191583 8766 eval "$as_ac_var=no"
ad6254c5
AK
8767fi
8768
ec6a6fbe 8769rm -rf conftest.dSYM
d0191583
JM
8770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8771 conftest$ac_exeext conftest.$ac_ext
7a197a62 8772fi
ec6a6fbe
AK
8773ac_res=`eval 'as_val=${'$as_ac_var'}
8774 $as_echo "$as_val"'`
8775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8776$as_echo "$ac_res" >&6; }
8777as_val=`eval 'as_val=${'$as_ac_var'}
8778 $as_echo "$as_val"'`
8779 if test "x$as_val" = x""yes; then
d0191583 8780 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8781#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8782_ACEOF
7a197a62 8783
ec6a6fbe
AK
8784{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8785$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8786if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8787 $as_echo_n "(cached) " >&6
ad6254c5 8788else
d0191583
JM
8789 cat >conftest.$ac_ext <<_ACEOF
8790/* confdefs.h. */
8791_ACEOF
8792cat confdefs.h >>conftest.$ac_ext
8793cat >>conftest.$ac_ext <<_ACEOF
8794/* end confdefs.h. */
8795/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8797#define _doprnt innocuous__doprnt
7a197a62 8798
d0191583
JM
8799/* System header to define __stub macros and hopefully few prototypes,
8800 which can conflict with char _doprnt (); below.
8801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8802 <limits.h> exists even on freestanding compilers. */
ad6254c5 8803
d0191583
JM
8804#ifdef __STDC__
8805# include <limits.h>
8806#else
8807# include <assert.h>
8808#endif
72b2cb61 8809
d0191583
JM
8810#undef _doprnt
8811
8812/* Override any GCC internal prototype to avoid an error.
8813 Use char because int might match the return type of a GCC
8814 builtin and then its argument prototype would still apply. */
8815#ifdef __cplusplus
8816extern "C"
8817#endif
8818char _doprnt ();
8819/* The GNU C library defines this for functions which it implements
8820 to always fail with ENOSYS. Some functions are actually named
8821 something starting with __ and the normal name is an alias. */
8822#if defined __stub__doprnt || defined __stub____doprnt
8823choke me
8824#endif
8825
8826int
8827main ()
8828{
8829return _doprnt ();
8830 ;
8831 return 0;
8832}
72b2cb61 8833_ACEOF
d0191583
JM
8834rm -f conftest.$ac_objext conftest$ac_exeext
8835if { (ac_try="$ac_link"
8836case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8839esac
ec6a6fbe
AK
8840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8841$as_echo "$ac_try_echo") >&5
d0191583
JM
8842 (eval "$ac_link") 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
ec6a6fbe 8847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8848 (exit $ac_status); } && {
8849 test -z "$ac_c_werror_flag" ||
8850 test ! -s conftest.err
ec6a6fbe
AK
8851 } && test -s conftest$ac_exeext && {
8852 test "$cross_compiling" = yes ||
8853 $as_test_x conftest$ac_exeext
8854 }; then
d0191583
JM
8855 ac_cv_func__doprnt=yes
8856else
ec6a6fbe 8857 $as_echo "$as_me: failed program was:" >&5
d0191583 8858sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8859
d0191583 8860 ac_cv_func__doprnt=no
ad6254c5
AK
8861fi
8862
ec6a6fbe 8863rm -rf conftest.dSYM
d0191583
JM
8864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8865 conftest$ac_exeext conftest.$ac_ext
7a197a62 8866fi
ec6a6fbe
AK
8867{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8868$as_echo "$ac_cv_func__doprnt" >&6; }
8869if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8870
d0191583
JM
8871cat >>confdefs.h <<\_ACEOF
8872#define HAVE_DOPRNT 1
8873_ACEOF
ad6254c5 8874
7a197a62
AK
8875fi
8876
d0191583
JM
8877fi
8878done
8b1a3214 8879
ad6254c5 8880
7a197a62 8881
9c961554 8882################################################################################
ec6a6fbe
AK
8883{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8884$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8885# Check whether --enable-static_link was given.
8886if test "${enable_static_link+set}" = set; then
8887 enableval=$enable_static_link; STATIC_LINK=$enableval
8888else
8889 STATIC_LINK=no
8890fi
8891
ec6a6fbe
AK
8892{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8893$as_echo "$STATIC_LINK" >&6; }
9c961554 8894
d0191583 8895################################################################################
ad6254c5 8896
ad6254c5
AK
8897
8898################################################################################
ec6a6fbe
AK
8899{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8900$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8901OWNER="root"
8902
8903
8904# Check whether --with-user was given.
8905if test "${with_user+set}" = set; then
8906 withval=$with_user; OWNER="$withval"
7a197a62
AK
8907fi
8908
ec6a6fbe
AK
8909{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8910$as_echo "$OWNER" >&6; }
ad6254c5 8911
d0191583
JM
8912if test x$OWNER != x; then
8913 OWNER="-o $OWNER"
ad6254c5
AK
8914fi
8915
8916################################################################################
ec6a6fbe
AK
8917{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8918$as_echo_n "checking group owner... " >&6; }
d0191583 8919GROUP="root"
ad6254c5 8920
d0191583
JM
8921# Check whether --with-group was given.
8922if test "${with_group+set}" = set; then
8923 withval=$with_group; GROUP="$withval"
7a197a62
AK
8924fi
8925
ec6a6fbe
AK
8926{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8927$as_echo "$GROUP" >&6; }
d0191583
JM
8928
8929if test x$GROUP != x; then
8930 GROUP="-g $GROUP"
8931fi
ad6254c5 8932
24bbc4d7 8933################################################################################
ec6a6fbe
AK
8934{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
8935$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
8936
8937
8938# Check whether --with-device-uid was given.
8939if test "${with_device_uid+set}" = set; then
8940 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8941else
8942 DM_DEVICE_UID="0"
8943fi
8944
ec6a6fbe
AK
8945{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8946$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
8947
8948################################################################################
ec6a6fbe
AK
8949{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
8950$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
8951
8952
8953# Check whether --with-device-gid was given.
8954if test "${with_device_gid+set}" = set; then
8955 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8956else
8957 DM_DEVICE_GID="0"
8958fi
8959
ec6a6fbe
AK
8960{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8961$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 8962
93bd259b 8963################################################################################
ec6a6fbe
AK
8964{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
8965$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
8966
8967
8968# Check whether --with-device-mode was given.
8969if test "${with_device_mode+set}" = set; then
8970 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8971else
8972 DM_DEVICE_MODE="0600"
8973fi
8974
ec6a6fbe
AK
8975{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8976$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 8977
ad6254c5 8978################################################################################
ec6a6fbe
AK
8979{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8980$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8981# Check whether --enable-lvm1_fallback was given.
8982if test "${enable_lvm1_fallback+set}" = set; then
8983 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8984else
8985 LVM1_FALLBACK=no
7a197a62
AK
8986fi
8987
ec6a6fbe
AK
8988{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8989$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 8990
d0191583 8991if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8992
8993cat >>confdefs.h <<\_ACEOF
d0191583 8994#define LVM1_FALLBACK 1
72b2cb61
AK
8995_ACEOF
8996
ad6254c5
AK
8997fi
8998
8999################################################################################
ec6a6fbe
AK
9000{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9001$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9002
9003# Check whether --with-lvm1 was given.
9004if test "${with_lvm1+set}" = set; then
9005 withval=$with_lvm1; LVM1="$withval"
9006else
9007 LVM1="internal"
7a197a62
AK
9008fi
9009
ec6a6fbe
AK
9010{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9011$as_echo "$LVM1" >&6; }
ad6254c5 9012
d0191583 9013if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9014 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9015" >&5
ec6a6fbe 9016$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9017" >&2;}
9018 { (exit 1); exit 1; }; }
9019fi;
9020
9021if test x$LVM1 = xinternal; then
72b2cb61
AK
9022
9023cat >>confdefs.h <<\_ACEOF
d0191583 9024#define LVM1_INTERNAL 1
72b2cb61
AK
9025_ACEOF
9026
ad6254c5
AK
9027fi
9028
9029################################################################################
ec6a6fbe
AK
9030{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9031$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9032
9033# Check whether --with-pool was given.
9034if test "${with_pool+set}" = set; then
9035 withval=$with_pool; POOL="$withval"
ad6254c5 9036else
d0191583 9037 POOL="internal"
7a197a62
AK
9038fi
9039
ec6a6fbe
AK
9040{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9041$as_echo "$POOL" >&6; }
ad6254c5 9042
d0191583 9043if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9044 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9045" >&5
ec6a6fbe 9046$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9047" >&2;}
9048 { (exit 1); exit 1; }; }
9049fi;
7a197a62 9050
d0191583
JM
9051if test x$POOL = xinternal; then
9052
9053cat >>confdefs.h <<\_ACEOF
9054#define POOL_INTERNAL 1
9055_ACEOF
9056
9057fi
ad6254c5 9058
06f62ad1 9059################################################################################
ec6a6fbe
AK
9060{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9061$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9062
9063# Check whether --with-cluster was given.
9064if test "${with_cluster+set}" = set; then
9065 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9066fi
9067
ec6a6fbe
AK
9068{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9069$as_echo "$CLUSTER" >&6; }
06f62ad1 9070
d0191583 9071if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9072 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9073" >&5
ec6a6fbe 9074$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9075" >&2;}
9076 { (exit 1); exit 1; }; }
d0191583 9077fi;
06f62ad1 9078
d0191583 9079if test x$CLUSTER = xinternal; then
72b2cb61
AK
9080
9081cat >>confdefs.h <<\_ACEOF
d0191583 9082#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9083_ACEOF
9084
15d91f5a 9085fi
ad6254c5
AK
9086
9087################################################################################
ec6a6fbe
AK
9088{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9089$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9090
d0191583
JM
9091# Check whether --with-snapshots was given.
9092if test "${with_snapshots+set}" = set; then
9093 withval=$with_snapshots; SNAPSHOTS="$withval"
9094else
9095 SNAPSHOTS="internal"
ad6254c5
AK
9096fi
9097
ec6a6fbe
AK
9098{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9099$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9100
d0191583 9101if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9102 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9103" >&5
ec6a6fbe 9104$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9105" >&2;}
9106 { (exit 1); exit 1; }; }
9107fi;
9108
9109if test x$SNAPSHOTS = xinternal; then
9110
9111cat >>confdefs.h <<\_ACEOF
9112#define SNAPSHOT_INTERNAL 1
9113_ACEOF
ad6254c5 9114
ad6254c5 9115fi
7a197a62 9116
d0191583 9117################################################################################
ec6a6fbe
AK
9118{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9119$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9120
9121# Check whether --with-mirrors was given.
9122if test "${with_mirrors+set}" = set; then
9123 withval=$with_mirrors; MIRRORS="$withval"
9124else
9125 MIRRORS="internal"
ad6254c5 9126fi
ad6254c5 9127
ec6a6fbe
AK
9128{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9129$as_echo "$MIRRORS" >&6; }
ad6254c5 9130
d0191583 9131if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9132 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9133" >&5
ec6a6fbe 9134$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9135" >&2;}
9136 { (exit 1); exit 1; }; }
9137fi;
ad6254c5 9138
d0191583 9139if test x$MIRRORS = xinternal; then
ad6254c5 9140
d0191583
JM
9141cat >>confdefs.h <<\_ACEOF
9142#define MIRRORED_INTERNAL 1
ad6254c5 9143_ACEOF
8a2fc586 9144
d0191583 9145fi
8a2fc586 9146
d0191583 9147################################################################################
ec6a6fbe
AK
9148{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9149$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9150# Check whether --enable-readline was given.
9151if test "${enable_readline+set}" = set; then
9152 enableval=$enable_readline; READLINE=$enableval
9153else
06e459df 9154 READLINE=maybe
d0191583 9155fi
8a2fc586 9156
ec6a6fbe
AK
9157{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9158$as_echo "$READLINE" >&6; }
8a2fc586 9159
d0191583 9160################################################################################
ec6a6fbe
AK
9161{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9162$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9163# Check whether --enable-realtime was given.
9164if test "${enable_realtime+set}" = set; then
9165 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9166fi
ad6254c5 9167
ec6a6fbe
AK
9168{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9169$as_echo "$REALTIME" >&6; }
d0191583
JM
9170
9171################################################################################
ec6a6fbe
AK
9172{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9173$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9174
9175# Check whether --with-clvmd was given.
9176if test "${with_clvmd+set}" = set; then
9177 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9178else
d0191583
JM
9179 CLVMD="none"
9180fi
8a2fc586 9181
d0191583
JM
9182if test x$CLVMD = xyes; then
9183 CLVMD=all
9184fi
ec6a6fbe
AK
9185{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9186$as_echo "$CLVMD" >&6; }
8a2fc586 9187
d0191583
JM
9188if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9189 CLUSTER=internal
9190fi
8a2fc586 9191
e2997b73
AK
9192if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then
9193
9194
9195if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9196 if test -n "$ac_tool_prefix"; then
9197 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9198set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9200$as_echo_n "checking for $ac_word... " >&6; }
9201if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9202 $as_echo_n "(cached) " >&6
9203else
9204 case $PKG_CONFIG in
9205 [\\/]* | ?:[\\/]*)
9206 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9207 ;;
9208 *)
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9219 fi
9220done
9221done
9222IFS=$as_save_IFS
9223
9224 ;;
9225esac
9226fi
9227PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9228if test -n "$PKG_CONFIG"; then
9229 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9230$as_echo "$PKG_CONFIG" >&6; }
9231else
9232 { $as_echo "$as_me:$LINENO: result: no" >&5
9233$as_echo "no" >&6; }
9234fi
9235
9236
9237fi
9238if test -z "$ac_cv_path_PKG_CONFIG"; then
9239 ac_pt_PKG_CONFIG=$PKG_CONFIG
9240 # Extract the first word of "pkg-config", so it can be a program name with args.
9241set dummy pkg-config; ac_word=$2
9242{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9243$as_echo_n "checking for $ac_word... " >&6; }
9244if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9245 $as_echo_n "(cached) " >&6
9246else
9247 case $ac_pt_PKG_CONFIG in
9248 [\\/]* | ?:[\\/]*)
9249 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9250 ;;
9251 *)
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $PATH
9254do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9259 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9262 fi
9263done
9264done
9265IFS=$as_save_IFS
9266
9267 ;;
9268esac
9269fi
9270ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9271if test -n "$ac_pt_PKG_CONFIG"; then
9272 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9273$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9274else
9275 { $as_echo "$as_me:$LINENO: result: no" >&5
9276$as_echo "no" >&6; }
9277fi
9278
9279 if test "x$ac_pt_PKG_CONFIG" = x; then
9280 PKG_CONFIG=""
9281 else
9282 case $cross_compiling:$ac_tool_warned in
9283yes:)
9284{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9286ac_tool_warned=yes ;;
9287esac
9288 PKG_CONFIG=$ac_pt_PKG_CONFIG
9289 fi
9290else
9291 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9292fi
9293
9294fi
9295if test -n "$PKG_CONFIG"; then
9296 _pkg_min_version=0.9.0
9297 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9298$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9299 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9300 { $as_echo "$as_me:$LINENO: result: yes" >&5
9301$as_echo "yes" >&6; }
9302 else
9303 { $as_echo "$as_me:$LINENO: result: no" >&5
9304$as_echo "no" >&6; }
9305 PKG_CONFIG=""
9306 fi
9307
9308fi
9309
9310pkg_failed=no
9311{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9312$as_echo_n "checking for QUORUM... " >&6; }
9313
9314if test -n "$QUORUM_CFLAGS"; then
9315 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9316 elif test -n "$PKG_CONFIG"; then
9317 if test -n "$PKG_CONFIG" && \
9318 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9319 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9320 ac_status=$?
9321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; then
9323 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9324else
9325 pkg_failed=yes
9326fi
9327 else
9328 pkg_failed=untried
9329fi
9330if test -n "$QUORUM_LIBS"; then
9331 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9332 elif test -n "$PKG_CONFIG"; then
9333 if test -n "$PKG_CONFIG" && \
9334 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9335 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9336 ac_status=$?
9337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; then
9339 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9340else
9341 pkg_failed=yes
9342fi
9343 else
9344 pkg_failed=untried
9345fi
9346
9347
9348
9349if test $pkg_failed = yes; then
9350
9351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9352 _pkg_short_errors_supported=yes
9353else
9354 _pkg_short_errors_supported=no
9355fi
9356 if test $_pkg_short_errors_supported = yes; then
9357 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9358 else
9359 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9360 fi
9361 # Put the nasty error message in config.log where it belongs
9362 echo "$QUORUM_PKG_ERRORS" >&5
9363
9364 { $as_echo "$as_me:$LINENO: result: no" >&5
9365$as_echo "no" >&6; }
9366 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9367$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9368 QUORUM_LIBS="-lquorum"
9369elif test $pkg_failed = untried; then
9370 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9371$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9372 QUORUM_LIBS="-lquorum"
9373else
9374 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9375 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9376 { $as_echo "$as_me:$LINENO: result: yes" >&5
9377$as_echo "yes" >&6; }
9378 :
9379fi
9380
9381pkg_failed=no
9382{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9383$as_echo_n "checking for CONFDB... " >&6; }
9384
9385if test -n "$CONFDB_CFLAGS"; then
9386 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9387 elif test -n "$PKG_CONFIG"; then
9388 if test -n "$PKG_CONFIG" && \
9389 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9390 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9391 ac_status=$?
9392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; then
9394 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9395else
9396 pkg_failed=yes
9397fi
9398 else
9399 pkg_failed=untried
9400fi
9401if test -n "$CONFDB_LIBS"; then
9402 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9403 elif test -n "$PKG_CONFIG"; then
9404 if test -n "$PKG_CONFIG" && \
9405 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9406 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9407 ac_status=$?
9408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; then
9410 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9411else
9412 pkg_failed=yes
9413fi
9414 else
9415 pkg_failed=untried
9416fi
9417
9418
9419
9420if test $pkg_failed = yes; then
9421
9422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9423 _pkg_short_errors_supported=yes
9424else
9425 _pkg_short_errors_supported=no
9426fi
9427 if test $_pkg_short_errors_supported = yes; then
9428 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9429 else
9430 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9431 fi
9432 # Put the nasty error message in config.log where it belongs
9433 echo "$CONFDB_PKG_ERRORS" >&5
9434
9435 { $as_echo "$as_me:$LINENO: result: no" >&5
9436$as_echo "no" >&6; }
9437 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9438$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9439 CONFDB_LIBS="-lconfdb"
9440elif test $pkg_failed = untried; then
9441 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9442$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9443 CONFDB_LIBS="-lconfdb"
9444else
9445 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9446 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9447 { $as_echo "$as_me:$LINENO: result: yes" >&5
9448$as_echo "yes" >&6; }
9449 :
9450fi
9451
9452pkg_failed=no
9453{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
9454$as_echo_n "checking for CPG... " >&6; }
9455
9456if test -n "$CPG_CFLAGS"; then
9457 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9458 elif test -n "$PKG_CONFIG"; then
9459 if test -n "$PKG_CONFIG" && \
9460 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9461 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9462 ac_status=$?
9463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; then
9465 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9466else
9467 pkg_failed=yes
9468fi
9469 else
9470 pkg_failed=untried
9471fi
9472if test -n "$CPG_LIBS"; then
9473 pkg_cv_CPG_LIBS="$CPG_LIBS"
9474 elif test -n "$PKG_CONFIG"; then
9475 if test -n "$PKG_CONFIG" && \
9476 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9477 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9478 ac_status=$?
9479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; then
9481 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9482else
9483 pkg_failed=yes
9484fi
9485 else
9486 pkg_failed=untried
9487fi
9488
9489
9490
9491if test $pkg_failed = yes; then
9492
9493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9494 _pkg_short_errors_supported=yes
9495else
9496 _pkg_short_errors_supported=no
9497fi
9498 if test $_pkg_short_errors_supported = yes; then
9499 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9500 else
9501 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9502 fi
9503 # Put the nasty error message in config.log where it belongs
9504 echo "$CPG_PKG_ERRORS" >&5
9505
9506 { $as_echo "$as_me:$LINENO: result: no" >&5
9507$as_echo "no" >&6; }
9508 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9509$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9510 CPG_LIBS="-lcpg"
9511elif test $pkg_failed = untried; then
9512 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9513$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9514 CPG_LIBS="-lcpg"
9515else
9516 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9517 CPG_LIBS=$pkg_cv_CPG_LIBS
9518 { $as_echo "$as_me:$LINENO: result: yes" >&5
9519$as_echo "yes" >&6; }
9520 :
9521fi
9522fi
9523
d0191583 9524################################################################################
ec6a6fbe
AK
9525{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9526$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
9527# Check whether --enable-debug was given.
9528if test "${enable_debug+set}" = set; then
9529 enableval=$enable_debug; DEBUG=$enableval
9530else
9531 DEBUG=no
9532fi
8a2fc586 9533
ec6a6fbe
AK
9534{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9535$as_echo "$DEBUG" >&6; }
ad6254c5 9536
d0191583
JM
9537if test x$DEBUG = xyes; then
9538 COPTIMISE_FLAG=
fc54be10 9539else
d0191583
JM
9540 CSCOPE_CMD=
9541fi
fc54be10 9542
d0191583 9543################################################################################
ec6a6fbe
AK
9544{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9545$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9546
9547# Check whether --with-optimisation was given.
9548if test "${with_optimisation+set}" = set; then
9549 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9550fi
9551
ec6a6fbe
AK
9552{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9553$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9554
9555################################################################################
ec6a6fbe
AK
9556{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9557$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9558# Check whether --enable-profiling was given.
9559if test "${enable_profiling+set}" = set; then
5556819a 9560 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9561else
5556819a 9562 PROFILING=no
fddafd51
ZK
9563fi
9564
ec6a6fbe
AK
9565{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9566$as_echo "$PROFILING" >&6; }
5556819a
AK
9567
9568if test "x$PROFILING" = xyes; then
9569 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9570 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9571set dummy lcov; ac_word=$2
ec6a6fbe
AK
9572{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9573$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9574if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 9575 $as_echo_n "(cached) " >&6
fddafd51
ZK
9576else
9577 case $LCOV in
9578 [\\/]* | ?:[\\/]*)
9579 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9580 ;;
9581 *)
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9589 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9591 break 2
9592 fi
9593done
9594done
9595IFS=$as_save_IFS
9596
b145d876 9597 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9598 ;;
9599esac
9600fi
9601LCOV=$ac_cv_path_LCOV
9602if test -n "$LCOV"; then
ec6a6fbe
AK
9603 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9604$as_echo "$LCOV" >&6; }
fddafd51 9605else
ec6a6fbe
AK
9606 { $as_echo "$as_me:$LINENO: result: no" >&5
9607$as_echo "no" >&6; }
fddafd51
ZK
9608fi
9609
9610
5556819a 9611 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9612set dummy genhtml; ac_word=$2
ec6a6fbe
AK
9613{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9614$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9615if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 9616 $as_echo_n "(cached) " >&6
fddafd51
ZK
9617else
9618 case $GENHTML in
9619 [\\/]* | ?:[\\/]*)
9620 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9621 ;;
9622 *)
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624for as_dir in $PATH
9625do
9626 IFS=$as_save_IFS
9627 test -z "$as_dir" && as_dir=.
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9630 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9632 break 2
9633 fi
9634done
9635done
9636IFS=$as_save_IFS
9637
b145d876 9638 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9639 ;;
9640esac
9641fi
9642GENHTML=$ac_cv_path_GENHTML
9643if test -n "$GENHTML"; then
ec6a6fbe
AK
9644 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9645$as_echo "$GENHTML" >&6; }
fddafd51 9646else
ec6a6fbe
AK
9647 { $as_echo "$as_me:$LINENO: result: no" >&5
9648$as_echo "no" >&6; }
fddafd51
ZK
9649fi
9650
9651
b145d876 9652 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
9653 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9654$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
9655 { (exit 1); exit 1; }; }
9656 fi
5556819a 9657fi
d0191583
JM
9658
9659################################################################################
ec6a6fbe
AK
9660{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9661$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9662# Check whether --enable-devmapper was given.
9663if test "${enable_devmapper+set}" = set; then
9664 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9665fi
9666
ec6a6fbe
AK
9667{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9668$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9669
9670if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9671
9672cat >>confdefs.h <<\_ACEOF
d0191583 9673#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9674_ACEOF
9675
9676fi
9677
93bd259b
AK
9678################################################################################
9679# Check whether --enable-compat was given.
9680if test "${enable_compat+set}" = set; then
9681 enableval=$enable_compat; DM_COMPAT=$enableval
9682else
9683 DM_COMPAT=no
9684fi
9685
9686
9687################################################################################
9688# Check whether --enable-ioctl was given.
9689if test "${enable_ioctl+set}" = set; then
9690 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9691fi
9692
9693
d0191583 9694################################################################################
ec6a6fbe
AK
9695{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9696$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9697# Check whether --enable-o_direct was given.
9698if test "${enable_o_direct+set}" = set; then
9699 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9700fi
ad6254c5 9701
ec6a6fbe
AK
9702{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9703$as_echo "$ODIRECT" >&6; }
ad6254c5 9704
d0191583 9705if test x$ODIRECT = xyes; then
ad6254c5 9706
d0191583
JM
9707cat >>confdefs.h <<\_ACEOF
9708#define O_DIRECT_SUPPORT 1
9709_ACEOF
ad6254c5 9710
d0191583 9711fi
ad6254c5 9712
572fefeb
AK
9713################################################################################
9714{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
9715$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9716# Check whether --enable-applib was given.
9717if test "${enable_applib+set}" = set; then
9718 enableval=$enable_applib; APPLIB=$enableval
9719else
9720 APPLIB=no
9721fi
9722
9723{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
9724$as_echo "$APPLIB" >&6; }
9725
9726test x$APPLIB = xyes \
9727 && LVM2APP_LIB=-llvm2app \
9728 || LVM2APP_LIB=
9729
d0191583 9730################################################################################
ec6a6fbe
AK
9731{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9732$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9733# Check whether --enable-cmdlib was given.
9734if test "${enable_cmdlib+set}" = set; then
9735 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9736else
d0191583
JM
9737 CMDLIB=no
9738fi
8a2fc586 9739
ec6a6fbe
AK
9740{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9741$as_echo "$CMDLIB" >&6; }
8a2fc586 9742
2a9a80c9 9743test x$CMDLIB = xyes \
d179cc7a
JM
9744 && LVM2CMD_LIB=-llvm2cmd \
9745 || LVM2CMD_LIB=
9746
93bd259b
AK
9747################################################################################
9748# Check whether --enable-pkgconfig was given.
9749if test "${enable_pkgconfig+set}" = set; then
9750 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9751else
9752 PKGCONFIG=no
9753fi
9754
2a9a80c9 9755
d0191583 9756################################################################################
ec6a6fbe
AK
9757{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9758$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9759# Check whether --enable-fsadm was given.
9760if test "${enable_fsadm+set}" = set; then
9761 enableval=$enable_fsadm; FSADM=$enableval
9762fi
8a2fc586 9763
ec6a6fbe
AK
9764{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9765$as_echo "$FSADM" >&6; }
8a2fc586 9766
d0191583 9767################################################################################
ec6a6fbe
AK
9768{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9769$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9770# Check whether --enable-dmeventd was given.
9771if test "${enable_dmeventd+set}" = set; then
9772 enableval=$enable_dmeventd; DMEVENTD=$enableval
9773fi
ad6254c5 9774
ec6a6fbe
AK
9775{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9776$as_echo "$DMEVENTD" >&6; }
ad6254c5 9777
93bd259b
AK
9778BUILD_DMEVENTD=$DMEVENTD
9779
2a9a80c9
PR
9780if test x$DMEVENTD = xyes; then
9781 if test x$MIRRORS != xinternal; then
ec6a6fbe 9782 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9783 " >&5
ec6a6fbe 9784$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9785 " >&2;}
d0191583 9786 { (exit 1); exit 1; }; }
2a9a80c9
PR
9787 fi
9788 if test x$CMDLIB = xno; then
ec6a6fbe 9789 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9790 " >&5
ec6a6fbe 9791$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9792 " >&2;}
9793 { (exit 1); exit 1; }; }
9794 fi
ad6254c5 9795fi
7a197a62 9796
d0191583
JM
9797if test x$DMEVENTD = xyes; then
9798
9799cat >>confdefs.h <<\_ACEOF
9800#define DMEVENTD 1
ad6254c5
AK
9801_ACEOF
9802
ad6254c5 9803fi
93bd259b
AK
9804
9805################################################################################
9806
ec6a6fbe
AK
9807{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9808$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 9809if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 9810 $as_echo_n "(cached) " >&6
93bd259b
AK
9811else
9812 ac_check_lib_save_LIBS=$LIBS
9813LIBS="-lc $LIBS"
9814cat >conftest.$ac_ext <<_ACEOF
9815/* confdefs.h. */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h. */
9820
9821/* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9824#ifdef __cplusplus
9825extern "C"
9826#endif
9827char getline ();
9828int
9829main ()
9830{
9831return getline ();
9832 ;
9833 return 0;
9834}
9835_ACEOF
9836rm -f conftest.$ac_objext conftest$ac_exeext
9837if { (ac_try="$ac_link"
9838case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841esac
ec6a6fbe
AK
9842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9843$as_echo "$ac_try_echo") >&5
93bd259b
AK
9844 (eval "$ac_link") 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
ec6a6fbe 9849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9850 (exit $ac_status); } && {
9851 test -z "$ac_c_werror_flag" ||
9852 test ! -s conftest.err
ec6a6fbe
AK
9853 } && test -s conftest$ac_exeext && {
9854 test "$cross_compiling" = yes ||
9855 $as_test_x conftest$ac_exeext
9856 }; then
93bd259b
AK
9857 ac_cv_lib_c_getline=yes
9858else
ec6a6fbe 9859 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 ac_cv_lib_c_getline=no
9863fi
9864
ec6a6fbe 9865rm -rf conftest.dSYM
93bd259b
AK
9866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9867 conftest$ac_exeext conftest.$ac_ext
9868LIBS=$ac_check_lib_save_LIBS
9869fi
ec6a6fbe
AK
9870{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9871$as_echo "$ac_cv_lib_c_getline" >&6; }
9872if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
9873
9874cat >>confdefs.h <<\_ACEOF
9875#define HAVE_GETLINE 1
9876_ACEOF
9877
9878fi
9879
9880
9881################################################################################
9882
ec6a6fbe
AK
9883{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9884$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 9885if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 9886 $as_echo_n "(cached) " >&6
93bd259b
AK
9887else
9888 ac_check_lib_save_LIBS=$LIBS
9889LIBS="-lc $LIBS"
9890cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h. */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h. */
9896
9897/* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9900#ifdef __cplusplus
9901extern "C"
9902#endif
9903char canonicalize_file_name ();
9904int
9905main ()
9906{
9907return canonicalize_file_name ();
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext conftest$ac_exeext
9913if { (ac_try="$ac_link"
9914case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917esac
ec6a6fbe
AK
9918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9919$as_echo "$ac_try_echo") >&5
93bd259b
AK
9920 (eval "$ac_link") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
ec6a6fbe 9925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
ec6a6fbe
AK
9929 } && test -s conftest$ac_exeext && {
9930 test "$cross_compiling" = yes ||
9931 $as_test_x conftest$ac_exeext
9932 }; then
93bd259b
AK
9933 ac_cv_lib_c_canonicalize_file_name=yes
9934else
ec6a6fbe 9935 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 ac_cv_lib_c_canonicalize_file_name=no
9939fi
9940
ec6a6fbe 9941rm -rf conftest.dSYM
93bd259b
AK
9942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9944LIBS=$ac_check_lib_save_LIBS
9945fi
ec6a6fbe
AK
9946{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9947$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9948if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
9949
9950cat >>confdefs.h <<\_ACEOF
9951#define HAVE_CANONICALIZE_FILE_NAME 1
9952_ACEOF
9953
9954fi
9955
9956
d0191583
JM
9957################################################################################
9958if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9959 then exec_prefix="";
9960fi;
ad6254c5
AK
9961
9962################################################################################
06e459df 9963if test x$READLINE != xno; then
ec6a6fbe
AK
9964 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9965$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 9966if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 9967 $as_echo_n "(cached) " >&6
ad6254c5
AK
9968else
9969 ac_func_search_save_LIBS=$LIBS
ad6254c5 9970cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h. */
9976
7a197a62
AK
9977/* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9980#ifdef __cplusplus
9981extern "C"
9982#endif
ad6254c5
AK
9983char tgetent ();
9984int
9985main ()
9986{
7a197a62 9987return tgetent ();
ad6254c5
AK
9988 ;
9989 return 0;
9990}
9991_ACEOF
18dcfb69 9992for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
9993 if test -z "$ac_lib"; then
9994 ac_res="none required"
9995 else
9996 ac_res=-l$ac_lib
9997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9998 fi
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000if { (ac_try="$ac_link"
10001case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
ec6a6fbe
AK
10005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006$as_echo "$ac_try_echo") >&5
7a197a62 10007 (eval "$ac_link") 2>conftest.er1
ad6254c5 10008 ac_status=$?
8a2fc586
AK
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
ec6a6fbe 10012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
ec6a6fbe
AK
10016 } && test -s conftest$ac_exeext && {
10017 test "$cross_compiling" = yes ||
10018 $as_test_x conftest$ac_exeext
10019 }; then
7a197a62 10020 ac_cv_search_tgetent=$ac_res
ad6254c5 10021else
ec6a6fbe 10022 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
ad6254c5 10025
7a197a62 10026fi
ad6254c5 10027
ec6a6fbe 10028rm -rf conftest.dSYM
25fbec5b 10029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
10030 conftest$ac_exeext
10031 if test "${ac_cv_search_tgetent+set}" = set; then
10032 break
ad6254c5 10033fi
7a197a62
AK
10034done
10035if test "${ac_cv_search_tgetent+set}" = set; then
10036 :
10037else
10038 ac_cv_search_tgetent=no
ad6254c5 10039fi
7a197a62 10040rm conftest.$ac_ext
ad6254c5
AK
10041LIBS=$ac_func_search_save_LIBS
10042fi
ec6a6fbe
AK
10043{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10044$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
10045ac_res=$ac_cv_search_tgetent
10046if test "$ac_res" != no; then
10047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 10048 tg_found=yes
ad6254c5 10049else
06e459df
JM
10050 tg_found=no
10051fi
10052
10053 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 10054 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
10055--enable-readline option (which is enabled by default). Either disable readline
10056support with --disable-readline or download and install termcap from:
10057 ftp.gnu.org/gnu/termcap
10058Note: if you are using precompiled packages you will also need the development
10059 package as well (which may be called termcap-devel or something similar).
10060Note: (n)curses also seems to work as a substitute for termcap. This was
10061 not found either - but you could try installing that as well.
10062" >&5
ec6a6fbe 10063$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
10064--enable-readline option (which is enabled by default). Either disable readline
10065support with --disable-readline or download and install termcap from:
10066 ftp.gnu.org/gnu/termcap
10067Note: if you are using precompiled packages you will also need the development
10068 package as well (which may be called termcap-devel or something similar).
10069Note: (n)curses also seems to work as a substitute for termcap. This was
10070 not found either - but you could try installing that as well.
10071" >&2;}
10072 { (exit 1); exit 1; }; }
ad6254c5
AK
10073fi
10074
10075################################################################################
ec6a6fbe
AK
10076{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10077$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 10078if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 10079 $as_echo_n "(cached) " >&6
ad6254c5
AK
10080else
10081 ac_check_lib_save_LIBS=$LIBS
10082LIBS="-ldl $LIBS"
10083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h. */
10089
7a197a62
AK
10090/* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10093#ifdef __cplusplus
10094extern "C"
10095#endif
ad6254c5
AK
10096char dlopen ();
10097int
10098main ()
10099{
7a197a62 10100return dlopen ();
ad6254c5
AK
10101 ;
10102 return 0;
10103}
10104_ACEOF
10105rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10106if { (ac_try="$ac_link"
10107case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
ec6a6fbe
AK
10111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10112$as_echo "$ac_try_echo") >&5
7a197a62 10113 (eval "$ac_link") 2>conftest.er1
ad6254c5 10114 ac_status=$?
8a2fc586
AK
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
ec6a6fbe 10118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10119 (exit $ac_status); } && {
10120 test -z "$ac_c_werror_flag" ||
10121 test ! -s conftest.err
ec6a6fbe
AK
10122 } && test -s conftest$ac_exeext && {
10123 test "$cross_compiling" = yes ||
10124 $as_test_x conftest$ac_exeext
10125 }; then
ad6254c5
AK
10126 ac_cv_lib_dl_dlopen=yes
10127else
ec6a6fbe 10128 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10129sed 's/^/| /' conftest.$ac_ext >&5
10130
7a197a62 10131 ac_cv_lib_dl_dlopen=no
ad6254c5 10132fi
7a197a62 10133
ec6a6fbe 10134rm -rf conftest.dSYM
25fbec5b 10135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10136 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10137LIBS=$ac_check_lib_save_LIBS
10138fi
ec6a6fbe
AK
10139{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10140$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10141if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
10142 HAVE_LIBDL=yes
10143else
10144 HAVE_LIBDL=no
10145fi
10146
10147
7e9e9502 10148if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
10149
10150cat >>confdefs.h <<\_ACEOF
10151#define HAVE_LIBDL 1
10152_ACEOF
10153
ad6254c5
AK
10154 LIBS="-ldl $LIBS"
10155else
10156 HAVE_LIBDL=no
10157fi
10158
10159################################################################################
10160if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10161 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10162 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 10163 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 10164" >&5
ec6a6fbe 10165$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
10166" >&2;}
10167 { (exit 1); exit 1; }; }
10168fi
10169
d0191583 10170################################################################################
ec6a6fbe
AK
10171{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10172$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
10173# Check whether --enable-selinux was given.
10174if test "${enable_selinux+set}" = set; then
10175 enableval=$enable_selinux; SELINUX=$enableval
10176fi
10177
ec6a6fbe
AK
10178{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10179$as_echo "$SELINUX" >&6; }
d0191583 10180
ad6254c5
AK
10181################################################################################
10182if test x$SELINUX = xyes; then
ec6a6fbe
AK
10183 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10184$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 10185if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 10186 $as_echo_n "(cached) " >&6
8a2fc586
AK
10187else
10188 ac_check_lib_save_LIBS=$LIBS
10189LIBS="-lsepol $LIBS"
10190cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h. */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h. */
10196
7a197a62
AK
10197/* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
8a2fc586
AK
10200#ifdef __cplusplus
10201extern "C"
10202#endif
8a2fc586
AK
10203char sepol_check_context ();
10204int
10205main ()
10206{
7a197a62 10207return sepol_check_context ();
8a2fc586
AK
10208 ;
10209 return 0;
10210}
10211_ACEOF
10212rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10213if { (ac_try="$ac_link"
10214case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10217esac
ec6a6fbe
AK
10218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10219$as_echo "$ac_try_echo") >&5
7a197a62 10220 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
ec6a6fbe 10225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
ec6a6fbe
AK
10229 } && test -s conftest$ac_exeext && {
10230 test "$cross_compiling" = yes ||
10231 $as_test_x conftest$ac_exeext
10232 }; then
8a2fc586
AK
10233 ac_cv_lib_sepol_sepol_check_context=yes
10234else
ec6a6fbe 10235 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
10236sed 's/^/| /' conftest.$ac_ext >&5
10237
7a197a62 10238 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 10239fi
7a197a62 10240
ec6a6fbe 10241rm -rf conftest.dSYM
25fbec5b 10242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
10243 conftest$ac_exeext conftest.$ac_ext
10244LIBS=$ac_check_lib_save_LIBS
10245fi
ec6a6fbe
AK
10246{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10247$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10248if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
10249 HAVE_SEPOL=yes
10250else
10251 HAVE_SEPOL=no
10252fi
10253
8a2fc586
AK
10254
10255 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
10256
10257cat >>confdefs.h <<\_ACEOF
10258#define HAVE_SEPOL 1
10259_ACEOF
10260
8a2fc586
AK
10261 LIBS="-lsepol $LIBS"
10262 fi
10263
ec6a6fbe
AK
10264 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10265$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 10266if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 10267 $as_echo_n "(cached) " >&6
ad6254c5
AK
10268else
10269 ac_check_lib_save_LIBS=$LIBS
10270LIBS="-lselinux $LIBS"
10271cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10272/* confdefs.h. */
10273_ACEOF
10274cat confdefs.h >>conftest.$ac_ext
10275cat >>conftest.$ac_ext <<_ACEOF
10276/* end confdefs.h. */
10277
7a197a62
AK
10278/* Override any GCC internal prototype to avoid an error.
10279 Use char because int might match the return type of a GCC
10280 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10281#ifdef __cplusplus
10282extern "C"
10283#endif
ad6254c5
AK
10284char is_selinux_enabled ();
10285int
10286main ()
10287{
7a197a62 10288return is_selinux_enabled ();
ad6254c5
AK
10289 ;
10290 return 0;
10291}
10292_ACEOF
10293rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10294if { (ac_try="$ac_link"
10295case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298esac
ec6a6fbe
AK
10299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10300$as_echo "$ac_try_echo") >&5
7a197a62 10301 (eval "$ac_link") 2>conftest.er1
ad6254c5 10302 ac_status=$?
8a2fc586
AK
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
ec6a6fbe 10306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10307 (exit $ac_status); } && {
10308 test -z "$ac_c_werror_flag" ||
10309 test ! -s conftest.err
ec6a6fbe
AK
10310 } && test -s conftest$ac_exeext && {
10311 test "$cross_compiling" = yes ||
10312 $as_test_x conftest$ac_exeext
10313 }; then
ad6254c5
AK
10314 ac_cv_lib_selinux_is_selinux_enabled=yes
10315else
ec6a6fbe 10316 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
7a197a62 10319 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 10320fi
7a197a62 10321
ec6a6fbe 10322rm -rf conftest.dSYM
25fbec5b 10323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10324 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10325LIBS=$ac_check_lib_save_LIBS
10326fi
ec6a6fbe
AK
10327{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10328$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10329if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
10330 HAVE_SELINUX=yes
10331else
10332 HAVE_SELINUX=no
10333fi
10334
ad6254c5
AK
10335
10336 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
10337
10338cat >>confdefs.h <<\_ACEOF
10339#define HAVE_SELINUX 1
10340_ACEOF
10341
ad6254c5
AK
10342 LIBS="-lselinux $LIBS"
10343 else
ec6a6fbe
AK
10344 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10345$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
10346 fi
10347
d0191583 10348 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
10349 # fails on at least Debian unstable due to unsatisfied references
10350 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10351 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10352 lvm_saved_libs=$LIBS
10353 LIBS="$LIBS -static"
ec6a6fbe
AK
10354 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10355$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 10356if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 10357 $as_echo_n "(cached) " >&6
66e941e8
JM
10358else
10359 ac_func_search_save_LIBS=$LIBS
10360cat >conftest.$ac_ext <<_ACEOF
10361/* confdefs.h. */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h. */
10366
10367/* Override any GCC internal prototype to avoid an error.
10368 Use char because int might match the return type of a GCC
10369 builtin and then its argument prototype would still apply. */
10370#ifdef __cplusplus
10371extern "C"
10372#endif
10373char pthread_mutex_lock ();
10374int
10375main ()
10376{
10377return pthread_mutex_lock ();
10378 ;
10379 return 0;
10380}
10381_ACEOF
10382for ac_lib in '' pthread; do
10383 if test -z "$ac_lib"; then
10384 ac_res="none required"
10385 else
10386 ac_res=-l$ac_lib
10387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10388 fi
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390if { (ac_try="$ac_link"
10391case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394esac
ec6a6fbe
AK
10395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10396$as_echo "$ac_try_echo") >&5
66e941e8
JM
10397 (eval "$ac_link") 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
ec6a6fbe 10402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
ec6a6fbe
AK
10406 } && test -s conftest$ac_exeext && {
10407 test "$cross_compiling" = yes ||
10408 $as_test_x conftest$ac_exeext
10409 }; then
66e941e8
JM
10410 ac_cv_search_pthread_mutex_lock=$ac_res
10411else
ec6a6fbe 10412 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415
10416fi
10417
ec6a6fbe 10418rm -rf conftest.dSYM
25fbec5b 10419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
10420 conftest$ac_exeext
10421 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10422 break
10423fi
10424done
10425if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10426 :
10427else
10428 ac_cv_search_pthread_mutex_lock=no
10429fi
10430rm conftest.$ac_ext
10431LIBS=$ac_func_search_save_LIBS
10432fi
ec6a6fbe
AK
10433{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10434$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
10435ac_res=$ac_cv_search_pthread_mutex_lock
10436if test "$ac_res" != no; then
10437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10438 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10439 LIB_PTHREAD=-lpthread
10440fi
10441
10442 LIBS=$lvm_saved_libs
ad6254c5
AK
10443 fi
10444fi
10445
8b1a3214
AK
10446################################################################################
10447if test x$REALTIME = xyes; then
ec6a6fbe
AK
10448 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10449$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 10450if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 10451 $as_echo_n "(cached) " >&6
8b1a3214
AK
10452else
10453 ac_check_lib_save_LIBS=$LIBS
10454LIBS="-lrt $LIBS"
10455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
10461
7a197a62
AK
10462/* Override any GCC internal prototype to avoid an error.
10463 Use char because int might match the return type of a GCC
10464 builtin and then its argument prototype would still apply. */
8b1a3214
AK
10465#ifdef __cplusplus
10466extern "C"
10467#endif
8b1a3214
AK
10468char clock_gettime ();
10469int
10470main ()
10471{
7a197a62 10472return clock_gettime ();
8b1a3214
AK
10473 ;
10474 return 0;
10475}
10476_ACEOF
10477rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10478if { (ac_try="$ac_link"
10479case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482esac
ec6a6fbe
AK
10483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10484$as_echo "$ac_try_echo") >&5
7a197a62 10485 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
ec6a6fbe 10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
ec6a6fbe
AK
10494 } && test -s conftest$ac_exeext && {
10495 test "$cross_compiling" = yes ||
10496 $as_test_x conftest$ac_exeext
10497 }; then
8b1a3214
AK
10498 ac_cv_lib_rt_clock_gettime=yes
10499else
ec6a6fbe 10500 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
10501sed 's/^/| /' conftest.$ac_ext >&5
10502
7a197a62 10503 ac_cv_lib_rt_clock_gettime=no
8b1a3214 10504fi
7a197a62 10505
ec6a6fbe 10506rm -rf conftest.dSYM
25fbec5b 10507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
10508 conftest$ac_exeext conftest.$ac_ext
10509LIBS=$ac_check_lib_save_LIBS
10510fi
ec6a6fbe
AK
10511{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10512$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10513if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
10514 HAVE_REALTIME=yes
10515else
10516 HAVE_REALTIME=no
10517fi
10518
8b1a3214
AK
10519
10520 if test x$HAVE_REALTIME = xyes; then
10521
10522cat >>confdefs.h <<\_ACEOF
10523#define HAVE_REALTIME 1
10524_ACEOF
10525
10526 LIBS="-lrt $LIBS"
10527 else
ec6a6fbe
AK
10528 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10529$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
10530 fi
10531fi
10532
ad6254c5
AK
10533################################################################################
10534
10535for ac_header in getopt.h
10536do
ec6a6fbe 10537as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10540$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10542 $as_echo_n "(cached) " >&6
ad6254c5 10543fi
ec6a6fbe
AK
10544ac_res=`eval 'as_val=${'$as_ac_Header'}
10545 $as_echo "$as_val"'`
10546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10547$as_echo "$ac_res" >&6; }
ad6254c5
AK
10548else
10549 # Is the header compilable?
ec6a6fbe
AK
10550{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10551$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10552cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10553/* confdefs.h. */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h. */
10558$ac_includes_default
10559#include <$ac_header>
10560_ACEOF
10561rm -f conftest.$ac_objext
7a197a62
AK
10562if { (ac_try="$ac_compile"
10563case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566esac
ec6a6fbe
AK
10567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10568$as_echo "$ac_try_echo") >&5
7a197a62 10569 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10570 ac_status=$?
8a2fc586
AK
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
ec6a6fbe 10574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10575 (exit $ac_status); } && {
10576 test -z "$ac_c_werror_flag" ||
10577 test ! -s conftest.err
10578 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10579 ac_header_compiler=yes
10580else
ec6a6fbe 10581 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
7a197a62 10584 ac_header_compiler=no
ad6254c5 10585fi
7a197a62
AK
10586
10587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10588{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10589$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10590
10591# Is the header present?
ec6a6fbe
AK
10592{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10593$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10594cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600#include <$ac_header>
10601_ACEOF
7a197a62
AK
10602if { (ac_try="$ac_cpp conftest.$ac_ext"
10603case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
ec6a6fbe
AK
10607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10608$as_echo "$ac_try_echo") >&5
7a197a62 10609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
ec6a6fbe 10614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10615 (exit $ac_status); } >/dev/null && {
10616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 }; then
ad6254c5
AK
10619 ac_header_preproc=yes
10620else
ec6a6fbe 10621 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 ac_header_preproc=no
10625fi
7a197a62 10626
ad6254c5 10627rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10628{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10629$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10630
10631# So? What about this header?
8a2fc586
AK
10632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10633 yes:no: )
ec6a6fbe
AK
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10635$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10637$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10638 ac_header_preproc=yes
ad6254c5 10639 ;;
8a2fc586 10640 no:yes:* )
ec6a6fbe
AK
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10642$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10644$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10646$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10648$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10650$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10652$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10653
ad6254c5
AK
10654 ;;
10655esac
ec6a6fbe
AK
10656{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10657$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10659 $as_echo_n "(cached) " >&6
ad6254c5 10660else
8a2fc586 10661 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10662fi
ec6a6fbe
AK
10663ac_res=`eval 'as_val=${'$as_ac_Header'}
10664 $as_echo "$as_val"'`
10665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10666$as_echo "$ac_res" >&6; }
ad6254c5
AK
10667
10668fi
ec6a6fbe
AK
10669as_val=`eval 'as_val=${'$as_ac_Header'}
10670 $as_echo "$as_val"'`
10671 if test "x$as_val" = x""yes; then
ad6254c5 10672 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10674_ACEOF
72b2cb61
AK
10675
10676cat >>confdefs.h <<\_ACEOF
10677#define HAVE_GETOPTLONG 1
10678_ACEOF
10679
ad6254c5
AK
10680fi
10681
10682done
10683
10684
10685################################################################################
06e459df 10686if test x$READLINE != xno; then
bc1024f8
JM
10687 rl_found=yes
10688
ec6a6fbe
AK
10689{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10690$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 10691if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 10692 $as_echo_n "(cached) " >&6
ad6254c5
AK
10693else
10694 ac_check_lib_save_LIBS=$LIBS
10695LIBS="-lreadline $LIBS"
10696cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10697/* confdefs.h. */
10698_ACEOF
10699cat confdefs.h >>conftest.$ac_ext
10700cat >>conftest.$ac_ext <<_ACEOF
10701/* end confdefs.h. */
10702
7a197a62
AK
10703/* Override any GCC internal prototype to avoid an error.
10704 Use char because int might match the return type of a GCC
10705 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10706#ifdef __cplusplus
10707extern "C"
10708#endif
ad6254c5
AK
10709char readline ();
10710int
10711main ()
10712{
7a197a62 10713return readline ();
ad6254c5
AK
10714 ;
10715 return 0;
10716}
10717_ACEOF
10718rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10719if { (ac_try="$ac_link"
10720case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
ec6a6fbe
AK
10724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10725$as_echo "$ac_try_echo") >&5
7a197a62 10726 (eval "$ac_link") 2>conftest.er1
ad6254c5 10727 ac_status=$?
8a2fc586
AK
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
ec6a6fbe 10731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10732 (exit $ac_status); } && {
10733 test -z "$ac_c_werror_flag" ||
10734 test ! -s conftest.err
ec6a6fbe
AK
10735 } && test -s conftest$ac_exeext && {
10736 test "$cross_compiling" = yes ||
10737 $as_test_x conftest$ac_exeext
10738 }; then
ad6254c5
AK
10739 ac_cv_lib_readline_readline=yes
10740else
ec6a6fbe 10741 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
7a197a62 10744 ac_cv_lib_readline_readline=no
ad6254c5 10745fi
7a197a62 10746
ec6a6fbe 10747rm -rf conftest.dSYM
25fbec5b 10748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10749 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10750LIBS=$ac_check_lib_save_LIBS
10751fi
ec6a6fbe
AK
10752{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10753$as_echo "$ac_cv_lib_readline_readline" >&6; }
10754if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
10755 cat >>confdefs.h <<_ACEOF
10756#define HAVE_LIBREADLINE 1
10757_ACEOF
10758
10759 LIBS="-lreadline $LIBS"
10760
ad6254c5 10761else
06e459df
JM
10762 rl_found=no
10763fi
10764
10765 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 10766 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10767--enable-readline option (which is enabled by default). Either disable readline
10768support with --disable-readline or download and install readline from:
10769 ftp.gnu.org/gnu/readline
10770Note: if you are using precompiled packages you will also need the development
10771package as well (which may be called readline-devel or something similar).
10772" >&5
ec6a6fbe 10773$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10774--enable-readline option (which is enabled by default). Either disable readline
10775support with --disable-readline or download and install readline from:
10776 ftp.gnu.org/gnu/readline
10777Note: if you are using precompiled packages you will also need the development
10778package as well (which may be called readline-devel or something similar).
10779" >&2;}
10780 { (exit 1); exit 1; }; }
06e459df 10781 if test $rl_found = yes; then
bc1024f8
JM
10782
10783for ac_func in rl_completion_matches
10784do
ec6a6fbe
AK
10785as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10787$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10789 $as_echo_n "(cached) " >&6
ad6254c5
AK
10790else
10791 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
bc1024f8 10797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10799#define $ac_func innocuous_$ac_func
8a2fc586 10800
ad6254c5 10801/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10802 which can conflict with char $ac_func (); below.
ad6254c5
AK
10803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10804 <limits.h> exists even on freestanding compilers. */
8a2fc586 10805
ad6254c5
AK
10806#ifdef __STDC__
10807# include <limits.h>
10808#else
10809# include <assert.h>
10810#endif
8a2fc586 10811
bc1024f8 10812#undef $ac_func
8a2fc586 10813
7a197a62
AK
10814/* Override any GCC internal prototype to avoid an error.
10815 Use char because int might match the return type of a GCC
10816 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10817#ifdef __cplusplus
10818extern "C"
ad6254c5 10819#endif
bc1024f8 10820char $ac_func ();
ad6254c5
AK
10821/* The GNU C library defines this for functions which it implements
10822 to always fail with ENOSYS. Some functions are actually named
10823 something starting with __ and the normal name is an alias. */
bc1024f8 10824#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10825choke me
ad6254c5
AK
10826#endif
10827
10828int
10829main ()
10830{
bc1024f8 10831return $ac_func ();
ad6254c5
AK
10832 ;
10833 return 0;
10834}
10835_ACEOF
10836rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10837if { (ac_try="$ac_link"
10838case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
ec6a6fbe
AK
10842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10843$as_echo "$ac_try_echo") >&5
7a197a62 10844 (eval "$ac_link") 2>conftest.er1
ad6254c5 10845 ac_status=$?
8a2fc586
AK
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
ec6a6fbe 10849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
ec6a6fbe
AK
10853 } && test -s conftest$ac_exeext && {
10854 test "$cross_compiling" = yes ||
10855 $as_test_x conftest$ac_exeext
10856 }; then
bc1024f8 10857 eval "$as_ac_var=yes"
ad6254c5 10858else
ec6a6fbe 10859 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
bc1024f8 10862 eval "$as_ac_var=no"
ad6254c5 10863fi
7a197a62 10864
ec6a6fbe 10865rm -rf conftest.dSYM
25fbec5b 10866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10867 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10868fi
ec6a6fbe
AK
10869ac_res=`eval 'as_val=${'$as_ac_var'}
10870 $as_echo "$as_val"'`
10871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10872$as_echo "$ac_res" >&6; }
10873as_val=`eval 'as_val=${'$as_ac_var'}
10874 $as_echo "$as_val"'`
10875 if test "x$as_val" = x""yes; then
bc1024f8 10876 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10877#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10878_ACEOF
10879
10880fi
bc1024f8 10881done
ad6254c5 10882
d179cc7a
JM
10883
10884cat >>confdefs.h <<\_ACEOF
10885#define READLINE_SUPPORT 1
10886_ACEOF
10887
06e459df 10888 fi
ad6254c5
AK
10889fi
10890
10891################################################################################
ec6a6fbe
AK
10892{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10893$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10894# Check whether --enable-nls was given.
ad6254c5 10895if test "${enable_nls+set}" = set; then
7a197a62 10896 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10897else
10898 INTL=no
7a197a62
AK
10899fi
10900
ec6a6fbe
AK
10901{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10902$as_echo "$INTL" >&6; }
ad6254c5
AK
10903
10904if test x$INTL = xyes; then
93bd259b 10905# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10906 INTL_PACKAGE="lvm2"
10907 # Extract the first word of "msgfmt", so it can be a program name with args.
10908set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
10909{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10910$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10911if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 10912 $as_echo_n "(cached) " >&6
ad6254c5
AK
10913else
10914 case $MSGFMT in
10915 [\\/]* | ?:[\\/]*)
10916 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10917 ;;
10918 *)
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920for as_dir in $PATH
10921do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10926 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 10927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10928 break 2
10929 fi
10930done
10931done
7a197a62 10932IFS=$as_save_IFS
ad6254c5
AK
10933
10934 ;;
10935esac
10936fi
10937MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10938if test -n "$MSGFMT"; then
ec6a6fbe
AK
10939 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10940$as_echo "$MSGFMT" >&6; }
ad6254c5 10941else
ec6a6fbe
AK
10942 { $as_echo "$as_me:$LINENO: result: no" >&5
10943$as_echo "no" >&6; }
ad6254c5
AK
10944fi
10945
7a197a62 10946
ad6254c5 10947 if [ "x$MSGFMT" == x ];
ec6a6fbe 10948 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10949 " >&5
ec6a6fbe 10950$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10951 " >&2;}
10952 { (exit 1); exit 1; }; }
10953 fi;
10954
10955
7a197a62 10956# Check whether --with-localedir was given.
ad6254c5 10957if test "${with_localedir+set}" = set; then
7a197a62 10958 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10959else
10960 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10961fi
10962
ad6254c5
AK
10963fi
10964
10965################################################################################
10966
7a197a62 10967# Check whether --with-confdir was given.
ad6254c5 10968if test "${with_confdir+set}" = set; then
7a197a62 10969 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10970else
10971 CONFDIR='/etc'
7a197a62
AK
10972fi
10973
ad6254c5
AK
10974
10975
7a197a62 10976# Check whether --with-staticdir was given.
ad6254c5 10977if test "${with_staticdir+set}" = set; then
7a197a62 10978 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10979else
10980 STATICDIR='${exec_prefix}/sbin'
7a197a62 10981fi
ad6254c5 10982
33f732c5 10983
7a197a62 10984
68f2de6d
AK
10985# Check whether --with-usrlibdir was given.
10986if test "${with_usrlibdir+set}" = set; then
10987 withval=$with_usrlibdir; usrlibdir="$withval"
10988else
10989 usrlibdir='${prefix}/lib'
10990fi
10991
10992
10993
10994# Check whether --with-usrsbindir was given.
10995if test "${with_usrsbindir+set}" = set; then
10996 withval=$with_usrsbindir; usrsbindir="$withval"
10997else
10998 usrsbindir='${prefix}/sbin'
10999fi
11000
11001
ad6254c5
AK
11002################################################################################
11003if test x$READLINE = xyes; then
11004
11005
11006for ac_header in readline/readline.h readline/history.h
11007do
ec6a6fbe 11008as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11010 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11011$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11013 $as_echo_n "(cached) " >&6
ad6254c5 11014fi
ec6a6fbe
AK
11015ac_res=`eval 'as_val=${'$as_ac_Header'}
11016 $as_echo "$as_val"'`
11017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11018$as_echo "$ac_res" >&6; }
ad6254c5
AK
11019else
11020 # Is the header compilable?
ec6a6fbe
AK
11021{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11022$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11023cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h. */
11029$ac_includes_default
11030#include <$ac_header>
11031_ACEOF
11032rm -f conftest.$ac_objext
7a197a62
AK
11033if { (ac_try="$ac_compile"
11034case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037esac
ec6a6fbe
AK
11038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11039$as_echo "$ac_try_echo") >&5
7a197a62 11040 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11041 ac_status=$?
8a2fc586
AK
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
ec6a6fbe 11045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11046 (exit $ac_status); } && {
11047 test -z "$ac_c_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11050 ac_header_compiler=yes
11051else
ec6a6fbe 11052 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
7a197a62 11055 ac_header_compiler=no
ad6254c5 11056fi
7a197a62
AK
11057
11058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11059{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11060$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11061
11062# Is the header present?
ec6a6fbe
AK
11063{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11064$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11065cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11066/* confdefs.h. */
11067_ACEOF
11068cat confdefs.h >>conftest.$ac_ext
11069cat >>conftest.$ac_ext <<_ACEOF
11070/* end confdefs.h. */
11071#include <$ac_header>
11072_ACEOF
7a197a62
AK
11073if { (ac_try="$ac_cpp conftest.$ac_ext"
11074case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077esac
ec6a6fbe
AK
11078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11079$as_echo "$ac_try_echo") >&5
7a197a62 11080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11081 ac_status=$?
11082 grep -v '^ *+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
ec6a6fbe 11085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11086 (exit $ac_status); } >/dev/null && {
11087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 }; then
ad6254c5
AK
11090 ac_header_preproc=yes
11091else
ec6a6fbe 11092 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_header_preproc=no
11096fi
7a197a62 11097
ad6254c5 11098rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11099{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11100$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11101
11102# So? What about this header?
8a2fc586
AK
11103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11104 yes:no: )
ec6a6fbe
AK
11105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11106$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11108$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11109 ac_header_preproc=yes
ad6254c5 11110 ;;
8a2fc586 11111 no:yes:* )
ec6a6fbe
AK
11112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11113$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11115$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11117$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11119$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11121$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11123$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11124
ad6254c5
AK
11125 ;;
11126esac
ec6a6fbe
AK
11127{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11128$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11130 $as_echo_n "(cached) " >&6
ad6254c5 11131else
8a2fc586 11132 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11133fi
ec6a6fbe
AK
11134ac_res=`eval 'as_val=${'$as_ac_Header'}
11135 $as_echo "$as_val"'`
11136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11137$as_echo "$ac_res" >&6; }
ad6254c5
AK
11138
11139fi
ec6a6fbe
AK
11140as_val=`eval 'as_val=${'$as_ac_Header'}
11141 $as_echo "$as_val"'`
11142 if test "x$as_val" = x""yes; then
ad6254c5 11143 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11145_ACEOF
11146
11147else
ec6a6fbe
AK
11148 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11149$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11150 { (exit 1); exit 1; }; }
11151fi
11152
11153done
11154
11155fi
11156
5c7fc7c4 11157if test x$CLVMD != xnone; then
ad6254c5
AK
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168for 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
11169do
ec6a6fbe 11170as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11173$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11175 $as_echo_n "(cached) " >&6
ad6254c5 11176fi
ec6a6fbe
AK
11177ac_res=`eval 'as_val=${'$as_ac_Header'}
11178 $as_echo "$as_val"'`
11179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11180$as_echo "$ac_res" >&6; }
ad6254c5
AK
11181else
11182 # Is the header compilable?
ec6a6fbe
AK
11183{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11184$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11185cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11186/* confdefs.h. */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h. */
11191$ac_includes_default
11192#include <$ac_header>
11193_ACEOF
11194rm -f conftest.$ac_objext
7a197a62
AK
11195if { (ac_try="$ac_compile"
11196case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199esac
ec6a6fbe
AK
11200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201$as_echo "$ac_try_echo") >&5
7a197a62 11202 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11203 ac_status=$?
8a2fc586
AK
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
ec6a6fbe 11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11208 (exit $ac_status); } && {
11209 test -z "$ac_c_werror_flag" ||
11210 test ! -s conftest.err
11211 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11212 ac_header_compiler=yes
11213else
ec6a6fbe 11214 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11215sed 's/^/| /' conftest.$ac_ext >&5
11216
7a197a62 11217 ac_header_compiler=no
ad6254c5 11218fi
7a197a62
AK
11219
11220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11221{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11222$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11223
11224# Is the header present?
ec6a6fbe
AK
11225{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11226$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11227cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233#include <$ac_header>
11234_ACEOF
7a197a62
AK
11235if { (ac_try="$ac_cpp conftest.$ac_ext"
11236case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11239esac
ec6a6fbe
AK
11240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11241$as_echo "$ac_try_echo") >&5
7a197a62 11242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
ec6a6fbe 11247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11248 (exit $ac_status); } >/dev/null && {
11249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 }; then
ad6254c5
AK
11252 ac_header_preproc=yes
11253else
ec6a6fbe 11254 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11255sed 's/^/| /' conftest.$ac_ext >&5
11256
11257 ac_header_preproc=no
11258fi
7a197a62 11259
ad6254c5 11260rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11261{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11263
11264# So? What about this header?
8a2fc586
AK
11265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266 yes:no: )
ec6a6fbe
AK
11267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11271 ac_header_preproc=yes
ad6254c5 11272 ;;
8a2fc586 11273 no:yes:* )
ec6a6fbe
AK
11274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11281$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11286
ad6254c5
AK
11287 ;;
11288esac
ec6a6fbe
AK
11289{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11290$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11292 $as_echo_n "(cached) " >&6
ad6254c5 11293else
8a2fc586 11294 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11295fi
ec6a6fbe
AK
11296ac_res=`eval 'as_val=${'$as_ac_Header'}
11297 $as_echo "$as_val"'`
11298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11299$as_echo "$ac_res" >&6; }
ad6254c5
AK
11300
11301fi
ec6a6fbe
AK
11302as_val=`eval 'as_val=${'$as_ac_Header'}
11303 $as_echo "$as_val"'`
11304 if test "x$as_val" = x""yes; then
ad6254c5 11305 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11307_ACEOF
11308
11309else
ec6a6fbe
AK
11310 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11311$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11312 { (exit 1); exit 1; }; }
795ca3e5
AK
11313fi
11314
ad6254c5
AK
11315done
11316
11317
795ca3e5 11318
8106cdd5 11319
ad6254c5
AK
11320
11321
11322for ac_func in dup2 getmntent memmove select socket
11323do
ec6a6fbe
AK
11324as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11326$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11328 $as_echo_n "(cached) " >&6
795ca3e5 11329else
ad6254c5 11330 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
8a2fc586
AK
11336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11338#define $ac_func innocuous_$ac_func
11339
795ca3e5 11340/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
11341 which can conflict with char $ac_func (); below.
11342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343 <limits.h> exists even on freestanding compilers. */
8a2fc586 11344
ad6254c5
AK
11345#ifdef __STDC__
11346# include <limits.h>
11347#else
11348# include <assert.h>
11349#endif
8a2fc586
AK
11350
11351#undef $ac_func
11352
7a197a62
AK
11353/* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11356#ifdef __cplusplus
11357extern "C"
ad6254c5 11358#endif
ad6254c5 11359char $ac_func ();
795ca3e5
AK
11360/* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
7a197a62 11363#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 11364choke me
795ca3e5
AK
11365#endif
11366
ad6254c5
AK
11367int
11368main ()
11369{
7a197a62 11370return $ac_func ();
ad6254c5
AK
11371 ;
11372 return 0;
11373}
11374_ACEOF
11375rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11376if { (ac_try="$ac_link"
11377case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
ec6a6fbe
AK
11381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382$as_echo "$ac_try_echo") >&5
7a197a62 11383 (eval "$ac_link") 2>conftest.er1
ad6254c5 11384 ac_status=$?
8a2fc586
AK
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
ec6a6fbe 11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11389 (exit $ac_status); } && {
11390 test -z "$ac_c_werror_flag" ||
11391 test ! -s conftest.err
ec6a6fbe
AK
11392 } && test -s conftest$ac_exeext && {
11393 test "$cross_compiling" = yes ||
11394 $as_test_x conftest$ac_exeext
11395 }; then
ad6254c5 11396 eval "$as_ac_var=yes"
795ca3e5 11397else
ec6a6fbe 11398 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
7a197a62 11401 eval "$as_ac_var=no"
80992638 11402fi
7a197a62 11403
ec6a6fbe 11404rm -rf conftest.dSYM
25fbec5b 11405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11406 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11407fi
ec6a6fbe
AK
11408ac_res=`eval 'as_val=${'$as_ac_var'}
11409 $as_echo "$as_val"'`
11410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11411$as_echo "$ac_res" >&6; }
11412as_val=`eval 'as_val=${'$as_ac_var'}
11413 $as_echo "$as_val"'`
11414 if test "x$as_val" = x""yes; then
ad6254c5 11415 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11416#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11417_ACEOF
80992638
AK
11418
11419else
ec6a6fbe
AK
11420 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11421$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11422 { (exit 1); exit 1; }; }
8106cdd5 11423fi
ad6254c5 11424done
795ca3e5 11425
25fbec5b
AK
11426 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11427# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
11428{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11429$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 11430if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 11431 $as_echo_n "(cached) " >&6
25fbec5b
AK
11432else
11433 ac_func_search_save_LIBS=$LIBS
11434cat >conftest.$ac_ext <<_ACEOF
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
80992638 11440
7a197a62
AK
11441/* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
ad6254c5 11443 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11444#ifdef __cplusplus
11445extern "C"
11446#endif
25fbec5b 11447char getmntent ();
ad6254c5
AK
11448int
11449main ()
11450{
25fbec5b 11451return getmntent ();
ad6254c5
AK
11452 ;
11453 return 0;
11454}
11455_ACEOF
25fbec5b
AK
11456for ac_lib in '' sun seq gen; do
11457 if test -z "$ac_lib"; then
11458 ac_res="none required"
11459 else
11460 ac_res=-l$ac_lib
11461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11462 fi
11463 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11464if { (ac_try="$ac_link"
11465case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468esac
ec6a6fbe
AK
11469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11470$as_echo "$ac_try_echo") >&5
7a197a62 11471 (eval "$ac_link") 2>conftest.er1
ad6254c5 11472 ac_status=$?
8a2fc586
AK
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
ec6a6fbe 11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
ec6a6fbe
AK
11480 } && test -s conftest$ac_exeext && {
11481 test "$cross_compiling" = yes ||
11482 $as_test_x conftest$ac_exeext
11483 }; then
25fbec5b 11484 ac_cv_search_getmntent=$ac_res
80992638 11485else
ec6a6fbe 11486 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
25fbec5b 11489
795ca3e5
AK
11490fi
11491
ec6a6fbe 11492rm -rf conftest.dSYM
25fbec5b
AK
11493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11494 conftest$ac_exeext
11495 if test "${ac_cv_search_getmntent+set}" = set; then
11496 break
795ca3e5 11497fi
25fbec5b
AK
11498done
11499if test "${ac_cv_search_getmntent+set}" = set; then
11500 :
11501else
11502 ac_cv_search_getmntent=no
11503fi
11504rm conftest.$ac_ext
11505LIBS=$ac_func_search_save_LIBS
11506fi
ec6a6fbe
AK
11507{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11508$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
11509ac_res=$ac_cv_search_getmntent
11510if test "$ac_res" != no; then
11511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11512 ac_cv_func_getmntent=yes
11513
11514cat >>confdefs.h <<\_ACEOF
9c961554 11515#define HAVE_GETMNTENT 1
ad6254c5 11516_ACEOF
795ca3e5 11517
25fbec5b
AK
11518else
11519 ac_cv_func_getmntent=no
795ca3e5 11520fi
795ca3e5
AK
11521
11522
ad6254c5
AK
11523# AC_FUNC_REALLOC
11524
11525
11526for ac_header in sys/select.h sys/socket.h
11527do
ec6a6fbe 11528as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11531$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11533 $as_echo_n "(cached) " >&6
ad6254c5 11534fi
ec6a6fbe
AK
11535ac_res=`eval 'as_val=${'$as_ac_Header'}
11536 $as_echo "$as_val"'`
11537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11538$as_echo "$ac_res" >&6; }
795ca3e5 11539else
ad6254c5 11540 # Is the header compilable?
ec6a6fbe
AK
11541{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11542$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11543cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549$ac_includes_default
11550#include <$ac_header>
11551_ACEOF
11552rm -f conftest.$ac_objext
7a197a62
AK
11553if { (ac_try="$ac_compile"
11554case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557esac
ec6a6fbe
AK
11558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11559$as_echo "$ac_try_echo") >&5
7a197a62 11560 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11561 ac_status=$?
8a2fc586
AK
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
ec6a6fbe 11565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest.$ac_objext; then
ad6254c5 11570 ac_header_compiler=yes
80992638 11571else
ec6a6fbe 11572 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11573sed 's/^/| /' conftest.$ac_ext >&5
11574
7a197a62 11575 ac_header_compiler=no
ad6254c5 11576fi
7a197a62
AK
11577
11578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11579{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11581
11582# Is the header present?
ec6a6fbe
AK
11583{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11585cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
11591#include <$ac_header>
11592_ACEOF
7a197a62
AK
11593if { (ac_try="$ac_cpp conftest.$ac_ext"
11594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
ec6a6fbe
AK
11598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599$as_echo "$ac_try_echo") >&5
7a197a62 11600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
ec6a6fbe 11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11606 (exit $ac_status); } >/dev/null && {
11607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 }; then
ad6254c5
AK
11610 ac_header_preproc=yes
11611else
ec6a6fbe 11612 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11613sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 ac_header_preproc=no
11616fi
7a197a62 11617
ad6254c5 11618rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11619{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11620$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11621
11622# So? What about this header?
8a2fc586
AK
11623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11624 yes:no: )
ec6a6fbe
AK
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11626$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11628$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11629 ac_header_preproc=yes
ad6254c5 11630 ;;
8a2fc586 11631 no:yes:* )
ec6a6fbe
AK
11632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11635$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11637$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11639$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11641$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11643$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11644
ad6254c5
AK
11645 ;;
11646esac
ec6a6fbe
AK
11647{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11650 $as_echo_n "(cached) " >&6
ad6254c5 11651else
8a2fc586 11652 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11653fi
ec6a6fbe
AK
11654ac_res=`eval 'as_val=${'$as_ac_Header'}
11655 $as_echo "$as_val"'`
11656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657$as_echo "$ac_res" >&6; }
8106cdd5 11658
795ca3e5 11659fi
ec6a6fbe
AK
11660as_val=`eval 'as_val=${'$as_ac_Header'}
11661 $as_echo "$as_val"'`
11662 if test "x$as_val" = x""yes; then
ad6254c5 11663 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11665_ACEOF
11666
795ca3e5
AK
11667fi
11668
ad6254c5
AK
11669done
11670
ec6a6fbe
AK
11671{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11672$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 11673if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 11674 $as_echo_n "(cached) " >&6
26e7f2e0 11675else
ad6254c5 11676 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11677 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11678 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11679 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685$ac_includes_default
25fbec5b 11686#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
11687# include <sys/select.h>
11688#endif
25fbec5b 11689#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
11690# include <sys/socket.h>
11691#endif
11692
11693int
11694main ()
11695{
11696extern int select ($ac_arg1,
8a2fc586
AK
11697 $ac_arg234, $ac_arg234, $ac_arg234,
11698 $ac_arg5);
ad6254c5
AK
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext
7a197a62
AK
11704if { (ac_try="$ac_compile"
11705case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
ec6a6fbe
AK
11709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710$as_echo "$ac_try_echo") >&5
7a197a62 11711 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11712 ac_status=$?
8a2fc586
AK
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
ec6a6fbe 11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11721 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11722else
ec6a6fbe 11723 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
7a197a62 11726
ad6254c5 11727fi
7a197a62
AK
11728
11729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11730 done
11731 done
11732done
11733# Provide a safe default value.
11734: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11735
26e7f2e0 11736fi
ec6a6fbe
AK
11737{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11738$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11739ac_save_IFS=$IFS; IFS=','
11740set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11741IFS=$ac_save_IFS
11742shift
11743
11744cat >>confdefs.h <<_ACEOF
11745#define SELECT_TYPE_ARG1 $1
11746_ACEOF
11747
11748
11749cat >>confdefs.h <<_ACEOF
11750#define SELECT_TYPE_ARG234 ($2)
11751_ACEOF
11752
11753
11754cat >>confdefs.h <<_ACEOF
11755#define SELECT_TYPE_ARG5 ($3)
11756_ACEOF
11757
80992638 11758rm -f conftest*
80992638 11759
8106cdd5 11760fi
ad6254c5 11761
ad6254c5
AK
11762if test x$CLUSTER != xnone; then
11763
11764
11765for ac_header in sys/socket.h sys/un.h
b896caa1 11766do
ec6a6fbe 11767as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11770$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11772 $as_echo_n "(cached) " >&6
ad6254c5 11773fi
ec6a6fbe
AK
11774ac_res=`eval 'as_val=${'$as_ac_Header'}
11775 $as_echo "$as_val"'`
11776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11777$as_echo "$ac_res" >&6; }
ad6254c5
AK
11778else
11779 # Is the header compilable?
ec6a6fbe
AK
11780{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11781$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11782cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788$ac_includes_default
11789#include <$ac_header>
11790_ACEOF
11791rm -f conftest.$ac_objext
7a197a62
AK
11792if { (ac_try="$ac_compile"
11793case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
ec6a6fbe
AK
11797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11798$as_echo "$ac_try_echo") >&5
7a197a62 11799 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11800 ac_status=$?
8a2fc586
AK
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
ec6a6fbe 11804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
11808 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11809 ac_header_compiler=yes
11810else
ec6a6fbe 11811 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
7a197a62 11814 ac_header_compiler=no
ad6254c5 11815fi
7a197a62
AK
11816
11817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11818{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11819$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11820
11821# Is the header present?
ec6a6fbe
AK
11822{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11823$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11824cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830#include <$ac_header>
11831_ACEOF
7a197a62
AK
11832if { (ac_try="$ac_cpp conftest.$ac_ext"
11833case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
ec6a6fbe
AK
11837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11838$as_echo "$ac_try_echo") >&5
7a197a62 11839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
ec6a6fbe 11844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11845 (exit $ac_status); } >/dev/null && {
11846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 }; then
ad6254c5
AK
11849 ac_header_preproc=yes
11850else
ec6a6fbe 11851 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 ac_header_preproc=no
11855fi
7a197a62 11856
ad6254c5 11857rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11858{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11859$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11860
11861# So? What about this header?
8a2fc586
AK
11862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11863 yes:no: )
ec6a6fbe
AK
11864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11865$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11867$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11868 ac_header_preproc=yes
ad6254c5 11869 ;;
8a2fc586 11870 no:yes:* )
ec6a6fbe
AK
11871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11872$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11874$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11876$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11878$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11880$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11882$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11883
ad6254c5
AK
11884 ;;
11885esac
ec6a6fbe
AK
11886{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11887$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11889 $as_echo_n "(cached) " >&6
ad6254c5 11890else
8a2fc586 11891 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11892fi
ec6a6fbe
AK
11893ac_res=`eval 'as_val=${'$as_ac_Header'}
11894 $as_echo "$as_val"'`
11895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11896$as_echo "$ac_res" >&6; }
ad6254c5
AK
11897
11898fi
ec6a6fbe
AK
11899as_val=`eval 'as_val=${'$as_ac_Header'}
11900 $as_echo "$as_val"'`
11901 if test "x$as_val" = x""yes; then
ad6254c5 11902 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11904_ACEOF
11905
80992638 11906else
ec6a6fbe
AK
11907 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11908$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11909 { (exit 1); exit 1; }; }
b896caa1 11910fi
ad6254c5 11911
b896caa1
AK
11912done
11913
11914
ad6254c5
AK
11915for ac_func in socket
11916do
ec6a6fbe
AK
11917as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11919$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11921 $as_echo_n "(cached) " >&6
795ca3e5 11922else
ad6254c5 11923 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
8a2fc586
AK
11929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11931#define $ac_func innocuous_$ac_func
11932
ad6254c5
AK
11933/* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char $ac_func (); below.
11935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936 <limits.h> exists even on freestanding compilers. */
8a2fc586 11937
ad6254c5
AK
11938#ifdef __STDC__
11939# include <limits.h>
11940#else
11941# include <assert.h>
11942#endif
8a2fc586
AK
11943
11944#undef $ac_func
11945
7a197a62
AK
11946/* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11949#ifdef __cplusplus
11950extern "C"
ad6254c5 11951#endif
ad6254c5
AK
11952char $ac_func ();
11953/* The GNU C library defines this for functions which it implements
11954 to always fail with ENOSYS. Some functions are actually named
11955 something starting with __ and the normal name is an alias. */
7a197a62 11956#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11957choke me
ad6254c5
AK
11958#endif
11959
11960int
11961main ()
11962{
7a197a62 11963return $ac_func ();
ad6254c5
AK
11964 ;
11965 return 0;
11966}
11967_ACEOF
11968rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11969if { (ac_try="$ac_link"
11970case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
ec6a6fbe
AK
11974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975$as_echo "$ac_try_echo") >&5
7a197a62 11976 (eval "$ac_link") 2>conftest.er1
ad6254c5 11977 ac_status=$?
8a2fc586
AK
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
ec6a6fbe 11981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
ec6a6fbe
AK
11985 } && test -s conftest$ac_exeext && {
11986 test "$cross_compiling" = yes ||
11987 $as_test_x conftest$ac_exeext
11988 }; then
ad6254c5
AK
11989 eval "$as_ac_var=yes"
11990else
ec6a6fbe 11991 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
7a197a62 11994 eval "$as_ac_var=no"
ad6254c5 11995fi
7a197a62 11996
ec6a6fbe 11997rm -rf conftest.dSYM
25fbec5b 11998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11999 conftest$ac_exeext conftest.$ac_ext
ad6254c5 12000fi
ec6a6fbe
AK
12001ac_res=`eval 'as_val=${'$as_ac_var'}
12002 $as_echo "$as_val"'`
12003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12004$as_echo "$ac_res" >&6; }
12005as_val=`eval 'as_val=${'$as_ac_var'}
12006 $as_echo "$as_val"'`
12007 if test "x$as_val" = x""yes; then
ad6254c5 12008 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
12010_ACEOF
12011
12012else
ec6a6fbe
AK
12013 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12014$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
12015 { (exit 1); exit 1; }; }
12016fi
12017done
12018
12019fi
12020
12021if test x$HAVE_LIBDL = xyes; then
12022
12023for ac_header in dlfcn.h
12024do
ec6a6fbe 12025as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12028$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12030 $as_echo_n "(cached) " >&6
ad6254c5 12031fi
ec6a6fbe
AK
12032ac_res=`eval 'as_val=${'$as_ac_Header'}
12033 $as_echo "$as_val"'`
12034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12035$as_echo "$ac_res" >&6; }
ad6254c5
AK
12036else
12037 # Is the header compilable?
ec6a6fbe
AK
12038{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12039$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12040cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12041/* confdefs.h. */
12042_ACEOF
12043cat confdefs.h >>conftest.$ac_ext
12044cat >>conftest.$ac_ext <<_ACEOF
12045/* end confdefs.h. */
12046$ac_includes_default
12047#include <$ac_header>
12048_ACEOF
12049rm -f conftest.$ac_objext
7a197a62
AK
12050if { (ac_try="$ac_compile"
12051case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
ec6a6fbe
AK
12055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12056$as_echo "$ac_try_echo") >&5
7a197a62 12057 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12058 ac_status=$?
8a2fc586
AK
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
ec6a6fbe 12062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12063 (exit $ac_status); } && {
12064 test -z "$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12067 ac_header_compiler=yes
12068else
ec6a6fbe 12069 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
7a197a62 12072 ac_header_compiler=no
ad6254c5 12073fi
7a197a62
AK
12074
12075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12076{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12077$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12078
12079# Is the header present?
ec6a6fbe
AK
12080{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12081$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12082cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12083/* confdefs.h. */
12084_ACEOF
12085cat confdefs.h >>conftest.$ac_ext
12086cat >>conftest.$ac_ext <<_ACEOF
12087/* end confdefs.h. */
12088#include <$ac_header>
12089_ACEOF
7a197a62
AK
12090if { (ac_try="$ac_cpp conftest.$ac_ext"
12091case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094esac
ec6a6fbe
AK
12095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12096$as_echo "$ac_try_echo") >&5
7a197a62 12097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
ec6a6fbe 12102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12103 (exit $ac_status); } >/dev/null && {
12104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 }; then
ad6254c5
AK
12107 ac_header_preproc=yes
12108else
ec6a6fbe 12109 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 ac_header_preproc=no
12113fi
7a197a62 12114
ad6254c5 12115rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12116{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12117$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12118
12119# So? What about this header?
8a2fc586
AK
12120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12121 yes:no: )
ec6a6fbe
AK
12122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12123$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12125$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12126 ac_header_preproc=yes
ad6254c5 12127 ;;
8a2fc586 12128 no:yes:* )
ec6a6fbe
AK
12129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12130$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12132$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12134$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12136$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12138$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12140$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12141
ad6254c5
AK
12142 ;;
12143esac
ec6a6fbe
AK
12144{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12145$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12147 $as_echo_n "(cached) " >&6
ad6254c5 12148else
8a2fc586 12149 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 12150fi
ec6a6fbe
AK
12151ac_res=`eval 'as_val=${'$as_ac_Header'}
12152 $as_echo "$as_val"'`
12153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12154$as_echo "$ac_res" >&6; }
80992638 12155
8106cdd5 12156fi
ec6a6fbe
AK
12157as_val=`eval 'as_val=${'$as_ac_Header'}
12158 $as_echo "$as_val"'`
12159 if test "x$as_val" = x""yes; then
ad6254c5 12160 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12162_ACEOF
795ca3e5
AK
12163
12164else
ec6a6fbe
AK
12165 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12166$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12167 { (exit 1); exit 1; }; }
795ca3e5
AK
12168fi
12169
ad6254c5 12170done
80992638 12171
ad6254c5 12172fi
80992638 12173
ad6254c5 12174if test x$INTL = xyes; then
83912faa 12175
ad6254c5
AK
12176for ac_header in libintl.h
12177do
ec6a6fbe 12178as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12181$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12183 $as_echo_n "(cached) " >&6
ad6254c5 12184fi
ec6a6fbe
AK
12185ac_res=`eval 'as_val=${'$as_ac_Header'}
12186 $as_echo "$as_val"'`
12187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12188$as_echo "$ac_res" >&6; }
83912faa 12189else
ad6254c5 12190 # Is the header compilable?
ec6a6fbe
AK
12191{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12192$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12193cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199$ac_includes_default
12200#include <$ac_header>
12201_ACEOF
12202rm -f conftest.$ac_objext
7a197a62
AK
12203if { (ac_try="$ac_compile"
12204case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207esac
ec6a6fbe
AK
12208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12209$as_echo "$ac_try_echo") >&5
7a197a62 12210 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12211 ac_status=$?
8a2fc586
AK
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
ec6a6fbe 12215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12220 ac_header_compiler=yes
12221else
ec6a6fbe 12222 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
7a197a62 12225 ac_header_compiler=no
ad6254c5 12226fi
7a197a62
AK
12227
12228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12229{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12231
12232# Is the header present?
ec6a6fbe
AK
12233{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12235cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241#include <$ac_header>
12242_ACEOF
7a197a62
AK
12243if { (ac_try="$ac_cpp conftest.$ac_ext"
12244case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247esac
ec6a6fbe
AK
12248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12249$as_echo "$ac_try_echo") >&5
7a197a62 12250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
ec6a6fbe 12255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12256 (exit $ac_status); } >/dev/null && {
12257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 }; then
ad6254c5
AK
12260 ac_header_preproc=yes
12261else
ec6a6fbe 12262 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_header_preproc=no
12266fi
7a197a62 12267
ad6254c5 12268rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12269{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12271
12272# So? What about this header?
8a2fc586
AK
12273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
ec6a6fbe
AK
12275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12279 ac_header_preproc=yes
ad6254c5 12280 ;;
8a2fc586 12281 no:yes:* )
ec6a6fbe
AK
12282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12294
ad6254c5
AK
12295 ;;
12296esac
ec6a6fbe
AK
12297{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12298$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12300 $as_echo_n "(cached) " >&6
80992638 12301else
8a2fc586 12302 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 12303fi
ec6a6fbe
AK
12304ac_res=`eval 'as_val=${'$as_ac_Header'}
12305 $as_echo "$as_val"'`
12306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12307$as_echo "$ac_res" >&6; }
83912faa 12308
69792976 12309fi
ec6a6fbe
AK
12310as_val=`eval 'as_val=${'$as_ac_Header'}
12311 $as_echo "$as_val"'`
12312 if test "x$as_val" = x""yes; then
ad6254c5 12313 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12314#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12315_ACEOF
69792976 12316
69792976 12317else
ec6a6fbe
AK
12318 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12319$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12320 { (exit 1); exit 1; }; }
80992638
AK
12321fi
12322
ad6254c5 12323done
69792976 12324
ad6254c5
AK
12325fi
12326
ad6254c5
AK
12327if test x$HAVE_SELINUX = xyes; then
12328
12329for ac_header in selinux/selinux.h
12330do
ec6a6fbe 12331as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12334$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12336 $as_echo_n "(cached) " >&6
ad6254c5 12337fi
ec6a6fbe
AK
12338ac_res=`eval 'as_val=${'$as_ac_Header'}
12339 $as_echo "$as_val"'`
12340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12341$as_echo "$ac_res" >&6; }
4a7f3eb2 12342else
ad6254c5 12343 # Is the header compilable?
ec6a6fbe
AK
12344{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12346cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12347/* confdefs.h. */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h. */
12352$ac_includes_default
12353#include <$ac_header>
12354_ACEOF
12355rm -f conftest.$ac_objext
7a197a62
AK
12356if { (ac_try="$ac_compile"
12357case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360esac
ec6a6fbe
AK
12361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12362$as_echo "$ac_try_echo") >&5
7a197a62 12363 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12364 ac_status=$?
8a2fc586
AK
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
ec6a6fbe 12368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12369 (exit $ac_status); } && {
12370 test -z "$ac_c_werror_flag" ||
12371 test ! -s conftest.err
12372 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12373 ac_header_compiler=yes
12374else
ec6a6fbe 12375 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
7a197a62 12378 ac_header_compiler=no
ad6254c5 12379fi
7a197a62
AK
12380
12381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12382{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12384
12385# Is the header present?
ec6a6fbe
AK
12386{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12388cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394#include <$ac_header>
12395_ACEOF
7a197a62
AK
12396if { (ac_try="$ac_cpp conftest.$ac_ext"
12397case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
ec6a6fbe
AK
12401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12402$as_echo "$ac_try_echo") >&5
7a197a62 12403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
ec6a6fbe 12408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12409 (exit $ac_status); } >/dev/null && {
12410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 }; then
ad6254c5
AK
12413 ac_header_preproc=yes
12414else
ec6a6fbe 12415 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 ac_header_preproc=no
12419fi
7a197a62 12420
ad6254c5 12421rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12422{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12424
12425# So? What about this header?
8a2fc586
AK
12426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
ec6a6fbe
AK
12428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12432 ac_header_preproc=yes
ad6254c5 12433 ;;
8a2fc586 12434 no:yes:* )
ec6a6fbe
AK
12435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12447
ad6254c5
AK
12448 ;;
12449esac
ec6a6fbe
AK
12450{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12451$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12453 $as_echo_n "(cached) " >&6
ad6254c5 12454else
8a2fc586 12455 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12456fi
ec6a6fbe
AK
12457ac_res=`eval 'as_val=${'$as_ac_Header'}
12458 $as_echo "$as_val"'`
12459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12460$as_echo "$ac_res" >&6; }
4a7f3eb2 12461
ad6254c5 12462fi
ec6a6fbe
AK
12463as_val=`eval 'as_val=${'$as_ac_Header'}
12464 $as_echo "$as_val"'`
12465 if test "x$as_val" = x""yes; then
ad6254c5 12466 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12468_ACEOF
0a62c911 12469
0a62c911 12470else
ec6a6fbe
AK
12471 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12472$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12473 { (exit 1); exit 1; }; }
80992638
AK
12474fi
12475
ad6254c5 12476done
0a62c911 12477
ad6254c5 12478fi
0a62c911 12479
a653923f
AK
12480################################################################################
12481# Extract the first word of "modprobe", so it can be a program name with args.
12482set dummy modprobe; ac_word=$2
ec6a6fbe
AK
12483{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12484$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 12485if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 12486 $as_echo_n "(cached) " >&6
72b2cb61
AK
12487else
12488 case $MODPROBE_CMD in
12489 [\\/]* | ?:[\\/]*)
12490 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12491 ;;
12492 *)
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494for as_dir in $PATH
12495do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12500 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12502 break 2
12503 fi
12504done
12505done
7a197a62 12506IFS=$as_save_IFS
72b2cb61
AK
12507
12508 ;;
12509esac
12510fi
12511MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12512if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
12513 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12514$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 12515else
ec6a6fbe
AK
12516 { $as_echo "$as_me:$LINENO: result: no" >&5
12517$as_echo "no" >&6; }
72b2cb61
AK
12518fi
12519
a653923f 12520
7a197a62 12521
a653923f 12522if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12523
12524cat >>confdefs.h <<_ACEOF
12525#define MODPROBE_CMD "$MODPROBE_CMD"
12526_ACEOF
12527
a653923f
AK
12528fi
12529
80992638 12530################################################################################
93bd259b
AK
12531
12532
12533if test "$BUILD_DMEVENTD" = yes; then
12534
12535# Check whether --with-dmeventd-pidfile was given.
12536if test "${with_dmeventd_pidfile+set}" = set; then
12537 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12538#define DMEVENTD_PIDFILE "$withval"
12539_ACEOF
12540
12541else
12542 cat >>confdefs.h <<_ACEOF
12543#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12544_ACEOF
12545
12546fi
12547
12548fi
12549
12550
12551
12552if test "$BUILD_DMEVENTD" = yes; then
12553 dmeventd_prefix="$exec_prefix"
12554 if test "x$dmeventd_prefix" = "xNONE"; then
12555 dmeventd_prefix="$prefix"
12556 fi
12557 if test "x$dmeventd_prefix" = "xNONE"; then
12558 dmeventd_prefix=""
12559 fi
12560
12561# Check whether --with-dmeventd-path was given.
12562if test "${with_dmeventd_path+set}" = set; then
12563 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12564#define DMEVENTD_PATH "$withval"
12565_ACEOF
12566
12567else
12568 cat >>confdefs.h <<_ACEOF
12569#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12570_ACEOF
12571
12572fi
12573
12574fi
12575
12576################################################################################
ec6a6fbe
AK
12577{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12578$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
12579
12580# Check whether --with-interface was given.
12581if test "${with_interface+set}" = set; then
12582 withval=$with_interface; interface="$withval"
12583else
12584 interface=ioctl
12585fi
12586
12587if [ "x$interface" != xioctl ];
12588then
ec6a6fbe
AK
12589 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12590$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
12591 { (exit 1); exit 1; }; }
12592fi
ec6a6fbe
AK
12593{ $as_echo "$as_me:$LINENO: result: $interface" >&5
12594$as_echo "$interface" >&6; }
93bd259b
AK
12595
12596################################################################################
2c44337b 12597DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
12598
12599cat >>confdefs.h <<_ACEOF
12600#define DM_LIB_VERSION $DM_LIB_VERSION
12601_ACEOF
12602
12603
ec6a6fbe 12604DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 12605
d0191583 12606LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 12607
ec6a6fbe
AK
12608VER=`cat VERSION`
12609LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\""
12610VER=`echo "$VER" | $AWK '{print $1}'`
12611LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12612VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12613LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12614LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12615LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'`
12616
80992638 12617################################################################################
fae0c576 12618
83912faa 12619
795ca3e5
AK
12620
12621
12622
12623
12624
12625
5a52dca9 12626
8ef2b021 12627
199e490e 12628
69792976
AK
12629
12630
12631
d0191583 12632
69792976 12633
8106cdd5
AK
12634
12635
12636
12637
12638
d68a82ec 12639
036f273a 12640
7d1552c9 12641
8106cdd5 12642
0a62c911 12643
8106cdd5 12644
4a7f3eb2 12645
4922197a
AK
12646
12647
d8ac0fbc 12648
1a9ea74d 12649
8a2fc586
AK
12650
12651
d0191583 12652
93bd259b
AK
12653
12654
12655
12656
12657
d0191583
JM
12658
12659
12660
12661
12662
8a2fc586 12663
8ce0cbda 12664
8b1a3214 12665
ec6a6fbe
AK
12666
12667
12668
12669
e2997b73
AK
12670
12671
12672
12673
12674
12675
ec6a6fbe 12676
33f732c5 12677
66e941e8 12678
d3c8211f 12679
7e3fe830 12680
572fefeb 12681
68f2de6d
AK
12682
12683
80992638 12684################################################################################
e0c64c6c 12685ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
7a197a62 12686
ad6254c5 12687cat >confcache <<\_ACEOF
795ca3e5
AK
12688# This file is a shell script that caches the results of configure
12689# tests run on this system so they can be shared between configure
ad6254c5
AK
12690# scripts and configure runs, see configure's option --config-cache.
12691# It is not useful on other systems. If it contains results you don't
12692# want to keep, you may remove or edit it.
795ca3e5 12693#
ad6254c5
AK
12694# config.status only pays attention to the cache file if you give it
12695# the --recheck option to rerun configure.
795ca3e5 12696#
ad6254c5
AK
12697# `ac_cv_env_foo' variables (set or unset) will be overridden when
12698# loading this file, other *unset* `ac_cv_foo' will be assigned the
12699# following values.
12700
12701_ACEOF
12702
795ca3e5
AK
12703# The following way of writing the cache mishandles newlines in values,
12704# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12705# So, we kill variables containing newlines.
795ca3e5
AK
12706# Ultrix sh set writes to stderr and can't be redirected directly,
12707# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12708(
12709 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12710 eval ac_val=\$$ac_var
12711 case $ac_val in #(
12712 *${as_nl}*)
12713 case $ac_var in #(
ec6a6fbe
AK
12714 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12715$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
12716 esac
12717 case $ac_var in #(
12718 _ | IFS | as_nl) ;; #(
ec6a6fbe 12719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12720 *) $as_unset $ac_var ;;
12721 esac ;;
12722 esac
12723 done
12724
ad6254c5 12725 (set) 2>&1 |
7a197a62
AK
12726 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12727 *${as_nl}ac_space=\ *)
ad6254c5
AK
12728 # `set' does not quote correctly, so add quotes (double-quote
12729 # substitution turns \\\\ into \\, and sed turns \\ into \).
12730 sed -n \
8a2fc586
AK
12731 "s/'/'\\\\''/g;
12732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12733 ;; #(
ad6254c5
AK
12734 *)
12735 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12737 ;;
7a197a62
AK
12738 esac |
12739 sort
12740) |
ad6254c5 12741 sed '
7a197a62 12742 /^ac_cv_env_/b end
ad6254c5 12743 t clear
7a197a62 12744 :clear
ad6254c5
AK
12745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12746 t end
7a197a62
AK
12747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12748 :end' >>confcache
12749if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12750 if test -w "$cache_file"; then
12751 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
12752 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12753$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12754 cat confcache >$cache_file
795ca3e5 12755 else
ec6a6fbe
AK
12756 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12757$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12758 fi
12759fi
12760rm -f confcache
12761
795ca3e5
AK
12762test "x$prefix" = xNONE && prefix=$ac_default_prefix
12763# Let make expand exec_prefix.
12764test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12765
72b2cb61 12766DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12767
12768ac_libobjs=
12769ac_ltlibobjs=
12770for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12771 # 1. Remove the extension, and $U if already installed.
7a197a62 12772 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 12773 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12775 # will be set to the directory where LIBOBJS objects are built.
12776 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12777 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12778done
12779LIBOBJS=$ac_libobjs
80992638 12780
ad6254c5
AK
12781LTLIBOBJS=$ac_ltlibobjs
12782
12783
12784
12785: ${CONFIG_STATUS=./config.status}
ec6a6fbe 12786ac_write_fail=0
ad6254c5
AK
12787ac_clean_files_save=$ac_clean_files
12788ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
12789{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12790$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12791cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12792#! $SHELL
12793# Generated by $as_me.
795ca3e5 12794# Run this file to recreate the current configuration.
795ca3e5 12795# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12796# configure, is in config.log if it exists.
12797
12798debug=false
12799ac_cs_recheck=false
12800ac_cs_silent=false
12801SHELL=\${CONFIG_SHELL-$SHELL}
12802_ACEOF
12803
ec6a6fbe 12804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12805## --------------------- ##
12806## M4sh Initialization. ##
12807## --------------------- ##
12808
25fbec5b
AK
12809# Be more Bourne compatible
12810DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
12811if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12812 emulate sh
12813 NULLCMD=:
ec6a6fbe 12814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
12815 # is contrary to our usage. Disable this feature.
12816 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12817 setopt NO_GLOB_SUBST
12818else
25fbec5b
AK
12819 case `(set -o) 2>/dev/null` in
12820 *posix*) set -o posix ;;
12821esac
12822
7a197a62 12823fi
25fbec5b
AK
12824
12825
7a197a62
AK
12826
12827
12828# PATH needs CR
12829# Avoid depending upon Character Ranges.
12830as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12831as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12832as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12833as_cr_digits='0123456789'
12834as_cr_alnum=$as_cr_Letters$as_cr_digits
12835
ec6a6fbe
AK
12836as_nl='
12837'
12838export as_nl
12839# Printing a long string crashes Solaris 7 /usr/bin/printf.
12840as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12841as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12843if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12844 as_echo='printf %s\n'
12845 as_echo_n='printf %s'
12846else
12847 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12848 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12849 as_echo_n='/usr/ucb/echo -n'
68f2de6d 12850 else
ec6a6fbe
AK
12851 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12852 as_echo_n_body='eval
12853 arg=$1;
12854 case $arg in
12855 *"$as_nl"*)
12856 expr "X$arg" : "X\\(.*\\)$as_nl";
12857 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12858 esac;
12859 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12860 '
12861 export as_echo_n_body
12862 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 12863 fi
ec6a6fbe
AK
12864 export as_echo_body
12865 as_echo='sh -c $as_echo_body as_echo'
12866fi
12867
12868# The user is always right.
12869if test "${PATH_SEPARATOR+set}" != set; then
12870 PATH_SEPARATOR=:
12871 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12872 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12873 PATH_SEPARATOR=';'
12874 }
ad6254c5
AK
12875fi
12876
12877# Support unset when possible.
8a2fc586 12878if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12879 as_unset=unset
12880else
12881 as_unset=false
12882fi
8106cdd5 12883
ad6254c5 12884
7a197a62
AK
12885# IFS
12886# We need space, tab and new line, in precisely that order. Quoting is
12887# there to prevent editors from complaining about space-tab.
12888# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12889# splitting by setting IFS to empty value.)
7a197a62
AK
12890IFS=" "" $as_nl"
12891
12892# Find who we are. Look in the path if we contain no directory separator.
12893case $0 in
12894 *[\\/]* ) as_myself=$0 ;;
12895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896for as_dir in $PATH
12897do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12901done
12902IFS=$as_save_IFS
12903
12904 ;;
12905esac
12906# We did not find ourselves, most probably we were run as `sh COMMAND'
12907# in which case we are not to be found in the path.
12908if test "x$as_myself" = x; then
12909 as_myself=$0
12910fi
12911if test ! -f "$as_myself"; then
ec6a6fbe 12912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12913 { (exit 1); exit 1; }
12914fi
12915
ad6254c5 12916# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12917for as_var in ENV MAIL MAILPATH
12918do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12919done
ad6254c5
AK
12920PS1='$ '
12921PS2='> '
12922PS4='+ '
12923
12924# NLS nuisances.
ec6a6fbe
AK
12925LC_ALL=C
12926export LC_ALL
12927LANGUAGE=C
12928export LANGUAGE
8106cdd5 12929
ad6254c5 12930# Required to use basename.
7a197a62
AK
12931if expr a : '\(a\)' >/dev/null 2>&1 &&
12932 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12933 as_expr=expr
12934else
12935 as_expr=false
12936fi
8106cdd5 12937
7a197a62 12938if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12939 as_basename=basename
12940else
12941 as_basename=false
12942fi
12943
12944
12945# Name of the executable.
7a197a62 12946as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12947$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12948 X"$0" : 'X\(//\)$' \| \
7a197a62 12949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 12950$as_echo X/"$0" |
7a197a62
AK
12951 sed '/^.*\/\([^/][^/]*\)\/*$/{
12952 s//\1/
12953 q
12954 }
12955 /^X\/\(\/\/\)$/{
12956 s//\1/
12957 q
12958 }
12959 /^X\/\(\/\).*/{
12960 s//\1/
12961 q
12962 }
12963 s/.*/./; q'`
ad6254c5 12964
7a197a62
AK
12965# CDPATH.
12966$as_unset CDPATH
ad6254c5
AK
12967
12968
ad6254c5 12969
ad6254c5
AK
12970 as_lineno_1=$LINENO
12971 as_lineno_2=$LINENO
ad6254c5 12972 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12973 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12974
ad6254c5
AK
12975 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12976 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12977 # line-number line after each line using $LINENO; the second 'sed'
12978 # does the real work. The second script uses 'N' to pair each
12979 # line-number line with the line containing $LINENO, and appends
12980 # trailing '-' during substitution so that $LINENO is not a special
12981 # case at line end.
ad6254c5 12982 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12983 # scripts with optimization help from Paolo Bonzini. Blame Lee
12984 # E. McMahon (1931-1989) for sed's syntax. :-)
12985 sed -n '
12986 p
12987 /[$]LINENO/=
12988 ' <$as_myself |
ad6254c5 12989 sed '
7a197a62
AK
12990 s/[$]LINENO.*/&-/
12991 t lineno
12992 b
12993 :lineno
ad6254c5 12994 N
7a197a62
AK
12995 :loop
12996 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12997 t loop
7a197a62 12998 s/-\n.*//
ad6254c5 12999 ' >$as_me.lineno &&
7a197a62 13000 chmod +x "$as_me.lineno" ||
ec6a6fbe 13001 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
13002 { (exit 1); exit 1; }; }
13003
13004 # Don't try to exec as it changes $[0], causing all sort of problems
13005 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
13006 # original and so on. Autoconf is especially sensitive to this).
13007 . "./$as_me.lineno"
ad6254c5
AK
13008 # Exit status is that of the last command.
13009 exit
13010}
13011
13012
7a197a62
AK
13013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13014 as_dirname=dirname
13015else
13016 as_dirname=false
13017fi
13018
13019ECHO_C= ECHO_N= ECHO_T=
13020case `echo -n x` in
13021-n*)
13022 case `echo 'x\c'` in
13023 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13024 *) ECHO_C='\c';;
13025 esac;;
13026*)
13027 ECHO_N='-n';;
ad6254c5 13028esac
7a197a62
AK
13029if expr a : '\(a\)' >/dev/null 2>&1 &&
13030 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13031 as_expr=expr
13032else
13033 as_expr=false
13034fi
80992638 13035
ad6254c5 13036rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
13037if test -d conf$$.dir; then
13038 rm -f conf$$.dir/conf$$.file
13039else
13040 rm -f conf$$.dir
ec6a6fbe
AK
13041 mkdir conf$$.dir 2>/dev/null
13042fi
13043if (echo >conf$$.file) 2>/dev/null; then
13044 if ln -s conf$$.file conf$$ 2>/dev/null; then
13045 as_ln_s='ln -s'
13046 # ... but there are two gotchas:
13047 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13048 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13049 # In both cases, we have to default to `cp -p'.
13050 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13051 as_ln_s='cp -p'
13052 elif ln conf$$.file conf$$ 2>/dev/null; then
13053 as_ln_s=ln
13054 else
ad6254c5 13055 as_ln_s='cp -p'
ec6a6fbe 13056 fi
ad6254c5
AK
13057else
13058 as_ln_s='cp -p'
13059fi
7a197a62
AK
13060rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13061rmdir conf$$.dir 2>/dev/null
8106cdd5 13062
ad6254c5
AK
13063if mkdir -p . 2>/dev/null; then
13064 as_mkdir_p=:
13065else
8a2fc586 13066 test -d ./-p && rmdir ./-p
ad6254c5
AK
13067 as_mkdir_p=false
13068fi
13069
25fbec5b
AK
13070if test -x / >/dev/null 2>&1; then
13071 as_test_x='test -x'
7a197a62 13072else
25fbec5b
AK
13073 if ls -dL / >/dev/null 2>&1; then
13074 as_ls_L_option=L
13075 else
13076 as_ls_L_option=
13077 fi
13078 as_test_x='
13079 eval sh -c '\''
13080 if test -d "$1"; then
ec6a6fbe 13081 test -d "$1/.";
25fbec5b
AK
13082 else
13083 case $1 in
ec6a6fbe 13084 -*)set "./$1";;
25fbec5b
AK
13085 esac;
13086 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13087 ???[sx]*):;;*)false;;esac;fi
13088 '\'' sh
13089 '
7a197a62 13090fi
25fbec5b 13091as_executable_p=$as_test_x
ad6254c5
AK
13092
13093# Sed expression to map a string onto a valid CPP name.
8a2fc586 13094as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13095
13096# Sed expression to map a string onto a valid variable name.
8a2fc586 13097as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13098
13099
ad6254c5
AK
13100exec 6>&1
13101
7a197a62 13102# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 13103# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
13104# values after options handling.
13105ac_log="
ad6254c5 13106This file was extended by $as_me, which was
ec6a6fbe 13107generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
13108
13109 CONFIG_FILES = $CONFIG_FILES
13110 CONFIG_HEADERS = $CONFIG_HEADERS
13111 CONFIG_LINKS = $CONFIG_LINKS
13112 CONFIG_COMMANDS = $CONFIG_COMMANDS
13113 $ $0 $@
13114
7a197a62
AK
13115on `(hostname || uname -n) 2>/dev/null | sed 1q`
13116"
13117
ad6254c5
AK
13118_ACEOF
13119
ec6a6fbe
AK
13120case $ac_config_files in *"
13121"*) set x $ac_config_files; shift; ac_config_files=$*;;
13122esac
13123
13124case $ac_config_headers in *"
13125"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13126esac
13127
13128
13129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13130# Files that config.status was made for.
68f2de6d
AK
13131config_files="$ac_config_files"
13132config_headers="$ac_config_headers"
ad6254c5 13133
7a197a62 13134_ACEOF
ad6254c5 13135
ec6a6fbe 13136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13137ac_cs_usage="\
13138\`$as_me' instantiates files from templates according to the
13139current configuration.
13140
ec6a6fbe 13141Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
13142
13143 -h, --help print this help, then exit
25fbec5b 13144 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
13145 -q, --quiet, --silent
13146 do not print progress messages
ad6254c5
AK
13147 -d, --debug don't remove temporary files
13148 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
13149 --file=FILE[:TEMPLATE]
13150 instantiate the configuration file FILE
13151 --header=FILE[:TEMPLATE]
13152 instantiate the configuration header FILE
ad6254c5
AK
13153
13154Configuration files:
13155$config_files
13156
72b2cb61
AK
13157Configuration headers:
13158$config_headers
13159
ad6254c5 13160Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 13161
7a197a62 13162_ACEOF
ec6a6fbe 13163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13164ac_cs_version="\\
13165config.status
ec6a6fbe
AK
13166configured by $0, generated by GNU Autoconf 2.63,
13167 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 13168
ec6a6fbe 13169Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
13170This config.status script is free software; the Free Software Foundation
13171gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
13172
13173ac_pwd='$ac_pwd'
13174srcdir='$srcdir'
13175INSTALL='$INSTALL'
fddafd51 13176MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
13177AWK='$AWK'
13178test -n "\$AWK" || AWK=awk
ad6254c5
AK
13179_ACEOF
13180
ec6a6fbe
AK
13181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13182# The default lists apply if the user does not specify any file.
ad6254c5
AK
13183ac_need_defaults=:
13184while test $# != 0
13185do
13186 case $1 in
13187 --*=*)
7a197a62
AK
13188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
13190 ac_shift=:
13191 ;;
7a197a62 13192 *)
ad6254c5
AK
13193 ac_option=$1
13194 ac_optarg=$2
13195 ac_shift=shift
13196 ;;
ad6254c5
AK
13197 esac
13198
13199 case $ac_option in
13200 # Handling of the options.
ad6254c5
AK
13201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13202 ac_cs_recheck=: ;;
7a197a62 13203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 13204 $as_echo "$ac_cs_version"; exit ;;
7a197a62 13205 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
13206 debug=: ;;
13207 --file | --fil | --fi | --f )
13208 $ac_shift
ec6a6fbe
AK
13209 case $ac_optarg in
13210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13211 esac
13212 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
13213 ac_need_defaults=false;;
13214 --header | --heade | --head | --hea )
13215 $ac_shift
ec6a6fbe
AK
13216 case $ac_optarg in
13217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13218 esac
13219 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 13220 ac_need_defaults=false;;
7a197a62
AK
13221 --he | --h)
13222 # Conflict between --help and --header
ec6a6fbe 13223 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
13224Try \`$0 --help' for more information." >&2
13225 { (exit 1); exit 1; }; };;
13226 --help | --hel | -h )
ec6a6fbe 13227 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
13228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13229 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13230 ac_cs_silent=: ;;
13231
13232 # This is an error.
ec6a6fbe 13233 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 13234Try \`$0 --help' for more information." >&2
ad6254c5
AK
13235 { (exit 1); exit 1; }; } ;;
13236
7a197a62
AK
13237 *) ac_config_targets="$ac_config_targets $1"
13238 ac_need_defaults=false ;;
ad6254c5
AK
13239
13240 esac
13241 shift
13242done
13243
13244ac_configure_extra_args=
13245
13246if $ac_cs_silent; then
13247 exec 6>/dev/null
13248 ac_configure_extra_args="$ac_configure_extra_args --silent"
13249fi
13250
13251_ACEOF
ec6a6fbe 13252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13253if \$ac_cs_recheck; then
ec6a6fbe
AK
13254 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13255 shift
13256 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13257 CONFIG_SHELL='$SHELL'
7a197a62 13258 export CONFIG_SHELL
ec6a6fbe 13259 exec "\$@"
ad6254c5
AK
13260fi
13261
13262_ACEOF
ec6a6fbe 13263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13264exec 5>>config.log
13265{
13266 echo
13267 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13268## Running $as_me. ##
13269_ASBOX
ec6a6fbe 13270 $as_echo "$ac_log"
7a197a62 13271} >&5
ad6254c5 13272
7a197a62 13273_ACEOF
ec6a6fbe 13274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 13275_ACEOF
ad6254c5 13276
ec6a6fbe 13277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13278
13279# Handling of arguments.
ad6254c5
AK
13280for ac_config_target in $ac_config_targets
13281do
7a197a62
AK
13282 case $ac_config_target in
13283 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13285 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13286 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13287 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
13288 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13289 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 13290 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
13291 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13292 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 13293 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
13294 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13295 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
13296 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13297 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13298 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13299 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 13300 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 13301 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
13302 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13303 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 13304 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
93bd259b
AK
13305 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13306 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 13307 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 13308 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 13309 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 13310 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 13311 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7a197a62 13312
ec6a6fbe
AK
13313 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13314$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 13315 { (exit 1); exit 1; }; };;
80992638 13316 esac
ad6254c5
AK
13317done
13318
7a197a62 13319
ad6254c5
AK
13320# If the user did not use the arguments to specify the items to instantiate,
13321# then the envvar interface is used. Set only those that are not.
13322# We use the long form for the default assignment because of an extremely
13323# bizarre bug on SunOS 4.1.3.
13324if $ac_need_defaults; then
13325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 13326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
13327fi
13328
13329# Have a temporary directory for convenience. Make it in the build tree
7a197a62 13330# simply because there is no reason against having it here, and in addition,
ad6254c5 13331# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
13332# Hook for its removal unless debugging.
13333# Note that there is a small window in which the directory will not be cleaned:
13334# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
13335$debug ||
13336{
7a197a62
AK
13337 tmp=
13338 trap 'exit_status=$?
13339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13340' 0
ad6254c5
AK
13341 trap '{ (exit 1); exit 1; }' 1 2 13 15
13342}
ad6254c5
AK
13343# Create a (secure) tmp directory for tmp files.
13344
13345{
7a197a62 13346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
13347 test -n "$tmp" && test -d "$tmp"
13348} ||
13349{
7a197a62
AK
13350 tmp=./conf$$-$RANDOM
13351 (umask 077 && mkdir "$tmp")
ad6254c5
AK
13352} ||
13353{
ec6a6fbe 13354 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
13355 { (exit 1); exit 1; }
13356}
13357
ec6a6fbe
AK
13358# Set up the scripts for CONFIG_FILES section.
13359# No need to generate them if there are no CONFIG_FILES.
13360# This happens for instance with `./config.status config.h'.
1995c9ff 13361if test -n "$CONFIG_FILES"; then
7a197a62 13362
68f2de6d 13363
ec6a6fbe
AK
13364ac_cr='\r'
13365ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13366if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13367 ac_cs_awk_cr='\\r'
13368else
13369 ac_cs_awk_cr=$ac_cr
1995c9ff 13370fi
7a197a62 13371
ec6a6fbe 13372echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 13373_ACEOF
7a197a62 13374
8106cdd5 13375
ec6a6fbe
AK
13376{
13377 echo "cat >conf$$subs.awk <<_ACEOF" &&
13378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13379 echo "_ACEOF"
13380} >conf$$subs.sh ||
13381 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13382$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13383 { (exit 1); exit 1; }; }
13384ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
13385ac_delim='%!_!# '
13386for ac_last_try in false false false false false :; do
ec6a6fbe
AK
13387 . ./conf$$subs.sh ||
13388 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13389$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13390 { (exit 1); exit 1; }; }
13391
13392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13393 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
13394 break
13395 elif $ac_last_try; then
ec6a6fbe
AK
13396 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13397$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
13398 { (exit 1); exit 1; }; }
13399 else
13400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13401 fi
13402done
ec6a6fbe
AK
13403rm -f conf$$subs.sh
13404
13405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13406cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13407_ACEOF
13408sed -n '
13409h
13410s/^/S["/; s/!.*/"]=/
13411p
13412g
13413s/^[^!]*!//
13414:repl
13415t repl
13416s/'"$ac_delim"'$//
13417t delim
13418:nl
13419h
13420s/\(.\{148\}\).*/\1/
13421t more1
13422s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13423p
13424n
13425b repl
13426:more1
13427s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13428p
13429g
13430s/.\{148\}//
13431t nl
13432:delim
13433h
13434s/\(.\{148\}\).*/\1/
13435t more2
13436s/["\\]/\\&/g; s/^/"/; s/$/"/
13437p
13438b
13439:more2
13440s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13441p
13442g
13443s/.\{148\}//
13444t delim
13445' <conf$$subs.awk | sed '
13446/^[^""]/{
13447 N
13448 s/\n//
13449}
13450' >>$CONFIG_STATUS || ac_write_fail=1
13451rm -f conf$$subs.awk
13452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13453_ACAWK
13454cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13455 for (key in S) S_is_set[key] = 1
13456 FS = "\a"
7a197a62 13457
ec6a6fbe
AK
13458}
13459{
13460 line = $ 0
13461 nfields = split(line, field, "@")
13462 substed = 0
13463 len = length(field[1])
13464 for (i = 2; i < nfields; i++) {
13465 key = field[i]
13466 keylen = length(key)
13467 if (S_is_set[key]) {
13468 value = S[key]
13469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13470 len += length(value) + length(field[++i])
13471 substed = 1
13472 } else
13473 len += 1 + keylen
13474 }
13475
13476 print line
13477}
fddafd51 13478
ec6a6fbe 13479_ACAWK
1995c9ff 13480_ACEOF
ec6a6fbe
AK
13481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13482if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13484else
13485 cat
13486fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13487 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13488$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13489 { (exit 1); exit 1; }; }
7a197a62
AK
13490_ACEOF
13491
7a197a62
AK
13492# VPATH may cause trouble with some makes, so we remove $(srcdir),
13493# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13494# trailing colons and then remove the whole line if VPATH becomes empty
13495# (actually we leave an empty line to preserve line numbers).
13496if test "x$srcdir" = x.; then
13497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13498s/:*\$(srcdir):*/:/
13499s/:*\${srcdir}:*/:/
13500s/:*@srcdir@:*/:/
13501s/^\([^=]*=[ ]*\):*/\1/
13502s/:*$//
13503s/^[^=]*=[ ]*$//
13504}'
13505fi
13506
ec6a6fbe 13507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13508fi # test -n "$CONFIG_FILES"
13509
ec6a6fbe
AK
13510# Set up the scripts for CONFIG_HEADERS section.
13511# No need to generate them if there are no CONFIG_HEADERS.
13512# This happens for instance with `./config.status Makefile'.
13513if test -n "$CONFIG_HEADERS"; then
13514cat >"$tmp/defines.awk" <<\_ACAWK ||
13515BEGIN {
13516_ACEOF
13517
13518# Transform confdefs.h into an awk script `defines.awk', embedded as
13519# here-document in config.status, that substitutes the proper values into
13520# config.h.in to produce config.h.
13521
13522# Create a delimiter string that does not exist in confdefs.h, to ease
13523# handling of long lines.
13524ac_delim='%!_!# '
13525for ac_last_try in false false :; do
13526 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13527 if test -z "$ac_t"; then
13528 break
13529 elif $ac_last_try; then
13530 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13531$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13532 { (exit 1); exit 1; }; }
13533 else
13534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13535 fi
13536done
13537
13538# For the awk script, D is an array of macro values keyed by name,
13539# likewise P contains macro parameters if any. Preserve backslash
13540# newline sequences.
13541
13542ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13543sed -n '
13544s/.\{148\}/&'"$ac_delim"'/g
13545t rset
13546:rset
13547s/^[ ]*#[ ]*define[ ][ ]*/ /
13548t def
13549d
13550:def
13551s/\\$//
13552t bsnl
13553s/["\\]/\\&/g
13554s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13555D["\1"]=" \3"/p
13556s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13557d
13558:bsnl
13559s/["\\]/\\&/g
13560s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13561D["\1"]=" \3\\\\\\n"\\/p
13562t cont
13563s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13564t cont
13565d
13566:cont
13567n
13568s/.\{148\}/&'"$ac_delim"'/g
13569t clear
13570:clear
13571s/\\$//
13572t bsnlc
13573s/["\\]/\\&/g; s/^/"/; s/$/"/p
13574d
13575:bsnlc
13576s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13577b cont
13578' <confdefs.h | sed '
13579s/'"$ac_delim"'/"\\\
13580"/g' >>$CONFIG_STATUS || ac_write_fail=1
13581
13582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13583 for (key in D) D_is_set[key] = 1
13584 FS = "\a"
13585}
13586/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13587 line = \$ 0
13588 split(line, arg, " ")
13589 if (arg[1] == "#") {
13590 defundef = arg[2]
13591 mac1 = arg[3]
13592 } else {
13593 defundef = substr(arg[1], 2)
13594 mac1 = arg[2]
13595 }
13596 split(mac1, mac2, "(") #)
13597 macro = mac2[1]
13598 prefix = substr(line, 1, index(line, defundef) - 1)
13599 if (D_is_set[macro]) {
13600 # Preserve the white space surrounding the "#".
13601 print prefix "define", macro P[macro] D[macro]
13602 next
13603 } else {
13604 # Replace #undef with comments. This is necessary, for example,
13605 # in the case of _POSIX_SOURCE, which is predefined and required
13606 # on some systems where configure will not decide to define it.
13607 if (defundef == "undef") {
13608 print "/*", prefix defundef, macro, "*/"
13609 next
13610 }
13611 }
13612}
13613{ print }
13614_ACAWK
13615_ACEOF
13616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13617 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13618$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13619 { (exit 1); exit 1; }; }
13620fi # test -n "$CONFIG_HEADERS"
13621
7a197a62 13622
ec6a6fbe
AK
13623eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13624shift
13625for ac_tag
7a197a62
AK
13626do
13627 case $ac_tag in
13628 :[FHLC]) ac_mode=$ac_tag; continue;;
13629 esac
13630 case $ac_mode$ac_tag in
13631 :[FHL]*:*);;
ec6a6fbe
AK
13632 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13633$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
13634 { (exit 1); exit 1; }; };;
13635 :[FH]-) ac_tag=-:-;;
13636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13637 esac
13638 ac_save_IFS=$IFS
13639 IFS=:
13640 set x $ac_tag
13641 IFS=$ac_save_IFS
13642 shift
13643 ac_file=$1
13644 shift
13645
13646 case $ac_mode in
13647 :L) ac_source=$1;;
13648 :[FH])
13649 ac_file_inputs=
13650 for ac_f
13651 do
13652 case $ac_f in
13653 -) ac_f="$tmp/stdin";;
13654 *) # Look for the file first in the build tree, then in the source tree
13655 # (if the path is not absolute). The absolute path cannot be DOS-style,
13656 # because $ac_f cannot contain `:'.
13657 test -f "$ac_f" ||
13658 case $ac_f in
13659 [\\/$]*) false;;
13660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13661 esac ||
ec6a6fbe
AK
13662 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13663$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13664 { (exit 1); exit 1; }; };;
13665 esac
ec6a6fbe
AK
13666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13667 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
13668 done
13669
13670 # Let's still pretend it is `configure' which instantiates (i.e., don't
13671 # use $as_me), people would be surprised to read:
13672 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
13673 configure_input='Generated from '`
13674 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13675 `' by configure.'
7a197a62
AK
13676 if test x"$ac_file" != x-; then
13677 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
13678 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13679$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 13680 fi
ec6a6fbe
AK
13681 # Neutralize special characters interpreted by sed in replacement strings.
13682 case $configure_input in #(
13683 *\&* | *\|* | *\\* )
13684 ac_sed_conf_input=`$as_echo "$configure_input" |
13685 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13686 *) ac_sed_conf_input=$configure_input;;
13687 esac
7a197a62
AK
13688
13689 case $ac_tag in
ec6a6fbe
AK
13690 *:-:* | *:-) cat >"$tmp/stdin" \
13691 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13692$as_echo "$as_me: error: could not create $ac_file" >&2;}
13693 { (exit 1); exit 1; }; } ;;
7a197a62
AK
13694 esac
13695 ;;
80992638 13696 esac
8106cdd5 13697
7a197a62 13698 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13699$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13700 X"$ac_file" : 'X\(//\)[^/]' \| \
13701 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13703$as_echo X"$ac_file" |
7a197a62
AK
13704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13705 s//\1/
13706 q
13707 }
13708 /^X\(\/\/\)[^/].*/{
13709 s//\1/
13710 q
13711 }
13712 /^X\(\/\/\)$/{
13713 s//\1/
13714 q
13715 }
13716 /^X\(\/\).*/{
13717 s//\1/
13718 q
13719 }
13720 s/.*/./; q'`
13721 { as_dir="$ac_dir"
13722 case $as_dir in #(
13723 -*) as_dir=./$as_dir;;
13724 esac
13725 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13726 as_dirs=
7a197a62
AK
13727 while :; do
13728 case $as_dir in #(
ec6a6fbe 13729 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13730 *) as_qdir=$as_dir;;
13731 esac
13732 as_dirs="'$as_qdir' $as_dirs"
13733 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13735 X"$as_dir" : 'X\(//\)[^/]' \| \
13736 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13738$as_echo X"$as_dir" |
7a197a62
AK
13739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13740 s//\1/
13741 q
13742 }
13743 /^X\(\/\/\)[^/].*/{
13744 s//\1/
13745 q
13746 }
13747 /^X\(\/\/\)$/{
13748 s//\1/
13749 q
13750 }
13751 /^X\(\/\).*/{
13752 s//\1/
13753 q
13754 }
13755 s/.*/./; q'`
13756 test -d "$as_dir" && break
ad6254c5 13757 done
7a197a62 13758 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
13759 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13760$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13761 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13762 ac_builddir=.
13763
7a197a62
AK
13764case "$ac_dir" in
13765.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13766*)
ec6a6fbe 13767 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13768 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 13769 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13770 case $ac_top_builddir_sub in
13771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13773 esac ;;
13774esac
13775ac_abs_top_builddir=$ac_pwd
13776ac_abs_builddir=$ac_pwd$ac_dir_suffix
13777# for backward compatibility:
13778ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13779
13780case $srcdir in
7a197a62 13781 .) # We are building in place.
ad6254c5 13782 ac_srcdir=.
7a197a62
AK
13783 ac_top_srcdir=$ac_top_builddir_sub
13784 ac_abs_top_srcdir=$ac_pwd ;;
13785 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13786 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13787 ac_top_srcdir=$srcdir
13788 ac_abs_top_srcdir=$srcdir ;;
13789 *) # Relative name.
13790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13791 ac_top_srcdir=$ac_top_build_prefix$srcdir
13792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13793esac
7a197a62 13794ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13795
ad6254c5 13796
7a197a62
AK
13797 case $ac_mode in
13798 :F)
13799 #
13800 # CONFIG_FILE
13801 #
ad6254c5
AK
13802
13803 case $INSTALL in
13804 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13805 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13806 esac
fddafd51
ZK
13807 ac_MKDIR_P=$MKDIR_P
13808 case $MKDIR_P in
13809 [\\/$]* | ?:[\\/]* ) ;;
13810 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13811 esac
7a197a62 13812_ACEOF
795ca3e5 13813
ec6a6fbe 13814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13815# If the template does not know about datarootdir, expand it.
13816# FIXME: This hack should be removed a few years after 2.60.
13817ac_datarootdir_hack=; ac_datarootdir_seen=
13818
ec6a6fbe
AK
13819ac_sed_dataroot='
13820/datarootdir/ {
7a197a62
AK
13821 p
13822 q
13823}
13824/@datadir@/p
13825/@docdir@/p
13826/@infodir@/p
13827/@localedir@/p
13828/@mandir@/p
ec6a6fbe
AK
13829'
13830case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
13831*datarootdir*) ac_datarootdir_seen=yes;;
13832*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
13833 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13834$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13835_ACEOF
ec6a6fbe 13836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
13837 ac_datarootdir_hack='
13838 s&@datadir@&$datadir&g
13839 s&@docdir@&$docdir&g
13840 s&@infodir@&$infodir&g
13841 s&@localedir@&$localedir&g
13842 s&@mandir@&$mandir&g
13843 s&\\\${datarootdir}&$datarootdir&g' ;;
13844esac
13845_ACEOF
13846
13847# Neutralize VPATH when `$srcdir' = `.'.
13848# Shell code in configure.ac might set extrasub.
13849# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
13850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13851ac_sed_extra="$ac_vpsub
ad6254c5
AK
13852$extrasub
13853_ACEOF
ec6a6fbe 13854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13855:t
13856/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 13857s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 13858s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 13859s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
13860s&@srcdir@&$ac_srcdir&;t t
13861s&@abs_srcdir@&$ac_abs_srcdir&;t t
13862s&@top_srcdir@&$ac_top_srcdir&;t t
13863s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13864s&@builddir@&$ac_builddir&;t t
13865s&@abs_builddir@&$ac_abs_builddir&;t t
13866s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13867s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 13868s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 13869$ac_datarootdir_hack
ec6a6fbe
AK
13870"
13871eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13872 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13873$as_echo "$as_me: error: could not create $ac_file" >&2;}
13874 { (exit 1); exit 1; }; }
7a197a62
AK
13875
13876test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13877 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 13879 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13880which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 13881$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13882which seems to be undefined. Please make sure it is defined." >&2;}
13883
13884 rm -f "$tmp/stdin"
72b2cb61 13885 case $ac_file in
ec6a6fbe
AK
13886 -) cat "$tmp/out" && rm -f "$tmp/out";;
13887 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13888 esac \
13889 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13890$as_echo "$as_me: error: could not create $ac_file" >&2;}
13891 { (exit 1); exit 1; }; }
7a197a62
AK
13892 ;;
13893 :H)
13894 #
13895 # CONFIG_HEADER
13896 #
72b2cb61 13897 if test x"$ac_file" != x-; then
ec6a6fbe
AK
13898 {
13899 $as_echo "/* $configure_input */" \
13900 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13901 } >"$tmp/config.h" \
13902 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13903$as_echo "$as_me: error: could not create $ac_file" >&2;}
13904 { (exit 1); exit 1; }; }
13905 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13906 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13907$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13908 else
ec6a6fbe
AK
13909 rm -f "$ac_file"
13910 mv "$tmp/config.h" "$ac_file" \
13911 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13912$as_echo "$as_me: error: could not create $ac_file" >&2;}
13913 { (exit 1); exit 1; }; }
72b2cb61
AK
13914 fi
13915 else
ec6a6fbe
AK
13916 $as_echo "/* $configure_input */" \
13917 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13918 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13919$as_echo "$as_me: error: could not create -" >&2;}
13920 { (exit 1); exit 1; }; }
72b2cb61 13921 fi
7a197a62
AK
13922 ;;
13923
13924
13925 esac
13926
13927done # for ac_tag
795ca3e5 13928
795ca3e5 13929
ad6254c5
AK
13930{ (exit 0); exit 0; }
13931_ACEOF
795ca3e5 13932chmod +x $CONFIG_STATUS
ad6254c5
AK
13933ac_clean_files=$ac_clean_files_save
13934
ec6a6fbe
AK
13935test $ac_write_fail = 0 ||
13936 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13937$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13938 { (exit 1); exit 1; }; }
13939
ad6254c5
AK
13940
13941# configure is writing to config.log, and then calls config.status.
13942# config.status does its own redirection, appending to config.log.
13943# Unfortunately, on DOS this fails, as config.log is still kept open
13944# by configure, so config.status won't be able to write to it; its
13945# output is simply discarded. So we exec the FD to /dev/null,
13946# effectively closing config.log, so it can be properly (re)opened and
13947# appended to by config.status. When coming back to configure, we
13948# need to make the FD available again.
13949if test "$no_create" != yes; then
13950 ac_cs_success=:
13951 ac_config_status_args=
13952 test "$silent" = yes &&
13953 ac_config_status_args="$ac_config_status_args --quiet"
13954 exec 5>/dev/null
13955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13956 exec 5>>config.log
13957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13958 # would make configure fail if this is the last instruction.
13959 $ac_cs_success || { (exit 1); exit 1; }
13960fi
ec6a6fbe
AK
13961if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13962 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13963$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13964fi
795ca3e5 13965
2dc95e1c
AK
13966
13967if test x$ODIRECT != xyes; then
ec6a6fbe
AK
13968 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13969$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13970fi
This page took 1.817299 seconds and 5 git commands to generate.