]> sourceware.org Git - lvm2.git/blame - configure
pe_start can be overwritten in VG metadata, so it is not PV label-only field.
[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
661CONFDIR
662LVM1_FALLBACK
663LVM1
664LOCALEDIR
665LIB_SUFFIX
666LDDEPS
667JOBS
668INTL_PACKAGE
669INTL
670HAVE_SELINUX
671HAVE_REALTIME
672HAVE_LIBDL
673GROUP
674FSADM
675DM_LIB_PATCHLEVEL
676DM_LIB_VERSION
677DM_IOCTLS
678DM_DEVICE_UID
679DM_DEVICE_MODE
680DM_DEVICE_GID
681DM_COMPAT
682DMEVENTD
683DEVMAPPER
684DEBUG
685COPTIMISE_FLAG
686CMDLIB
687CLVMD
688CLUSTER
689CLDWHOLEARCHIVE
690CLDNOWHOLEARCHIVE
691CLDFLAGS
692BUILD_DMEVENTD
693MODPROBE_CMD
694MSGFMT
695LVM2CMD_LIB
696GENHTML
697LCOV
698POW_LIB
699LIBOBJS
700ALLOCA
701CSCOPE_CMD
702CFLOW_CMD
703RANLIB
704MKDIR_P
705SET_MAKE
706LN_S
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710EGREP
711GREP
712CPP
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720AWK
721SED
722target_os
723target_vendor
724target_cpu
725target
726host_os
727host_vendor
728host_cpu
729host
730build_os
731build_vendor
732build_cpu
733build
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL'
ad6254c5 771ac_subst_files=''
ec6a6fbe
AK
772ac_user_opts='
773enable_option_checking
774enable_static_link
775with_user
776with_group
777with_device_uid
778with_device_gid
779with_device_mode
780enable_lvm1_fallback
781with_lvm1
782with_pool
783with_cluster
784with_snapshots
785with_mirrors
786enable_readline
787enable_realtime
788with_clvmd
789enable_debug
790with_optimisation
791enable_profiling
792enable_devmapper
793enable_compat
794enable_ioctl
795enable_o_direct
796enable_cmdlib
797enable_pkgconfig
798enable_fsadm
799enable_dmeventd
800enable_selinux
801enable_nls
802with_localedir
803with_confdir
804with_staticdir
805with_usrlibdir
806with_usrsbindir
807with_dmeventd_pidfile
808with_dmeventd_path
809with_interface
810'
7a197a62
AK
811 ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
25fbec5b 817LIBS
7a197a62
AK
818CPPFLAGS
819CPP'
820
795ca3e5
AK
821
822# Initialize some variables set by options.
ad6254c5
AK
823ac_init_help=
824ac_init_version=false
ec6a6fbe
AK
825ac_unrecognized_opts=
826ac_unrecognized_sep=
795ca3e5
AK
827# The variables have the same names as the options, with
828# dashes changed to underlines.
ad6254c5 829cache_file=/dev/null
795ca3e5 830exec_prefix=NONE
795ca3e5 831no_create=
795ca3e5
AK
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
795ca3e5
AK
840verbose=
841x_includes=NONE
842x_libraries=NONE
ad6254c5
AK
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 849# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
7a197a62
AK
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
795ca3e5
AK
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
795ca3e5
AK
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
7a197a62
AK
860docdir='${datarootdir}/doc/${PACKAGE}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
795ca3e5 869
795ca3e5 870ac_prev=
7a197a62 871ac_dashdash=
795ca3e5
AK
872for ac_option
873do
795ca3e5
AK
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
7a197a62 876 eval $ac_prev=\$ac_option
795ca3e5
AK
877 ac_prev=
878 continue
879 fi
880
7a197a62
AK
881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
795ca3e5
AK
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
7a197a62
AK
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
795ca3e5
AK
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 895 bindir=$ac_optarg ;;
795ca3e5
AK
896
897 -build | --build | --buil | --bui | --bu)
ad6254c5 898 ac_prev=build_alias ;;
795ca3e5 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 900 build_alias=$ac_optarg ;;
795ca3e5
AK
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
795ca3e5 911
7a197a62 912 -datadir | --datadir | --datadi | --datad)
795ca3e5 913 ac_prev=datadir ;;
7a197a62 914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 915 datadir=$ac_optarg ;;
795ca3e5 916
7a197a62
AK
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
795ca3e5 924 -disable-* | --disable-*)
ec6a6fbe 925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 926 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 929 { (exit 1); exit 1; }; }
ec6a6fbe
AK
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
7a197a62
AK
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
795ca3e5
AK
950
951 -enable-* | --enable-*)
ec6a6fbe 952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 953 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 956 { (exit 1); exit 1; }; }
ec6a6fbe
AK
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961"enable_$ac_useropt"
962"*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
ad6254c5 975 exec_prefix=$ac_optarg ;;
795ca3e5
AK
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
ad6254c5
AK
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
795ca3e5
AK
987
988 -host | --host | --hos | --ho)
ad6254c5 989 ac_prev=host_alias ;;
795ca3e5 990 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 991 host_alias=$ac_optarg ;;
795ca3e5 992
7a197a62
AK
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
795ca3e5
AK
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1004 includedir=$ac_optarg ;;
795ca3e5
AK
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1009 infodir=$ac_optarg ;;
795ca3e5
AK
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1014 libdir=$ac_optarg ;;
795ca3e5
AK
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1021 libexecdir=$ac_optarg ;;
795ca3e5 1022
7a197a62
AK
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
795ca3e5 1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1029 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1033 localstatedir=$ac_optarg ;;
795ca3e5
AK
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1038 mandir=$ac_optarg ;;
795ca3e5
AK
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1045 | --no-cr | --no-c | -n)
795ca3e5
AK
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1059 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1064 prefix=$ac_optarg ;;
795ca3e5
AK
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1071 program_prefix=$ac_optarg ;;
795ca3e5
AK
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1078 program_suffix=$ac_optarg ;;
795ca3e5
AK
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1095 program_transform_name=$ac_optarg ;;
795ca3e5 1096
7a197a62
AK
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
795ca3e5
AK
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
ad6254c5 1115 sbindir=$ac_optarg ;;
795ca3e5
AK
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
ad6254c5 1126 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
ad6254c5 1131 site=$ac_optarg ;;
795ca3e5
AK
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1136 srcdir=$ac_optarg ;;
795ca3e5
AK
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1143 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1146 ac_prev=target_alias ;;
795ca3e5 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1148 target_alias=$ac_optarg ;;
795ca3e5
AK
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
ad6254c5
AK
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
795ca3e5
AK
1155
1156 -with-* | --with-*)
ec6a6fbe 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1158 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1161 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166"with_$ac_useropt"
1167"*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1172
1173 -without-* | --without-*)
ec6a6fbe 1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
795ca3e5
AK
1189
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1193
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1199 x_includes=$ac_optarg ;;
795ca3e5
AK
1200
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1206 x_libraries=$ac_optarg ;;
795ca3e5 1207
ec6a6fbe 1208 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1209Try \`$0 --help' for more information." >&2
1210 { (exit 1); exit 1; }; }
795ca3e5
AK
1211 ;;
1212
ad6254c5
AK
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1217 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1218 { (exit 1); exit 1; }; }
7a197a62 1219 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1220 export $ac_envvar ;;
1221
795ca3e5 1222 *)
ad6254c5 1223 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1228 ;;
1229
1230 esac
1231done
1232
1233if test -n "$ac_prev"; then
ad6254c5 1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1235 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1236 { (exit 1); exit 1; }; }
795ca3e5 1237fi
795ca3e5 1238
ec6a6fbe
AK
1239if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1243 { (exit 1); exit 1; }; } ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246fi
1247
1248# Check all directory arguments for consistency.
7a197a62
AK
1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
795ca3e5 1253do
7a197a62 1254 eval ac_val=\$$ac_var
ec6a6fbe
AK
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
ad6254c5 1262 case $ac_val in
7a197a62
AK
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1265 esac
ec6a6fbe 1266 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1267 { (exit 1); exit 1; }; }
795ca3e5
AK
1268done
1269
ad6254c5
AK
1270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
ec6a6fbe 1281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286fi
8106cdd5 1287
ad6254c5
AK
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
795ca3e5 1292
795ca3e5 1293
7a197a62
AK
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1297 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1298 { (exit 1); exit 1; }; }
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1300 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1301 { (exit 1); exit 1; }; }
1302
1303
795ca3e5
AK
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
7a197a62 1307 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
7a197a62
AK
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
795ca3e5 1331 srcdir=$ac_confdir
7a197a62 1332 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1333 srcdir=..
1334 fi
1335else
1336 ac_srcdir_defaulted=no
1337fi
7a197a62
AK
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1340 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1341 { (exit 1); exit 1; }; }
795ca3e5 1342fi
7a197a62
AK
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
ec6a6fbe 1345 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1346 { (exit 1); exit 1; }; }
7a197a62
AK
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
1358for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
ad6254c5
AK
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372\`configure' configures this package to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
ad6254c5
AK
1392Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1394 [$ac_default_prefix]
ad6254c5 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1396 [PREFIX]
ad6254c5
AK
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
ec6a6fbe
AK
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1425_ACEOF
1426
1427 cat <<\_ACEOF
1428
1429System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437
1438 cat <<\_ACEOF
1439
1440Optional Features:
ec6a6fbe 1441 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1444 --enable-static_link Use this to link the tools to their libraries
1445 statically. Default is dynamic linking
ad6254c5
AK
1446 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1447 device-mapper is missing from the kernel
1b523347 1448 --disable-readline Disable readline support
3d978351 1449 --disable-realtime Disable realtime clock support
ad6254c5 1450 --enable-debug Enable debugging
5556819a 1451 --enable-profiling Gather gcov profiling data
93bd259b
AK
1452 --disable-devmapper Disable LVM2 device-mapper interaction
1453 --enable-compat Enable support for old device-mapper versions
1454 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5
AK
1455 --disable-o_direct Disable O_DIRECT
1456 --enable-cmdlib Build shared command library
93bd259b 1457 --enable-pkgconfig Install pkgconfig support
ad6254c5 1458 --enable-fsadm Enable fsadm
15d91f5a 1459 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1460 --disable-selinux Disable selinux support
ad6254c5
AK
1461 --enable-nls Enable Native Language Support
1462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1466 --with-user=USER Set the owner of installed files [USER=root]
1467 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1468 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1469 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1470 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1471 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1472 TYPE=internal
1473 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1474 TYPE=internal
1475 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1476 TYPE=internal
1477 --with-snapshots=TYPE Snapshot support: internal/shared/none
1478 TYPE=internal
1479 --with-mirrors=TYPE Mirror support: internal/shared/none
1480 TYPE=internal
ec6a6fbe 1481 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
a266258f 1482 TYPE=none
d0191583
JM
1483 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1484 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1485 --with-confdir=DIR Configuration files in DIR /etc
1486 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
68f2de6d
AK
1487 --with-usrlibdir=DIR
1488 --with-usrsbindir=DIR
93bd259b
AK
1489 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1490 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1491 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1492
1493Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
25fbec5b 1498 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1501 CPP C preprocessor
1502
1503Use these variables to override the choices made by `configure' or to help
1504it to find libraries and programs with nonstandard names/locations.
1505
1506_ACEOF
7a197a62 1507ac_status=$?
ad6254c5
AK
1508fi
1509
1510if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
ad6254c5 1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
ad6254c5
AK
1516 ac_builddir=.
1517
7a197a62
AK
1518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
ec6a6fbe 1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1522 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1533
1534case $srcdir in
7a197a62 1535 .) # We are building in place.
ad6254c5 1536 ac_srcdir=.
7a197a62
AK
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1540 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1547esac
7a197a62
AK
1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1558 else
ec6a6fbe 1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1562 done
1563fi
1564
7a197a62 1565test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1566if $ac_init_version; then
1567 cat <<\_ACEOF
7a197a62 1568configure
ec6a6fbe 1569generated by GNU Autoconf 2.63
ad6254c5 1570
7a197a62 1571Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 15722002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
1575_ACEOF
7a197a62 1576 exit
ad6254c5 1577fi
7a197a62 1578cat >config.log <<_ACEOF
ad6254c5
AK
1579This file contains any messages produced by compilers while
1580running configure, to aid debugging if configure makes a mistake.
1581
1582It was created by $as_me, which was
ec6a6fbe 1583generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1584
1585 $ $0 $@
1586
1587_ACEOF
7a197a62 1588exec 5>>config.log
ad6254c5
AK
1589{
1590cat <<_ASUNAME
1591## --------- ##
1592## Platform. ##
1593## --------- ##
1594
1595hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603
1604/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1607/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1608/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611
1612_ASUNAME
1613
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
ec6a6fbe 1619 $as_echo "PATH: $as_dir"
ad6254c5 1620done
7a197a62 1621IFS=$as_save_IFS
ad6254c5
AK
1622
1623} >&5
1624
1625cat >&5 <<_ACEOF
1626
1627
1628## ----------- ##
1629## Core tests. ##
1630## ----------- ##
1631
1632_ACEOF
1633
1634
1635# Keep a trace of the command line.
1636# Strip out --no-create and --no-recursion so they do not pile up.
1637# Strip out --silent because we don't want to record it for future runs.
1638# Also quote any args containing shell meta-characters.
1639# Make two passes to allow for proper duplicate-argument suppression.
1640ac_configure_args=
1641ac_configure_args0=
1642ac_configure_args1=
ad6254c5
AK
1643ac_must_keep_next=false
1644for ac_pass in 1 2
1645do
1646 for ac_arg
1647 do
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
7a197a62 1653 *\'*)
ec6a6fbe 1654 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 2)
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
8a2fc586 1661 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1662 else
8a2fc586
AK
1663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1671 ;;
1672 -* ) ac_must_keep_next=true ;;
1673 esac
ad6254c5 1674 fi
7a197a62 1675 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1676 ;;
1677 esac
1678 done
1679done
1680$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683# When interrupted or exit'd, cleanup temporary files, and complete
1684# config.log. We remove comments because anyway the quotes in there
1685# would cause problems or look ugly.
7a197a62
AK
1686# WARNING: Use '\'' to represent an apostrophe within the trap.
1687# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1688trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1690 {
1691 echo
1692
1693 cat <<\_ASBOX
1694## ---------------- ##
1695## Cache variables. ##
1696## ---------------- ##
1697_ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1700(
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
ec6a6fbe
AK
1706 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1707$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
ec6a6fbe 1711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
ad6254c5 1716 (set) 2>&1 |
7a197a62
AK
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
ad6254c5 1719 sed -n \
7a197a62
AK
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
ad6254c5 1723 *)
7a197a62 1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1725 ;;
7a197a62
AK
1726 esac |
1727 sort
1728)
ad6254c5
AK
1729 echo
1730
1731 cat <<\_ASBOX
1732## ----------------- ##
1733## Output variables. ##
1734## ----------------- ##
1735_ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1738 do
7a197a62
AK
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
ec6a6fbe 1741 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1742 esac
ec6a6fbe 1743 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1744 done | sort
1745 echo
1746
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
7a197a62
AK
1749## ------------------- ##
1750## File substitutions. ##
1751## ------------------- ##
ad6254c5
AK
1752_ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1755 do
7a197a62
AK
1756 eval ac_val=\$$ac_var
1757 case $ac_val in
ec6a6fbe 1758 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1759 esac
ec6a6fbe 1760 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1761 done | sort
1762 echo
1763 fi
1764
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767## ----------- ##
1768## confdefs.h. ##
1769## ----------- ##
1770_ASBOX
1771 echo
7a197a62 1772 cat confdefs.h
ad6254c5
AK
1773 echo
1774 fi
1775 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1776 $as_echo "$as_me: caught signal $ac_signal"
1777 $as_echo "$as_me: exit $exit_status"
ad6254c5 1778 } >&5
7a197a62
AK
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1781 exit $exit_status
7a197a62 1782' 0
ad6254c5
AK
1783for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785done
1786ac_signal=0
1787
1788# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1789rm -f -r conftest* confdefs.h
ad6254c5
AK
1790
1791# Predefined preprocessor variables.
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_NAME "$PACKAGE_NAME"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_VERSION "$PACKAGE_VERSION"
1805_ACEOF
8106cdd5 1806
ad6254c5
AK
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_STRING "$PACKAGE_STRING"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815_ACEOF
1816
1817
1818# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1819# Prefer an explicitly selected file to automatically selected ones.
1820ac_site_file1=NONE
1821ac_site_file2=NONE
7a197a62 1822if test -n "$CONFIG_SITE"; then
ec6a6fbe 1823 ac_site_file1=$CONFIG_SITE
7a197a62 1824elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1825 ac_site_file1=$prefix/share/config.site
1826 ac_site_file2=$prefix/etc/config.site
7a197a62 1827else
ec6a6fbe
AK
1828 ac_site_file1=$ac_default_prefix/share/config.site
1829 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1830fi
ec6a6fbe 1831for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1832do
ec6a6fbe 1833 test "x$ac_site_file" = xNONE && continue
795ca3e5 1834 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1835 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1837 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1838 . "$ac_site_file"
1839 fi
1840done
1841
1842if test -r "$cache_file"; then
ad6254c5
AK
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
ec6a6fbe
AK
1846 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1848 case $cache_file in
7a197a62
AK
1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
ad6254c5
AK
1851 esac
1852 fi
795ca3e5 1853else
ec6a6fbe
AK
1854 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1856 >$cache_file
1857fi
1858
1859# Check that the precious variables saved in the cache have kept the same
1860# value.
1861ac_cache_corrupted=false
7a197a62 1862for ac_var in $ac_precious_vars; do
ad6254c5
AK
1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1867 case $ac_old_set,$ac_new_set in
1868 set,)
ec6a6fbe
AK
1869 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1871 ac_cache_corrupted=: ;;
1872 ,set)
ec6a6fbe
AK
1873 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1875 ac_cache_corrupted=: ;;
1876 ,);;
1877 *)
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1879 # differences in whitespace do not lead to failure.
1880 ac_old_val_w=`echo x $ac_old_val`
1881 ac_new_val_w=`echo x $ac_new_val`
1882 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1883 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 ac_cache_corrupted=:
1886 else
1887 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1888$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1889 eval $ac_var=\$ac_old_val
1890 fi
1891 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1892$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1893 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1894$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1895 fi;;
1896 esac
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1899 case $ac_new_val in
ec6a6fbe 1900 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1901 *) ac_arg=$ac_var=$ac_new_val ;;
1902 esac
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 esac
1907 fi
1908done
1909if $ac_cache_corrupted; then
ec6a6fbe
AK
1910 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1916 { (exit 1); exit 1; }; }
795ca3e5
AK
1917fi
1918
ad6254c5
AK
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
7a197a62
AK
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1940
795ca3e5
AK
1941
1942
7a197a62 1943ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1944
1945
80992638 1946################################################################################
795ca3e5 1947ac_aux_dir=
7a197a62
AK
1948for ac_dir in autoconf "$srcdir"/autoconf; do
1949 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install-sh -c"
1952 break
7a197a62 1953 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/install.sh -c"
1956 break
7a197a62 1957 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 break
795ca3e5
AK
1961 fi
1962done
1963if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
1964 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1965$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1966 { (exit 1); exit 1; }; }
795ca3e5 1967fi
7a197a62
AK
1968
1969# These three variables are undocumented and unsupported,
1970# and are intended to be withdrawn in a future Autoconf release.
1971# They can cause serious problems if a builder's source tree is in a directory
1972# whose full name contains unusual characters.
1973ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1974ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1975ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976
8ce0cbda
AK
1977
1978
ad6254c5 1979################################################################################
8ce0cbda 1980# Make sure we can run config.sub.
7a197a62 1981$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
1982 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1983$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1984 { (exit 1); exit 1; }; }
1985
ec6a6fbe
AK
1986{ $as_echo "$as_me:$LINENO: checking build system type" >&5
1987$as_echo_n "checking build system type... " >&6; }
ad6254c5 1988if test "${ac_cv_build+set}" = set; then
ec6a6fbe 1989 $as_echo_n "(cached) " >&6
ad6254c5 1990else
7a197a62
AK
1991 ac_build_alias=$build_alias
1992test "x$ac_build_alias" = x &&
1993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1994test "x$ac_build_alias" = x &&
ec6a6fbe
AK
1995 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1996$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1997 { (exit 1); exit 1; }; }
7a197a62 1998ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
1999 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2000$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2001 { (exit 1); exit 1; }; }
2002
2003fi
ec6a6fbe
AK
2004{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2005$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2006case $ac_cv_build in
2007*-*-*) ;;
ec6a6fbe
AK
2008*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2009$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2010 { (exit 1); exit 1; }; };;
2011esac
ad6254c5 2012build=$ac_cv_build
7a197a62
AK
2013ac_save_IFS=$IFS; IFS='-'
2014set x $ac_cv_build
2015shift
2016build_cpu=$1
2017build_vendor=$2
2018shift; shift
2019# Remember, the first character of IFS is used to create $*,
2020# except with old shells:
2021build_os=$*
2022IFS=$ac_save_IFS
2023case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2024
2025
ec6a6fbe
AK
2026{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2027$as_echo_n "checking host system type... " >&6; }
ad6254c5 2028if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2029 $as_echo_n "(cached) " >&6
ad6254c5 2030else
7a197a62
AK
2031 if test "x$host_alias" = x; then
2032 ac_cv_host=$ac_cv_build
2033else
2034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2035 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2036$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2037 { (exit 1); exit 1; }; }
7a197a62 2038fi
ad6254c5
AK
2039
2040fi
ec6a6fbe
AK
2041{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2042$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2043case $ac_cv_host in
2044*-*-*) ;;
ec6a6fbe
AK
2045*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2046$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2047 { (exit 1); exit 1; }; };;
2048esac
ad6254c5 2049host=$ac_cv_host
7a197a62
AK
2050ac_save_IFS=$IFS; IFS='-'
2051set x $ac_cv_host
2052shift
2053host_cpu=$1
2054host_vendor=$2
2055shift; shift
2056# Remember, the first character of IFS is used to create $*,
2057# except with old shells:
2058host_os=$*
2059IFS=$ac_save_IFS
2060case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2061
2062
ec6a6fbe
AK
2063{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2064$as_echo_n "checking target system type... " >&6; }
ad6254c5 2065if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2066 $as_echo_n "(cached) " >&6
ad6254c5 2067else
7a197a62
AK
2068 if test "x$target_alias" = x; then
2069 ac_cv_target=$ac_cv_host
2070else
2071 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2072 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2073$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2074 { (exit 1); exit 1; }; }
7a197a62 2075fi
8ce0cbda 2076
ad6254c5 2077fi
ec6a6fbe
AK
2078{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2079$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2080case $ac_cv_target in
2081*-*-*) ;;
ec6a6fbe
AK
2082*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2083$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2084 { (exit 1); exit 1; }; };;
2085esac
ad6254c5 2086target=$ac_cv_target
7a197a62
AK
2087ac_save_IFS=$IFS; IFS='-'
2088set x $ac_cv_target
2089shift
2090target_cpu=$1
2091target_vendor=$2
2092shift; shift
2093# Remember, the first character of IFS is used to create $*,
2094# except with old shells:
2095target_os=$*
2096IFS=$ac_save_IFS
2097case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2098
8ce0cbda 2099
ad6254c5
AK
2100# The aliases save the names the user supplied, while $host etc.
2101# will get canonicalized.
2102test -n "$target_alias" &&
8ce0cbda
AK
2103 test "$program_prefix$program_suffix$program_transform_name" = \
2104 NONENONEs,x,x, &&
2105 program_prefix=${target_alias}-
2106
8ce0cbda
AK
2107case "$host_os" in
2108 linux*)
8ce0cbda
AK
2109 COPTIMISE_FLAG="-O2"
2110 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2111 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2112 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2113 LDDEPS="$LDDEPS .export.sym"
2114 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2115 LIB_SUFFIX=so
8ce0cbda
AK
2116 DEVMAPPER=yes
2117 ODIRECT=yes
d0191583 2118 DM_IOCTLS=yes
8ce0cbda 2119 SELINUX=yes
8b1a3214 2120 REALTIME=yes
8ce0cbda 2121 CLUSTER=internal
93bd259b 2122 FSADM=yes
d0191583 2123 ;;
8ce0cbda
AK
2124 darwin*)
2125 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2126 COPTIMISE_FLAG="-O2"
2127 CLDFLAGS="$CLDFLAGS"
2128 CLDWHOLEARCHIVE="-all_load"
2129 CLDNOWHOLEARCHIVE=
d0191583 2130 LIB_SUFFIX=dylib
a653923f 2131 DEVMAPPER=yes
8ce0cbda 2132 ODIRECT=no
d0191583 2133 DM_IOCTLS=no
8ce0cbda 2134 SELINUX=no
8b1a3214 2135 REALTIME=no
8ce0cbda 2136 CLUSTER=none
d0191583
JM
2137 FSADM=no
2138 ;;
8ce0cbda
AK
2139esac
2140
80992638 2141################################################################################
ec6a6fbe
AK
2142{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2143$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2144if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2145 $as_echo_n "(cached) " >&6
5951ef33
AK
2146else
2147 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2148 for ac_i in 1 2 3 4 5 6 7; do
2149 ac_script="$ac_script$as_nl$ac_script"
2150 done
ec6a6fbe 2151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2152 $as_unset ac_script || ac_script=
ec6a6fbe 2153 if test -z "$SED"; then
5951ef33 2154 ac_path_SED_found=false
ec6a6fbe
AK
2155 # Loop through the user's path and test for each of PROGNAME-LIST
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2157for as_dir in $PATH
2158do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_prog in sed gsed; do
ec6a6fbe
AK
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2164 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2165# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2166 # Check for GNU $ac_path_SED
2167case `"$ac_path_SED" --version 2>&1` in
2168*GNU*)
2169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2170*)
2171 ac_count=0
ec6a6fbe 2172 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2173 while :
2174 do
2175 cat "conftest.in" "conftest.in" >"conftest.tmp"
2176 mv "conftest.tmp" "conftest.in"
2177 cp "conftest.in" "conftest.nl"
ec6a6fbe 2178 $as_echo '' >> "conftest.nl"
5951ef33
AK
2179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2181 ac_count=`expr $ac_count + 1`
2182 if test $ac_count -gt ${ac_path_SED_max-0}; then
2183 # Best one so far, save it but keep looking for a better one
2184 ac_cv_path_SED="$ac_path_SED"
2185 ac_path_SED_max=$ac_count
2186 fi
2187 # 10*(2^10) chars as input seems more than enough
2188 test $ac_count -gt 10 && break
2189 done
2190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2191esac
2192
ec6a6fbe
AK
2193 $ac_path_SED_found && break 3
2194 done
5951ef33
AK
2195 done
2196done
5951ef33 2197IFS=$as_save_IFS
ec6a6fbe
AK
2198 if test -z "$ac_cv_path_SED"; then
2199 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2200$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2201 { (exit 1); exit 1; }; }
ec6a6fbe 2202 fi
5951ef33
AK
2203else
2204 ac_cv_path_SED=$SED
2205fi
2206
2207fi
ec6a6fbe
AK
2208{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2209$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2210 SED="$ac_cv_path_SED"
2211 rm -f conftest.sed
2212
ad6254c5 2213for ac_prog in gawk mawk nawk awk
795ca3e5 2214do
ad6254c5 2215 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2216set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2217{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2218$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2219if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2220 $as_echo_n "(cached) " >&6
795ca3e5
AK
2221else
2222 if test -n "$AWK"; then
2223 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2224else
ad6254c5
AK
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2232 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2234 break 2
2235 fi
2236done
2237done
7a197a62 2238IFS=$as_save_IFS
ad6254c5 2239
795ca3e5
AK
2240fi
2241fi
ad6254c5 2242AWK=$ac_cv_prog_AWK
795ca3e5 2243if test -n "$AWK"; then
ec6a6fbe
AK
2244 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2245$as_echo "$AWK" >&6; }
795ca3e5 2246else
ec6a6fbe
AK
2247 { $as_echo "$as_me:$LINENO: result: no" >&5
2248$as_echo "no" >&6; }
795ca3e5
AK
2249fi
2250
7a197a62 2251
ad6254c5
AK
2252 test -n "$AWK" && break
2253done
2254
2255ac_ext=c
2256ac_cpp='$CPP $CPPFLAGS'
2257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2262set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2264$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2265if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2266 $as_echo_n "(cached) " >&6
ad6254c5
AK
2267else
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC="$CC" # Let the user override the test.
2270else
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2280 break 2
2281 fi
2282done
8106cdd5 2283done
7a197a62 2284IFS=$as_save_IFS
8106cdd5 2285
ad6254c5
AK
2286fi
2287fi
2288CC=$ac_cv_prog_CC
2289if test -n "$CC"; then
ec6a6fbe
AK
2290 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2291$as_echo "$CC" >&6; }
ad6254c5 2292else
ec6a6fbe
AK
2293 { $as_echo "$as_me:$LINENO: result: no" >&5
2294$as_echo "no" >&6; }
ad6254c5
AK
2295fi
2296
7a197a62 2297
ad6254c5
AK
2298fi
2299if test -z "$ac_cv_prog_CC"; then
2300 ac_ct_CC=$CC
2301 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2302set dummy gcc; ac_word=$2
ec6a6fbe
AK
2303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2304$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2306 $as_echo_n "(cached) " >&6
ad6254c5
AK
2307else
2308 if test -n "$ac_ct_CC"; then
2309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2310else
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2318 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2320 break 2
2321 fi
2322done
2323done
7a197a62 2324IFS=$as_save_IFS
ad6254c5
AK
2325
2326fi
2327fi
2328ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2330 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2332else
ec6a6fbe
AK
2333 { $as_echo "$as_me:$LINENO: result: no" >&5
2334$as_echo "no" >&6; }
ad6254c5
AK
2335fi
2336
7a197a62
AK
2337 if test "x$ac_ct_CC" = x; then
2338 CC=""
2339 else
2340 case $cross_compiling:$ac_tool_warned in
2341yes:)
ec6a6fbe
AK
2342{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2344ac_tool_warned=yes ;;
2345esac
2346 CC=$ac_ct_CC
2347 fi
ad6254c5
AK
2348else
2349 CC="$ac_cv_prog_CC"
2350fi
2351
2352if test -z "$CC"; then
7a197a62
AK
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2355set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2357$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2358if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2359 $as_echo_n "(cached) " >&6
8106cdd5
AK
2360else
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2363else
ad6254c5
AK
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2371 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2373 break 2
2374 fi
2375done
2376done
7a197a62 2377IFS=$as_save_IFS
ad6254c5 2378
8106cdd5
AK
2379fi
2380fi
ad6254c5 2381CC=$ac_cv_prog_CC
8106cdd5 2382if test -n "$CC"; then
ec6a6fbe
AK
2383 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2384$as_echo "$CC" >&6; }
ad6254c5 2385else
ec6a6fbe
AK
2386 { $as_echo "$as_me:$LINENO: result: no" >&5
2387$as_echo "no" >&6; }
ad6254c5
AK
2388fi
2389
8106cdd5 2390
7a197a62 2391 fi
ad6254c5 2392fi
795ca3e5
AK
2393if test -z "$CC"; then
2394 # Extract the first word of "cc", so it can be a program name with args.
2395set dummy cc; ac_word=$2
ec6a6fbe
AK
2396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2397$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2398if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2399 $as_echo_n "(cached) " >&6
795ca3e5
AK
2400else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403else
795ca3e5 2404 ac_prog_rejected=no
ad6254c5
AK
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2413 ac_prog_rejected=yes
2414 continue
2415 fi
2416 ac_cv_prog_CC="cc"
ec6a6fbe 2417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2418 break 2
2419 fi
2420done
2421done
7a197a62 2422IFS=$as_save_IFS
ad6254c5 2423
795ca3e5
AK
2424if test $ac_prog_rejected = yes; then
2425 # We found a bogon in the path, so make sure we never use it.
2426 set dummy $ac_cv_prog_CC
2427 shift
ad6254c5 2428 if test $# != 0; then
795ca3e5
AK
2429 # We chose a different compiler from the bogus one.
2430 # However, it has the same basename, so the bogon will be chosen
2431 # first if we set CC to just the basename; use the full file name.
2432 shift
ad6254c5 2433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2434 fi
2435fi
2436fi
2437fi
ad6254c5 2438CC=$ac_cv_prog_CC
795ca3e5 2439if test -n "$CC"; then
ec6a6fbe
AK
2440 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2441$as_echo "$CC" >&6; }
795ca3e5 2442else
ec6a6fbe
AK
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444$as_echo "no" >&6; }
795ca3e5
AK
2445fi
2446
7a197a62 2447
ad6254c5
AK
2448fi
2449if test -z "$CC"; then
2450 if test -n "$ac_tool_prefix"; then
7a197a62 2451 for ac_prog in cl.exe
ad6254c5
AK
2452 do
2453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2457if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2458 $as_echo_n "(cached) " >&6
795ca3e5
AK
2459else
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2462else
ad6254c5
AK
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2472 break 2
2473 fi
2474done
2475done
7a197a62 2476IFS=$as_save_IFS
ad6254c5 2477
795ca3e5
AK
2478fi
2479fi
ad6254c5 2480CC=$ac_cv_prog_CC
795ca3e5 2481if test -n "$CC"; then
ec6a6fbe
AK
2482 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2483$as_echo "$CC" >&6; }
795ca3e5 2484else
ec6a6fbe
AK
2485 { $as_echo "$as_me:$LINENO: result: no" >&5
2486$as_echo "no" >&6; }
795ca3e5 2487fi
ad6254c5 2488
7a197a62 2489
ad6254c5
AK
2490 test -n "$CC" && break
2491 done
2492fi
2493if test -z "$CC"; then
2494 ac_ct_CC=$CC
7a197a62 2495 for ac_prog in cl.exe
ad6254c5
AK
2496do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2499{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2501if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2502 $as_echo_n "(cached) " >&6
ad6254c5
AK
2503else
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2514 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2516 break 2
795ca3e5 2517 fi
ad6254c5
AK
2518done
2519done
7a197a62 2520IFS=$as_save_IFS
ad6254c5
AK
2521
2522fi
2523fi
2524ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2526 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2528else
ec6a6fbe
AK
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530$as_echo "no" >&6; }
795ca3e5
AK
2531fi
2532
7a197a62 2533
ad6254c5
AK
2534 test -n "$ac_ct_CC" && break
2535done
795ca3e5 2536
7a197a62
AK
2537 if test "x$ac_ct_CC" = x; then
2538 CC=""
2539 else
2540 case $cross_compiling:$ac_tool_warned in
2541yes:)
ec6a6fbe
AK
2542{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2544ac_tool_warned=yes ;;
2545esac
2546 CC=$ac_ct_CC
2547 fi
ad6254c5
AK
2548fi
2549
2550fi
2551
2552
ec6a6fbe
AK
2553test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2556See \`config.log' for more details." >&5
ec6a6fbe 2557$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2558See \`config.log' for more details." >&2;}
ec6a6fbe 2559 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2560
2561# Provide some information about the compiler.
ec6a6fbe
AK
2562$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2563set X $ac_compile
2564ac_compiler=$2
7a197a62
AK
2565{ (ac_try="$ac_compiler --version >&5"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
ec6a6fbe
AK
2570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571$as_echo "$ac_try_echo") >&5
7a197a62 2572 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2573 ac_status=$?
ec6a6fbe 2574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2575 (exit $ac_status); }
7a197a62
AK
2576{ (ac_try="$ac_compiler -v >&5"
2577case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
ec6a6fbe
AK
2581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2582$as_echo "$ac_try_echo") >&5
7a197a62 2583 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2584 ac_status=$?
ec6a6fbe 2585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2586 (exit $ac_status); }
7a197a62
AK
2587{ (ac_try="$ac_compiler -V >&5"
2588case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591esac
ec6a6fbe
AK
2592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2593$as_echo "$ac_try_echo") >&5
7a197a62 2594 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2595 ac_status=$?
ec6a6fbe 2596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2597 (exit $ac_status); }
2598
2599cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
2605
2606int
2607main ()
2608{
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614ac_clean_files_save=$ac_clean_files
ec6a6fbe 2615ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2616# Try to create an executable without -o first, disregard a.out.
2617# It will help us diagnose broken compilers, and finding out an intuition
2618# of exeext.
ec6a6fbe
AK
2619{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2620$as_echo_n "checking for C compiler default output file name... " >&6; }
2621ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2622
2623# The possible output files:
2624ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2625
7a197a62
AK
2626ac_rmfiles=
2627for ac_file in $ac_files
2628do
2629 case $ac_file in
ec6a6fbe 2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2631 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2632 esac
2633done
2634rm -f $ac_rmfiles
2635
2636if { (ac_try="$ac_link_default"
2637case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
ec6a6fbe
AK
2641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642$as_echo "$ac_try_echo") >&5
7a197a62 2643 (eval "$ac_link_default") 2>&5
ad6254c5 2644 ac_status=$?
ec6a6fbe 2645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2646 (exit $ac_status); }; then
7a197a62
AK
2647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2648# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2649# in a Makefile. We should not override ac_cv_exeext if it was cached,
2650# so that the user can short-circuit this test for compilers unknown to
2651# Autoconf.
25fbec5b 2652for ac_file in $ac_files ''
ad6254c5
AK
2653do
2654 test -f "$ac_file" || continue
2655 case $ac_file in
ec6a6fbe 2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2657 ;;
ad6254c5 2658 [ab].out )
8a2fc586
AK
2659 # We found the default executable, but exeext='' is most
2660 # certainly right.
2661 break;;
ad6254c5 2662 *.* )
7a197a62
AK
2663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2664 then :; else
2665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2666 fi
2667 # We set ac_cv_exeext here because the later test for it is not
2668 # safe: cross compilers may not add the suffix if given an `-o'
2669 # argument, so we may need to know it at that point already.
2670 # Even if this section looks crufty: it has the advantage of
2671 # actually working.
8a2fc586 2672 break;;
ad6254c5 2673 * )
8a2fc586 2674 break;;
ad6254c5
AK
2675 esac
2676done
7a197a62
AK
2677test "$ac_cv_exeext" = no && ac_cv_exeext=
2678
ad6254c5 2679else
25fbec5b
AK
2680 ac_file=''
2681fi
2682
ec6a6fbe
AK
2683{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2684$as_echo "$ac_file" >&6; }
25fbec5b 2685if test -z "$ac_file"; then
ec6a6fbe 2686 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2687sed 's/^/| /' conftest.$ac_ext >&5
2688
ec6a6fbe
AK
2689{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2692See \`config.log' for more details." >&5
ec6a6fbe 2693$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2694See \`config.log' for more details." >&2;}
ec6a6fbe 2695 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2696fi
2697
2698ac_exeext=$ac_cv_exeext
ad6254c5 2699
7a197a62 2700# Check that the compiler produces executables we can run. If not, either
ad6254c5 2701# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2702{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2703$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2704# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2705# If not cross compiling, check that we can run a simple program.
2706if test "$cross_compiling" != yes; then
2707 if { ac_try='./$ac_file'
7a197a62
AK
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
ec6a6fbe
AK
2712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2713$as_echo "$ac_try_echo") >&5
7a197a62 2714 (eval "$ac_try") 2>&5
ad6254c5 2715 ac_status=$?
ec6a6fbe 2716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2717 (exit $ac_status); }; }; then
2718 cross_compiling=no
795ca3e5 2719 else
ad6254c5
AK
2720 if test "$cross_compiling" = maybe; then
2721 cross_compiling=yes
2722 else
ec6a6fbe
AK
2723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2726If you meant to cross compile, use \`--host'.
2727See \`config.log' for more details." >&5
ec6a6fbe 2728$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2729If you meant to cross compile, use \`--host'.
2730See \`config.log' for more details." >&2;}
ec6a6fbe 2731 { (exit 1); exit 1; }; }; }
ad6254c5 2732 fi
795ca3e5 2733 fi
80992638 2734fi
ec6a6fbe
AK
2735{ $as_echo "$as_me:$LINENO: result: yes" >&5
2736$as_echo "yes" >&6; }
ad6254c5 2737
ec6a6fbe 2738rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2739ac_clean_files=$ac_clean_files_save
7a197a62 2740# Check that the compiler produces executables we can run. If not, either
ad6254c5 2741# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2742{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2743$as_echo_n "checking whether we are cross compiling... " >&6; }
2744{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2745$as_echo "$cross_compiling" >&6; }
7a197a62 2746
ec6a6fbe
AK
2747{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2748$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2749if { (ac_try="$ac_link"
2750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
ec6a6fbe
AK
2754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2755$as_echo "$ac_try_echo") >&5
7a197a62 2756 (eval "$ac_link") 2>&5
ad6254c5 2757 ac_status=$?
ec6a6fbe 2758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2759 (exit $ac_status); }; then
2760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2761# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2762# work properly (i.e., refer to `conftest.exe'), while it won't with
2763# `rm'.
2764for ac_file in conftest.exe conftest conftest.*; do
2765 test -f "$ac_file" || continue
2766 case $ac_file in
ec6a6fbe 2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2769 break;;
ad6254c5
AK
2770 * ) break;;
2771 esac
2772done
80992638 2773else
ec6a6fbe
AK
2774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2777See \`config.log' for more details." >&5
ec6a6fbe 2778$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2779See \`config.log' for more details." >&2;}
ec6a6fbe 2780 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2781fi
2782
2783rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2784{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2785$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2786
2787rm -f conftest.$ac_ext
2788EXEEXT=$ac_cv_exeext
2789ac_exeext=$EXEEXT
ec6a6fbe
AK
2790{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2791$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2792if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2793 $as_echo_n "(cached) " >&6
795ca3e5 2794else
ad6254c5 2795 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2796/* confdefs.h. */
2797_ACEOF
2798cat confdefs.h >>conftest.$ac_ext
2799cat >>conftest.$ac_ext <<_ACEOF
2800/* end confdefs.h. */
2801
2802int
2803main ()
2804{
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810rm -f conftest.o conftest.obj
7a197a62
AK
2811if { (ac_try="$ac_compile"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
ec6a6fbe
AK
2816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2817$as_echo "$ac_try_echo") >&5
7a197a62 2818 (eval "$ac_compile") 2>&5
ad6254c5 2819 ac_status=$?
ec6a6fbe 2820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2821 (exit $ac_status); }; then
7a197a62
AK
2822 for ac_file in conftest.o conftest.obj conftest.*; do
2823 test -f "$ac_file" || continue;
ad6254c5 2824 case $ac_file in
ec6a6fbe 2825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2826 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2827 break;;
2828 esac
2829done
2830else
ec6a6fbe 2831 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
ec6a6fbe
AK
2834{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2837See \`config.log' for more details." >&5
ec6a6fbe 2838$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2839See \`config.log' for more details." >&2;}
ec6a6fbe 2840 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2841fi
2842
2843rm -f conftest.$ac_cv_objext conftest.$ac_ext
2844fi
ec6a6fbe
AK
2845{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2846$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2847OBJEXT=$ac_cv_objext
2848ac_objext=$OBJEXT
ec6a6fbe
AK
2849{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2850$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2851if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2852 $as_echo_n "(cached) " >&6
ad6254c5
AK
2853else
2854 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2855/* confdefs.h. */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h. */
2860
2861int
2862main ()
2863{
2864#ifndef __GNUC__
2865 choke me
2866#endif
80992638 2867
ad6254c5
AK
2868 ;
2869 return 0;
2870}
2871_ACEOF
2872rm -f conftest.$ac_objext
7a197a62
AK
2873if { (ac_try="$ac_compile"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
ec6a6fbe
AK
2878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879$as_echo "$ac_try_echo") >&5
7a197a62 2880 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2881 ac_status=$?
8a2fc586
AK
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
ec6a6fbe 2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2886 (exit $ac_status); } && {
2887 test -z "$ac_c_werror_flag" ||
2888 test ! -s conftest.err
2889 } && test -s conftest.$ac_objext; then
ad6254c5 2890 ac_compiler_gnu=yes
80992638 2891else
ec6a6fbe 2892 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
7a197a62 2895 ac_compiler_gnu=no
8106cdd5 2896fi
7a197a62
AK
2897
2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2899ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2900
ad6254c5 2901fi
ec6a6fbe
AK
2902{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2903$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2904if test $ac_compiler_gnu = yes; then
2905 GCC=yes
2906else
2907 GCC=
2908fi
ad6254c5
AK
2909ac_test_CFLAGS=${CFLAGS+set}
2910ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
2911{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2912$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2913if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 2914 $as_echo_n "(cached) " >&6
795ca3e5 2915else
7a197a62
AK
2916 ac_save_c_werror_flag=$ac_c_werror_flag
2917 ac_c_werror_flag=yes
2918 ac_cv_prog_cc_g=no
2919 CFLAGS="-g"
2920 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926
2927int
2928main ()
2929{
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext
7a197a62
AK
2936if { (ac_try="$ac_compile"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
ec6a6fbe
AK
2941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942$as_echo "$ac_try_echo") >&5
7a197a62 2943 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2944 ac_status=$?
8a2fc586
AK
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
ec6a6fbe 2948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
7a197a62
AK
2953 ac_cv_prog_cc_g=yes
2954else
ec6a6fbe 2955 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 CFLAGS=""
2959 cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h. */
2965
2966int
2967main ()
2968{
2969
2970 ;
2971 return 0;
2972}
2973_ACEOF
2974rm -f conftest.$ac_objext
2975if { (ac_try="$ac_compile"
2976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
ec6a6fbe
AK
2980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981$as_echo "$ac_try_echo") >&5
7a197a62 2982 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2983 ac_status=$?
7a197a62
AK
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
ec6a6fbe 2987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2988 (exit $ac_status); } && {
2989 test -z "$ac_c_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
7a197a62
AK
2992 :
2993else
ec6a6fbe 2994 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ac_c_werror_flag=$ac_save_c_werror_flag
2998 CFLAGS="-g"
2999 cat >conftest.$ac_ext <<_ACEOF
3000/* confdefs.h. */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h. */
3005
3006int
3007main ()
3008{
3009
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext
3015if { (ac_try="$ac_compile"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
ec6a6fbe
AK
3020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021$as_echo "$ac_try_echo") >&5
7a197a62 3022 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3023 ac_status=$?
7a197a62
AK
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
ec6a6fbe 3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3028 (exit $ac_status); } && {
3029 test -z "$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3031 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3032 ac_cv_prog_cc_g=yes
3033else
ec6a6fbe 3034 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3035sed 's/^/| /' conftest.$ac_ext >&5
80992638 3036
7a197a62
AK
3037
3038fi
3039
3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041fi
3042
3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3044fi
7a197a62
AK
3045
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3048fi
ec6a6fbe
AK
3049{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3050$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3051if test "$ac_test_CFLAGS" = set; then
ad6254c5 3052 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3053elif test $ac_cv_prog_cc_g = yes; then
3054 if test "$GCC" = yes; then
3055 CFLAGS="-g -O2"
3056 else
3057 CFLAGS="-g"
3058 fi
3059else
3060 if test "$GCC" = yes; then
3061 CFLAGS="-O2"
3062 else
3063 CFLAGS=
3064 fi
3065fi
ec6a6fbe
AK
3066{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3067$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3068if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3069 $as_echo_n "(cached) " >&6
ad6254c5 3070else
7a197a62 3071 ac_cv_prog_cc_c89=no
ad6254c5
AK
3072ac_save_CC=$CC
3073cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
3079#include <stdarg.h>
3080#include <stdio.h>
3081#include <sys/types.h>
3082#include <sys/stat.h>
3083/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3084struct buf { int x; };
3085FILE * (*rcsopen) (struct buf *, struct stat *, int);
3086static char *e (p, i)
3087 char **p;
3088 int i;
3089{
3090 return p[i];
3091}
3092static char *f (char * (*g) (char **, int), char **p, ...)
3093{
3094 char *s;
3095 va_list v;
3096 va_start (v,p);
3097 s = g (p, va_arg (v,int));
3098 va_end (v);
3099 return s;
3100}
8a2fc586
AK
3101
3102/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3103 function prototypes and stuff, but not '\xHH' hex character constants.
3104 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3105 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3107 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3108 that's true only with -std. */
8a2fc586
AK
3109int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3110
7a197a62
AK
3111/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3112 inside strings and character constants. */
3113#define FOO(x) 'x'
3114int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3115
ad6254c5
AK
3116int test (int i, double x);
3117struct s1 {int (*f) (int a);};
3118struct s2 {int (*f) (double a);};
3119int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3120int argc;
3121char **argv;
3122int
3123main ()
3124{
3125return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3126 ;
3127 return 0;
3128}
3129_ACEOF
7a197a62
AK
3130for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3132do
3133 CC="$ac_save_CC $ac_arg"
3134 rm -f conftest.$ac_objext
7a197a62
AK
3135if { (ac_try="$ac_compile"
3136case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
ec6a6fbe
AK
3140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141$as_echo "$ac_try_echo") >&5
7a197a62 3142 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3143 ac_status=$?
8a2fc586
AK
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
ec6a6fbe 3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
7a197a62 3152 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3153else
ec6a6fbe 3154 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
7a197a62 3157
ad6254c5 3158fi
7a197a62
AK
3159
3160rm -f core conftest.err conftest.$ac_objext
3161 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3162done
7a197a62 3163rm -f conftest.$ac_ext
ad6254c5
AK
3164CC=$ac_save_CC
3165
3166fi
7a197a62
AK
3167# AC_CACHE_VAL
3168case "x$ac_cv_prog_cc_c89" in
3169 x)
ec6a6fbe
AK
3170 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3171$as_echo "none needed" >&6; } ;;
7a197a62 3172 xno)
ec6a6fbe
AK
3173 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3174$as_echo "unsupported" >&6; } ;;
ad6254c5 3175 *)
7a197a62 3176 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3177 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3178$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3179esac
3180
ad6254c5 3181
ad6254c5
AK
3182ac_ext=c
3183ac_cpp='$CPP $CPPFLAGS'
3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3187
d0191583
JM
3188
3189
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3195{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3197# On Suns, sometimes $CPP names a directory.
3198if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200fi
3201if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3203 $as_echo_n "(cached) " >&6
ad6254c5 3204else
d0191583
JM
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209for ac_c_preproc_warn_flag in '' yes
ad6254c5 3210do
d0191583
JM
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h. */
3223#ifdef __STDC__
3224# include <limits.h>
3225#else
3226# include <assert.h>
3227#endif
3228 Syntax error
3229_ACEOF
3230if { (ac_try="$ac_cpp conftest.$ac_ext"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
ad6254c5 3234esac
ec6a6fbe
AK
3235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236$as_echo "$ac_try_echo") >&5
d0191583
JM
3237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
ec6a6fbe 3242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3243 (exit $ac_status); } >/dev/null && {
3244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 }; then
3247 :
3248else
ec6a6fbe 3249 $as_echo "$as_me: failed program was:" >&5
d0191583 3250sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3251
d0191583
JM
3252 # Broken: fails on valid input.
3253continue
795ca3e5 3254fi
795ca3e5 3255
d0191583 3256rm -f conftest.err conftest.$ac_ext
795ca3e5 3257
d0191583
JM
3258 # OK, works on sane cases. Now check whether nonexistent headers
3259 # can be detected and how.
3260 cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266#include <ac_nonexistent.h>
3267_ACEOF
3268if { (ac_try="$ac_cpp conftest.$ac_ext"
3269case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272esac
ec6a6fbe
AK
3273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274$as_echo "$ac_try_echo") >&5
d0191583
JM
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
ec6a6fbe 3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3281 (exit $ac_status); } >/dev/null && {
3282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 }; then
3285 # Broken: success on invalid input.
3286continue
3287else
ec6a6fbe 3288 $as_echo "$as_me: failed program was:" >&5
d0191583 3289sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3290
d0191583
JM
3291 # Passes both tests.
3292ac_preproc_ok=:
3293break
3294fi
795ca3e5 3295
d0191583
JM
3296rm -f conftest.err conftest.$ac_ext
3297
3298done
3299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300rm -f conftest.err conftest.$ac_ext
3301if $ac_preproc_ok; then
3302 break
795ca3e5
AK
3303fi
3304
d0191583
JM
3305 done
3306 ac_cv_prog_CPP=$CPP
3307
3308fi
3309 CPP=$ac_cv_prog_CPP
795ca3e5 3310else
d0191583
JM
3311 ac_cv_prog_CPP=$CPP
3312fi
ec6a6fbe
AK
3313{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3314$as_echo "$CPP" >&6; }
d0191583
JM
3315ac_preproc_ok=false
3316for ac_c_preproc_warn_flag in '' yes
3317do
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h. */
ad6254c5 3326_ACEOF
d0191583
JM
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h. */
3330#ifdef __STDC__
3331# include <limits.h>
3332#else
3333# include <assert.h>
3334#endif
3335 Syntax error
3336_ACEOF
3337if { (ac_try="$ac_cpp conftest.$ac_ext"
3338case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
7a197a62 3341esac
ec6a6fbe
AK
3342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343$as_echo "$ac_try_echo") >&5
d0191583
JM
3344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
ec6a6fbe 3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3350 (exit $ac_status); } >/dev/null && {
3351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 }; then
3354 :
795ca3e5 3355else
ec6a6fbe 3356 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 # Broken: fails on valid input.
3360continue
795ca3e5
AK
3361fi
3362
d0191583
JM
3363rm -f conftest.err conftest.$ac_ext
3364
3365 # OK, works on sane cases. Now check whether nonexistent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#include <ac_nonexistent.h>
3374_ACEOF
3375if { (ac_try="$ac_cpp conftest.$ac_ext"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
ec6a6fbe
AK
3380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381$as_echo "$ac_try_echo") >&5
d0191583
JM
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
ec6a6fbe 3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 # Broken: success on invalid input.
3393continue
795ca3e5 3394else
ec6a6fbe 3395 $as_echo "$as_me: failed program was:" >&5
d0191583 3396sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3397
d0191583
JM
3398 # Passes both tests.
3399ac_preproc_ok=:
3400break
795ca3e5 3401fi
d0191583
JM
3402
3403rm -f conftest.err conftest.$ac_ext
3404
3405done
3406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407rm -f conftest.err conftest.$ac_ext
3408if $ac_preproc_ok; then
3409 :
8106cdd5 3410else
ec6a6fbe
AK
3411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3414See \`config.log' for more details." >&5
ec6a6fbe 3415$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3416See \`config.log' for more details." >&2;}
ec6a6fbe 3417 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3418fi
3419
d0191583
JM
3420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
7a197a62 3426
ec6a6fbe
AK
3427{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3428$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3429if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3430 $as_echo_n "(cached) " >&6
ad6254c5 3431else
ec6a6fbe 3432 if test -z "$GREP"; then
d0191583 3433 ac_path_GREP_found=false
ec6a6fbe
AK
3434 # Loop through the user's path and test for each of PROGNAME-LIST
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3436for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
d0191583 3440 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3443 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3444# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3445 # Check for GNU $ac_path_GREP
3446case `"$ac_path_GREP" --version 2>&1` in
3447*GNU*)
3448 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3449*)
3450 ac_count=0
ec6a6fbe 3451 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3452 while :
3453 do
3454 cat "conftest.in" "conftest.in" >"conftest.tmp"
3455 mv "conftest.tmp" "conftest.in"
3456 cp "conftest.in" "conftest.nl"
ec6a6fbe 3457 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3458 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3460 ac_count=`expr $ac_count + 1`
3461 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3462 # Best one so far, save it but keep looking for a better one
3463 ac_cv_path_GREP="$ac_path_GREP"
3464 ac_path_GREP_max=$ac_count
3465 fi
3466 # 10*(2^10) chars as input seems more than enough
3467 test $ac_count -gt 10 && break
3468 done
3469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3470esac
3471
ec6a6fbe
AK
3472 $ac_path_GREP_found && break 3
3473 done
d0191583 3474 done
ad6254c5 3475done
7a197a62 3476IFS=$as_save_IFS
ec6a6fbe
AK
3477 if test -z "$ac_cv_path_GREP"; then
3478 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3479$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3480 { (exit 1); exit 1; }; }
ec6a6fbe 3481 fi
80992638 3482else
d0191583 3483 ac_cv_path_GREP=$GREP
8106cdd5 3484fi
8106cdd5 3485
80992638 3486fi
ec6a6fbe
AK
3487{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3488$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3489 GREP="$ac_cv_path_GREP"
795ca3e5 3490
d0191583 3491
ec6a6fbe
AK
3492{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3493$as_echo_n "checking for egrep... " >&6; }
d0191583 3494if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3495 $as_echo_n "(cached) " >&6
8a2fc586 3496else
d0191583
JM
3497 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3498 then ac_cv_path_EGREP="$GREP -E"
3499 else
ec6a6fbe 3500 if test -z "$EGREP"; then
d0191583 3501 ac_path_EGREP_found=false
ec6a6fbe
AK
3502 # Loop through the user's path and test for each of PROGNAME-LIST
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3504for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
d0191583 3508 for ac_prog in egrep; do
ec6a6fbe
AK
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3511 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3512# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3513 # Check for GNU $ac_path_EGREP
3514case `"$ac_path_EGREP" --version 2>&1` in
3515*GNU*)
3516 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3517*)
3518 ac_count=0
ec6a6fbe 3519 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3520 while :
3521 do
3522 cat "conftest.in" "conftest.in" >"conftest.tmp"
3523 mv "conftest.tmp" "conftest.in"
3524 cp "conftest.in" "conftest.nl"
ec6a6fbe 3525 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3526 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3528 ac_count=`expr $ac_count + 1`
3529 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3530 # Best one so far, save it but keep looking for a better one
3531 ac_cv_path_EGREP="$ac_path_EGREP"
3532 ac_path_EGREP_max=$ac_count
3533 fi
3534 # 10*(2^10) chars as input seems more than enough
3535 test $ac_count -gt 10 && break
3536 done
3537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3538esac
8a2fc586 3539
ec6a6fbe
AK
3540 $ac_path_EGREP_found && break 3
3541 done
d0191583 3542 done
8a2fc586 3543done
7a197a62 3544IFS=$as_save_IFS
ec6a6fbe
AK
3545 if test -z "$ac_cv_path_EGREP"; then
3546 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3547$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3548 { (exit 1); exit 1; }; }
ec6a6fbe 3549 fi
d0191583
JM
3550else
3551 ac_cv_path_EGREP=$EGREP
3552fi
ad6254c5 3553
d0191583
JM
3554 fi
3555fi
ec6a6fbe
AK
3556{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3557$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3558 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3559
3560
d0191583 3561if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3562 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3563$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3564if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3565 $as_echo_n "(cached) " >&6
8106cdd5 3566else
d0191583 3567 ac_pattern="Autoconf.*'x'"
ad6254c5 3568 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3569/* confdefs.h. */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h. */
d0191583
JM
3574#include <sgtty.h>
3575Autoconf TIOCGETP
ad6254c5 3576_ACEOF
d0191583
JM
3577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3579 ac_cv_prog_gcc_traditional=yes
8106cdd5 3580else
d0191583 3581 ac_cv_prog_gcc_traditional=no
80992638 3582fi
d0191583 3583rm -f conftest*
ad6254c5 3584
8106cdd5 3585
d0191583
JM
3586 if test $ac_cv_prog_gcc_traditional = no; then
3587 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
d0191583
JM
3593#include <termio.h>
3594Autoconf TCGETA
ad6254c5 3595_ACEOF
d0191583
JM
3596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3598 ac_cv_prog_gcc_traditional=yes
7a197a62 3599fi
d0191583 3600rm -f conftest*
795ca3e5 3601
d0191583 3602 fi
795ca3e5 3603fi
ec6a6fbe
AK
3604{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3605$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3606 if test $ac_cv_prog_gcc_traditional = yes; then
3607 CC="$CC -traditional"
3608 fi
795ca3e5
AK
3609fi
3610
d0191583
JM
3611# Find a good install program. We prefer a C program (faster),
3612# so one script is as good as another. But avoid the broken or
3613# incompatible versions:
3614# SysV /etc/install, /usr/sbin/install
3615# SunOS /usr/etc/install
3616# IRIX /sbin/install
3617# AIX /bin/install
3618# AmigaOS /C/install, which installs bootblocks on floppy discs
3619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622# OS/2's system install, which has a completely different semantic
3623# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3624# Reject install programs that cannot install multiple files.
3625{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3626$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3627if test -z "$INSTALL"; then
3628if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3629 $as_echo_n "(cached) " >&6
ad6254c5 3630else
d0191583
JM
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 # Account for people who put trailing slashes in PATH elements.
3637case $as_dir/ in
3638 ./ | .// | /cC/* | \
3639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3640 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3641 /usr/ucb/* ) ;;
3642 *)
3643 # OSF1 and SCO ODT 3.0 have their own names for install.
3644 # Don't use installbsd from OSF since it installs stuff as root
3645 # by default.
3646 for ac_prog in ginstall scoinst install; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3649 if test $ac_prog = install &&
3650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651 # AIX install. It has an incompatible calling convention.
3652 :
3653 elif test $ac_prog = install &&
3654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655 # program-specific install script used by HP pwplus--don't use.
3656 :
3657 else
ec6a6fbe
AK
3658 rm -rf conftest.one conftest.two conftest.dir
3659 echo one > conftest.one
3660 echo two > conftest.two
3661 mkdir conftest.dir
3662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3663 test -s conftest.one && test -s conftest.two &&
3664 test -s conftest.dir/conftest.one &&
3665 test -s conftest.dir/conftest.two
3666 then
3667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668 break 3
3669 fi
d0191583
JM
3670 fi
3671 fi
3672 done
3673 done
3674 ;;
3675esac
ec6a6fbe 3676
d0191583
JM
3677done
3678IFS=$as_save_IFS
80992638 3679
ec6a6fbe 3680rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3681
3682fi
3683 if test "${ac_cv_path_install+set}" = set; then
3684 INSTALL=$ac_cv_path_install
7a197a62 3685 else
d0191583
JM
3686 # As a last resort, use the slow shell script. Don't cache a
3687 # value for INSTALL within a source directory, because that will
3688 # break other packages using the cache if that directory is
3689 # removed, or if the value is a relative name.
3690 INSTALL=$ac_install_sh
7a197a62 3691 fi
d0191583 3692fi
ec6a6fbe
AK
3693{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3694$as_echo "$INSTALL" >&6; }
ad6254c5 3695
d0191583
JM
3696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697# It thinks the first close brace ends the variable substitution.
3698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3699
d0191583 3700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3701
d0191583
JM
3702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
ec6a6fbe
AK
3704{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3705$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3706LN_S=$as_ln_s
3707if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3708 { $as_echo "$as_me:$LINENO: result: yes" >&5
3709$as_echo "yes" >&6; }
d0191583 3710else
ec6a6fbe
AK
3711 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3712$as_echo "no, using $LN_S" >&6; }
795ca3e5 3713fi
d0191583 3714
ec6a6fbe
AK
3715{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3716$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3717set x ${MAKE-make}
3718ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3719if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3720 $as_echo_n "(cached) " >&6
7a197a62 3721else
d0191583
JM
3722 cat >conftest.make <<\_ACEOF
3723SHELL = /bin/sh
3724all:
3725 @echo '@@@%%%=$(MAKE)=@@@%%%'
3726_ACEOF
3727# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3728case `${MAKE-make} -f conftest.make 2>/dev/null` in
3729 *@@@%%%=?*=@@@%%%*)
3730 eval ac_cv_prog_make_${ac_make}_set=yes;;
3731 *)
3732 eval ac_cv_prog_make_${ac_make}_set=no;;
3733esac
3734rm -f conftest.make
ad6254c5 3735fi
d0191583 3736if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3737 { $as_echo "$as_me:$LINENO: result: yes" >&5
3738$as_echo "yes" >&6; }
d0191583
JM
3739 SET_MAKE=
3740else
ec6a6fbe
AK
3741 { $as_echo "$as_me:$LINENO: result: no" >&5
3742$as_echo "no" >&6; }
d0191583 3743 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3744fi
8106cdd5 3745
ec6a6fbe
AK
3746{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3747$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3748if test -z "$MKDIR_P"; then
3749 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3750 $as_echo_n "(cached) " >&6
5556819a
AK
3751else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in mkdir gmkdir; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3760 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3761 'mkdir (GNU coreutils) '* | \
3762 'mkdir (coreutils) '* | \
3763 'mkdir (fileutils) '4.1*)
3764 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3765 break 3;;
3766 esac
3767 done
3768 done
3769done
3770IFS=$as_save_IFS
3771
3772fi
3773
3774 if test "${ac_cv_path_mkdir+set}" = set; then
3775 MKDIR_P="$ac_cv_path_mkdir -p"
3776 else
3777 # As a last resort, use the slow shell script. Don't cache a
3778 # value for MKDIR_P within a source directory, because that will
3779 # break other packages using the cache if that directory is
3780 # removed, or if the value is a relative name.
3781 test -d ./--version && rmdir ./--version
3782 MKDIR_P="$ac_install_sh -d"
3783 fi
3784fi
ec6a6fbe
AK
3785{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3786$as_echo "$MKDIR_P" >&6; }
5556819a 3787
d0191583
JM
3788if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3793if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3794 $as_echo_n "(cached) " >&6
d0191583
JM
3795else
3796 if test -n "$RANLIB"; then
3797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3808 break 2
3809 fi
3810done
3811done
3812IFS=$as_save_IFS
8106cdd5 3813
795ca3e5 3814fi
d0191583
JM
3815fi
3816RANLIB=$ac_cv_prog_RANLIB
3817if test -n "$RANLIB"; then
ec6a6fbe
AK
3818 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3819$as_echo "$RANLIB" >&6; }
d0191583 3820else
ec6a6fbe
AK
3821 { $as_echo "$as_me:$LINENO: result: no" >&5
3822$as_echo "no" >&6; }
d0191583
JM
3823fi
3824
8106cdd5 3825
ad6254c5 3826fi
d0191583
JM
3827if test -z "$ac_cv_prog_RANLIB"; then
3828 ac_ct_RANLIB=$RANLIB
3829 # Extract the first word of "ranlib", so it can be a program name with args.
3830set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3832$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3833if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3834 $as_echo_n "(cached) " >&6
ad6254c5 3835else
d0191583
JM
3836 if test -n "$ac_ct_RANLIB"; then
3837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3838else
3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
8106cdd5 3841do
d0191583
JM
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3848 break 2
3849 fi
3850done
3851done
3852IFS=$as_save_IFS
3853
3854fi
3855fi
3856ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3857if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3858 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3859$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3860else
ec6a6fbe
AK
3861 { $as_echo "$as_me:$LINENO: result: no" >&5
3862$as_echo "no" >&6; }
d0191583 3863fi
ad6254c5 3864
d0191583
JM
3865 if test "x$ac_ct_RANLIB" = x; then
3866 RANLIB=":"
3867 else
3868 case $cross_compiling:$ac_tool_warned in
3869yes:)
ec6a6fbe
AK
3870{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3872ac_tool_warned=yes ;;
3873esac
3874 RANLIB=$ac_ct_RANLIB
3875 fi
3876else
3877 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3878fi
7a197a62 3879
d0191583
JM
3880# Extract the first word of "cflow", so it can be a program name with args.
3881set dummy cflow; ac_word=$2
ec6a6fbe
AK
3882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3883$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3884if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3885 $as_echo_n "(cached) " >&6
d0191583
JM
3886else
3887 case $CFLOW_CMD in
3888 [\\/]* | ?:[\\/]*)
3889 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3890 ;;
3891 *)
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3901 break 2
3902 fi
3903done
3904done
3905IFS=$as_save_IFS
ad6254c5 3906
d0191583 3907 ;;
7a197a62 3908esac
d0191583
JM
3909fi
3910CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3911if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
3912 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3913$as_echo "$CFLOW_CMD" >&6; }
80992638 3914else
ec6a6fbe
AK
3915 { $as_echo "$as_me:$LINENO: result: no" >&5
3916$as_echo "no" >&6; }
795ca3e5 3917fi
7a197a62 3918
ad6254c5 3919
d0191583
JM
3920# Extract the first word of "cscope", so it can be a program name with args.
3921set dummy cscope; ac_word=$2
ec6a6fbe
AK
3922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3924if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 3925 $as_echo_n "(cached) " >&6
d0191583
JM
3926else
3927 case $CSCOPE_CMD in
3928 [\\/]* | ?:[\\/]*)
3929 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3930 ;;
3931 *)
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3941 break 2
3942 fi
795ca3e5 3943done
d0191583
JM
3944done
3945IFS=$as_save_IFS
795ca3e5 3946
d0191583
JM
3947 ;;
3948esac
ad6254c5 3949fi
d0191583
JM
3950CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3951if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
3952 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3953$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3954else
ec6a6fbe
AK
3955 { $as_echo "$as_me:$LINENO: result: no" >&5
3956$as_echo "no" >&6; }
795ca3e5 3957fi
ad6254c5 3958
7a197a62 3959
ad6254c5 3960
d0191583
JM
3961################################################################################
3962
3963
3964
3965
3966
3967ac_header_dirent=no
3968for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
3969 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3970{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3971$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 3972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3973 $as_echo_n "(cached) " >&6
d0191583 3974else
ad6254c5 3975 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
d0191583
JM
3981#include <sys/types.h>
3982#include <$ac_hdr>
3983
3984int
3985main ()
3986{
3987if ((DIR *) 0)
3988return 0;
3989 ;
3990 return 0;
3991}
ad6254c5 3992_ACEOF
d0191583
JM
3993rm -f conftest.$ac_objext
3994if { (ac_try="$ac_compile"
7a197a62
AK
3995case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
ec6a6fbe
AK
3999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4000$as_echo "$ac_try_echo") >&5
d0191583 4001 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
ec6a6fbe 4006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
25fbec5b 4009 test ! -s conftest.err
d0191583
JM
4010 } && test -s conftest.$ac_objext; then
4011 eval "$as_ac_Header=yes"
ad6254c5 4012else
ec6a6fbe 4013 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4014sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4015
d0191583 4016 eval "$as_ac_Header=no"
795ca3e5 4017fi
7a197a62 4018
d0191583 4019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4020fi
ec6a6fbe
AK
4021ac_res=`eval 'as_val=${'$as_ac_Header'}
4022 $as_echo "$as_val"'`
4023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4024$as_echo "$ac_res" >&6; }
4025as_val=`eval 'as_val=${'$as_ac_Header'}
4026 $as_echo "$as_val"'`
4027 if test "x$as_val" = x""yes; then
d0191583 4028 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4029#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4030_ACEOF
795ca3e5 4031
d0191583
JM
4032ac_header_dirent=$ac_hdr; break
4033fi
ad6254c5 4034
d0191583
JM
4035done
4036# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4037if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4038 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4039$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4040if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4041 $as_echo_n "(cached) " >&6
ad6254c5 4042else
d0191583
JM
4043 ac_func_search_save_LIBS=$LIBS
4044cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h. */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */
ad6254c5 4050
d0191583
JM
4051/* Override any GCC internal prototype to avoid an error.
4052 Use char because int might match the return type of a GCC
4053 builtin and then its argument prototype would still apply. */
4054#ifdef __cplusplus
4055extern "C"
4056#endif
4057char opendir ();
4058int
4059main ()
4060{
4061return opendir ();
4062 ;
4063 return 0;
4064}
4065_ACEOF
4066for ac_lib in '' dir; do
4067 if test -z "$ac_lib"; then
4068 ac_res="none required"
4069 else
4070 ac_res=-l$ac_lib
4071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4072 fi
4073 rm -f conftest.$ac_objext conftest$ac_exeext
4074if { (ac_try="$ac_link"
4075case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
ec6a6fbe
AK
4079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4080$as_echo "$ac_try_echo") >&5
d0191583
JM
4081 (eval "$ac_link") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
ec6a6fbe 4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4087 (exit $ac_status); } && {
4088 test -z "$ac_c_werror_flag" ||
4089 test ! -s conftest.err
ec6a6fbe
AK
4090 } && test -s conftest$ac_exeext && {
4091 test "$cross_compiling" = yes ||
4092 $as_test_x conftest$ac_exeext
4093 }; then
d0191583
JM
4094 ac_cv_search_opendir=$ac_res
4095else
ec6a6fbe 4096 $as_echo "$as_me: failed program was:" >&5
d0191583 4097sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4098
ad6254c5 4099
795ca3e5 4100fi
ad6254c5 4101
ec6a6fbe 4102rm -rf conftest.dSYM
d0191583
JM
4103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4104 conftest$ac_exeext
4105 if test "${ac_cv_search_opendir+set}" = set; then
4106 break
7a197a62 4107fi
d0191583
JM
4108done
4109if test "${ac_cv_search_opendir+set}" = set; then
4110 :
7a197a62 4111else
d0191583 4112 ac_cv_search_opendir=no
7a197a62 4113fi
d0191583
JM
4114rm conftest.$ac_ext
4115LIBS=$ac_func_search_save_LIBS
7a197a62 4116fi
ec6a6fbe
AK
4117{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4118$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4119ac_res=$ac_cv_search_opendir
4120if test "$ac_res" != no; then
4121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4122
d0191583 4123fi
7a197a62 4124
7a197a62 4125else
ec6a6fbe
AK
4126 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4127$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4128if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4129 $as_echo_n "(cached) " >&6
7a197a62 4130else
d0191583
JM
4131 ac_func_search_save_LIBS=$LIBS
4132cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
7a197a62 4138
d0191583
JM
4139/* Override any GCC internal prototype to avoid an error.
4140 Use char because int might match the return type of a GCC
4141 builtin and then its argument prototype would still apply. */
4142#ifdef __cplusplus
4143extern "C"
4144#endif
4145char opendir ();
4146int
4147main ()
4148{
4149return opendir ();
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154for ac_lib in '' x; do
4155 if test -z "$ac_lib"; then
4156 ac_res="none required"
4157 else
4158 ac_res=-l$ac_lib
4159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4160 fi
4161 rm -f conftest.$ac_objext conftest$ac_exeext
4162if { (ac_try="$ac_link"
4163case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
ec6a6fbe
AK
4167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168$as_echo "$ac_try_echo") >&5
d0191583
JM
4169 (eval "$ac_link") 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
ec6a6fbe 4174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4175 (exit $ac_status); } && {
4176 test -z "$ac_c_werror_flag" ||
4177 test ! -s conftest.err
ec6a6fbe
AK
4178 } && test -s conftest$ac_exeext && {
4179 test "$cross_compiling" = yes ||
4180 $as_test_x conftest$ac_exeext
4181 }; then
d0191583
JM
4182 ac_cv_search_opendir=$ac_res
4183else
ec6a6fbe 4184 $as_echo "$as_me: failed program was:" >&5
d0191583 4185sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4186
4187
4188fi
4189
ec6a6fbe 4190rm -rf conftest.dSYM
d0191583
JM
4191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192 conftest$ac_exeext
4193 if test "${ac_cv_search_opendir+set}" = set; then
4194 break
7a197a62 4195fi
d0191583
JM
4196done
4197if test "${ac_cv_search_opendir+set}" = set; then
4198 :
7a197a62 4199else
d0191583 4200 ac_cv_search_opendir=no
7a197a62 4201fi
d0191583
JM
4202rm conftest.$ac_ext
4203LIBS=$ac_func_search_save_LIBS
4204fi
ec6a6fbe
AK
4205{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4206$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4207ac_res=$ac_cv_search_opendir
4208if test "$ac_res" != no; then
4209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4210
7a197a62 4211fi
7a197a62 4212
d0191583 4213fi
7a197a62 4214
ec6a6fbe
AK
4215{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4216$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4217if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4218 $as_echo_n "(cached) " >&6
7a197a62
AK
4219else
4220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226#include <stdlib.h>
4227#include <stdarg.h>
4228#include <string.h>
4229#include <float.h>
4230
4231int
4232main ()
4233{
4234
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239rm -f conftest.$ac_objext
4240if { (ac_try="$ac_compile"
4241case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
ec6a6fbe
AK
4245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246$as_echo "$ac_try_echo") >&5
7a197a62
AK
4247 (eval "$ac_compile") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
ec6a6fbe 4252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 } && test -s conftest.$ac_objext; then
7a197a62
AK
4257 ac_cv_header_stdc=yes
4258else
ec6a6fbe 4259 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 ac_cv_header_stdc=no
4263fi
4264
4265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266
4267if test $ac_cv_header_stdc = yes; then
4268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4269 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
4275#include <string.h>
8106cdd5 4276
ad6254c5
AK
4277_ACEOF
4278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "memchr" >/dev/null 2>&1; then
4280 :
4281else
4282 ac_cv_header_stdc=no
80992638 4283fi
ad6254c5 4284rm -f conftest*
795ca3e5
AK
4285
4286fi
4287
ad6254c5
AK
4288if test $ac_cv_header_stdc = yes; then
4289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4290 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h. */
80992638 4296#include <stdlib.h>
ad6254c5
AK
4297
4298_ACEOF
80992638 4299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4300 $EGREP "free" >/dev/null 2>&1; then
4301 :
795ca3e5 4302else
ad6254c5 4303 ac_cv_header_stdc=no
795ca3e5 4304fi
80992638 4305rm -f conftest*
8106cdd5 4306
795ca3e5
AK
4307fi
4308
ad6254c5
AK
4309if test $ac_cv_header_stdc = yes; then
4310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4311 if test "$cross_compiling" = yes; then
4312 :
795ca3e5 4313else
ad6254c5 4314 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
4320#include <ctype.h>
7a197a62 4321#include <stdlib.h>
ad6254c5
AK
4322#if ((' ' & 0x0FF) == 0x020)
4323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4325#else
4326# define ISLOWER(c) \
8a2fc586
AK
4327 (('a' <= (c) && (c) <= 'i') \
4328 || ('j' <= (c) && (c) <= 'r') \
4329 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4331#endif
ad6254c5
AK
4332
4333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4334int
4335main ()
4336{
4337 int i;
4338 for (i = 0; i < 256; i++)
4339 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4340 || toupper (i) != TOUPPER (i))
7a197a62
AK
4341 return 2;
4342 return 0;
ad6254c5
AK
4343}
4344_ACEOF
4345rm -f conftest$ac_exeext
7a197a62
AK
4346if { (ac_try="$ac_link"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
ec6a6fbe
AK
4351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4352$as_echo "$ac_try_echo") >&5
7a197a62 4353 (eval "$ac_link") 2>&5
ad6254c5 4354 ac_status=$?
ec6a6fbe 4355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
ec6a6fbe
AK
4361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4362$as_echo "$ac_try_echo") >&5
7a197a62 4363 (eval "$ac_try") 2>&5
ad6254c5 4364 ac_status=$?
ec6a6fbe 4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4366 (exit $ac_status); }; }; then
4367 :
795ca3e5 4368else
ec6a6fbe
AK
4369 $as_echo "$as_me: program exited with status $ac_status" >&5
4370$as_echo "$as_me: failed program was:" >&5
ad6254c5 4371sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4372
ad6254c5
AK
4373( exit $ac_status )
4374ac_cv_header_stdc=no
80992638 4375fi
ec6a6fbe 4376rm -rf conftest.dSYM
7a197a62 4377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4378fi
7a197a62
AK
4379
4380
ad6254c5
AK
4381fi
4382fi
ec6a6fbe
AK
4383{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4384$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4385if test $ac_cv_header_stdc = yes; then
4386
4387cat >>confdefs.h <<\_ACEOF
4388#define STDC_HEADERS 1
4389_ACEOF
795ca3e5
AK
4390
4391fi
4392
ec6a6fbe
AK
4393{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4394$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4395if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4396 $as_echo_n "(cached) " >&6
8106cdd5 4397else
ad6254c5 4398 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4399/* confdefs.h. */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h. */
80992638 4404#include <sys/types.h>
ad6254c5
AK
4405#include <sys/wait.h>
4406#ifndef WEXITSTATUS
7a197a62 4407# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4408#endif
4409#ifndef WIFEXITED
4410# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4411#endif
4412
4413int
4414main ()
4415{
4416 int s;
4417 wait (&s);
4418 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4419 ;
4420 return 0;
4421}
4422_ACEOF
4423rm -f conftest.$ac_objext
7a197a62
AK
4424if { (ac_try="$ac_compile"
4425case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428esac
ec6a6fbe
AK
4429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4430$as_echo "$ac_try_echo") >&5
7a197a62 4431 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4432 ac_status=$?
8a2fc586
AK
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
ec6a6fbe 4436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4437 (exit $ac_status); } && {
4438 test -z "$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4440 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4441 ac_cv_header_sys_wait_h=yes
4442else
ec6a6fbe 4443 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4444sed 's/^/| /' conftest.$ac_ext >&5
4445
7a197a62 4446 ac_cv_header_sys_wait_h=no
8106cdd5 4447fi
7a197a62
AK
4448
4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4450fi
ec6a6fbe
AK
4451{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4452$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4453if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4454
ad6254c5
AK
4455cat >>confdefs.h <<\_ACEOF
4456#define HAVE_SYS_WAIT_H 1
4457_ACEOF
795ca3e5
AK
4458
4459fi
4460
ec6a6fbe
AK
4461{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4462$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4463if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4464 $as_echo_n "(cached) " >&6
795ca3e5 4465else
ad6254c5 4466 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4467/* confdefs.h. */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h. */
795ca3e5
AK
4472#include <sys/types.h>
4473#include <sys/time.h>
4474#include <time.h>
ad6254c5
AK
4475
4476int
4477main ()
4478{
4479if ((struct tm *) 0)
4480return 0;
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485rm -f conftest.$ac_objext
7a197a62
AK
4486if { (ac_try="$ac_compile"
4487case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490esac
ec6a6fbe
AK
4491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492$as_echo "$ac_try_echo") >&5
7a197a62 4493 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4494 ac_status=$?
8a2fc586
AK
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
ec6a6fbe 4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4503 ac_cv_header_time=yes
4504else
ec6a6fbe 4505 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
7a197a62 4508 ac_cv_header_time=no
795ca3e5 4509fi
7a197a62
AK
4510
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4512fi
ec6a6fbe
AK
4513{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4514$as_echo "$ac_cv_header_time" >&6; }
80992638 4515if test $ac_cv_header_time = yes; then
ad6254c5
AK
4516
4517cat >>confdefs.h <<\_ACEOF
795ca3e5 4518#define TIME_WITH_SYS_TIME 1
ad6254c5 4519_ACEOF
b896caa1 4520
8106cdd5 4521fi
b896caa1 4522
b896caa1 4523
d0191583
JM
4524# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4536do
ec6a6fbe
AK
4537as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4539$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4541 $as_echo_n "(cached) " >&6
d0191583
JM
4542else
4543 cat >conftest.$ac_ext <<_ACEOF
4544/* confdefs.h. */
4545_ACEOF
4546cat confdefs.h >>conftest.$ac_ext
4547cat >>conftest.$ac_ext <<_ACEOF
4548/* end confdefs.h. */
4549$ac_includes_default
4550
4551#include <$ac_header>
4552_ACEOF
4553rm -f conftest.$ac_objext
4554if { (ac_try="$ac_compile"
4555case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
ec6a6fbe
AK
4559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4560$as_echo "$ac_try_echo") >&5
d0191583
JM
4561 (eval "$ac_compile") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
ec6a6fbe 4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4571 eval "$as_ac_Header=yes"
4572else
ec6a6fbe 4573 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 eval "$as_ac_Header=no"
4577fi
4578
4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580fi
ec6a6fbe
AK
4581ac_res=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'`
4583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4584$as_echo "$ac_res" >&6; }
4585as_val=`eval 'as_val=${'$as_ac_Header'}
4586 $as_echo "$as_val"'`
4587 if test "x$as_val" = x""yes; then
d0191583 4588 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4590_ACEOF
4591
4592fi
4593
4594done
4595
b896caa1 4596
b896caa1
AK
4597
4598
795ca3e5 4599
8106cdd5 4600
80992638 4601
795ca3e5 4602
a38df97f 4603
80992638 4604
d0191583
JM
4605
4606
4607
4608
4609
4610for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4611 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4612do
ec6a6fbe 4613as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4616$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4618 $as_echo_n "(cached) " >&6
d0191583 4619fi
ec6a6fbe
AK
4620ac_res=`eval 'as_val=${'$as_ac_Header'}
4621 $as_echo "$as_val"'`
4622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4623$as_echo "$ac_res" >&6; }
ad6254c5 4624else
d0191583 4625 # Is the header compilable?
ec6a6fbe
AK
4626{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4627$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4628cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634$ac_includes_default
ad6254c5
AK
4635#include <$ac_header>
4636_ACEOF
4637rm -f conftest.$ac_objext
7a197a62
AK
4638if { (ac_try="$ac_compile"
4639case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
ec6a6fbe
AK
4643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644$as_echo "$ac_try_echo") >&5
7a197a62 4645 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4646 ac_status=$?
8a2fc586
AK
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
ec6a6fbe 4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
d0191583 4655 ac_header_compiler=yes
ad6254c5 4656else
ec6a6fbe 4657 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4658sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4659
d0191583 4660 ac_header_compiler=no
ad6254c5 4661fi
7a197a62
AK
4662
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4664{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4665$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4666
4667# Is the header present?
ec6a6fbe
AK
4668{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4669$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4670cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4676#include <$ac_header>
4677_ACEOF
4678if { (ac_try="$ac_cpp conftest.$ac_ext"
4679case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682esac
ec6a6fbe
AK
4683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4684$as_echo "$ac_try_echo") >&5
d0191583
JM
4685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
ec6a6fbe 4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4691 (exit $ac_status); } >/dev/null && {
4692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 }; then
4695 ac_header_preproc=yes
4696else
ec6a6fbe 4697 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 ac_header_preproc=no
4701fi
4702
4703rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4704{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4705$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4706
4707# So? What about this header?
4708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4709 yes:no: )
ec6a6fbe
AK
4710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4711$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4713$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4714 ac_header_preproc=yes
4715 ;;
4716 no:yes:* )
ec6a6fbe
AK
4717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4718$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4720$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4722$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4724$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4726$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4728$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4729
4730 ;;
4731esac
ec6a6fbe
AK
4732{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4733$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4735 $as_echo_n "(cached) " >&6
d0191583
JM
4736else
4737 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4738fi
ec6a6fbe
AK
4739ac_res=`eval 'as_val=${'$as_ac_Header'}
4740 $as_echo "$as_val"'`
4741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4742$as_echo "$ac_res" >&6; }
d0191583
JM
4743
4744fi
ec6a6fbe
AK
4745as_val=`eval 'as_val=${'$as_ac_Header'}
4746 $as_echo "$as_val"'`
4747 if test "x$as_val" = x""yes; then
ad6254c5 4748 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4750_ACEOF
a38df97f 4751
d0191583 4752else
ec6a6fbe
AK
4753 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4754$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4755 { (exit 1); exit 1; }; }
80992638
AK
4756fi
4757
ad6254c5
AK
4758done
4759
7d1552c9 4760
d0191583
JM
4761case "$host_os" in
4762 linux*)
7d1552c9 4763
80992638 4764
5a52dca9 4765
d0191583 4766for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4767do
ec6a6fbe 4768as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4771$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4773 $as_echo_n "(cached) " >&6
ad6254c5 4774fi
ec6a6fbe
AK
4775ac_res=`eval 'as_val=${'$as_ac_Header'}
4776 $as_echo "$as_val"'`
4777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4778$as_echo "$ac_res" >&6; }
ad6254c5
AK
4779else
4780 # Is the header compilable?
ec6a6fbe
AK
4781{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4782$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4783cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
4789$ac_includes_default
4790#include <$ac_header>
4791_ACEOF
4792rm -f conftest.$ac_objext
7a197a62
AK
4793if { (ac_try="$ac_compile"
4794case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797esac
ec6a6fbe
AK
4798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799$as_echo "$ac_try_echo") >&5
7a197a62 4800 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4801 ac_status=$?
8a2fc586
AK
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
ec6a6fbe 4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4806 (exit $ac_status); } && {
4807 test -z "$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 } && test -s conftest.$ac_objext; then
fc54be10
AK
4810 ac_header_compiler=yes
4811else
ec6a6fbe 4812 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_header_compiler=no
4816fi
4817
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4819{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4820$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4821
4822# Is the header present?
ec6a6fbe
AK
4823{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4824$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4825cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831#include <$ac_header>
4832_ACEOF
7a197a62
AK
4833if { (ac_try="$ac_cpp conftest.$ac_ext"
4834case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837esac
ec6a6fbe
AK
4838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839$as_echo "$ac_try_echo") >&5
7a197a62 4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
ec6a6fbe 4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4846 (exit $ac_status); } >/dev/null && {
4847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 }; then
ad6254c5
AK
4850 ac_header_preproc=yes
4851else
ec6a6fbe 4852 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 ac_header_preproc=no
4856fi
7a197a62 4857
ad6254c5 4858rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4859{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4860$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4861
4862# So? What about this header?
8a2fc586
AK
4863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4864 yes:no: )
ec6a6fbe
AK
4865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4866$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4868$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4869 ac_header_preproc=yes
ad6254c5 4870 ;;
8a2fc586 4871 no:yes:* )
ec6a6fbe
AK
4872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4873$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4875$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4877$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4879$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4881$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4883$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4884
ad6254c5
AK
4885 ;;
4886esac
ec6a6fbe
AK
4887{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4888$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4890 $as_echo_n "(cached) " >&6
ad6254c5 4891else
8a2fc586 4892 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4893fi
ec6a6fbe
AK
4894ac_res=`eval 'as_val=${'$as_ac_Header'}
4895 $as_echo "$as_val"'`
4896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4897$as_echo "$ac_res" >&6; }
ad6254c5
AK
4898
4899fi
ec6a6fbe
AK
4900as_val=`eval 'as_val=${'$as_ac_Header'}
4901 $as_echo "$as_val"'`
4902 if test "x$as_val" = x""yes; then
ad6254c5 4903 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4905_ACEOF
b896caa1 4906
d8ac0fbc 4907else
ec6a6fbe
AK
4908 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4909$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4910 { (exit 1); exit 1; }; }
80992638
AK
4911fi
4912
ad6254c5 4913done
d0191583
JM
4914 ;;
4915 darwin*)
d8ac0fbc 4916
d8ac0fbc 4917
d0191583 4918for ac_header in machine/endian.h sys/disk.h
ad6254c5 4919do
ec6a6fbe 4920as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4922 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4923$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4925 $as_echo_n "(cached) " >&6
ad6254c5 4926fi
ec6a6fbe
AK
4927ac_res=`eval 'as_val=${'$as_ac_Header'}
4928 $as_echo "$as_val"'`
4929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4930$as_echo "$ac_res" >&6; }
ad6254c5
AK
4931else
4932 # Is the header compilable?
ec6a6fbe
AK
4933{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4934$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4935cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4936/* confdefs.h. */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */
4941$ac_includes_default
4942#include <$ac_header>
4943_ACEOF
4944rm -f conftest.$ac_objext
7a197a62
AK
4945if { (ac_try="$ac_compile"
4946case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949esac
ec6a6fbe
AK
4950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951$as_echo "$ac_try_echo") >&5
7a197a62 4952 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4953 ac_status=$?
8a2fc586
AK
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
ec6a6fbe 4957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4958 (exit $ac_status); } && {
4959 test -z "$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4962 ac_header_compiler=yes
4963else
ec6a6fbe 4964 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
7a197a62 4967 ac_header_compiler=no
ad6254c5 4968fi
7a197a62
AK
4969
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4971{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4972$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4973
4974# Is the header present?
ec6a6fbe
AK
4975{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4976$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4977cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4978/* confdefs.h. */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h. */
4983#include <$ac_header>
4984_ACEOF
7a197a62
AK
4985if { (ac_try="$ac_cpp conftest.$ac_ext"
4986case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989esac
ec6a6fbe
AK
4990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991$as_echo "$ac_try_echo") >&5
7a197a62 4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
ec6a6fbe 4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4998 (exit $ac_status); } >/dev/null && {
4999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5000 test ! -s conftest.err
5001 }; then
ad6254c5
AK
5002 ac_header_preproc=yes
5003else
ec6a6fbe 5004 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 ac_header_preproc=no
5008fi
7a197a62 5009
ad6254c5 5010rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5011{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5012$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5013
5014# So? What about this header?
8a2fc586
AK
5015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5016 yes:no: )
ec6a6fbe
AK
5017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5018$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5020$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5021 ac_header_preproc=yes
ad6254c5 5022 ;;
8a2fc586 5023 no:yes:* )
ec6a6fbe
AK
5024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5025$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5027$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5029$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5031$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5033$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5035$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5036
ad6254c5
AK
5037 ;;
5038esac
ec6a6fbe
AK
5039{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5040$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5042 $as_echo_n "(cached) " >&6
ad6254c5 5043else
8a2fc586 5044 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5045fi
ec6a6fbe
AK
5046ac_res=`eval 'as_val=${'$as_ac_Header'}
5047 $as_echo "$as_val"'`
5048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5049$as_echo "$ac_res" >&6; }
ad6254c5
AK
5050
5051fi
ec6a6fbe
AK
5052as_val=`eval 'as_val=${'$as_ac_Header'}
5053 $as_echo "$as_val"'`
5054 if test "x$as_val" = x""yes; then
ad6254c5 5055 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5057_ACEOF
4922197a 5058
4922197a 5059else
ec6a6fbe
AK
5060 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5061$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5062 { (exit 1); exit 1; }; }
80992638
AK
5063fi
5064
ad6254c5 5065done
d0191583
JM
5066 ;;
5067esac
4922197a 5068
4922197a 5069
4922197a 5070
ad6254c5
AK
5071
5072
d0191583
JM
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5086 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5087 sys/types.h unistd.h
ad6254c5 5088do
ec6a6fbe 5089as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5092$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5094 $as_echo_n "(cached) " >&6
ad6254c5 5095fi
ec6a6fbe
AK
5096ac_res=`eval 'as_val=${'$as_ac_Header'}
5097 $as_echo "$as_val"'`
5098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5099$as_echo "$ac_res" >&6; }
795ca3e5 5100else
ad6254c5 5101 # Is the header compilable?
ec6a6fbe
AK
5102{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5103$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5104cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
5110$ac_includes_default
5111#include <$ac_header>
5112_ACEOF
5113rm -f conftest.$ac_objext
7a197a62
AK
5114if { (ac_try="$ac_compile"
5115case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118esac
ec6a6fbe
AK
5119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5120$as_echo "$ac_try_echo") >&5
7a197a62 5121 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5122 ac_status=$?
8a2fc586
AK
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
ec6a6fbe 5126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5131 ac_header_compiler=yes
5132else
ec6a6fbe 5133 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5134sed 's/^/| /' conftest.$ac_ext >&5
5135
7a197a62 5136 ac_header_compiler=no
ad6254c5 5137fi
7a197a62
AK
5138
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5140{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5141$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5142
5143# Is the header present?
ec6a6fbe
AK
5144{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5145$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5146cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152#include <$ac_header>
5153_ACEOF
7a197a62
AK
5154if { (ac_try="$ac_cpp conftest.$ac_ext"
5155case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158esac
ec6a6fbe
AK
5159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160$as_echo "$ac_try_echo") >&5
7a197a62 5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
ec6a6fbe 5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
ad6254c5
AK
5171 ac_header_preproc=yes
5172else
ec6a6fbe 5173 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 ac_header_preproc=no
5177fi
7a197a62 5178
ad6254c5 5179rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5180{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5181$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5182
5183# So? What about this header?
8a2fc586
AK
5184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5185 yes:no: )
ec6a6fbe
AK
5186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5187$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5189$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5190 ac_header_preproc=yes
ad6254c5 5191 ;;
8a2fc586 5192 no:yes:* )
ec6a6fbe
AK
5193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5194$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5196$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5198$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5200$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5202$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5204$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5205
ad6254c5
AK
5206 ;;
5207esac
ec6a6fbe
AK
5208{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5209$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5211 $as_echo_n "(cached) " >&6
ad6254c5 5212else
8a2fc586 5213 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5214fi
ec6a6fbe
AK
5215ac_res=`eval 'as_val=${'$as_ac_Header'}
5216 $as_echo "$as_val"'`
5217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5218$as_echo "$ac_res" >&6; }
80992638 5219
ad6254c5 5220fi
ec6a6fbe
AK
5221as_val=`eval 'as_val=${'$as_ac_Header'}
5222 $as_echo "$as_val"'`
5223 if test "x$as_val" = x""yes; then
ad6254c5 5224 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5226_ACEOF
795ca3e5 5227
795ca3e5 5228else
ec6a6fbe
AK
5229 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5230$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5231 { (exit 1); exit 1; }; }
80992638
AK
5232fi
5233
ad6254c5 5234done
ad6254c5 5235
795ca3e5 5236
d0191583
JM
5237
5238for ac_header in termios.h sys/statvfs.h
ad6254c5 5239do
ec6a6fbe 5240as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5242 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5243$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5245 $as_echo_n "(cached) " >&6
ad6254c5 5246fi
ec6a6fbe
AK
5247ac_res=`eval 'as_val=${'$as_ac_Header'}
5248 $as_echo "$as_val"'`
5249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5250$as_echo "$ac_res" >&6; }
ad6254c5
AK
5251else
5252 # Is the header compilable?
ec6a6fbe
AK
5253{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5254$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5255cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
5261$ac_includes_default
5262#include <$ac_header>
5263_ACEOF
5264rm -f conftest.$ac_objext
7a197a62
AK
5265if { (ac_try="$ac_compile"
5266case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
ec6a6fbe
AK
5270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5271$as_echo "$ac_try_echo") >&5
7a197a62 5272 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5273 ac_status=$?
8a2fc586
AK
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
ec6a6fbe 5277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5282 ac_header_compiler=yes
5283else
ec6a6fbe 5284 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
7a197a62 5287 ac_header_compiler=no
ad6254c5 5288fi
7a197a62
AK
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5291{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5293
5294# Is the header present?
ec6a6fbe
AK
5295{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5297cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5298/* confdefs.h. */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h. */
5303#include <$ac_header>
5304_ACEOF
7a197a62
AK
5305if { (ac_try="$ac_cpp conftest.$ac_ext"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
ec6a6fbe
AK
5310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5311$as_echo "$ac_try_echo") >&5
7a197a62 5312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
ec6a6fbe 5317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5318 (exit $ac_status); } >/dev/null && {
5319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 }; then
ad6254c5
AK
5322 ac_header_preproc=yes
5323else
ec6a6fbe 5324 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5325sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ac_header_preproc=no
5328fi
7a197a62 5329
ad6254c5 5330rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5331{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5332$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5333
5334# So? What about this header?
8a2fc586
AK
5335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5336 yes:no: )
ec6a6fbe
AK
5337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5338$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5340$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5341 ac_header_preproc=yes
ad6254c5 5342 ;;
8a2fc586 5343 no:yes:* )
ec6a6fbe
AK
5344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5345$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5347$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5349$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5351$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5353$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5355$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5356
ad6254c5
AK
5357 ;;
5358esac
ec6a6fbe
AK
5359{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5360$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5362 $as_echo_n "(cached) " >&6
ad6254c5 5363else
8a2fc586 5364 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5365fi
ec6a6fbe
AK
5366ac_res=`eval 'as_val=${'$as_ac_Header'}
5367 $as_echo "$as_val"'`
5368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5369$as_echo "$ac_res" >&6; }
b896caa1 5370
ad6254c5 5371fi
ec6a6fbe
AK
5372as_val=`eval 'as_val=${'$as_ac_Header'}
5373 $as_echo "$as_val"'`
5374 if test "x$as_val" = x""yes; then
ad6254c5 5375 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5377_ACEOF
5378
80992638
AK
5379fi
5380
ad6254c5 5381done
d0191583 5382
d3c8211f 5383
80992638 5384################################################################################
ec6a6fbe
AK
5385{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5386$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5387if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5388 $as_echo_n "(cached) " >&6
d3c8211f 5389else
ad6254c5 5390 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5391/* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396
5397int
5398main ()
5399{
5400/* FIXME: Include the comments suggested by Paul. */
5401#ifndef __cplusplus
5402 /* Ultrix mips cc rejects this. */
5403 typedef int charset[2];
25fbec5b 5404 const charset cs;
ad6254c5 5405 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5406 char const *const *pcpcc;
5407 char **ppc;
ad6254c5
AK
5408 /* NEC SVR4.0.2 mips cc rejects this. */
5409 struct point {int x, y;};
5410 static struct point const zero = {0,0};
5411 /* AIX XL C 1.02.0.0 rejects this.
5412 It does not let you subtract one const X* pointer from another in
5413 an arm of an if-expression whose if-part is not a constant
5414 expression */
5415 const char *g = "string";
25fbec5b 5416 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5417 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5418 ++pcpcc;
5419 ppc = (char**) pcpcc;
5420 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5421 { /* SCO 3.2v4 cc rejects this. */
5422 char *t;
5423 char const *s = 0 ? (char *) 0 : (char const *) 0;
5424
5425 *t++ = 0;
7a197a62 5426 if (s) return 0;
ad6254c5
AK
5427 }
5428 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5429 int x[] = {25, 17};
5430 const int *foo = &x[0];
5431 ++foo;
5432 }
5433 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5434 typedef const int *iptr;
5435 iptr p = 0;
5436 ++p;
5437 }
5438 { /* AIX XL C 1.02.0.0 rejects this saying
5439 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5440 struct s { int j; const int *ap[3]; };
5441 struct s *b; b->j = 5;
5442 }
5443 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5444 const int foo = 10;
7a197a62 5445 if (!foo) return 0;
ad6254c5 5446 }
25fbec5b 5447 return !cs[0] && !zero.x;
ad6254c5
AK
5448#endif
5449
5450 ;
5451 return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext
7a197a62
AK
5455if { (ac_try="$ac_compile"
5456case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459esac
ec6a6fbe
AK
5460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5461$as_echo "$ac_try_echo") >&5
7a197a62 5462 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5463 ac_status=$?
8a2fc586
AK
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
ec6a6fbe 5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5472 ac_cv_c_const=yes
5473else
ec6a6fbe 5474 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
7a197a62 5477 ac_cv_c_const=no
ad6254c5 5478fi
7a197a62
AK
5479
5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5481fi
ec6a6fbe
AK
5482{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5483$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5484if test $ac_cv_c_const = no; then
80992638 5485
ad6254c5 5486cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5487#define const /**/
ad6254c5 5488_ACEOF
80992638 5489
d3c8211f 5490fi
d3c8211f 5491
ec6a6fbe
AK
5492{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5493$as_echo_n "checking for inline... " >&6; }
ad6254c5 5494if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5495 $as_echo_n "(cached) " >&6
8ef2b021 5496else
ad6254c5
AK
5497 ac_cv_c_inline=no
5498for ac_kw in inline __inline__ __inline; do
5499 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505#ifndef __cplusplus
5506typedef int foo_t;
5507static $ac_kw foo_t static_foo () {return 0; }
5508$ac_kw foo_t foo () {return 0; }
5509#endif
80992638 5510
ad6254c5
AK
5511_ACEOF
5512rm -f conftest.$ac_objext
7a197a62
AK
5513if { (ac_try="$ac_compile"
5514case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517esac
ec6a6fbe
AK
5518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5519$as_echo "$ac_try_echo") >&5
7a197a62 5520 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5521 ac_status=$?
8a2fc586
AK
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
ec6a6fbe 5525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
7a197a62 5530 ac_cv_c_inline=$ac_kw
ad6254c5 5531else
ec6a6fbe 5532 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5533sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5534
7a197a62 5535
8ce0cbda 5536fi
7a197a62
AK
5537
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 test "$ac_cv_c_inline" != no && break
ad6254c5 5540done
8ce0cbda 5541
8ce0cbda 5542fi
ec6a6fbe
AK
5543{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5544$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5545
5546
ad6254c5
AK
5547case $ac_cv_c_inline in
5548 inline | yes) ;;
8a2fc586
AK
5549 *)
5550 case $ac_cv_c_inline in
5551 no) ac_val=;;
5552 *) ac_val=$ac_cv_c_inline;;
5553 esac
5554 cat >>confdefs.h <<_ACEOF
5555#ifndef __cplusplus
5556#define inline $ac_val
5557#endif
c1c065a3 5558_ACEOF
d0191583
JM
5559 ;;
5560esac
5561
ec6a6fbe
AK
5562{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5563$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5564if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5565 $as_echo_n "(cached) " >&6
d0191583
JM
5566else
5567 cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h. */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
5572/* end confdefs.h. */
5573$ac_includes_default
5574int
5575main ()
5576{
5577static struct stat ac_aggr;
5578if (ac_aggr.st_rdev)
5579return 0;
5580 ;
5581 return 0;
5582}
5583_ACEOF
5584rm -f conftest.$ac_objext
5585if { (ac_try="$ac_compile"
5586case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589esac
ec6a6fbe
AK
5590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591$as_echo "$ac_try_echo") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 ac_cv_member_struct_stat_st_rdev=yes
5603else
5604 $as_echo "$as_me: failed program was:" >&5
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613$ac_includes_default
5614int
5615main ()
5616{
5617static struct stat ac_aggr;
5618if (sizeof ac_aggr.st_rdev)
5619return 0;
5620 ;
5621 return 0;
5622}
5623_ACEOF
5624rm -f conftest.$ac_objext
5625if { (ac_try="$ac_compile"
5626case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629esac
5630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631$as_echo "$ac_try_echo") >&5
5632 (eval "$ac_compile") 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && {
5639 test -z "$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 } && test -s conftest.$ac_objext; then
5642 ac_cv_member_struct_stat_st_rdev=yes
5643else
5644 $as_echo "$as_me: failed program was:" >&5
5645sed 's/^/| /' conftest.$ac_ext >&5
5646
5647 ac_cv_member_struct_stat_st_rdev=no
5648fi
5649
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651fi
5652
5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654fi
5655{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5656$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5657if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5658
5659cat >>confdefs.h <<_ACEOF
5660#define HAVE_STRUCT_STAT_ST_RDEV 1
5661_ACEOF
5662
5663
5664fi
5665
5666{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5667$as_echo_n "checking for off_t... " >&6; }
5668if test "${ac_cv_type_off_t+set}" = set; then
5669 $as_echo_n "(cached) " >&6
5670else
5671 ac_cv_type_off_t=no
5672cat >conftest.$ac_ext <<_ACEOF
5673/* confdefs.h. */
5674_ACEOF
5675cat confdefs.h >>conftest.$ac_ext
5676cat >>conftest.$ac_ext <<_ACEOF
5677/* end confdefs.h. */
5678$ac_includes_default
5679int
5680main ()
5681{
5682if (sizeof (off_t))
5683 return 0;
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688rm -f conftest.$ac_objext
5689if { (ac_try="$ac_compile"
5690case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5695$as_echo "$ac_try_echo") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
5706 cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h. */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h. */
5712$ac_includes_default
5713int
5714main ()
5715{
5716if (sizeof ((off_t)))
5717 return 0;
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext
5723if { (ac_try="$ac_compile"
5724case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729$as_echo "$ac_try_echo") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 :
5741else
5742 $as_echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 ac_cv_type_off_t=yes
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749else
5750 $as_echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753
5754fi
5755
5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757fi
5758{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5759$as_echo "$ac_cv_type_off_t" >&6; }
5760if test "x$ac_cv_type_off_t" = x""yes; then
5761 :
5762else
5763
5764cat >>confdefs.h <<_ACEOF
5765#define off_t long int
5766_ACEOF
5767
5768fi
5769
5770{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5771$as_echo_n "checking for pid_t... " >&6; }
5772if test "${ac_cv_type_pid_t+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5774else
5775 ac_cv_type_pid_t=no
5776cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782$ac_includes_default
5783int
5784main ()
5785{
5786if (sizeof (pid_t))
5787 return 0;
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (ac_try="$ac_compile"
5794case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797esac
5798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5799$as_echo "$ac_try_echo") >&5
d0191583
JM
5800 (eval "$ac_compile") 2>conftest.er1
5801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
ec6a6fbe 5805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
ec6a6fbe 5810 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5811/* confdefs.h. */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h. */
5816$ac_includes_default
5817int
5818main ()
5819{
ec6a6fbe
AK
5820if (sizeof ((pid_t)))
5821 return 0;
d0191583
JM
5822 ;
5823 return 0;
5824}
5825_ACEOF
5826rm -f conftest.$ac_objext
5827if { (ac_try="$ac_compile"
5828case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
ec6a6fbe
AK
5832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833$as_echo "$ac_try_echo") >&5
d0191583
JM
5834 (eval "$ac_compile") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
ec6a6fbe 5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
ec6a6fbe 5844 :
d0191583 5845else
ec6a6fbe 5846 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
ec6a6fbe 5849 ac_cv_type_pid_t=yes
d0191583
JM
5850fi
5851
5852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5853else
5854 $as_echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857
d0191583
JM
5858fi
5859
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861fi
ec6a6fbe
AK
5862{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5863$as_echo "$ac_cv_type_pid_t" >&6; }
5864if test "x$ac_cv_type_pid_t" = x""yes; then
5865 :
5866else
d0191583
JM
5867
5868cat >>confdefs.h <<_ACEOF
ec6a6fbe 5869#define pid_t int
d0191583
JM
5870_ACEOF
5871
d0191583 5872fi
8ce0cbda 5873
ec6a6fbe
AK
5874{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5875$as_echo_n "checking return type of signal handlers... " >&6; }
5876if test "${ac_cv_type_signal+set}" = set; then
5877 $as_echo_n "(cached) " >&6
ad6254c5 5878else
b145d876
ZK
5879 cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h. */
ec6a6fbe
AK
5885#include <sys/types.h>
5886#include <signal.h>
5887
b145d876
ZK
5888int
5889main ()
5890{
ec6a6fbe 5891return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5892 ;
5893 return 0;
5894}
5895_ACEOF
5896rm -f conftest.$ac_objext
7a197a62
AK
5897if { (ac_try="$ac_compile"
5898case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901esac
ec6a6fbe
AK
5902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903$as_echo "$ac_try_echo") >&5
7a197a62 5904 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5905 ac_status=$?
8a2fc586
AK
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
ec6a6fbe 5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5910 (exit $ac_status); } && {
5911 test -z "$ac_c_werror_flag" ||
5912 test ! -s conftest.err
5913 } && test -s conftest.$ac_objext; then
ec6a6fbe 5914 ac_cv_type_signal=int
b145d876 5915else
ec6a6fbe 5916 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
ec6a6fbe 5919 ac_cv_type_signal=void
ad6254c5 5920fi
b145d876
ZK
5921
5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923fi
ec6a6fbe
AK
5924{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5925$as_echo "$ac_cv_type_signal" >&6; }
80992638 5926
ad6254c5 5927cat >>confdefs.h <<_ACEOF
ec6a6fbe 5928#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 5929_ACEOF
199e490e 5930
b896caa1 5931
ec6a6fbe
AK
5932{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5933$as_echo_n "checking for size_t... " >&6; }
5934if test "${ac_cv_type_size_t+set}" = set; then
5935 $as_echo_n "(cached) " >&6
ad6254c5 5936else
ec6a6fbe
AK
5937 ac_cv_type_size_t=no
5938cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
5939/* confdefs.h. */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h. */
5944$ac_includes_default
5945int
5946main ()
5947{
ec6a6fbe
AK
5948if (sizeof (size_t))
5949 return 0;
ad6254c5
AK
5950 ;
5951 return 0;
5952}
5953_ACEOF
5954rm -f conftest.$ac_objext
7a197a62
AK
5955if { (ac_try="$ac_compile"
5956case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959esac
ec6a6fbe
AK
5960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5961$as_echo "$ac_try_echo") >&5
7a197a62 5962 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5963 ac_status=$?
8a2fc586
AK
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
ec6a6fbe 5967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5968 (exit $ac_status); } && {
5969 test -z "$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest.$ac_objext; then
d0191583
JM
5972 cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h. */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h. */
ec6a6fbe 5978$ac_includes_default
d0191583
JM
5979int
5980main ()
5981{
ec6a6fbe
AK
5982if (sizeof ((size_t)))
5983 return 0;
d0191583
JM
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988rm -f conftest.$ac_objext
5989if { (ac_try="$ac_compile"
5990case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
ec6a6fbe
AK
5994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5995$as_echo "$ac_try_echo") >&5
d0191583
JM
5996 (eval "$ac_compile") 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
ec6a6fbe 6001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6002 (exit $ac_status); } && {
6003 test -z "$ac_c_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest.$ac_objext; then
ec6a6fbe 6006 :
d0191583 6007else
ec6a6fbe 6008 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
ec6a6fbe
AK
6011 ac_cv_type_size_t=yes
6012fi
6013
6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015else
6016 $as_echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
6018
6019
d0191583
JM
6020fi
6021
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023fi
ec6a6fbe
AK
6024{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6025$as_echo "$ac_cv_type_size_t" >&6; }
6026if test "x$ac_cv_type_size_t" = x""yes; then
6027 :
6028else
d0191583
JM
6029
6030cat >>confdefs.h <<_ACEOF
ec6a6fbe 6031#define size_t unsigned int
d0191583
JM
6032_ACEOF
6033
ec6a6fbe 6034fi
d0191583 6035
ec6a6fbe
AK
6036{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6037$as_echo_n "checking for mode_t... " >&6; }
6038if test "${ac_cv_type_mode_t+set}" = set; then
6039 $as_echo_n "(cached) " >&6
8106cdd5 6040else
ec6a6fbe
AK
6041 ac_cv_type_mode_t=no
6042cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h. */
6048$ac_includes_default
6049int
6050main ()
6051{
ec6a6fbe
AK
6052if (sizeof (mode_t))
6053 return 0;
ad6254c5
AK
6054 ;
6055 return 0;
6056}
6057_ACEOF
6058rm -f conftest.$ac_objext
7a197a62
AK
6059if { (ac_try="$ac_compile"
6060case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063esac
ec6a6fbe
AK
6064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6065$as_echo "$ac_try_echo") >&5
7a197a62 6066 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6067 ac_status=$?
8a2fc586
AK
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
ec6a6fbe 6071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
b145d876
ZK
6076 cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */
6082$ac_includes_default
6083int
6084main ()
6085{
ec6a6fbe
AK
6086if (sizeof ((mode_t)))
6087 return 0;
ad6254c5
AK
6088 ;
6089 return 0;
6090}
6091_ACEOF
6092rm -f conftest.$ac_objext
7a197a62
AK
6093if { (ac_try="$ac_compile"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
ec6a6fbe
AK
6098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6099$as_echo "$ac_try_echo") >&5
7a197a62 6100 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6101 ac_status=$?
8a2fc586
AK
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
ec6a6fbe 6105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6110 :
6111else
6112 $as_echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_cv_type_mode_t=yes
6116fi
6117
6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6119else
ec6a6fbe 6120 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
ec6a6fbe 6123
80992638 6124fi
7a197a62
AK
6125
6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6127fi
ec6a6fbe
AK
6128{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6129$as_echo "$ac_cv_type_mode_t" >&6; }
6130if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6131 :
6132else
80992638 6133
ad6254c5
AK
6134cat >>confdefs.h <<_ACEOF
6135#define mode_t int
6136_ACEOF
6137
6138fi
6139
ec6a6fbe
AK
6140{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6141$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6142if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6143 $as_echo_n "(cached) " >&6
ad6254c5
AK
6144else
6145 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151$ac_includes_default
6152int
6153main ()
6154{
6155static struct stat ac_aggr;
6156if (ac_aggr.st_rdev)
6157return 0;
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162rm -f conftest.$ac_objext
7a197a62
AK
6163if { (ac_try="$ac_compile"
6164case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
ec6a6fbe
AK
6168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169$as_echo "$ac_try_echo") >&5
7a197a62 6170 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6171 ac_status=$?
8a2fc586
AK
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
ec6a6fbe 6175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6176 (exit $ac_status); } && {
6177 test -z "$ac_c_werror_flag" ||
6178 test ! -s conftest.err
6179 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6180 ac_cv_member_struct_stat_st_rdev=yes
6181else
ec6a6fbe 6182 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
7a197a62 6185 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191$ac_includes_default
6192int
6193main ()
6194{
6195static struct stat ac_aggr;
6196if (sizeof ac_aggr.st_rdev)
6197return 0;
6198 ;
6199 return 0;
6200}
6201_ACEOF
6202rm -f conftest.$ac_objext
7a197a62
AK
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
ec6a6fbe
AK
6208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209$as_echo "$ac_try_echo") >&5
7a197a62 6210 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6211 ac_status=$?
8a2fc586
AK
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
ec6a6fbe 6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6220 ac_cv_member_struct_stat_st_rdev=yes
6221else
ec6a6fbe 6222 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
7a197a62 6225 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6226fi
7a197a62
AK
6227
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6229fi
7a197a62
AK
6230
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6232fi
ec6a6fbe
AK
6233{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6234$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6235if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6236
6237cat >>confdefs.h <<_ACEOF
6238#define HAVE_STRUCT_STAT_ST_RDEV 1
6239_ACEOF
6240
6241
ad6254c5
AK
6242fi
6243
ec6a6fbe
AK
6244{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6245$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6246if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6247 $as_echo_n "(cached) " >&6
ad6254c5
AK
6248else
6249 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255#include <sys/types.h>
6256#include <time.h>
6257
6258int
6259main ()
6260{
25fbec5b
AK
6261struct tm tm;
6262 int *p = &tm.tm_sec;
ec6a6fbe 6263 return !p;
ad6254c5
AK
6264 ;
6265 return 0;
6266}
6267_ACEOF
6268rm -f conftest.$ac_objext
7a197a62
AK
6269if { (ac_try="$ac_compile"
6270case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273esac
ec6a6fbe
AK
6274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6275$as_echo "$ac_try_echo") >&5
7a197a62 6276 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6277 ac_status=$?
8a2fc586
AK
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
ec6a6fbe 6281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6282 (exit $ac_status); } && {
6283 test -z "$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6286 ac_cv_struct_tm=time.h
6287else
ec6a6fbe 6288 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
7a197a62 6291 ac_cv_struct_tm=sys/time.h
ad6254c5 6292fi
7a197a62
AK
6293
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6295fi
ec6a6fbe
AK
6296{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6297$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6298if test $ac_cv_struct_tm = sys/time.h; then
6299
6300cat >>confdefs.h <<\_ACEOF
6301#define TM_IN_SYS_TIME 1
6302_ACEOF
6303
6304fi
809fae91 6305
795ca3e5 6306
80992638 6307################################################################################
ad6254c5
AK
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
d0191583
JM
6322
6323
6324
6325for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6326 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6327 uname
ad6254c5 6328do
ec6a6fbe
AK
6329as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6331$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6332if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6333 $as_echo_n "(cached) " >&6
795ca3e5 6334else
ad6254c5 6335 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6336/* confdefs.h. */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h. */
8a2fc586
AK
6341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6343#define $ac_func innocuous_$ac_func
6344
ad6254c5
AK
6345/* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func (); below.
6347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6348 <limits.h> exists even on freestanding compilers. */
8a2fc586 6349
ad6254c5
AK
6350#ifdef __STDC__
6351# include <limits.h>
6352#else
6353# include <assert.h>
6354#endif
8a2fc586
AK
6355
6356#undef $ac_func
6357
7a197a62
AK
6358/* Override any GCC internal prototype to avoid an error.
6359 Use char because int might match the return type of a GCC
6360 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6361#ifdef __cplusplus
6362extern "C"
ad6254c5 6363#endif
ad6254c5
AK
6364char $ac_func ();
6365/* The GNU C library defines this for functions which it implements
6366 to always fail with ENOSYS. Some functions are actually named
6367 something starting with __ and the normal name is an alias. */
7a197a62 6368#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6369choke me
ad6254c5
AK
6370#endif
6371
6372int
6373main ()
6374{
7a197a62 6375return $ac_func ();
ad6254c5
AK
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6381if { (ac_try="$ac_link"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
ec6a6fbe
AK
6386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6387$as_echo "$ac_try_echo") >&5
7a197a62 6388 (eval "$ac_link") 2>conftest.er1
ad6254c5 6389 ac_status=$?
8a2fc586
AK
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
ec6a6fbe 6393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6394 (exit $ac_status); } && {
6395 test -z "$ac_c_werror_flag" ||
6396 test ! -s conftest.err
ec6a6fbe
AK
6397 } && test -s conftest$ac_exeext && {
6398 test "$cross_compiling" = yes ||
6399 $as_test_x conftest$ac_exeext
6400 }; then
fc54be10
AK
6401 eval "$as_ac_var=yes"
6402else
ec6a6fbe 6403 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 eval "$as_ac_var=no"
6407fi
6408
ec6a6fbe 6409rm -rf conftest.dSYM
25fbec5b 6410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6411 conftest$ac_exeext conftest.$ac_ext
6412fi
ec6a6fbe
AK
6413ac_res=`eval 'as_val=${'$as_ac_var'}
6414 $as_echo "$as_val"'`
6415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6416$as_echo "$ac_res" >&6; }
6417as_val=`eval 'as_val=${'$as_ac_var'}
6418 $as_echo "$as_val"'`
6419 if test "x$as_val" = x""yes; then
ad6254c5 6420 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6421#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6422_ACEOF
6423
6424else
ec6a6fbe
AK
6425 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6426$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6427 { (exit 1); exit 1; }; }
6428fi
6429done
795ca3e5 6430
ad6254c5
AK
6431# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6432# for constant arguments. Useless!
ec6a6fbe
AK
6433{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6434$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6435if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6436 $as_echo_n "(cached) " >&6
ad6254c5
AK
6437else
6438 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6439/* confdefs.h. */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h. */
6444#include <alloca.h>
6445int
6446main ()
6447{
6448char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6449 if (p) return 0;
ad6254c5
AK
6450 ;
6451 return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6455if { (ac_try="$ac_link"
6456case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
ec6a6fbe
AK
6460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6461$as_echo "$ac_try_echo") >&5
7a197a62 6462 (eval "$ac_link") 2>conftest.er1
ad6254c5 6463 ac_status=$?
8a2fc586
AK
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
ec6a6fbe 6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
ec6a6fbe
AK
6471 } && test -s conftest$ac_exeext && {
6472 test "$cross_compiling" = yes ||
6473 $as_test_x conftest$ac_exeext
6474 }; then
ad6254c5
AK
6475 ac_cv_working_alloca_h=yes
6476else
ec6a6fbe 6477 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6478sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6479
7a197a62 6480 ac_cv_working_alloca_h=no
ad6254c5 6481fi
7a197a62 6482
ec6a6fbe 6483rm -rf conftest.dSYM
25fbec5b 6484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6485 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6486fi
ec6a6fbe
AK
6487{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6488$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6489if test $ac_cv_working_alloca_h = yes; then
6490
6491cat >>confdefs.h <<\_ACEOF
6492#define HAVE_ALLOCA_H 1
6493_ACEOF
6494
6495fi
6496
ec6a6fbe
AK
6497{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6498$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6499if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6500 $as_echo_n "(cached) " >&6
ad6254c5
AK
6501else
6502 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6503/* confdefs.h. */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h. */
6508#ifdef __GNUC__
6509# define alloca __builtin_alloca
6510#else
6511# ifdef _MSC_VER
6512# include <malloc.h>
6513# define alloca _alloca
6514# else
25fbec5b 6515# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6516# include <alloca.h>
6517# else
6518# ifdef _AIX
6519 #pragma alloca
6520# else
6521# ifndef alloca /* predefined by HP cc +Olibcalls */
6522char *alloca ();
6523# endif
6524# endif
6525# endif
6526# endif
6527#endif
6528
6529int
6530main ()
6531{
6532char *p = (char *) alloca (1);
7a197a62 6533 if (p) return 0;
ad6254c5
AK
6534 ;
6535 return 0;
6536}
6537_ACEOF
6538rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6539if { (ac_try="$ac_link"
6540case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543esac
ec6a6fbe
AK
6544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6545$as_echo "$ac_try_echo") >&5
7a197a62 6546 (eval "$ac_link") 2>conftest.er1
ad6254c5 6547 ac_status=$?
8a2fc586
AK
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
ec6a6fbe 6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
ec6a6fbe
AK
6555 } && test -s conftest$ac_exeext && {
6556 test "$cross_compiling" = yes ||
6557 $as_test_x conftest$ac_exeext
6558 }; then
ad6254c5
AK
6559 ac_cv_func_alloca_works=yes
6560else
ec6a6fbe 6561 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
7a197a62 6564 ac_cv_func_alloca_works=no
ad6254c5 6565fi
7a197a62 6566
ec6a6fbe 6567rm -rf conftest.dSYM
25fbec5b 6568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6569 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6570fi
ec6a6fbe
AK
6571{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6572$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6573
6574if test $ac_cv_func_alloca_works = yes; then
6575
6576cat >>confdefs.h <<\_ACEOF
6577#define HAVE_ALLOCA 1
6578_ACEOF
6579
6580else
6581 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6582# that cause trouble. Some versions do not even contain alloca or
6583# contain a buggy version. If you still want to use their alloca,
6584# use ar to extract alloca.o from them instead of compiling alloca.c.
6585
7a197a62 6586ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6587
6588cat >>confdefs.h <<\_ACEOF
6589#define C_ALLOCA 1
6590_ACEOF
6591
6592
ec6a6fbe
AK
6593{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6594$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6595if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6596 $as_echo_n "(cached) " >&6
ad6254c5
AK
6597else
6598 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6599/* confdefs.h. */
6600_ACEOF
6601cat confdefs.h >>conftest.$ac_ext
6602cat >>conftest.$ac_ext <<_ACEOF
6603/* end confdefs.h. */
7a197a62 6604#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6605webecray
6606#else
6607wenotbecray
6608#endif
6609
6610_ACEOF
795ca3e5 6611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6612 $EGREP "webecray" >/dev/null 2>&1; then
6613 ac_cv_os_cray=yes
6614else
6615 ac_cv_os_cray=no
795ca3e5
AK
6616fi
6617rm -f conftest*
6618
795ca3e5 6619fi
ec6a6fbe
AK
6620{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6621$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6622if test $ac_cv_os_cray = yes; then
6623 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6625{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6626$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6627if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6628 $as_echo_n "(cached) " >&6
ad6254c5
AK
6629else
6630 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6631/* confdefs.h. */
6632_ACEOF
6633cat confdefs.h >>conftest.$ac_ext
6634cat >>conftest.$ac_ext <<_ACEOF
6635/* end confdefs.h. */
8a2fc586
AK
6636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6638#define $ac_func innocuous_$ac_func
6639
ad6254c5
AK
6640/* System header to define __stub macros and hopefully few prototypes,
6641 which can conflict with char $ac_func (); below.
6642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6643 <limits.h> exists even on freestanding compilers. */
8a2fc586 6644
ad6254c5
AK
6645#ifdef __STDC__
6646# include <limits.h>
6647#else
6648# include <assert.h>
6649#endif
8a2fc586
AK
6650
6651#undef $ac_func
6652
7a197a62
AK
6653/* Override any GCC internal prototype to avoid an error.
6654 Use char because int might match the return type of a GCC
6655 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6656#ifdef __cplusplus
6657extern "C"
ad6254c5 6658#endif
ad6254c5
AK
6659char $ac_func ();
6660/* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
7a197a62 6663#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6664choke me
ad6254c5
AK
6665#endif
6666
6667int
6668main ()
6669{
7a197a62 6670return $ac_func ();
ad6254c5
AK
6671 ;
6672 return 0;
6673}
6674_ACEOF
6675rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6676if { (ac_try="$ac_link"
6677case "(($ac_try" in
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6680esac
ec6a6fbe
AK
6681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6682$as_echo "$ac_try_echo") >&5
7a197a62 6683 (eval "$ac_link") 2>conftest.er1
ad6254c5 6684 ac_status=$?
8a2fc586
AK
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
ec6a6fbe 6688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
ec6a6fbe
AK
6692 } && test -s conftest$ac_exeext && {
6693 test "$cross_compiling" = yes ||
6694 $as_test_x conftest$ac_exeext
6695 }; then
ad6254c5
AK
6696 eval "$as_ac_var=yes"
6697else
ec6a6fbe 6698 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
7a197a62 6701 eval "$as_ac_var=no"
ad6254c5 6702fi
7a197a62 6703
ec6a6fbe 6704rm -rf conftest.dSYM
25fbec5b 6705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6706 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6707fi
ec6a6fbe
AK
6708ac_res=`eval 'as_val=${'$as_ac_var'}
6709 $as_echo "$as_val"'`
6710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6711$as_echo "$ac_res" >&6; }
6712as_val=`eval 'as_val=${'$as_ac_var'}
6713 $as_echo "$as_val"'`
6714 if test "x$as_val" = x""yes; then
80992638 6715
ad6254c5
AK
6716cat >>confdefs.h <<_ACEOF
6717#define CRAY_STACKSEG_END $ac_func
6718_ACEOF
6719
6720 break
6721fi
6722
6723 done
6724fi
6725
ec6a6fbe
AK
6726{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6727$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6728if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6729 $as_echo_n "(cached) " >&6
ad6254c5
AK
6730else
6731 if test "$cross_compiling" = yes; then
6732 ac_cv_c_stack_direction=0
6733else
6734 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6735/* confdefs.h. */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h. */
7a197a62 6740$ac_includes_default
ad6254c5
AK
6741int
6742find_stack_direction ()
6743{
6744 static char *addr = 0;
6745 auto char dummy;
6746 if (addr == 0)
6747 {
6748 addr = &dummy;
6749 return find_stack_direction ();
6750 }
6751 else
6752 return (&dummy > addr) ? 1 : -1;
6753}
6754
6755int
6756main ()
6757{
7a197a62 6758 return find_stack_direction () < 0;
ad6254c5
AK
6759}
6760_ACEOF
6761rm -f conftest$ac_exeext
7a197a62
AK
6762if { (ac_try="$ac_link"
6763case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766esac
ec6a6fbe
AK
6767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768$as_echo "$ac_try_echo") >&5
7a197a62 6769 (eval "$ac_link") 2>&5
ad6254c5 6770 ac_status=$?
ec6a6fbe 6771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6773 { (case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776esac
ec6a6fbe
AK
6777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6778$as_echo "$ac_try_echo") >&5
7a197a62 6779 (eval "$ac_try") 2>&5
ad6254c5 6780 ac_status=$?
ec6a6fbe 6781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6782 (exit $ac_status); }; }; then
6783 ac_cv_c_stack_direction=1
6784else
ec6a6fbe
AK
6785 $as_echo "$as_me: program exited with status $ac_status" >&5
6786$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6787sed 's/^/| /' conftest.$ac_ext >&5
6788
6789( exit $ac_status )
6790ac_cv_c_stack_direction=-1
6791fi
ec6a6fbe 6792rm -rf conftest.dSYM
7a197a62 6793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6794fi
7a197a62
AK
6795
6796
ad6254c5 6797fi
ec6a6fbe
AK
6798{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6799$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6800
6801cat >>confdefs.h <<_ACEOF
6802#define STACK_DIRECTION $ac_cv_c_stack_direction
6803_ACEOF
6804
6805
6806fi
6807
ec6a6fbe
AK
6808{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6809$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6810if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6811 $as_echo_n "(cached) " >&6
ad6254c5
AK
6812else
6813 if test "$cross_compiling" = yes; then
6814 ac_cv_func_closedir_void=yes
6815else
6816 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6817/* confdefs.h. */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h. */
6822$ac_includes_default
6823#include <$ac_header_dirent>
6824#ifndef __cplusplus
6825int closedir ();
6826#endif
6827
6828int
6829main ()
6830{
7a197a62 6831return closedir (opendir (".")) != 0;
ad6254c5
AK
6832 ;
6833 return 0;
6834}
6835_ACEOF
6836rm -f conftest$ac_exeext
7a197a62
AK
6837if { (ac_try="$ac_link"
6838case "(($ac_try" in
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6841esac
ec6a6fbe
AK
6842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6843$as_echo "$ac_try_echo") >&5
7a197a62 6844 (eval "$ac_link") 2>&5
ad6254c5 6845 ac_status=$?
ec6a6fbe 6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6848 { (case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851esac
ec6a6fbe
AK
6852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853$as_echo "$ac_try_echo") >&5
7a197a62 6854 (eval "$ac_try") 2>&5
ad6254c5 6855 ac_status=$?
ec6a6fbe 6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6857 (exit $ac_status); }; }; then
6858 ac_cv_func_closedir_void=no
6859else
ec6a6fbe
AK
6860 $as_echo "$as_me: program exited with status $ac_status" >&5
6861$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6862sed 's/^/| /' conftest.$ac_ext >&5
6863
6864( exit $ac_status )
6865ac_cv_func_closedir_void=yes
6866fi
ec6a6fbe 6867rm -rf conftest.dSYM
7a197a62 6868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6869fi
7a197a62
AK
6870
6871
ad6254c5 6872fi
ec6a6fbe
AK
6873{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6874$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6875if test $ac_cv_func_closedir_void = yes; then
6876
6877cat >>confdefs.h <<\_ACEOF
6878#define CLOSEDIR_VOID 1
6879_ACEOF
6880
6881fi
6882
6883
7a197a62 6884for ac_header in vfork.h
ad6254c5 6885do
ec6a6fbe 6886as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6888 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6889$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6891 $as_echo_n "(cached) " >&6
ad6254c5 6892fi
ec6a6fbe
AK
6893ac_res=`eval 'as_val=${'$as_ac_Header'}
6894 $as_echo "$as_val"'`
6895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6896$as_echo "$ac_res" >&6; }
ad6254c5
AK
6897else
6898 # Is the header compilable?
ec6a6fbe
AK
6899{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6900$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6901cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6902/* confdefs.h. */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h. */
6907$ac_includes_default
6908#include <$ac_header>
6909_ACEOF
6910rm -f conftest.$ac_objext
7a197a62
AK
6911if { (ac_try="$ac_compile"
6912case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915esac
ec6a6fbe
AK
6916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6917$as_echo "$ac_try_echo") >&5
7a197a62 6918 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6919 ac_status=$?
8a2fc586
AK
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
ec6a6fbe 6923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6928 ac_header_compiler=yes
6929else
ec6a6fbe 6930 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6931sed 's/^/| /' conftest.$ac_ext >&5
6932
7a197a62 6933 ac_header_compiler=no
ad6254c5 6934fi
7a197a62
AK
6935
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
6937{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6938$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6939
6940# Is the header present?
ec6a6fbe
AK
6941{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6942$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6943cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949#include <$ac_header>
6950_ACEOF
7a197a62
AK
6951if { (ac_try="$ac_cpp conftest.$ac_ext"
6952case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955esac
ec6a6fbe
AK
6956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957$as_echo "$ac_try_echo") >&5
7a197a62 6958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
ec6a6fbe 6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6964 (exit $ac_status); } >/dev/null && {
6965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 }; then
ad6254c5
AK
6968 ac_header_preproc=yes
6969else
ec6a6fbe 6970 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 ac_header_preproc=no
6974fi
7a197a62 6975
ad6254c5 6976rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
6977{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
6979
6980# So? What about this header?
8a2fc586
AK
6981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6982 yes:no: )
ec6a6fbe
AK
6983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6986$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6987 ac_header_preproc=yes
ad6254c5 6988 ;;
8a2fc586 6989 no:yes:* )
ec6a6fbe
AK
6990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6991$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6993$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6995$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6997$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6999$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7001$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7002
ad6254c5
AK
7003 ;;
7004esac
ec6a6fbe
AK
7005{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7006$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7008 $as_echo_n "(cached) " >&6
ad6254c5 7009else
8a2fc586 7010 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7011fi
ec6a6fbe
AK
7012ac_res=`eval 'as_val=${'$as_ac_Header'}
7013 $as_echo "$as_val"'`
7014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7015$as_echo "$ac_res" >&6; }
ad6254c5 7016
795ca3e5 7017fi
ec6a6fbe
AK
7018as_val=`eval 'as_val=${'$as_ac_Header'}
7019 $as_echo "$as_val"'`
7020 if test "x$as_val" = x""yes; then
ad6254c5 7021 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7023_ACEOF
7024
7025fi
7026
7027done
795ca3e5 7028
ad6254c5
AK
7029
7030
7031for ac_func in fork vfork
7032do
ec6a6fbe
AK
7033as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7034{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7035$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7036if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7037 $as_echo_n "(cached) " >&6
795ca3e5 7038else
ad6254c5 7039 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
8a2fc586
AK
7045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7047#define $ac_func innocuous_$ac_func
7048
ad6254c5
AK
7049/* System header to define __stub macros and hopefully few prototypes,
7050 which can conflict with char $ac_func (); below.
7051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052 <limits.h> exists even on freestanding compilers. */
8a2fc586 7053
ad6254c5
AK
7054#ifdef __STDC__
7055# include <limits.h>
7056#else
7057# include <assert.h>
795ca3e5 7058#endif
8a2fc586
AK
7059
7060#undef $ac_func
7061
7a197a62
AK
7062/* Override any GCC internal prototype to avoid an error.
7063 Use char because int might match the return type of a GCC
7064 builtin and then its argument prototype would still apply. */
795ca3e5 7065#ifdef __cplusplus
ad6254c5 7066extern "C"
ad6254c5 7067#endif
ad6254c5
AK
7068char $ac_func ();
7069/* The GNU C library defines this for functions which it implements
7070 to always fail with ENOSYS. Some functions are actually named
7071 something starting with __ and the normal name is an alias. */
7a197a62 7072#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7073choke me
795ca3e5
AK
7074#endif
7075
ad6254c5
AK
7076int
7077main ()
7078{
7a197a62 7079return $ac_func ();
ad6254c5
AK
7080 ;
7081 return 0;
7082}
7083_ACEOF
7084rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7085if { (ac_try="$ac_link"
7086case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089esac
ec6a6fbe
AK
7090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7091$as_echo "$ac_try_echo") >&5
7a197a62 7092 (eval "$ac_link") 2>conftest.er1
ad6254c5 7093 ac_status=$?
8a2fc586
AK
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
ec6a6fbe 7097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7098 (exit $ac_status); } && {
7099 test -z "$ac_c_werror_flag" ||
7100 test ! -s conftest.err
ec6a6fbe
AK
7101 } && test -s conftest$ac_exeext && {
7102 test "$cross_compiling" = yes ||
7103 $as_test_x conftest$ac_exeext
7104 }; then
ad6254c5 7105 eval "$as_ac_var=yes"
795ca3e5 7106else
ec6a6fbe 7107 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7a197a62 7110 eval "$as_ac_var=no"
795ca3e5 7111fi
7a197a62 7112
ec6a6fbe 7113rm -rf conftest.dSYM
25fbec5b 7114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7115 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7116fi
ec6a6fbe
AK
7117ac_res=`eval 'as_val=${'$as_ac_var'}
7118 $as_echo "$as_val"'`
7119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7120$as_echo "$ac_res" >&6; }
7121as_val=`eval 'as_val=${'$as_ac_var'}
7122 $as_echo "$as_val"'`
7123 if test "x$as_val" = x""yes; then
ad6254c5 7124 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7126_ACEOF
7127
7128fi
7129done
7130
7131if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7132 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7133$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7134if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7135 $as_echo_n "(cached) " >&6
ad6254c5
AK
7136else
7137 if test "$cross_compiling" = yes; then
7138 ac_cv_func_fork_works=cross
7139else
7140 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7141/* confdefs.h. */
7142_ACEOF
7143cat confdefs.h >>conftest.$ac_ext
7144cat >>conftest.$ac_ext <<_ACEOF
7145/* end confdefs.h. */
7146$ac_includes_default
7147int
7148main ()
7149{
7150
7151 /* By Ruediger Kuhlmann. */
7152 return fork () < 0;
7153
7154 ;
7155 return 0;
7156}
ad6254c5
AK
7157_ACEOF
7158rm -f conftest$ac_exeext
7a197a62
AK
7159if { (ac_try="$ac_link"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
ec6a6fbe
AK
7164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165$as_echo "$ac_try_echo") >&5
7a197a62 7166 (eval "$ac_link") 2>&5
ad6254c5 7167 ac_status=$?
ec6a6fbe 7168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7170 { (case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173esac
ec6a6fbe
AK
7174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7175$as_echo "$ac_try_echo") >&5
7a197a62 7176 (eval "$ac_try") 2>&5
ad6254c5 7177 ac_status=$?
ec6a6fbe 7178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7179 (exit $ac_status); }; }; then
7180 ac_cv_func_fork_works=yes
7181else
ec6a6fbe
AK
7182 $as_echo "$as_me: program exited with status $ac_status" >&5
7183$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7184sed 's/^/| /' conftest.$ac_ext >&5
7185
7186( exit $ac_status )
7187ac_cv_func_fork_works=no
7188fi
ec6a6fbe 7189rm -rf conftest.dSYM
7a197a62 7190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7191fi
7a197a62
AK
7192
7193
ad6254c5 7194fi
ec6a6fbe
AK
7195{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7196$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7197
7198else
7199 ac_cv_func_fork_works=$ac_cv_func_fork
7200fi
7201if test "x$ac_cv_func_fork_works" = xcross; then
7202 case $host in
7203 *-*-amigaos* | *-*-msdosdjgpp*)
7204 # Override, as these systems have only a dummy fork() stub
7205 ac_cv_func_fork_works=no
7206 ;;
7207 *)
7208 ac_cv_func_fork_works=yes
7209 ;;
7210 esac
ec6a6fbe
AK
7211 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7212$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7213fi
7214ac_cv_func_vfork_works=$ac_cv_func_vfork
7215if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7216 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7217$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7218if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7219 $as_echo_n "(cached) " >&6
ad6254c5
AK
7220else
7221 if test "$cross_compiling" = yes; then
7222 ac_cv_func_vfork_works=cross
7223else
7224 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7225/* confdefs.h. */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h. */
7230/* Thanks to Paul Eggert for this test. */
7a197a62 7231$ac_includes_default
ad6254c5 7232#include <sys/wait.h>
25fbec5b 7233#ifdef HAVE_VFORK_H
ad6254c5
AK
7234# include <vfork.h>
7235#endif
7236/* On some sparc systems, changes by the child to local and incoming
7237 argument registers are propagated back to the parent. The compiler
7238 is told about this with #include <vfork.h>, but some compilers
7239 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7240 static variable whose address is put into a register that is
7241 clobbered by the vfork. */
7242static void
7243#ifdef __cplusplus
7244sparc_address_test (int arg)
7245# else
7246sparc_address_test (arg) int arg;
7247#endif
7248{
7249 static pid_t child;
7250 if (!child) {
7251 child = vfork ();
7252 if (child < 0) {
7253 perror ("vfork");
7254 _exit(2);
7255 }
7256 if (!child) {
7257 arg = getpid();
7258 write(-1, "", 0);
7259 _exit (arg);
7260 }
7261 }
7262}
7263
7264int
7265main ()
7266{
7267 pid_t parent = getpid ();
7268 pid_t child;
7269
7270 sparc_address_test (0);
7271
7272 child = vfork ();
7273
7274 if (child == 0) {
7275 /* Here is another test for sparc vfork register problems. This
7276 test uses lots of local variables, at least as many local
7277 variables as main has allocated so far including compiler
7278 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7279 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7280 reuse the register of parent for one of the local variables,
7281 since it will think that parent can't possibly be used any more
7282 in this routine. Assigning to the local variable will thus
7283 munge parent in the parent process. */
7284 pid_t
7285 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7286 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7287 /* Convince the compiler that p..p7 are live; otherwise, it might
7288 use the same hardware register for all 8 local variables. */
7289 if (p != p1 || p != p2 || p != p3 || p != p4
7290 || p != p5 || p != p6 || p != p7)
7291 _exit(1);
7292
7293 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7294 from child file descriptors. If the child closes a descriptor
7295 before it execs or exits, this munges the parent's descriptor
7296 as well. Test for this by closing stdout in the child. */
7297 _exit(close(fileno(stdout)) != 0);
7298 } else {
7299 int status;
7300 struct stat st;
7301
7302 while (wait(&status) != child)
7303 ;
7a197a62 7304 return (
ad6254c5
AK
7305 /* Was there some problem with vforking? */
7306 child < 0
7307
7308 /* Did the child fail? (This shouldn't happen.) */
7309 || status
7310
7311 /* Did the vfork/compiler bug occur? */
7312 || parent != getpid()
7313
7314 /* Did the file descriptor bug occur? */
7315 || fstat(fileno(stdout), &st) != 0
7316 );
7317 }
7318}
7319_ACEOF
7320rm -f conftest$ac_exeext
7a197a62
AK
7321if { (ac_try="$ac_link"
7322case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325esac
ec6a6fbe
AK
7326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7327$as_echo "$ac_try_echo") >&5
7a197a62 7328 (eval "$ac_link") 2>&5
ad6254c5 7329 ac_status=$?
ec6a6fbe 7330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7332 { (case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335esac
ec6a6fbe
AK
7336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7337$as_echo "$ac_try_echo") >&5
7a197a62 7338 (eval "$ac_try") 2>&5
ad6254c5 7339 ac_status=$?
ec6a6fbe 7340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7341 (exit $ac_status); }; }; then
7342 ac_cv_func_vfork_works=yes
7343else
ec6a6fbe
AK
7344 $as_echo "$as_me: program exited with status $ac_status" >&5
7345$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7346sed 's/^/| /' conftest.$ac_ext >&5
7347
7348( exit $ac_status )
7349ac_cv_func_vfork_works=no
7350fi
ec6a6fbe 7351rm -rf conftest.dSYM
7a197a62 7352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7353fi
7a197a62
AK
7354
7355
ad6254c5 7356fi
ec6a6fbe
AK
7357{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7358$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7359
7360fi;
7361if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7362 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7363 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7364$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7365fi
7366
7367if test "x$ac_cv_func_vfork_works" = xyes; then
7368
7369cat >>confdefs.h <<\_ACEOF
7370#define HAVE_WORKING_VFORK 1
7371_ACEOF
7372
7373else
7374
7375cat >>confdefs.h <<\_ACEOF
7376#define vfork fork
7377_ACEOF
7378
7379fi
7380if test "x$ac_cv_func_fork_works" = xyes; then
7381
7382cat >>confdefs.h <<\_ACEOF
7383#define HAVE_WORKING_FORK 1
7384_ACEOF
7385
7386fi
7387
ec6a6fbe
AK
7388{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7389$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7390if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7391 $as_echo_n "(cached) " >&6
ad6254c5
AK
7392else
7393 rm -f conftest.sym conftest.file
7394echo >conftest.file
7395if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7396 if test "$cross_compiling" = yes; then
7397 ac_cv_func_lstat_dereferences_slashed_symlink=no
7398else
7399 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7400/* confdefs.h. */
7401_ACEOF
7402cat confdefs.h >>conftest.$ac_ext
7403cat >>conftest.$ac_ext <<_ACEOF
7404/* end confdefs.h. */
7405$ac_includes_default
7406int
7407main ()
7408{
7409struct stat sbuf;
7410 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7411 That is better in the sense that it means we will not
7412 have to compile and use the lstat wrapper. */
7a197a62 7413 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418rm -f conftest$ac_exeext
7a197a62
AK
7419if { (ac_try="$ac_link"
7420case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423esac
ec6a6fbe
AK
7424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7425$as_echo "$ac_try_echo") >&5
7a197a62 7426 (eval "$ac_link") 2>&5
ad6254c5 7427 ac_status=$?
ec6a6fbe 7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7430 { (case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433esac
ec6a6fbe
AK
7434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435$as_echo "$ac_try_echo") >&5
7a197a62 7436 (eval "$ac_try") 2>&5
ad6254c5 7437 ac_status=$?
ec6a6fbe 7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7439 (exit $ac_status); }; }; then
7440 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7441else
ec6a6fbe
AK
7442 $as_echo "$as_me: program exited with status $ac_status" >&5
7443$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446( exit $ac_status )
7447ac_cv_func_lstat_dereferences_slashed_symlink=no
7448fi
ec6a6fbe 7449rm -rf conftest.dSYM
7a197a62 7450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7451fi
7a197a62
AK
7452
7453
ad6254c5
AK
7454else
7455 # If the `ln -s' command failed, then we probably don't even
7456 # have an lstat function.
7457 ac_cv_func_lstat_dereferences_slashed_symlink=no
7458fi
7459rm -f conftest.sym conftest.file
7460
7461fi
ec6a6fbe
AK
7462{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7463$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7464
7465test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7466
7467cat >>confdefs.h <<_ACEOF
7468#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7469_ACEOF
7470
7471
7472if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7473 case " $LIBOBJS " in
8a2fc586 7474 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7475 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7476 ;;
8a2fc586
AK
7477esac
7478
ad6254c5
AK
7479fi
7480
ec6a6fbe
AK
7481{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7482$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7483if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7484 $as_echo_n "(cached) " >&6
ad6254c5
AK
7485else
7486 if test "$cross_compiling" = yes; then
7487 ac_cv_func_lstat_empty_string_bug=yes
7488else
7489 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7490/* confdefs.h. */
7491_ACEOF
7492cat confdefs.h >>conftest.$ac_ext
7493cat >>conftest.$ac_ext <<_ACEOF
7494/* end confdefs.h. */
7495$ac_includes_default
7496int
7497main ()
7498{
7499struct stat sbuf;
7a197a62 7500 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7501 ;
7502 return 0;
7503}
7504_ACEOF
7505rm -f conftest$ac_exeext
7a197a62
AK
7506if { (ac_try="$ac_link"
7507case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510esac
ec6a6fbe
AK
7511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512$as_echo "$ac_try_echo") >&5
7a197a62 7513 (eval "$ac_link") 2>&5
ad6254c5 7514 ac_status=$?
ec6a6fbe 7515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7517 { (case "(($ac_try" in
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520esac
ec6a6fbe
AK
7521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522$as_echo "$ac_try_echo") >&5
7a197a62 7523 (eval "$ac_try") 2>&5
ad6254c5 7524 ac_status=$?
ec6a6fbe 7525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7526 (exit $ac_status); }; }; then
7a197a62 7527 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7528else
ec6a6fbe
AK
7529 $as_echo "$as_me: program exited with status $ac_status" >&5
7530$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7531sed 's/^/| /' conftest.$ac_ext >&5
7532
7533( exit $ac_status )
7a197a62 7534ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7535fi
ec6a6fbe 7536rm -rf conftest.dSYM
7a197a62 7537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7538fi
7a197a62
AK
7539
7540
ad6254c5 7541fi
ec6a6fbe
AK
7542{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7543$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7544if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7545 case " $LIBOBJS " in
8a2fc586 7546 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7547 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7548 ;;
8a2fc586
AK
7549esac
7550
ad6254c5
AK
7551
7552cat >>confdefs.h <<_ACEOF
7553#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7554_ACEOF
7555
7556fi
7557
7558
7559for ac_header in stdlib.h
7560do
ec6a6fbe 7561as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7564$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7566 $as_echo_n "(cached) " >&6
ad6254c5 7567fi
ec6a6fbe
AK
7568ac_res=`eval 'as_val=${'$as_ac_Header'}
7569 $as_echo "$as_val"'`
7570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7571$as_echo "$ac_res" >&6; }
ad6254c5
AK
7572else
7573 # Is the header compilable?
ec6a6fbe
AK
7574{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7575$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7576cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7577/* confdefs.h. */
7578_ACEOF
7579cat confdefs.h >>conftest.$ac_ext
7580cat >>conftest.$ac_ext <<_ACEOF
7581/* end confdefs.h. */
7582$ac_includes_default
7583#include <$ac_header>
7584_ACEOF
7585rm -f conftest.$ac_objext
7a197a62
AK
7586if { (ac_try="$ac_compile"
7587case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590esac
ec6a6fbe
AK
7591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7592$as_echo "$ac_try_echo") >&5
7a197a62 7593 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7594 ac_status=$?
8a2fc586
AK
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
ec6a6fbe 7598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7603 ac_header_compiler=yes
7604else
ec6a6fbe 7605 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7a197a62 7608 ac_header_compiler=no
ad6254c5 7609fi
7a197a62
AK
7610
7611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7612{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7613$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7614
7615# Is the header present?
ec6a6fbe
AK
7616{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7617$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7618cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7619/* confdefs.h. */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h. */
7624#include <$ac_header>
7625_ACEOF
7a197a62
AK
7626if { (ac_try="$ac_cpp conftest.$ac_ext"
7627case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630esac
ec6a6fbe
AK
7631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7632$as_echo "$ac_try_echo") >&5
7a197a62 7633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
ec6a6fbe 7638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7639 (exit $ac_status); } >/dev/null && {
7640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7641 test ! -s conftest.err
7642 }; then
ad6254c5
AK
7643 ac_header_preproc=yes
7644else
ec6a6fbe 7645 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7646sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_header_preproc=no
7649fi
7a197a62 7650
ad6254c5 7651rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7652{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7653$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7654
7655# So? What about this header?
8a2fc586
AK
7656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7657 yes:no: )
ec6a6fbe
AK
7658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7659$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7661$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7662 ac_header_preproc=yes
ad6254c5 7663 ;;
8a2fc586 7664 no:yes:* )
ec6a6fbe
AK
7665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7666$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7668$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7670$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7672$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7674$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7676$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7677
ad6254c5
AK
7678 ;;
7679esac
ec6a6fbe
AK
7680{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7681$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7683 $as_echo_n "(cached) " >&6
ad6254c5 7684else
8a2fc586 7685 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7686fi
ec6a6fbe
AK
7687ac_res=`eval 'as_val=${'$as_ac_Header'}
7688 $as_echo "$as_val"'`
7689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7690$as_echo "$ac_res" >&6; }
ad6254c5
AK
7691
7692fi
ec6a6fbe
AK
7693as_val=`eval 'as_val=${'$as_ac_Header'}
7694 $as_echo "$as_val"'`
7695 if test "x$as_val" = x""yes; then
ad6254c5 7696 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7698_ACEOF
7699
7700fi
7701
7702done
7703
ec6a6fbe
AK
7704{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7705$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7706if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7707 $as_echo_n "(cached) " >&6
ad6254c5
AK
7708else
7709 if test "$cross_compiling" = yes; then
7710 ac_cv_func_malloc_0_nonnull=no
7711else
7712 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7713/* confdefs.h. */
7714_ACEOF
7715cat confdefs.h >>conftest.$ac_ext
7716cat >>conftest.$ac_ext <<_ACEOF
7717/* end confdefs.h. */
25fbec5b 7718#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7719# include <stdlib.h>
7720#else
7721char *malloc ();
7722#endif
7723
7724int
7725main ()
7726{
7a197a62 7727return ! malloc (0);
ad6254c5
AK
7728 ;
7729 return 0;
7730}
7731_ACEOF
7732rm -f conftest$ac_exeext
7a197a62
AK
7733if { (ac_try="$ac_link"
7734case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737esac
ec6a6fbe
AK
7738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739$as_echo "$ac_try_echo") >&5
7a197a62 7740 (eval "$ac_link") 2>&5
ad6254c5 7741 ac_status=$?
ec6a6fbe 7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7744 { (case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747esac
ec6a6fbe
AK
7748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7749$as_echo "$ac_try_echo") >&5
7a197a62 7750 (eval "$ac_try") 2>&5
ad6254c5 7751 ac_status=$?
ec6a6fbe 7752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7753 (exit $ac_status); }; }; then
7754 ac_cv_func_malloc_0_nonnull=yes
7755else
ec6a6fbe
AK
7756 $as_echo "$as_me: program exited with status $ac_status" >&5
7757$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7758sed 's/^/| /' conftest.$ac_ext >&5
7759
7760( exit $ac_status )
7761ac_cv_func_malloc_0_nonnull=no
7762fi
ec6a6fbe 7763rm -rf conftest.dSYM
7a197a62 7764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7765fi
7a197a62
AK
7766
7767
ad6254c5 7768fi
ec6a6fbe
AK
7769{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7770$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7771if test $ac_cv_func_malloc_0_nonnull = yes; then
7772
7773cat >>confdefs.h <<\_ACEOF
7774#define HAVE_MALLOC 1
7775_ACEOF
7776
7777else
7778 cat >>confdefs.h <<\_ACEOF
7779#define HAVE_MALLOC 0
7780_ACEOF
7781
7a197a62 7782 case " $LIBOBJS " in
8a2fc586 7783 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7784 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7785 ;;
8a2fc586
AK
7786esac
7787
ad6254c5
AK
7788
7789cat >>confdefs.h <<\_ACEOF
7790#define malloc rpl_malloc
7791_ACEOF
7792
7793fi
7794
7795
7796
ec6a6fbe
AK
7797{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7798$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7799if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7800 $as_echo_n "(cached) " >&6
ad6254c5
AK
7801else
7802 if test "$cross_compiling" = yes; then
7803 ac_cv_func_memcmp_working=no
7804else
7805 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
8a2fc586 7811$ac_includes_default
ad6254c5
AK
7812int
7813main ()
7814{
7815
7816 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7817 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7818 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7819 return 1;
ad6254c5
AK
7820
7821 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7822 or more and with at least one buffer not starting on a 4-byte boundary.
7823 William Lewis provided this test program. */
7824 {
7825 char foo[21];
7826 char bar[21];
7827 int i;
7828 for (i = 0; i < 4; i++)
7829 {
8a2fc586
AK
7830 char *a = foo + i;
7831 char *b = bar + i;
7832 strcpy (a, "--------01111111");
7833 strcpy (b, "--------10000000");
7834 if (memcmp (a, b, 16) >= 0)
7a197a62 7835 return 1;
ad6254c5 7836 }
7a197a62 7837 return 0;
ad6254c5
AK
7838 }
7839
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest$ac_exeext
7a197a62
AK
7845if { (ac_try="$ac_link"
7846case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
ec6a6fbe
AK
7850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851$as_echo "$ac_try_echo") >&5
7a197a62 7852 (eval "$ac_link") 2>&5
ad6254c5 7853 ac_status=$?
ec6a6fbe 7854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
ec6a6fbe
AK
7860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861$as_echo "$ac_try_echo") >&5
7a197a62 7862 (eval "$ac_try") 2>&5
ad6254c5 7863 ac_status=$?
ec6a6fbe 7864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7865 (exit $ac_status); }; }; then
7866 ac_cv_func_memcmp_working=yes
7867else
ec6a6fbe
AK
7868 $as_echo "$as_me: program exited with status $ac_status" >&5
7869$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872( exit $ac_status )
7873ac_cv_func_memcmp_working=no
7874fi
ec6a6fbe 7875rm -rf conftest.dSYM
7a197a62 7876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7877fi
7a197a62
AK
7878
7879
ad6254c5 7880fi
ec6a6fbe
AK
7881{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7882$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7883test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7884 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7885 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7886 ;;
8a2fc586
AK
7887esac
7888
ad6254c5
AK
7889
7890
7891
7892for ac_header in stdlib.h unistd.h
7893do
ec6a6fbe 7894as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7897$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7899 $as_echo_n "(cached) " >&6
ad6254c5 7900fi
ec6a6fbe
AK
7901ac_res=`eval 'as_val=${'$as_ac_Header'}
7902 $as_echo "$as_val"'`
7903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7904$as_echo "$ac_res" >&6; }
ad6254c5
AK
7905else
7906 # Is the header compilable?
ec6a6fbe
AK
7907{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7908$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7909cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915$ac_includes_default
7916#include <$ac_header>
7917_ACEOF
7918rm -f conftest.$ac_objext
7a197a62
AK
7919if { (ac_try="$ac_compile"
7920case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
ec6a6fbe
AK
7924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925$as_echo "$ac_try_echo") >&5
7a197a62 7926 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7927 ac_status=$?
8a2fc586
AK
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
ec6a6fbe 7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7936 ac_header_compiler=yes
7937else
ec6a6fbe 7938 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7939sed 's/^/| /' conftest.$ac_ext >&5
7940
7a197a62 7941 ac_header_compiler=no
ad6254c5 7942fi
7a197a62
AK
7943
7944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7945{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7946$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7947
7948# Is the header present?
ec6a6fbe
AK
7949{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7950$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7951cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957#include <$ac_header>
7958_ACEOF
7a197a62
AK
7959if { (ac_try="$ac_cpp conftest.$ac_ext"
7960case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963esac
ec6a6fbe
AK
7964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7965$as_echo "$ac_try_echo") >&5
7a197a62 7966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
ec6a6fbe 7971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7972 (exit $ac_status); } >/dev/null && {
7973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 }; then
ad6254c5
AK
7976 ac_header_preproc=yes
7977else
ec6a6fbe 7978 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_header_preproc=no
7982fi
7a197a62 7983
ad6254c5 7984rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7985{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7986$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7987
7988# So? What about this header?
8a2fc586
AK
7989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7990 yes:no: )
ec6a6fbe
AK
7991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7992$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7994$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7995 ac_header_preproc=yes
ad6254c5 7996 ;;
8a2fc586 7997 no:yes:* )
ec6a6fbe
AK
7998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7999$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8001$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8003$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8005$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8007$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8009$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8010
ad6254c5
AK
8011 ;;
8012esac
ec6a6fbe
AK
8013{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8014$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8016 $as_echo_n "(cached) " >&6
ad6254c5 8017else
8a2fc586 8018 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8019fi
ec6a6fbe
AK
8020ac_res=`eval 'as_val=${'$as_ac_Header'}
8021 $as_echo "$as_val"'`
8022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8023$as_echo "$ac_res" >&6; }
ad6254c5
AK
8024
8025fi
ec6a6fbe
AK
8026as_val=`eval 'as_val=${'$as_ac_Header'}
8027 $as_echo "$as_val"'`
8028 if test "x$as_val" = x""yes; then
ad6254c5 8029 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8031_ACEOF
8032
8033fi
8034
8035done
8036
8037
8038for ac_func in getpagesize
8039do
ec6a6fbe
AK
8040as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8041{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8042$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8044 $as_echo_n "(cached) " >&6
ad6254c5
AK
8045else
8046 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8a2fc586
AK
8052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8054#define $ac_func innocuous_$ac_func
8055
ad6254c5
AK
8056/* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char $ac_func (); below.
8058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8059 <limits.h> exists even on freestanding compilers. */
8a2fc586 8060
ad6254c5
AK
8061#ifdef __STDC__
8062# include <limits.h>
8063#else
8064# include <assert.h>
8065#endif
8a2fc586
AK
8066
8067#undef $ac_func
8068
7a197a62
AK
8069/* Override any GCC internal prototype to avoid an error.
8070 Use char because int might match the return type of a GCC
8071 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8072#ifdef __cplusplus
8073extern "C"
ad6254c5 8074#endif
ad6254c5
AK
8075char $ac_func ();
8076/* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
7a197a62 8079#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8080choke me
ad6254c5
AK
8081#endif
8082
8083int
8084main ()
8085{
7a197a62 8086return $ac_func ();
ad6254c5
AK
8087 ;
8088 return 0;
8089}
8090_ACEOF
8091rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8092if { (ac_try="$ac_link"
8093case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096esac
ec6a6fbe
AK
8097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8098$as_echo "$ac_try_echo") >&5
7a197a62 8099 (eval "$ac_link") 2>conftest.er1
ad6254c5 8100 ac_status=$?
8a2fc586
AK
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
ec6a6fbe 8104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
ec6a6fbe
AK
8108 } && test -s conftest$ac_exeext && {
8109 test "$cross_compiling" = yes ||
8110 $as_test_x conftest$ac_exeext
8111 }; then
ad6254c5
AK
8112 eval "$as_ac_var=yes"
8113else
ec6a6fbe 8114 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
7a197a62 8117 eval "$as_ac_var=no"
ad6254c5 8118fi
7a197a62 8119
ec6a6fbe 8120rm -rf conftest.dSYM
25fbec5b 8121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8122 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8123fi
ec6a6fbe
AK
8124ac_res=`eval 'as_val=${'$as_ac_var'}
8125 $as_echo "$as_val"'`
8126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8127$as_echo "$ac_res" >&6; }
8128as_val=`eval 'as_val=${'$as_ac_var'}
8129 $as_echo "$as_val"'`
8130 if test "x$as_val" = x""yes; then
ad6254c5 8131 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8132#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8133_ACEOF
8134
8135fi
8136done
8137
ec6a6fbe
AK
8138{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8139$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8140if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8141 $as_echo_n "(cached) " >&6
ad6254c5
AK
8142else
8143 if test "$cross_compiling" = yes; then
8144 ac_cv_func_mmap_fixed_mapped=no
8145else
8146 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
8152$ac_includes_default
8153/* malloc might have been renamed as rpl_malloc. */
8154#undef malloc
8155
8156/* Thanks to Mike Haertel and Jim Avera for this test.
8157 Here is a matrix of mmap possibilities:
8158 mmap private not fixed
8159 mmap private fixed at somewhere currently unmapped
8160 mmap private fixed at somewhere already mapped
8161 mmap shared not fixed
8162 mmap shared fixed at somewhere currently unmapped
8163 mmap shared fixed at somewhere already mapped
8164 For private mappings, we should verify that changes cannot be read()
8165 back from the file, nor mmap's back from the file at a different
8166 address. (There have been systems where private was not correctly
8167 implemented like the infamous i386 svr4.0, and systems where the
8168 VM page cache was not coherent with the file system buffer cache
8169 like early versions of FreeBSD and possibly contemporary NetBSD.)
8170 For shared mappings, we should conversely verify that changes get
8171 propagated back to all the places they're supposed to be.
8172
8173 Grep wants private fixed already mapped.
8174 The main things grep needs to know about mmap are:
8175 * does it exist and is it safe to write into the mmap'd area
8176 * how to use it (BSD variants) */
8177
8178#include <fcntl.h>
8179#include <sys/mman.h>
8180
25fbec5b 8181#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8182char *malloc ();
8183#endif
8184
8185/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8186#ifndef HAVE_GETPAGESIZE
ad6254c5 8187/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8188# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8189# define HAVE_SYS_PARAM_H 1
8190# endif
8191
8192# ifdef _SC_PAGESIZE
8193# define getpagesize() sysconf(_SC_PAGESIZE)
8194# else /* no _SC_PAGESIZE */
25fbec5b 8195# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8196# include <sys/param.h>
8197# ifdef EXEC_PAGESIZE
8198# define getpagesize() EXEC_PAGESIZE
8199# else /* no EXEC_PAGESIZE */
8200# ifdef NBPG
8201# define getpagesize() NBPG * CLSIZE
8202# ifndef CLSIZE
8203# define CLSIZE 1
8204# endif /* no CLSIZE */
8205# else /* no NBPG */
8206# ifdef NBPC
8207# define getpagesize() NBPC
8208# else /* no NBPC */
8209# ifdef PAGESIZE
8210# define getpagesize() PAGESIZE
8211# endif /* PAGESIZE */
8212# endif /* no NBPC */
8213# endif /* no NBPG */
8214# endif /* no EXEC_PAGESIZE */
8215# else /* no HAVE_SYS_PARAM_H */
8216# define getpagesize() 8192 /* punt totally */
8217# endif /* no HAVE_SYS_PARAM_H */
8218# endif /* no _SC_PAGESIZE */
8219
8220#endif /* no HAVE_GETPAGESIZE */
8221
8222int
8223main ()
8224{
8225 char *data, *data2, *data3;
8226 int i, pagesize;
8227 int fd;
8228
8229 pagesize = getpagesize ();
8230
8231 /* First, make a file with some known garbage in it. */
8232 data = (char *) malloc (pagesize);
8233 if (!data)
7a197a62 8234 return 1;
ad6254c5
AK
8235 for (i = 0; i < pagesize; ++i)
8236 *(data + i) = rand ();
8237 umask (0);
8238 fd = creat ("conftest.mmap", 0600);
8239 if (fd < 0)
7a197a62 8240 return 1;
ad6254c5 8241 if (write (fd, data, pagesize) != pagesize)
7a197a62 8242 return 1;
ad6254c5
AK
8243 close (fd);
8244
8245 /* Next, try to mmap the file at a fixed address which already has
8246 something else allocated at it. If we can, also make sure that
8247 we see the same garbage. */
8248 fd = open ("conftest.mmap", O_RDWR);
8249 if (fd < 0)
7a197a62 8250 return 1;
ad6254c5
AK
8251 data2 = (char *) malloc (2 * pagesize);
8252 if (!data2)
7a197a62
AK
8253 return 1;
8254 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8255 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8256 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8257 return 1;
ad6254c5
AK
8258 for (i = 0; i < pagesize; ++i)
8259 if (*(data + i) != *(data2 + i))
7a197a62 8260 return 1;
ad6254c5
AK
8261
8262 /* Finally, make sure that changes to the mapped area do not
8263 percolate back to the file as seen by read(). (This is a bug on
8264 some variants of i386 svr4.0.) */
8265 for (i = 0; i < pagesize; ++i)
8266 *(data2 + i) = *(data2 + i) + 1;
8267 data3 = (char *) malloc (pagesize);
8268 if (!data3)
7a197a62 8269 return 1;
ad6254c5 8270 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8271 return 1;
ad6254c5
AK
8272 for (i = 0; i < pagesize; ++i)
8273 if (*(data + i) != *(data3 + i))
7a197a62 8274 return 1;
ad6254c5 8275 close (fd);
7a197a62 8276 return 0;
ad6254c5
AK
8277}
8278_ACEOF
8279rm -f conftest$ac_exeext
7a197a62
AK
8280if { (ac_try="$ac_link"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
ec6a6fbe
AK
8285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286$as_echo "$ac_try_echo") >&5
7a197a62 8287 (eval "$ac_link") 2>&5
ad6254c5 8288 ac_status=$?
ec6a6fbe 8289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
ec6a6fbe
AK
8295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296$as_echo "$ac_try_echo") >&5
7a197a62 8297 (eval "$ac_try") 2>&5
ad6254c5 8298 ac_status=$?
ec6a6fbe 8299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8300 (exit $ac_status); }; }; then
8301 ac_cv_func_mmap_fixed_mapped=yes
8302else
ec6a6fbe
AK
8303 $as_echo "$as_me: program exited with status $ac_status" >&5
8304$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8305sed 's/^/| /' conftest.$ac_ext >&5
8306
8307( exit $ac_status )
8308ac_cv_func_mmap_fixed_mapped=no
8309fi
ec6a6fbe 8310rm -rf conftest.dSYM
7a197a62 8311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8312fi
7a197a62
AK
8313
8314
ad6254c5 8315fi
ec6a6fbe
AK
8316{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8317$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8318if test $ac_cv_func_mmap_fixed_mapped = yes; then
8319
8320cat >>confdefs.h <<\_ACEOF
8321#define HAVE_MMAP 1
8322_ACEOF
8323
8324fi
8325rm -f conftest.mmap
8326
ec6a6fbe
AK
8327{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8328$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8329if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8330 $as_echo_n "(cached) " >&6
ad6254c5
AK
8331else
8332 if test "$cross_compiling" = yes; then
8333 ac_cv_func_stat_empty_string_bug=yes
8334else
8335 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8336/* confdefs.h. */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h. */
8341$ac_includes_default
8342int
8343main ()
8344{
8345struct stat sbuf;
7a197a62 8346 return stat ("", &sbuf) == 0;
ad6254c5
AK
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351rm -f conftest$ac_exeext
7a197a62
AK
8352if { (ac_try="$ac_link"
8353case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
ec6a6fbe
AK
8357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8358$as_echo "$ac_try_echo") >&5
7a197a62 8359 (eval "$ac_link") 2>&5
ad6254c5 8360 ac_status=$?
ec6a6fbe 8361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366esac
ec6a6fbe
AK
8367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8368$as_echo "$ac_try_echo") >&5
7a197a62 8369 (eval "$ac_try") 2>&5
ad6254c5 8370 ac_status=$?
ec6a6fbe 8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8372 (exit $ac_status); }; }; then
7a197a62 8373 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8374else
ec6a6fbe
AK
8375 $as_echo "$as_me: program exited with status $ac_status" >&5
8376$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8377sed 's/^/| /' conftest.$ac_ext >&5
8378
8379( exit $ac_status )
7a197a62 8380ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8381fi
ec6a6fbe 8382rm -rf conftest.dSYM
7a197a62 8383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8384fi
7a197a62
AK
8385
8386
ad6254c5 8387fi
ec6a6fbe
AK
8388{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8389$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8390if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8391 case " $LIBOBJS " in
8a2fc586 8392 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8393 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8394 ;;
8a2fc586
AK
8395esac
8396
ad6254c5
AK
8397
8398cat >>confdefs.h <<_ACEOF
8399#define HAVE_STAT_EMPTY_STRING_BUG 1
8400_ACEOF
8401
8402fi
8403
ec6a6fbe
AK
8404{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8405$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8406if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8407 $as_echo_n "(cached) " >&6
ad6254c5
AK
8408else
8409 if test "$cross_compiling" = yes; then
8410 ac_cv_func_strtod=no
8411else
8412 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
8418
7a197a62
AK
8419$ac_includes_default
8420#ifndef strtod
ad6254c5 8421double strtod ();
7a197a62 8422#endif
ad6254c5
AK
8423int
8424main()
8425{
8426 {
8427 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8428 char *string = " +69";
8429 char *term;
8430 double value;
8431 value = strtod (string, &term);
8432 if (value != 69 || term != (string + 4))
7a197a62 8433 return 1;
ad6254c5
AK
8434 }
8435
8436 {
8437 /* Under Solaris 2.4, strtod returns the wrong value for the
8438 terminating character under some conditions. */
8439 char *string = "NaN";
8440 char *term;
8441 strtod (string, &term);
8442 if (term != string && *(term - 1) == 0)
7a197a62 8443 return 1;
ad6254c5 8444 }
7a197a62 8445 return 0;
ad6254c5
AK
8446}
8447
8448_ACEOF
8449rm -f conftest$ac_exeext
7a197a62
AK
8450if { (ac_try="$ac_link"
8451case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
ec6a6fbe
AK
8455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8456$as_echo "$ac_try_echo") >&5
7a197a62 8457 (eval "$ac_link") 2>&5
ad6254c5 8458 ac_status=$?
ec6a6fbe 8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
ec6a6fbe
AK
8465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466$as_echo "$ac_try_echo") >&5
7a197a62 8467 (eval "$ac_try") 2>&5
ad6254c5 8468 ac_status=$?
ec6a6fbe 8469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8470 (exit $ac_status); }; }; then
8471 ac_cv_func_strtod=yes
8472else
ec6a6fbe
AK
8473 $as_echo "$as_me: program exited with status $ac_status" >&5
8474$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477( exit $ac_status )
8478ac_cv_func_strtod=no
8479fi
ec6a6fbe 8480rm -rf conftest.dSYM
7a197a62 8481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8482fi
7a197a62
AK
8483
8484
ad6254c5 8485fi
ec6a6fbe
AK
8486{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8487$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8488if test $ac_cv_func_strtod = no; then
7a197a62 8489 case " $LIBOBJS " in
8a2fc586 8490 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8491 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8492 ;;
8a2fc586
AK
8493esac
8494
ec6a6fbe
AK
8495{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8496$as_echo_n "checking for pow... " >&6; }
ad6254c5 8497if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8498 $as_echo_n "(cached) " >&6
ad6254c5
AK
8499else
8500 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8a2fc586
AK
8506/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8508#define pow innocuous_pow
8509
ad6254c5
AK
8510/* System header to define __stub macros and hopefully few prototypes,
8511 which can conflict with char pow (); below.
8512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8513 <limits.h> exists even on freestanding compilers. */
8a2fc586 8514
ad6254c5
AK
8515#ifdef __STDC__
8516# include <limits.h>
8517#else
8518# include <assert.h>
8519#endif
8a2fc586
AK
8520
8521#undef pow
8522
7a197a62
AK
8523/* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8526#ifdef __cplusplus
8527extern "C"
ad6254c5 8528#endif
ad6254c5
AK
8529char pow ();
8530/* The GNU C library defines this for functions which it implements
8531 to always fail with ENOSYS. Some functions are actually named
8532 something starting with __ and the normal name is an alias. */
7a197a62 8533#if defined __stub_pow || defined __stub___pow
ad6254c5 8534choke me
ad6254c5
AK
8535#endif
8536
8537int
8538main ()
8539{
7a197a62 8540return pow ();
ad6254c5
AK
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8546if { (ac_try="$ac_link"
8547case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550esac
ec6a6fbe
AK
8551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552$as_echo "$ac_try_echo") >&5
7a197a62 8553 (eval "$ac_link") 2>conftest.er1
ad6254c5 8554 ac_status=$?
8a2fc586
AK
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
ec6a6fbe 8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
ec6a6fbe
AK
8562 } && test -s conftest$ac_exeext && {
8563 test "$cross_compiling" = yes ||
8564 $as_test_x conftest$ac_exeext
8565 }; then
ad6254c5
AK
8566 ac_cv_func_pow=yes
8567else
ec6a6fbe 8568 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
7a197a62 8571 ac_cv_func_pow=no
ad6254c5 8572fi
7a197a62 8573
ec6a6fbe 8574rm -rf conftest.dSYM
25fbec5b 8575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8576 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8577fi
ec6a6fbe
AK
8578{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8579$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8580
8581if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8582 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8583$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8584if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8585 $as_echo_n "(cached) " >&6
ad6254c5
AK
8586else
8587 ac_check_lib_save_LIBS=$LIBS
8588LIBS="-lm $LIBS"
8589cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8590/* confdefs.h. */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h. */
8595
7a197a62
AK
8596/* Override any GCC internal prototype to avoid an error.
8597 Use char because int might match the return type of a GCC
8598 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8599#ifdef __cplusplus
8600extern "C"
8601#endif
ad6254c5
AK
8602char pow ();
8603int
8604main ()
8605{
7a197a62 8606return pow ();
ad6254c5
AK
8607 ;
8608 return 0;
8609}
8610_ACEOF
8611rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8612if { (ac_try="$ac_link"
8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
ec6a6fbe
AK
8617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618$as_echo "$ac_try_echo") >&5
7a197a62 8619 (eval "$ac_link") 2>conftest.er1
ad6254c5 8620 ac_status=$?
8a2fc586
AK
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
ec6a6fbe 8624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
ec6a6fbe
AK
8628 } && test -s conftest$ac_exeext && {
8629 test "$cross_compiling" = yes ||
8630 $as_test_x conftest$ac_exeext
8631 }; then
ad6254c5
AK
8632 ac_cv_lib_m_pow=yes
8633else
ec6a6fbe 8634 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8635sed 's/^/| /' conftest.$ac_ext >&5
8636
7a197a62 8637 ac_cv_lib_m_pow=no
ad6254c5 8638fi
7a197a62 8639
ec6a6fbe 8640rm -rf conftest.dSYM
25fbec5b 8641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8642 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8643LIBS=$ac_check_lib_save_LIBS
d0191583 8644fi
ec6a6fbe
AK
8645{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8646$as_echo "$ac_cv_lib_m_pow" >&6; }
8647if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8648 POW_LIB=-lm
8649else
ec6a6fbe
AK
8650 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8651$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8652fi
72b2cb61 8653
d0191583 8654fi
72b2cb61 8655
ad6254c5
AK
8656fi
8657
ad6254c5 8658
d0191583
JM
8659for ac_func in vprintf
8660do
ec6a6fbe
AK
8661as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8662{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8663$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8664if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8665 $as_echo_n "(cached) " >&6
ad6254c5 8666else
d0191583
JM
8667 cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8675#define $ac_func innocuous_$ac_func
7a197a62 8676
d0191583
JM
8677/* System header to define __stub macros and hopefully few prototypes,
8678 which can conflict with char $ac_func (); below.
8679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8680 <limits.h> exists even on freestanding compilers. */
ad6254c5 8681
d0191583
JM
8682#ifdef __STDC__
8683# include <limits.h>
8684#else
8685# include <assert.h>
8686#endif
ad6254c5 8687
d0191583 8688#undef $ac_func
72b2cb61 8689
d0191583
JM
8690/* Override any GCC internal prototype to avoid an error.
8691 Use char because int might match the return type of a GCC
8692 builtin and then its argument prototype would still apply. */
8693#ifdef __cplusplus
8694extern "C"
8695#endif
8696char $ac_func ();
8697/* The GNU C library defines this for functions which it implements
8698 to always fail with ENOSYS. Some functions are actually named
8699 something starting with __ and the normal name is an alias. */
8700#if defined __stub_$ac_func || defined __stub___$ac_func
8701choke me
8702#endif
8703
8704int
8705main ()
8706{
8707return $ac_func ();
8708 ;
8709 return 0;
8710}
72b2cb61 8711_ACEOF
d0191583
JM
8712rm -f conftest.$ac_objext conftest$ac_exeext
8713if { (ac_try="$ac_link"
8714case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717esac
ec6a6fbe
AK
8718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719$as_echo "$ac_try_echo") >&5
d0191583
JM
8720 (eval "$ac_link") 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
ec6a6fbe 8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
ec6a6fbe
AK
8729 } && test -s conftest$ac_exeext && {
8730 test "$cross_compiling" = yes ||
8731 $as_test_x conftest$ac_exeext
8732 }; then
d0191583
JM
8733 eval "$as_ac_var=yes"
8734else
ec6a6fbe 8735 $as_echo "$as_me: failed program was:" >&5
d0191583 8736sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8737
d0191583 8738 eval "$as_ac_var=no"
ad6254c5
AK
8739fi
8740
ec6a6fbe 8741rm -rf conftest.dSYM
d0191583
JM
8742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8743 conftest$ac_exeext conftest.$ac_ext
7a197a62 8744fi
ec6a6fbe
AK
8745ac_res=`eval 'as_val=${'$as_ac_var'}
8746 $as_echo "$as_val"'`
8747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8748$as_echo "$ac_res" >&6; }
8749as_val=`eval 'as_val=${'$as_ac_var'}
8750 $as_echo "$as_val"'`
8751 if test "x$as_val" = x""yes; then
d0191583 8752 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8754_ACEOF
7a197a62 8755
ec6a6fbe
AK
8756{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8757$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8758if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8759 $as_echo_n "(cached) " >&6
ad6254c5 8760else
d0191583
JM
8761 cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h. */
8767/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8769#define _doprnt innocuous__doprnt
7a197a62 8770
d0191583
JM
8771/* System header to define __stub macros and hopefully few prototypes,
8772 which can conflict with char _doprnt (); below.
8773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 <limits.h> exists even on freestanding compilers. */
ad6254c5 8775
d0191583
JM
8776#ifdef __STDC__
8777# include <limits.h>
8778#else
8779# include <assert.h>
8780#endif
72b2cb61 8781
d0191583
JM
8782#undef _doprnt
8783
8784/* Override any GCC internal prototype to avoid an error.
8785 Use char because int might match the return type of a GCC
8786 builtin and then its argument prototype would still apply. */
8787#ifdef __cplusplus
8788extern "C"
8789#endif
8790char _doprnt ();
8791/* The GNU C library defines this for functions which it implements
8792 to always fail with ENOSYS. Some functions are actually named
8793 something starting with __ and the normal name is an alias. */
8794#if defined __stub__doprnt || defined __stub____doprnt
8795choke me
8796#endif
8797
8798int
8799main ()
8800{
8801return _doprnt ();
8802 ;
8803 return 0;
8804}
72b2cb61 8805_ACEOF
d0191583
JM
8806rm -f conftest.$ac_objext conftest$ac_exeext
8807if { (ac_try="$ac_link"
8808case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811esac
ec6a6fbe
AK
8812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8813$as_echo "$ac_try_echo") >&5
d0191583
JM
8814 (eval "$ac_link") 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
ec6a6fbe 8819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
ec6a6fbe
AK
8823 } && test -s conftest$ac_exeext && {
8824 test "$cross_compiling" = yes ||
8825 $as_test_x conftest$ac_exeext
8826 }; then
d0191583
JM
8827 ac_cv_func__doprnt=yes
8828else
ec6a6fbe 8829 $as_echo "$as_me: failed program was:" >&5
d0191583 8830sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8831
d0191583 8832 ac_cv_func__doprnt=no
ad6254c5
AK
8833fi
8834
ec6a6fbe 8835rm -rf conftest.dSYM
d0191583
JM
8836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837 conftest$ac_exeext conftest.$ac_ext
7a197a62 8838fi
ec6a6fbe
AK
8839{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8840$as_echo "$ac_cv_func__doprnt" >&6; }
8841if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8842
d0191583
JM
8843cat >>confdefs.h <<\_ACEOF
8844#define HAVE_DOPRNT 1
8845_ACEOF
ad6254c5 8846
7a197a62
AK
8847fi
8848
d0191583
JM
8849fi
8850done
8b1a3214 8851
ad6254c5 8852
7a197a62 8853
9c961554 8854################################################################################
ec6a6fbe
AK
8855{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8856$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8857# Check whether --enable-static_link was given.
8858if test "${enable_static_link+set}" = set; then
8859 enableval=$enable_static_link; STATIC_LINK=$enableval
8860else
8861 STATIC_LINK=no
8862fi
8863
ec6a6fbe
AK
8864{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8865$as_echo "$STATIC_LINK" >&6; }
9c961554 8866
d0191583 8867################################################################################
ad6254c5 8868
ad6254c5
AK
8869
8870################################################################################
ec6a6fbe
AK
8871{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8872$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8873OWNER="root"
8874
8875
8876# Check whether --with-user was given.
8877if test "${with_user+set}" = set; then
8878 withval=$with_user; OWNER="$withval"
7a197a62
AK
8879fi
8880
ec6a6fbe
AK
8881{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8882$as_echo "$OWNER" >&6; }
ad6254c5 8883
d0191583
JM
8884if test x$OWNER != x; then
8885 OWNER="-o $OWNER"
ad6254c5
AK
8886fi
8887
8888################################################################################
ec6a6fbe
AK
8889{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8890$as_echo_n "checking group owner... " >&6; }
d0191583 8891GROUP="root"
ad6254c5 8892
d0191583
JM
8893# Check whether --with-group was given.
8894if test "${with_group+set}" = set; then
8895 withval=$with_group; GROUP="$withval"
7a197a62
AK
8896fi
8897
ec6a6fbe
AK
8898{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8899$as_echo "$GROUP" >&6; }
d0191583
JM
8900
8901if test x$GROUP != x; then
8902 GROUP="-g $GROUP"
8903fi
ad6254c5 8904
24bbc4d7 8905################################################################################
ec6a6fbe
AK
8906{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
8907$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
8908
8909
8910# Check whether --with-device-uid was given.
8911if test "${with_device_uid+set}" = set; then
8912 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8913else
8914 DM_DEVICE_UID="0"
8915fi
8916
ec6a6fbe
AK
8917{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8918$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
8919
8920################################################################################
ec6a6fbe
AK
8921{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
8922$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
8923
8924
8925# Check whether --with-device-gid was given.
8926if test "${with_device_gid+set}" = set; then
8927 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8928else
8929 DM_DEVICE_GID="0"
8930fi
8931
ec6a6fbe
AK
8932{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8933$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 8934
93bd259b 8935################################################################################
ec6a6fbe
AK
8936{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
8937$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
8938
8939
8940# Check whether --with-device-mode was given.
8941if test "${with_device_mode+set}" = set; then
8942 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8943else
8944 DM_DEVICE_MODE="0600"
8945fi
8946
ec6a6fbe
AK
8947{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8948$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 8949
ad6254c5 8950################################################################################
ec6a6fbe
AK
8951{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8952$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8953# Check whether --enable-lvm1_fallback was given.
8954if test "${enable_lvm1_fallback+set}" = set; then
8955 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8956else
8957 LVM1_FALLBACK=no
7a197a62
AK
8958fi
8959
ec6a6fbe
AK
8960{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8961$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 8962
d0191583 8963if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8964
8965cat >>confdefs.h <<\_ACEOF
d0191583 8966#define LVM1_FALLBACK 1
72b2cb61
AK
8967_ACEOF
8968
ad6254c5
AK
8969fi
8970
8971################################################################################
ec6a6fbe
AK
8972{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8973$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
8974
8975# Check whether --with-lvm1 was given.
8976if test "${with_lvm1+set}" = set; then
8977 withval=$with_lvm1; LVM1="$withval"
8978else
8979 LVM1="internal"
7a197a62
AK
8980fi
8981
ec6a6fbe
AK
8982{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
8983$as_echo "$LVM1" >&6; }
ad6254c5 8984
d0191583 8985if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 8986 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8987" >&5
ec6a6fbe 8988$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8989" >&2;}
8990 { (exit 1); exit 1; }; }
8991fi;
8992
8993if test x$LVM1 = xinternal; then
72b2cb61
AK
8994
8995cat >>confdefs.h <<\_ACEOF
d0191583 8996#define LVM1_INTERNAL 1
72b2cb61
AK
8997_ACEOF
8998
ad6254c5
AK
8999fi
9000
9001################################################################################
ec6a6fbe
AK
9002{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9003$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9004
9005# Check whether --with-pool was given.
9006if test "${with_pool+set}" = set; then
9007 withval=$with_pool; POOL="$withval"
ad6254c5 9008else
d0191583 9009 POOL="internal"
7a197a62
AK
9010fi
9011
ec6a6fbe
AK
9012{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9013$as_echo "$POOL" >&6; }
ad6254c5 9014
d0191583 9015if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9016 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9017" >&5
ec6a6fbe 9018$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9019" >&2;}
9020 { (exit 1); exit 1; }; }
9021fi;
7a197a62 9022
d0191583
JM
9023if test x$POOL = xinternal; then
9024
9025cat >>confdefs.h <<\_ACEOF
9026#define POOL_INTERNAL 1
9027_ACEOF
9028
9029fi
ad6254c5 9030
06f62ad1 9031################################################################################
ec6a6fbe
AK
9032{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9033$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9034
9035# Check whether --with-cluster was given.
9036if test "${with_cluster+set}" = set; then
9037 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9038fi
9039
ec6a6fbe
AK
9040{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9041$as_echo "$CLUSTER" >&6; }
06f62ad1 9042
d0191583 9043if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9044 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9045" >&5
ec6a6fbe 9046$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9047" >&2;}
9048 { (exit 1); exit 1; }; }
d0191583 9049fi;
06f62ad1 9050
d0191583 9051if test x$CLUSTER = xinternal; then
72b2cb61
AK
9052
9053cat >>confdefs.h <<\_ACEOF
d0191583 9054#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9055_ACEOF
9056
15d91f5a 9057fi
ad6254c5
AK
9058
9059################################################################################
ec6a6fbe
AK
9060{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9061$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9062
d0191583
JM
9063# Check whether --with-snapshots was given.
9064if test "${with_snapshots+set}" = set; then
9065 withval=$with_snapshots; SNAPSHOTS="$withval"
9066else
9067 SNAPSHOTS="internal"
ad6254c5
AK
9068fi
9069
ec6a6fbe
AK
9070{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9071$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9072
d0191583 9073if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9074 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9075" >&5
ec6a6fbe 9076$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9077" >&2;}
9078 { (exit 1); exit 1; }; }
9079fi;
9080
9081if test x$SNAPSHOTS = xinternal; then
9082
9083cat >>confdefs.h <<\_ACEOF
9084#define SNAPSHOT_INTERNAL 1
9085_ACEOF
ad6254c5 9086
ad6254c5 9087fi
7a197a62 9088
d0191583 9089################################################################################
ec6a6fbe
AK
9090{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9091$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9092
9093# Check whether --with-mirrors was given.
9094if test "${with_mirrors+set}" = set; then
9095 withval=$with_mirrors; MIRRORS="$withval"
9096else
9097 MIRRORS="internal"
ad6254c5 9098fi
ad6254c5 9099
ec6a6fbe
AK
9100{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9101$as_echo "$MIRRORS" >&6; }
ad6254c5 9102
d0191583 9103if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9104 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9105" >&5
ec6a6fbe 9106$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9107" >&2;}
9108 { (exit 1); exit 1; }; }
9109fi;
ad6254c5 9110
d0191583 9111if test x$MIRRORS = xinternal; then
ad6254c5 9112
d0191583
JM
9113cat >>confdefs.h <<\_ACEOF
9114#define MIRRORED_INTERNAL 1
ad6254c5 9115_ACEOF
8a2fc586 9116
d0191583 9117fi
8a2fc586 9118
d0191583 9119################################################################################
ec6a6fbe
AK
9120{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9121$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9122# Check whether --enable-readline was given.
9123if test "${enable_readline+set}" = set; then
9124 enableval=$enable_readline; READLINE=$enableval
9125else
06e459df 9126 READLINE=maybe
d0191583 9127fi
8a2fc586 9128
ec6a6fbe
AK
9129{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9130$as_echo "$READLINE" >&6; }
8a2fc586 9131
d0191583 9132################################################################################
ec6a6fbe
AK
9133{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9134$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9135# Check whether --enable-realtime was given.
9136if test "${enable_realtime+set}" = set; then
9137 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9138fi
ad6254c5 9139
ec6a6fbe
AK
9140{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9141$as_echo "$REALTIME" >&6; }
d0191583
JM
9142
9143################################################################################
ec6a6fbe
AK
9144{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9145$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9146
9147# Check whether --with-clvmd was given.
9148if test "${with_clvmd+set}" = set; then
9149 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9150else
d0191583
JM
9151 CLVMD="none"
9152fi
8a2fc586 9153
d0191583
JM
9154if test x$CLVMD = xyes; then
9155 CLVMD=all
9156fi
ec6a6fbe
AK
9157{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9158$as_echo "$CLVMD" >&6; }
8a2fc586 9159
d0191583
JM
9160if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9161 CLUSTER=internal
9162fi
8a2fc586 9163
d0191583 9164################################################################################
ec6a6fbe
AK
9165{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9166$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
9167# Check whether --enable-debug was given.
9168if test "${enable_debug+set}" = set; then
9169 enableval=$enable_debug; DEBUG=$enableval
9170else
9171 DEBUG=no
9172fi
8a2fc586 9173
ec6a6fbe
AK
9174{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9175$as_echo "$DEBUG" >&6; }
ad6254c5 9176
d0191583
JM
9177if test x$DEBUG = xyes; then
9178 COPTIMISE_FLAG=
fc54be10 9179else
d0191583
JM
9180 CSCOPE_CMD=
9181fi
fc54be10 9182
d0191583 9183################################################################################
ec6a6fbe
AK
9184{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9185$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9186
9187# Check whether --with-optimisation was given.
9188if test "${with_optimisation+set}" = set; then
9189 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9190fi
9191
ec6a6fbe
AK
9192{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9193$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9194
9195################################################################################
ec6a6fbe
AK
9196{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9197$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9198# Check whether --enable-profiling was given.
9199if test "${enable_profiling+set}" = set; then
5556819a 9200 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9201else
5556819a 9202 PROFILING=no
fddafd51
ZK
9203fi
9204
ec6a6fbe
AK
9205{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9206$as_echo "$PROFILING" >&6; }
5556819a
AK
9207
9208if test "x$PROFILING" = xyes; then
9209 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9210 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9211set dummy lcov; ac_word=$2
ec6a6fbe
AK
9212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9214if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 9215 $as_echo_n "(cached) " >&6
fddafd51
ZK
9216else
9217 case $LCOV in
9218 [\\/]* | ?:[\\/]*)
9219 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9220 ;;
9221 *)
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223for as_dir in $PATH
9224do
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9231 break 2
9232 fi
9233done
9234done
9235IFS=$as_save_IFS
9236
b145d876 9237 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9238 ;;
9239esac
9240fi
9241LCOV=$ac_cv_path_LCOV
9242if test -n "$LCOV"; then
ec6a6fbe
AK
9243 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9244$as_echo "$LCOV" >&6; }
fddafd51 9245else
ec6a6fbe
AK
9246 { $as_echo "$as_me:$LINENO: result: no" >&5
9247$as_echo "no" >&6; }
fddafd51
ZK
9248fi
9249
9250
5556819a 9251 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9252set dummy genhtml; ac_word=$2
ec6a6fbe
AK
9253{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9254$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9255if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 9256 $as_echo_n "(cached) " >&6
fddafd51
ZK
9257else
9258 case $GENHTML in
9259 [\\/]* | ?:[\\/]*)
9260 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9261 ;;
9262 *)
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264for as_dir in $PATH
9265do
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9270 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9272 break 2
9273 fi
9274done
9275done
9276IFS=$as_save_IFS
9277
b145d876 9278 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9279 ;;
9280esac
9281fi
9282GENHTML=$ac_cv_path_GENHTML
9283if test -n "$GENHTML"; then
ec6a6fbe
AK
9284 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9285$as_echo "$GENHTML" >&6; }
fddafd51 9286else
ec6a6fbe
AK
9287 { $as_echo "$as_me:$LINENO: result: no" >&5
9288$as_echo "no" >&6; }
fddafd51
ZK
9289fi
9290
9291
b145d876 9292 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
9293 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9294$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
9295 { (exit 1); exit 1; }; }
9296 fi
5556819a 9297fi
d0191583
JM
9298
9299################################################################################
ec6a6fbe
AK
9300{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9301$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9302# Check whether --enable-devmapper was given.
9303if test "${enable_devmapper+set}" = set; then
9304 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9305fi
9306
ec6a6fbe
AK
9307{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9308$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9309
9310if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9311
9312cat >>confdefs.h <<\_ACEOF
d0191583 9313#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9314_ACEOF
9315
9316fi
9317
93bd259b
AK
9318################################################################################
9319# Check whether --enable-compat was given.
9320if test "${enable_compat+set}" = set; then
9321 enableval=$enable_compat; DM_COMPAT=$enableval
9322else
9323 DM_COMPAT=no
9324fi
9325
9326
9327################################################################################
9328# Check whether --enable-ioctl was given.
9329if test "${enable_ioctl+set}" = set; then
9330 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9331fi
9332
9333
d0191583 9334################################################################################
ec6a6fbe
AK
9335{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9336$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9337# Check whether --enable-o_direct was given.
9338if test "${enable_o_direct+set}" = set; then
9339 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9340fi
ad6254c5 9341
ec6a6fbe
AK
9342{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9343$as_echo "$ODIRECT" >&6; }
ad6254c5 9344
d0191583 9345if test x$ODIRECT = xyes; then
ad6254c5 9346
d0191583
JM
9347cat >>confdefs.h <<\_ACEOF
9348#define O_DIRECT_SUPPORT 1
9349_ACEOF
ad6254c5 9350
d0191583 9351fi
ad6254c5 9352
d0191583 9353################################################################################
ec6a6fbe
AK
9354{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9355$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9356# Check whether --enable-cmdlib was given.
9357if test "${enable_cmdlib+set}" = set; then
9358 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9359else
d0191583
JM
9360 CMDLIB=no
9361fi
8a2fc586 9362
ec6a6fbe
AK
9363{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9364$as_echo "$CMDLIB" >&6; }
8a2fc586 9365
2a9a80c9 9366test x$CMDLIB = xyes \
d179cc7a
JM
9367 && LVM2CMD_LIB=-llvm2cmd \
9368 || LVM2CMD_LIB=
9369
93bd259b
AK
9370################################################################################
9371# Check whether --enable-pkgconfig was given.
9372if test "${enable_pkgconfig+set}" = set; then
9373 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9374else
9375 PKGCONFIG=no
9376fi
9377
2a9a80c9 9378
d0191583 9379################################################################################
ec6a6fbe
AK
9380{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9381$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9382# Check whether --enable-fsadm was given.
9383if test "${enable_fsadm+set}" = set; then
9384 enableval=$enable_fsadm; FSADM=$enableval
9385fi
8a2fc586 9386
ec6a6fbe
AK
9387{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9388$as_echo "$FSADM" >&6; }
8a2fc586 9389
d0191583 9390################################################################################
ec6a6fbe
AK
9391{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9392$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9393# Check whether --enable-dmeventd was given.
9394if test "${enable_dmeventd+set}" = set; then
9395 enableval=$enable_dmeventd; DMEVENTD=$enableval
9396fi
ad6254c5 9397
ec6a6fbe
AK
9398{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9399$as_echo "$DMEVENTD" >&6; }
ad6254c5 9400
93bd259b
AK
9401BUILD_DMEVENTD=$DMEVENTD
9402
2a9a80c9
PR
9403if test x$DMEVENTD = xyes; then
9404 if test x$MIRRORS != xinternal; then
ec6a6fbe 9405 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9406 " >&5
ec6a6fbe 9407$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9408 " >&2;}
d0191583 9409 { (exit 1); exit 1; }; }
2a9a80c9
PR
9410 fi
9411 if test x$CMDLIB = xno; then
ec6a6fbe 9412 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9413 " >&5
ec6a6fbe 9414$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9415 " >&2;}
9416 { (exit 1); exit 1; }; }
9417 fi
ad6254c5 9418fi
7a197a62 9419
d0191583
JM
9420if test x$DMEVENTD = xyes; then
9421
9422cat >>confdefs.h <<\_ACEOF
9423#define DMEVENTD 1
ad6254c5
AK
9424_ACEOF
9425
ad6254c5 9426fi
93bd259b
AK
9427
9428################################################################################
9429
ec6a6fbe
AK
9430{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9431$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 9432if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 9433 $as_echo_n "(cached) " >&6
93bd259b
AK
9434else
9435 ac_check_lib_save_LIBS=$LIBS
9436LIBS="-lc $LIBS"
9437cat >conftest.$ac_ext <<_ACEOF
9438/* confdefs.h. */
9439_ACEOF
9440cat confdefs.h >>conftest.$ac_ext
9441cat >>conftest.$ac_ext <<_ACEOF
9442/* end confdefs.h. */
9443
9444/* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447#ifdef __cplusplus
9448extern "C"
9449#endif
9450char getline ();
9451int
9452main ()
9453{
9454return getline ();
9455 ;
9456 return 0;
9457}
9458_ACEOF
9459rm -f conftest.$ac_objext conftest$ac_exeext
9460if { (ac_try="$ac_link"
9461case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9464esac
ec6a6fbe
AK
9465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9466$as_echo "$ac_try_echo") >&5
93bd259b
AK
9467 (eval "$ac_link") 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
ec6a6fbe 9472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9473 (exit $ac_status); } && {
9474 test -z "$ac_c_werror_flag" ||
9475 test ! -s conftest.err
ec6a6fbe
AK
9476 } && test -s conftest$ac_exeext && {
9477 test "$cross_compiling" = yes ||
9478 $as_test_x conftest$ac_exeext
9479 }; then
93bd259b
AK
9480 ac_cv_lib_c_getline=yes
9481else
ec6a6fbe 9482 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_lib_c_getline=no
9486fi
9487
ec6a6fbe 9488rm -rf conftest.dSYM
93bd259b
AK
9489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9490 conftest$ac_exeext conftest.$ac_ext
9491LIBS=$ac_check_lib_save_LIBS
9492fi
ec6a6fbe
AK
9493{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9494$as_echo "$ac_cv_lib_c_getline" >&6; }
9495if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
9496
9497cat >>confdefs.h <<\_ACEOF
9498#define HAVE_GETLINE 1
9499_ACEOF
9500
9501fi
9502
9503
9504################################################################################
9505
ec6a6fbe
AK
9506{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9507$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 9508if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 9509 $as_echo_n "(cached) " >&6
93bd259b
AK
9510else
9511 ac_check_lib_save_LIBS=$LIBS
9512LIBS="-lc $LIBS"
9513cat >conftest.$ac_ext <<_ACEOF
9514/* confdefs.h. */
9515_ACEOF
9516cat confdefs.h >>conftest.$ac_ext
9517cat >>conftest.$ac_ext <<_ACEOF
9518/* end confdefs.h. */
9519
9520/* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9523#ifdef __cplusplus
9524extern "C"
9525#endif
9526char canonicalize_file_name ();
9527int
9528main ()
9529{
9530return canonicalize_file_name ();
9531 ;
9532 return 0;
9533}
9534_ACEOF
9535rm -f conftest.$ac_objext conftest$ac_exeext
9536if { (ac_try="$ac_link"
9537case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540esac
ec6a6fbe
AK
9541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542$as_echo "$ac_try_echo") >&5
93bd259b
AK
9543 (eval "$ac_link") 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
ec6a6fbe 9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
ec6a6fbe
AK
9552 } && test -s conftest$ac_exeext && {
9553 test "$cross_compiling" = yes ||
9554 $as_test_x conftest$ac_exeext
9555 }; then
93bd259b
AK
9556 ac_cv_lib_c_canonicalize_file_name=yes
9557else
ec6a6fbe 9558 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9559sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_cv_lib_c_canonicalize_file_name=no
9562fi
9563
ec6a6fbe 9564rm -rf conftest.dSYM
93bd259b
AK
9565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9567LIBS=$ac_check_lib_save_LIBS
9568fi
ec6a6fbe
AK
9569{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9570$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9571if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
9572
9573cat >>confdefs.h <<\_ACEOF
9574#define HAVE_CANONICALIZE_FILE_NAME 1
9575_ACEOF
9576
9577fi
9578
9579
d0191583
JM
9580################################################################################
9581if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9582 then exec_prefix="";
9583fi;
ad6254c5
AK
9584
9585################################################################################
06e459df 9586if test x$READLINE != xno; then
ec6a6fbe
AK
9587 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9588$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 9589if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 9590 $as_echo_n "(cached) " >&6
ad6254c5
AK
9591else
9592 ac_func_search_save_LIBS=$LIBS
ad6254c5 9593cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9594/* confdefs.h. */
9595_ACEOF
9596cat confdefs.h >>conftest.$ac_ext
9597cat >>conftest.$ac_ext <<_ACEOF
9598/* end confdefs.h. */
9599
7a197a62
AK
9600/* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9603#ifdef __cplusplus
9604extern "C"
9605#endif
ad6254c5
AK
9606char tgetent ();
9607int
9608main ()
9609{
7a197a62 9610return tgetent ();
ad6254c5
AK
9611 ;
9612 return 0;
9613}
9614_ACEOF
18dcfb69 9615for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
9616 if test -z "$ac_lib"; then
9617 ac_res="none required"
9618 else
9619 ac_res=-l$ac_lib
9620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9621 fi
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623if { (ac_try="$ac_link"
9624case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627esac
ec6a6fbe
AK
9628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9629$as_echo "$ac_try_echo") >&5
7a197a62 9630 (eval "$ac_link") 2>conftest.er1
ad6254c5 9631 ac_status=$?
8a2fc586
AK
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
ec6a6fbe 9635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
ec6a6fbe
AK
9639 } && test -s conftest$ac_exeext && {
9640 test "$cross_compiling" = yes ||
9641 $as_test_x conftest$ac_exeext
9642 }; then
7a197a62 9643 ac_cv_search_tgetent=$ac_res
ad6254c5 9644else
ec6a6fbe 9645 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9646sed 's/^/| /' conftest.$ac_ext >&5
9647
ad6254c5 9648
7a197a62 9649fi
ad6254c5 9650
ec6a6fbe 9651rm -rf conftest.dSYM
25fbec5b 9652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
9653 conftest$ac_exeext
9654 if test "${ac_cv_search_tgetent+set}" = set; then
9655 break
ad6254c5 9656fi
7a197a62
AK
9657done
9658if test "${ac_cv_search_tgetent+set}" = set; then
9659 :
9660else
9661 ac_cv_search_tgetent=no
ad6254c5 9662fi
7a197a62 9663rm conftest.$ac_ext
ad6254c5
AK
9664LIBS=$ac_func_search_save_LIBS
9665fi
ec6a6fbe
AK
9666{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9667$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9668ac_res=$ac_cv_search_tgetent
9669if test "$ac_res" != no; then
9670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 9671 tg_found=yes
ad6254c5 9672else
06e459df
JM
9673 tg_found=no
9674fi
9675
9676 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 9677 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9678--enable-readline option (which is enabled by default). Either disable readline
9679support with --disable-readline or download and install termcap from:
9680 ftp.gnu.org/gnu/termcap
9681Note: if you are using precompiled packages you will also need the development
9682 package as well (which may be called termcap-devel or something similar).
9683Note: (n)curses also seems to work as a substitute for termcap. This was
9684 not found either - but you could try installing that as well.
9685" >&5
ec6a6fbe 9686$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9687--enable-readline option (which is enabled by default). Either disable readline
9688support with --disable-readline or download and install termcap from:
9689 ftp.gnu.org/gnu/termcap
9690Note: if you are using precompiled packages you will also need the development
9691 package as well (which may be called termcap-devel or something similar).
9692Note: (n)curses also seems to work as a substitute for termcap. This was
9693 not found either - but you could try installing that as well.
9694" >&2;}
9695 { (exit 1); exit 1; }; }
ad6254c5
AK
9696fi
9697
9698################################################################################
ec6a6fbe
AK
9699{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9700$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 9701if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 9702 $as_echo_n "(cached) " >&6
ad6254c5
AK
9703else
9704 ac_check_lib_save_LIBS=$LIBS
9705LIBS="-ldl $LIBS"
9706cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712
7a197a62
AK
9713/* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9716#ifdef __cplusplus
9717extern "C"
9718#endif
ad6254c5
AK
9719char dlopen ();
9720int
9721main ()
9722{
7a197a62 9723return dlopen ();
ad6254c5
AK
9724 ;
9725 return 0;
9726}
9727_ACEOF
9728rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9729if { (ac_try="$ac_link"
9730case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733esac
ec6a6fbe
AK
9734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735$as_echo "$ac_try_echo") >&5
7a197a62 9736 (eval "$ac_link") 2>conftest.er1
ad6254c5 9737 ac_status=$?
8a2fc586
AK
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
ec6a6fbe 9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
ec6a6fbe
AK
9745 } && test -s conftest$ac_exeext && {
9746 test "$cross_compiling" = yes ||
9747 $as_test_x conftest$ac_exeext
9748 }; then
ad6254c5
AK
9749 ac_cv_lib_dl_dlopen=yes
9750else
ec6a6fbe 9751 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9752sed 's/^/| /' conftest.$ac_ext >&5
9753
7a197a62 9754 ac_cv_lib_dl_dlopen=no
ad6254c5 9755fi
7a197a62 9756
ec6a6fbe 9757rm -rf conftest.dSYM
25fbec5b 9758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9759 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9760LIBS=$ac_check_lib_save_LIBS
9761fi
ec6a6fbe
AK
9762{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9764if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
9765 HAVE_LIBDL=yes
9766else
9767 HAVE_LIBDL=no
9768fi
9769
9770
7e9e9502 9771if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9772
9773cat >>confdefs.h <<\_ACEOF
9774#define HAVE_LIBDL 1
9775_ACEOF
9776
ad6254c5
AK
9777 LIBS="-ldl $LIBS"
9778else
9779 HAVE_LIBDL=no
9780fi
9781
9782################################################################################
9783if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9784 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9785 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 9786 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9787" >&5
ec6a6fbe 9788$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9789" >&2;}
9790 { (exit 1); exit 1; }; }
9791fi
9792
d0191583 9793################################################################################
ec6a6fbe
AK
9794{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9795$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
9796# Check whether --enable-selinux was given.
9797if test "${enable_selinux+set}" = set; then
9798 enableval=$enable_selinux; SELINUX=$enableval
9799fi
9800
ec6a6fbe
AK
9801{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
9802$as_echo "$SELINUX" >&6; }
d0191583 9803
ad6254c5
AK
9804################################################################################
9805if test x$SELINUX = xyes; then
ec6a6fbe
AK
9806 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9807$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 9808if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 9809 $as_echo_n "(cached) " >&6
8a2fc586
AK
9810else
9811 ac_check_lib_save_LIBS=$LIBS
9812LIBS="-lsepol $LIBS"
9813cat >conftest.$ac_ext <<_ACEOF
9814/* confdefs.h. */
9815_ACEOF
9816cat confdefs.h >>conftest.$ac_ext
9817cat >>conftest.$ac_ext <<_ACEOF
9818/* end confdefs.h. */
9819
7a197a62
AK
9820/* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9823#ifdef __cplusplus
9824extern "C"
9825#endif
8a2fc586
AK
9826char sepol_check_context ();
9827int
9828main ()
9829{
7a197a62 9830return sepol_check_context ();
8a2fc586
AK
9831 ;
9832 return 0;
9833}
9834_ACEOF
9835rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9836if { (ac_try="$ac_link"
9837case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
ec6a6fbe
AK
9841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842$as_echo "$ac_try_echo") >&5
7a197a62 9843 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
ec6a6fbe 9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
ec6a6fbe
AK
9852 } && test -s conftest$ac_exeext && {
9853 test "$cross_compiling" = yes ||
9854 $as_test_x conftest$ac_exeext
9855 }; then
8a2fc586
AK
9856 ac_cv_lib_sepol_sepol_check_context=yes
9857else
ec6a6fbe 9858 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
9859sed 's/^/| /' conftest.$ac_ext >&5
9860
7a197a62 9861 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9862fi
7a197a62 9863
ec6a6fbe 9864rm -rf conftest.dSYM
25fbec5b 9865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9866 conftest$ac_exeext conftest.$ac_ext
9867LIBS=$ac_check_lib_save_LIBS
9868fi
ec6a6fbe
AK
9869{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9870$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9871if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
9872 HAVE_SEPOL=yes
9873else
9874 HAVE_SEPOL=no
9875fi
9876
8a2fc586
AK
9877
9878 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9879
9880cat >>confdefs.h <<\_ACEOF
9881#define HAVE_SEPOL 1
9882_ACEOF
9883
8a2fc586
AK
9884 LIBS="-lsepol $LIBS"
9885 fi
9886
ec6a6fbe
AK
9887 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9888$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 9889if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 9890 $as_echo_n "(cached) " >&6
ad6254c5
AK
9891else
9892 ac_check_lib_save_LIBS=$LIBS
9893LIBS="-lselinux $LIBS"
9894cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9895/* confdefs.h. */
9896_ACEOF
9897cat confdefs.h >>conftest.$ac_ext
9898cat >>conftest.$ac_ext <<_ACEOF
9899/* end confdefs.h. */
9900
7a197a62
AK
9901/* Override any GCC internal prototype to avoid an error.
9902 Use char because int might match the return type of a GCC
9903 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9904#ifdef __cplusplus
9905extern "C"
9906#endif
ad6254c5
AK
9907char is_selinux_enabled ();
9908int
9909main ()
9910{
7a197a62 9911return is_selinux_enabled ();
ad6254c5
AK
9912 ;
9913 return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9917if { (ac_try="$ac_link"
9918case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
ec6a6fbe
AK
9922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9923$as_echo "$ac_try_echo") >&5
7a197a62 9924 (eval "$ac_link") 2>conftest.er1
ad6254c5 9925 ac_status=$?
8a2fc586
AK
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
ec6a6fbe 9929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
ec6a6fbe
AK
9933 } && test -s conftest$ac_exeext && {
9934 test "$cross_compiling" = yes ||
9935 $as_test_x conftest$ac_exeext
9936 }; then
ad6254c5
AK
9937 ac_cv_lib_selinux_is_selinux_enabled=yes
9938else
ec6a6fbe 9939 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
7a197a62 9942 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9943fi
7a197a62 9944
ec6a6fbe 9945rm -rf conftest.dSYM
25fbec5b 9946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9947 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9948LIBS=$ac_check_lib_save_LIBS
9949fi
ec6a6fbe
AK
9950{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9951$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9952if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
9953 HAVE_SELINUX=yes
9954else
9955 HAVE_SELINUX=no
9956fi
9957
ad6254c5
AK
9958
9959 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9960
9961cat >>confdefs.h <<\_ACEOF
9962#define HAVE_SELINUX 1
9963_ACEOF
9964
ad6254c5
AK
9965 LIBS="-lselinux $LIBS"
9966 else
ec6a6fbe
AK
9967 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9968$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9969 fi
9970
d0191583 9971 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9972 # fails on at least Debian unstable due to unsatisfied references
9973 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9974 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9975 lvm_saved_libs=$LIBS
9976 LIBS="$LIBS -static"
ec6a6fbe
AK
9977 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9978$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 9979if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 9980 $as_echo_n "(cached) " >&6
66e941e8
JM
9981else
9982 ac_func_search_save_LIBS=$LIBS
9983cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h. */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h. */
9989
9990/* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993#ifdef __cplusplus
9994extern "C"
9995#endif
9996char pthread_mutex_lock ();
9997int
9998main ()
9999{
10000return pthread_mutex_lock ();
10001 ;
10002 return 0;
10003}
10004_ACEOF
10005for ac_lib in '' pthread; do
10006 if test -z "$ac_lib"; then
10007 ac_res="none required"
10008 else
10009 ac_res=-l$ac_lib
10010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10011 fi
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
ec6a6fbe
AK
10018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10019$as_echo "$ac_try_echo") >&5
66e941e8
JM
10020 (eval "$ac_link") 2>conftest.er1
10021 ac_status=$?
10022 grep -v '^ *+' conftest.er1 >conftest.err
10023 rm -f conftest.er1
10024 cat conftest.err >&5
ec6a6fbe 10025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10026 (exit $ac_status); } && {
10027 test -z "$ac_c_werror_flag" ||
10028 test ! -s conftest.err
ec6a6fbe
AK
10029 } && test -s conftest$ac_exeext && {
10030 test "$cross_compiling" = yes ||
10031 $as_test_x conftest$ac_exeext
10032 }; then
66e941e8
JM
10033 ac_cv_search_pthread_mutex_lock=$ac_res
10034else
ec6a6fbe 10035 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038
10039fi
10040
ec6a6fbe 10041rm -rf conftest.dSYM
25fbec5b 10042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
10043 conftest$ac_exeext
10044 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10045 break
10046fi
10047done
10048if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10049 :
10050else
10051 ac_cv_search_pthread_mutex_lock=no
10052fi
10053rm conftest.$ac_ext
10054LIBS=$ac_func_search_save_LIBS
10055fi
ec6a6fbe
AK
10056{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10057$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
10058ac_res=$ac_cv_search_pthread_mutex_lock
10059if test "$ac_res" != no; then
10060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10061 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10062 LIB_PTHREAD=-lpthread
10063fi
10064
10065 LIBS=$lvm_saved_libs
ad6254c5
AK
10066 fi
10067fi
10068
8b1a3214
AK
10069################################################################################
10070if test x$REALTIME = xyes; then
ec6a6fbe
AK
10071 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10072$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 10073if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 10074 $as_echo_n "(cached) " >&6
8b1a3214
AK
10075else
10076 ac_check_lib_save_LIBS=$LIBS
10077LIBS="-lrt $LIBS"
10078cat >conftest.$ac_ext <<_ACEOF
10079/* confdefs.h. */
10080_ACEOF
10081cat confdefs.h >>conftest.$ac_ext
10082cat >>conftest.$ac_ext <<_ACEOF
10083/* end confdefs.h. */
10084
7a197a62
AK
10085/* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
8b1a3214
AK
10088#ifdef __cplusplus
10089extern "C"
10090#endif
8b1a3214
AK
10091char clock_gettime ();
10092int
10093main ()
10094{
7a197a62 10095return clock_gettime ();
8b1a3214
AK
10096 ;
10097 return 0;
10098}
10099_ACEOF
10100rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10101if { (ac_try="$ac_link"
10102case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105esac
ec6a6fbe
AK
10106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107$as_echo "$ac_try_echo") >&5
7a197a62 10108 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
ec6a6fbe 10113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
ec6a6fbe
AK
10117 } && test -s conftest$ac_exeext && {
10118 test "$cross_compiling" = yes ||
10119 $as_test_x conftest$ac_exeext
10120 }; then
8b1a3214
AK
10121 ac_cv_lib_rt_clock_gettime=yes
10122else
ec6a6fbe 10123 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
10124sed 's/^/| /' conftest.$ac_ext >&5
10125
7a197a62 10126 ac_cv_lib_rt_clock_gettime=no
8b1a3214 10127fi
7a197a62 10128
ec6a6fbe 10129rm -rf conftest.dSYM
25fbec5b 10130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
10131 conftest$ac_exeext conftest.$ac_ext
10132LIBS=$ac_check_lib_save_LIBS
10133fi
ec6a6fbe
AK
10134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10135$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10136if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
10137 HAVE_REALTIME=yes
10138else
10139 HAVE_REALTIME=no
10140fi
10141
8b1a3214
AK
10142
10143 if test x$HAVE_REALTIME = xyes; then
10144
10145cat >>confdefs.h <<\_ACEOF
10146#define HAVE_REALTIME 1
10147_ACEOF
10148
10149 LIBS="-lrt $LIBS"
10150 else
ec6a6fbe
AK
10151 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10152$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
10153 fi
10154fi
10155
ad6254c5
AK
10156################################################################################
10157
10158for ac_header in getopt.h
10159do
ec6a6fbe 10160as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10163$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10165 $as_echo_n "(cached) " >&6
ad6254c5 10166fi
ec6a6fbe
AK
10167ac_res=`eval 'as_val=${'$as_ac_Header'}
10168 $as_echo "$as_val"'`
10169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10170$as_echo "$ac_res" >&6; }
ad6254c5
AK
10171else
10172 # Is the header compilable?
ec6a6fbe
AK
10173{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10174$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10175cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10176/* confdefs.h. */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h. */
10181$ac_includes_default
10182#include <$ac_header>
10183_ACEOF
10184rm -f conftest.$ac_objext
7a197a62
AK
10185if { (ac_try="$ac_compile"
10186case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189esac
ec6a6fbe
AK
10190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10191$as_echo "$ac_try_echo") >&5
7a197a62 10192 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10193 ac_status=$?
8a2fc586
AK
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
ec6a6fbe 10197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10198 (exit $ac_status); } && {
10199 test -z "$ac_c_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10202 ac_header_compiler=yes
10203else
ec6a6fbe 10204 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
7a197a62 10207 ac_header_compiler=no
ad6254c5 10208fi
7a197a62
AK
10209
10210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10211{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10212$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10213
10214# Is the header present?
ec6a6fbe
AK
10215{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10216$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10217cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10218/* confdefs.h. */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h. */
10223#include <$ac_header>
10224_ACEOF
7a197a62
AK
10225if { (ac_try="$ac_cpp conftest.$ac_ext"
10226case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229esac
ec6a6fbe
AK
10230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10231$as_echo "$ac_try_echo") >&5
7a197a62 10232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
ec6a6fbe 10237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10238 (exit $ac_status); } >/dev/null && {
10239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 }; then
ad6254c5
AK
10242 ac_header_preproc=yes
10243else
ec6a6fbe 10244 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10245sed 's/^/| /' conftest.$ac_ext >&5
10246
10247 ac_header_preproc=no
10248fi
7a197a62 10249
ad6254c5 10250rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10251{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10252$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10253
10254# So? What about this header?
8a2fc586
AK
10255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10256 yes:no: )
ec6a6fbe
AK
10257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10258$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10260$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10261 ac_header_preproc=yes
ad6254c5 10262 ;;
8a2fc586 10263 no:yes:* )
ec6a6fbe
AK
10264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10265$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10267$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10269$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10271$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10273$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10275$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10276
ad6254c5
AK
10277 ;;
10278esac
ec6a6fbe
AK
10279{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10280$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10282 $as_echo_n "(cached) " >&6
ad6254c5 10283else
8a2fc586 10284 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10285fi
ec6a6fbe
AK
10286ac_res=`eval 'as_val=${'$as_ac_Header'}
10287 $as_echo "$as_val"'`
10288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10289$as_echo "$ac_res" >&6; }
ad6254c5
AK
10290
10291fi
ec6a6fbe
AK
10292as_val=`eval 'as_val=${'$as_ac_Header'}
10293 $as_echo "$as_val"'`
10294 if test "x$as_val" = x""yes; then
ad6254c5 10295 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10297_ACEOF
72b2cb61
AK
10298
10299cat >>confdefs.h <<\_ACEOF
10300#define HAVE_GETOPTLONG 1
10301_ACEOF
10302
ad6254c5
AK
10303fi
10304
10305done
10306
10307
10308################################################################################
06e459df 10309if test x$READLINE != xno; then
bc1024f8
JM
10310 rl_found=yes
10311
ec6a6fbe
AK
10312{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10313$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 10314if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 10315 $as_echo_n "(cached) " >&6
ad6254c5
AK
10316else
10317 ac_check_lib_save_LIBS=$LIBS
10318LIBS="-lreadline $LIBS"
10319cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325
7a197a62
AK
10326/* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10329#ifdef __cplusplus
10330extern "C"
10331#endif
ad6254c5
AK
10332char readline ();
10333int
10334main ()
10335{
7a197a62 10336return readline ();
ad6254c5
AK
10337 ;
10338 return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10342if { (ac_try="$ac_link"
10343case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346esac
ec6a6fbe
AK
10347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348$as_echo "$ac_try_echo") >&5
7a197a62 10349 (eval "$ac_link") 2>conftest.er1
ad6254c5 10350 ac_status=$?
8a2fc586
AK
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
ec6a6fbe 10354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10355 (exit $ac_status); } && {
10356 test -z "$ac_c_werror_flag" ||
10357 test ! -s conftest.err
ec6a6fbe
AK
10358 } && test -s conftest$ac_exeext && {
10359 test "$cross_compiling" = yes ||
10360 $as_test_x conftest$ac_exeext
10361 }; then
ad6254c5
AK
10362 ac_cv_lib_readline_readline=yes
10363else
ec6a6fbe 10364 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
7a197a62 10367 ac_cv_lib_readline_readline=no
ad6254c5 10368fi
7a197a62 10369
ec6a6fbe 10370rm -rf conftest.dSYM
25fbec5b 10371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10372 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10373LIBS=$ac_check_lib_save_LIBS
10374fi
ec6a6fbe
AK
10375{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10376$as_echo "$ac_cv_lib_readline_readline" >&6; }
10377if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
10378 cat >>confdefs.h <<_ACEOF
10379#define HAVE_LIBREADLINE 1
10380_ACEOF
10381
10382 LIBS="-lreadline $LIBS"
10383
ad6254c5 10384else
06e459df
JM
10385 rl_found=no
10386fi
10387
10388 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 10389 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10390--enable-readline option (which is enabled by default). Either disable readline
10391support with --disable-readline or download and install readline from:
10392 ftp.gnu.org/gnu/readline
10393Note: if you are using precompiled packages you will also need the development
10394package as well (which may be called readline-devel or something similar).
10395" >&5
ec6a6fbe 10396$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10397--enable-readline option (which is enabled by default). Either disable readline
10398support with --disable-readline or download and install readline from:
10399 ftp.gnu.org/gnu/readline
10400Note: if you are using precompiled packages you will also need the development
10401package as well (which may be called readline-devel or something similar).
10402" >&2;}
10403 { (exit 1); exit 1; }; }
06e459df 10404 if test $rl_found = yes; then
bc1024f8
JM
10405
10406for ac_func in rl_completion_matches
10407do
ec6a6fbe
AK
10408as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10409{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10410$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10412 $as_echo_n "(cached) " >&6
ad6254c5
AK
10413else
10414 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10415/* confdefs.h. */
10416_ACEOF
10417cat confdefs.h >>conftest.$ac_ext
10418cat >>conftest.$ac_ext <<_ACEOF
10419/* end confdefs.h. */
bc1024f8 10420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10422#define $ac_func innocuous_$ac_func
8a2fc586 10423
ad6254c5 10424/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10425 which can conflict with char $ac_func (); below.
ad6254c5
AK
10426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10427 <limits.h> exists even on freestanding compilers. */
8a2fc586 10428
ad6254c5
AK
10429#ifdef __STDC__
10430# include <limits.h>
10431#else
10432# include <assert.h>
10433#endif
8a2fc586 10434
bc1024f8 10435#undef $ac_func
8a2fc586 10436
7a197a62
AK
10437/* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10440#ifdef __cplusplus
10441extern "C"
ad6254c5 10442#endif
bc1024f8 10443char $ac_func ();
ad6254c5
AK
10444/* The GNU C library defines this for functions which it implements
10445 to always fail with ENOSYS. Some functions are actually named
10446 something starting with __ and the normal name is an alias. */
bc1024f8 10447#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10448choke me
ad6254c5
AK
10449#endif
10450
10451int
10452main ()
10453{
bc1024f8 10454return $ac_func ();
ad6254c5
AK
10455 ;
10456 return 0;
10457}
10458_ACEOF
10459rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10460if { (ac_try="$ac_link"
10461case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10464esac
ec6a6fbe
AK
10465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10466$as_echo "$ac_try_echo") >&5
7a197a62 10467 (eval "$ac_link") 2>conftest.er1
ad6254c5 10468 ac_status=$?
8a2fc586
AK
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
ec6a6fbe 10472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
ec6a6fbe
AK
10476 } && test -s conftest$ac_exeext && {
10477 test "$cross_compiling" = yes ||
10478 $as_test_x conftest$ac_exeext
10479 }; then
bc1024f8 10480 eval "$as_ac_var=yes"
ad6254c5 10481else
ec6a6fbe 10482 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10483sed 's/^/| /' conftest.$ac_ext >&5
10484
bc1024f8 10485 eval "$as_ac_var=no"
ad6254c5 10486fi
7a197a62 10487
ec6a6fbe 10488rm -rf conftest.dSYM
25fbec5b 10489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10490 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10491fi
ec6a6fbe
AK
10492ac_res=`eval 'as_val=${'$as_ac_var'}
10493 $as_echo "$as_val"'`
10494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10495$as_echo "$ac_res" >&6; }
10496as_val=`eval 'as_val=${'$as_ac_var'}
10497 $as_echo "$as_val"'`
10498 if test "x$as_val" = x""yes; then
bc1024f8 10499 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10500#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10501_ACEOF
10502
10503fi
bc1024f8 10504done
ad6254c5 10505
d179cc7a
JM
10506
10507cat >>confdefs.h <<\_ACEOF
10508#define READLINE_SUPPORT 1
10509_ACEOF
10510
06e459df 10511 fi
ad6254c5
AK
10512fi
10513
10514################################################################################
ec6a6fbe
AK
10515{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10516$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10517# Check whether --enable-nls was given.
ad6254c5 10518if test "${enable_nls+set}" = set; then
7a197a62 10519 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10520else
10521 INTL=no
7a197a62
AK
10522fi
10523
ec6a6fbe
AK
10524{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10525$as_echo "$INTL" >&6; }
ad6254c5
AK
10526
10527if test x$INTL = xyes; then
93bd259b 10528# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10529 INTL_PACKAGE="lvm2"
10530 # Extract the first word of "msgfmt", so it can be a program name with args.
10531set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
10532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10533$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10534if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 10535 $as_echo_n "(cached) " >&6
ad6254c5
AK
10536else
10537 case $MSGFMT in
10538 [\\/]* | ?:[\\/]*)
10539 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10540 ;;
10541 *)
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543for as_dir in $PATH
10544do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10549 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 10550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10551 break 2
10552 fi
10553done
10554done
7a197a62 10555IFS=$as_save_IFS
ad6254c5
AK
10556
10557 ;;
10558esac
10559fi
10560MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10561if test -n "$MSGFMT"; then
ec6a6fbe
AK
10562 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10563$as_echo "$MSGFMT" >&6; }
ad6254c5 10564else
ec6a6fbe
AK
10565 { $as_echo "$as_me:$LINENO: result: no" >&5
10566$as_echo "no" >&6; }
ad6254c5
AK
10567fi
10568
7a197a62 10569
ad6254c5 10570 if [ "x$MSGFMT" == x ];
ec6a6fbe 10571 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10572 " >&5
ec6a6fbe 10573$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10574 " >&2;}
10575 { (exit 1); exit 1; }; }
10576 fi;
10577
10578
7a197a62 10579# Check whether --with-localedir was given.
ad6254c5 10580if test "${with_localedir+set}" = set; then
7a197a62 10581 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10582else
10583 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10584fi
10585
ad6254c5
AK
10586fi
10587
10588################################################################################
10589
7a197a62 10590# Check whether --with-confdir was given.
ad6254c5 10591if test "${with_confdir+set}" = set; then
7a197a62 10592 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10593else
10594 CONFDIR='/etc'
7a197a62
AK
10595fi
10596
ad6254c5
AK
10597
10598
7a197a62 10599# Check whether --with-staticdir was given.
ad6254c5 10600if test "${with_staticdir+set}" = set; then
7a197a62 10601 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10602else
10603 STATICDIR='${exec_prefix}/sbin'
7a197a62 10604fi
ad6254c5 10605
33f732c5 10606
7a197a62 10607
68f2de6d
AK
10608# Check whether --with-usrlibdir was given.
10609if test "${with_usrlibdir+set}" = set; then
10610 withval=$with_usrlibdir; usrlibdir="$withval"
10611else
10612 usrlibdir='${prefix}/lib'
10613fi
10614
10615
10616
10617# Check whether --with-usrsbindir was given.
10618if test "${with_usrsbindir+set}" = set; then
10619 withval=$with_usrsbindir; usrsbindir="$withval"
10620else
10621 usrsbindir='${prefix}/sbin'
10622fi
10623
10624
ad6254c5
AK
10625################################################################################
10626if test x$READLINE = xyes; then
10627
10628
10629for ac_header in readline/readline.h readline/history.h
10630do
ec6a6fbe 10631as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10634$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10636 $as_echo_n "(cached) " >&6
ad6254c5 10637fi
ec6a6fbe
AK
10638ac_res=`eval 'as_val=${'$as_ac_Header'}
10639 $as_echo "$as_val"'`
10640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10641$as_echo "$ac_res" >&6; }
ad6254c5
AK
10642else
10643 # Is the header compilable?
ec6a6fbe
AK
10644{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10646cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10647/* confdefs.h. */
10648_ACEOF
10649cat confdefs.h >>conftest.$ac_ext
10650cat >>conftest.$ac_ext <<_ACEOF
10651/* end confdefs.h. */
10652$ac_includes_default
10653#include <$ac_header>
10654_ACEOF
10655rm -f conftest.$ac_objext
7a197a62
AK
10656if { (ac_try="$ac_compile"
10657case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
ec6a6fbe
AK
10661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662$as_echo "$ac_try_echo") >&5
7a197a62 10663 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10664 ac_status=$?
8a2fc586
AK
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
ec6a6fbe 10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10669 (exit $ac_status); } && {
10670 test -z "$ac_c_werror_flag" ||
10671 test ! -s conftest.err
10672 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10673 ac_header_compiler=yes
10674else
ec6a6fbe 10675 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
7a197a62 10678 ac_header_compiler=no
ad6254c5 10679fi
7a197a62
AK
10680
10681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10682{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10684
10685# Is the header present?
ec6a6fbe
AK
10686{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10688cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694#include <$ac_header>
10695_ACEOF
7a197a62
AK
10696if { (ac_try="$ac_cpp conftest.$ac_ext"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
ec6a6fbe
AK
10701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10702$as_echo "$ac_try_echo") >&5
7a197a62 10703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
ec6a6fbe 10708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10709 (exit $ac_status); } >/dev/null && {
10710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10712 }; then
ad6254c5
AK
10713 ac_header_preproc=yes
10714else
ec6a6fbe 10715 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 ac_header_preproc=no
10719fi
7a197a62 10720
ad6254c5 10721rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10722{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10723$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10724
10725# So? What about this header?
8a2fc586
AK
10726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10727 yes:no: )
ec6a6fbe
AK
10728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10729$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10731$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10732 ac_header_preproc=yes
ad6254c5 10733 ;;
8a2fc586 10734 no:yes:* )
ec6a6fbe
AK
10735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10736$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10738$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10740$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10742$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10744$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10746$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10747
ad6254c5
AK
10748 ;;
10749esac
ec6a6fbe
AK
10750{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10751$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10753 $as_echo_n "(cached) " >&6
ad6254c5 10754else
8a2fc586 10755 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10756fi
ec6a6fbe
AK
10757ac_res=`eval 'as_val=${'$as_ac_Header'}
10758 $as_echo "$as_val"'`
10759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10760$as_echo "$ac_res" >&6; }
ad6254c5
AK
10761
10762fi
ec6a6fbe
AK
10763as_val=`eval 'as_val=${'$as_ac_Header'}
10764 $as_echo "$as_val"'`
10765 if test "x$as_val" = x""yes; then
ad6254c5 10766 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10768_ACEOF
10769
10770else
ec6a6fbe
AK
10771 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10772$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10773 { (exit 1); exit 1; }; }
10774fi
10775
10776done
10777
10778fi
10779
5c7fc7c4 10780if test x$CLVMD != xnone; then
ad6254c5
AK
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791for 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
10792do
ec6a6fbe 10793as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10796$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10798 $as_echo_n "(cached) " >&6
ad6254c5 10799fi
ec6a6fbe
AK
10800ac_res=`eval 'as_val=${'$as_ac_Header'}
10801 $as_echo "$as_val"'`
10802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10803$as_echo "$ac_res" >&6; }
ad6254c5
AK
10804else
10805 # Is the header compilable?
ec6a6fbe
AK
10806{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10807$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10808cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814$ac_includes_default
10815#include <$ac_header>
10816_ACEOF
10817rm -f conftest.$ac_objext
7a197a62
AK
10818if { (ac_try="$ac_compile"
10819case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822esac
ec6a6fbe
AK
10823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10824$as_echo "$ac_try_echo") >&5
7a197a62 10825 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10826 ac_status=$?
8a2fc586
AK
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
ec6a6fbe 10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10835 ac_header_compiler=yes
10836else
ec6a6fbe 10837 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10838sed 's/^/| /' conftest.$ac_ext >&5
10839
7a197a62 10840 ac_header_compiler=no
ad6254c5 10841fi
7a197a62
AK
10842
10843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10844{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10846
10847# Is the header present?
ec6a6fbe
AK
10848{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10849$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10850cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10856#include <$ac_header>
10857_ACEOF
7a197a62
AK
10858if { (ac_try="$ac_cpp conftest.$ac_ext"
10859case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862esac
ec6a6fbe
AK
10863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864$as_echo "$ac_try_echo") >&5
7a197a62 10865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
ec6a6fbe 10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10871 (exit $ac_status); } >/dev/null && {
10872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 }; then
ad6254c5
AK
10875 ac_header_preproc=yes
10876else
ec6a6fbe 10877 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 ac_header_preproc=no
10881fi
7a197a62 10882
ad6254c5 10883rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10884{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10885$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10886
10887# So? What about this header?
8a2fc586
AK
10888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10889 yes:no: )
ec6a6fbe
AK
10890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10891$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10893$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10894 ac_header_preproc=yes
ad6254c5 10895 ;;
8a2fc586 10896 no:yes:* )
ec6a6fbe
AK
10897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10898$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10900$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10902$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10904$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10906$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10908$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10909
ad6254c5
AK
10910 ;;
10911esac
ec6a6fbe
AK
10912{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10913$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10915 $as_echo_n "(cached) " >&6
ad6254c5 10916else
8a2fc586 10917 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10918fi
ec6a6fbe
AK
10919ac_res=`eval 'as_val=${'$as_ac_Header'}
10920 $as_echo "$as_val"'`
10921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10922$as_echo "$ac_res" >&6; }
ad6254c5
AK
10923
10924fi
ec6a6fbe
AK
10925as_val=`eval 'as_val=${'$as_ac_Header'}
10926 $as_echo "$as_val"'`
10927 if test "x$as_val" = x""yes; then
ad6254c5 10928 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10930_ACEOF
10931
10932else
ec6a6fbe
AK
10933 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10934$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10935 { (exit 1); exit 1; }; }
795ca3e5
AK
10936fi
10937
ad6254c5
AK
10938done
10939
10940
795ca3e5 10941
8106cdd5 10942
ad6254c5
AK
10943
10944
10945for ac_func in dup2 getmntent memmove select socket
10946do
ec6a6fbe
AK
10947as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10948{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10949$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10950if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10951 $as_echo_n "(cached) " >&6
795ca3e5 10952else
ad6254c5 10953 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10954/* confdefs.h. */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h. */
8a2fc586
AK
10959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10961#define $ac_func innocuous_$ac_func
10962
795ca3e5 10963/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10964 which can conflict with char $ac_func (); below.
10965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966 <limits.h> exists even on freestanding compilers. */
8a2fc586 10967
ad6254c5
AK
10968#ifdef __STDC__
10969# include <limits.h>
10970#else
10971# include <assert.h>
10972#endif
8a2fc586
AK
10973
10974#undef $ac_func
10975
7a197a62
AK
10976/* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10979#ifdef __cplusplus
10980extern "C"
ad6254c5 10981#endif
ad6254c5 10982char $ac_func ();
795ca3e5
AK
10983/* The GNU C library defines this for functions which it implements
10984 to always fail with ENOSYS. Some functions are actually named
10985 something starting with __ and the normal name is an alias. */
7a197a62 10986#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10987choke me
795ca3e5
AK
10988#endif
10989
ad6254c5
AK
10990int
10991main ()
10992{
7a197a62 10993return $ac_func ();
ad6254c5
AK
10994 ;
10995 return 0;
10996}
10997_ACEOF
10998rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10999if { (ac_try="$ac_link"
11000case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003esac
ec6a6fbe
AK
11004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11005$as_echo "$ac_try_echo") >&5
7a197a62 11006 (eval "$ac_link") 2>conftest.er1
ad6254c5 11007 ac_status=$?
8a2fc586
AK
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
ec6a6fbe 11011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11012 (exit $ac_status); } && {
11013 test -z "$ac_c_werror_flag" ||
11014 test ! -s conftest.err
ec6a6fbe
AK
11015 } && test -s conftest$ac_exeext && {
11016 test "$cross_compiling" = yes ||
11017 $as_test_x conftest$ac_exeext
11018 }; then
ad6254c5 11019 eval "$as_ac_var=yes"
795ca3e5 11020else
ec6a6fbe 11021 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11022sed 's/^/| /' conftest.$ac_ext >&5
11023
7a197a62 11024 eval "$as_ac_var=no"
80992638 11025fi
7a197a62 11026
ec6a6fbe 11027rm -rf conftest.dSYM
25fbec5b 11028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11029 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11030fi
ec6a6fbe
AK
11031ac_res=`eval 'as_val=${'$as_ac_var'}
11032 $as_echo "$as_val"'`
11033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11034$as_echo "$ac_res" >&6; }
11035as_val=`eval 'as_val=${'$as_ac_var'}
11036 $as_echo "$as_val"'`
11037 if test "x$as_val" = x""yes; then
ad6254c5 11038 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11039#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11040_ACEOF
80992638
AK
11041
11042else
ec6a6fbe
AK
11043 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11044$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11045 { (exit 1); exit 1; }; }
8106cdd5 11046fi
ad6254c5 11047done
795ca3e5 11048
25fbec5b
AK
11049 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11050# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
11051{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11052$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 11053if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 11054 $as_echo_n "(cached) " >&6
25fbec5b
AK
11055else
11056 ac_func_search_save_LIBS=$LIBS
11057cat >conftest.$ac_ext <<_ACEOF
11058/* confdefs.h. */
11059_ACEOF
11060cat confdefs.h >>conftest.$ac_ext
11061cat >>conftest.$ac_ext <<_ACEOF
11062/* end confdefs.h. */
80992638 11063
7a197a62
AK
11064/* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
ad6254c5 11066 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11067#ifdef __cplusplus
11068extern "C"
11069#endif
25fbec5b 11070char getmntent ();
ad6254c5
AK
11071int
11072main ()
11073{
25fbec5b 11074return getmntent ();
ad6254c5
AK
11075 ;
11076 return 0;
11077}
11078_ACEOF
25fbec5b
AK
11079for ac_lib in '' sun seq gen; do
11080 if test -z "$ac_lib"; then
11081 ac_res="none required"
11082 else
11083 ac_res=-l$ac_lib
11084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11085 fi
11086 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11087if { (ac_try="$ac_link"
11088case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091esac
ec6a6fbe
AK
11092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11093$as_echo "$ac_try_echo") >&5
7a197a62 11094 (eval "$ac_link") 2>conftest.er1
ad6254c5 11095 ac_status=$?
8a2fc586
AK
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
ec6a6fbe 11099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
ec6a6fbe
AK
11103 } && test -s conftest$ac_exeext && {
11104 test "$cross_compiling" = yes ||
11105 $as_test_x conftest$ac_exeext
11106 }; then
25fbec5b 11107 ac_cv_search_getmntent=$ac_res
80992638 11108else
ec6a6fbe 11109 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11110sed 's/^/| /' conftest.$ac_ext >&5
11111
25fbec5b 11112
795ca3e5
AK
11113fi
11114
ec6a6fbe 11115rm -rf conftest.dSYM
25fbec5b
AK
11116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11117 conftest$ac_exeext
11118 if test "${ac_cv_search_getmntent+set}" = set; then
11119 break
795ca3e5 11120fi
25fbec5b
AK
11121done
11122if test "${ac_cv_search_getmntent+set}" = set; then
11123 :
11124else
11125 ac_cv_search_getmntent=no
11126fi
11127rm conftest.$ac_ext
11128LIBS=$ac_func_search_save_LIBS
11129fi
ec6a6fbe
AK
11130{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11131$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
11132ac_res=$ac_cv_search_getmntent
11133if test "$ac_res" != no; then
11134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11135 ac_cv_func_getmntent=yes
11136
11137cat >>confdefs.h <<\_ACEOF
9c961554 11138#define HAVE_GETMNTENT 1
ad6254c5 11139_ACEOF
795ca3e5 11140
25fbec5b
AK
11141else
11142 ac_cv_func_getmntent=no
795ca3e5 11143fi
795ca3e5
AK
11144
11145
ad6254c5
AK
11146# AC_FUNC_REALLOC
11147
11148
11149for ac_header in sys/select.h sys/socket.h
11150do
ec6a6fbe 11151as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11153 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11154$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11156 $as_echo_n "(cached) " >&6
ad6254c5 11157fi
ec6a6fbe
AK
11158ac_res=`eval 'as_val=${'$as_ac_Header'}
11159 $as_echo "$as_val"'`
11160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11161$as_echo "$ac_res" >&6; }
795ca3e5 11162else
ad6254c5 11163 # Is the header compilable?
ec6a6fbe
AK
11164{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11165$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11166cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11167/* confdefs.h. */
11168_ACEOF
11169cat confdefs.h >>conftest.$ac_ext
11170cat >>conftest.$ac_ext <<_ACEOF
11171/* end confdefs.h. */
11172$ac_includes_default
11173#include <$ac_header>
11174_ACEOF
11175rm -f conftest.$ac_objext
7a197a62
AK
11176if { (ac_try="$ac_compile"
11177case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180esac
ec6a6fbe
AK
11181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11182$as_echo "$ac_try_echo") >&5
7a197a62 11183 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11184 ac_status=$?
8a2fc586
AK
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
ec6a6fbe 11188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11189 (exit $ac_status); } && {
11190 test -z "$ac_c_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest.$ac_objext; then
ad6254c5 11193 ac_header_compiler=yes
80992638 11194else
ec6a6fbe 11195 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
7a197a62 11198 ac_header_compiler=no
ad6254c5 11199fi
7a197a62
AK
11200
11201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11202{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11204
11205# Is the header present?
ec6a6fbe
AK
11206{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11207$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11208cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11209/* confdefs.h. */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
11213/* end confdefs.h. */
11214#include <$ac_header>
11215_ACEOF
7a197a62
AK
11216if { (ac_try="$ac_cpp conftest.$ac_ext"
11217case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11220esac
ec6a6fbe
AK
11221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11222$as_echo "$ac_try_echo") >&5
7a197a62 11223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
ec6a6fbe 11228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11229 (exit $ac_status); } >/dev/null && {
11230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11231 test ! -s conftest.err
11232 }; then
ad6254c5
AK
11233 ac_header_preproc=yes
11234else
ec6a6fbe 11235 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11236sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_header_preproc=no
11239fi
7a197a62 11240
ad6254c5 11241rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11242{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11244
11245# So? What about this header?
8a2fc586
AK
11246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247 yes:no: )
ec6a6fbe
AK
11248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11249$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11251$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11252 ac_header_preproc=yes
ad6254c5 11253 ;;
8a2fc586 11254 no:yes:* )
ec6a6fbe
AK
11255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11256$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11258$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11260$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11262$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11264$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11266$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11267
ad6254c5
AK
11268 ;;
11269esac
ec6a6fbe
AK
11270{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11271$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11273 $as_echo_n "(cached) " >&6
ad6254c5 11274else
8a2fc586 11275 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11276fi
ec6a6fbe
AK
11277ac_res=`eval 'as_val=${'$as_ac_Header'}
11278 $as_echo "$as_val"'`
11279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11280$as_echo "$ac_res" >&6; }
8106cdd5 11281
795ca3e5 11282fi
ec6a6fbe
AK
11283as_val=`eval 'as_val=${'$as_ac_Header'}
11284 $as_echo "$as_val"'`
11285 if test "x$as_val" = x""yes; then
ad6254c5 11286 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11288_ACEOF
11289
795ca3e5
AK
11290fi
11291
ad6254c5
AK
11292done
11293
ec6a6fbe
AK
11294{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11295$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 11296if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 11297 $as_echo_n "(cached) " >&6
26e7f2e0 11298else
ad6254c5 11299 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11300 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11301 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11302 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308$ac_includes_default
25fbec5b 11309#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
11310# include <sys/select.h>
11311#endif
25fbec5b 11312#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
11313# include <sys/socket.h>
11314#endif
11315
11316int
11317main ()
11318{
11319extern int select ($ac_arg1,
8a2fc586
AK
11320 $ac_arg234, $ac_arg234, $ac_arg234,
11321 $ac_arg5);
ad6254c5
AK
11322 ;
11323 return 0;
11324}
11325_ACEOF
11326rm -f conftest.$ac_objext
7a197a62
AK
11327if { (ac_try="$ac_compile"
11328case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331esac
ec6a6fbe
AK
11332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333$as_echo "$ac_try_echo") >&5
7a197a62 11334 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11335 ac_status=$?
8a2fc586
AK
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
ec6a6fbe 11339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11344 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11345else
ec6a6fbe 11346 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11347sed 's/^/| /' conftest.$ac_ext >&5
11348
7a197a62 11349
ad6254c5 11350fi
7a197a62
AK
11351
11352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11353 done
11354 done
11355done
11356# Provide a safe default value.
11357: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11358
26e7f2e0 11359fi
ec6a6fbe
AK
11360{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11361$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11362ac_save_IFS=$IFS; IFS=','
11363set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11364IFS=$ac_save_IFS
11365shift
11366
11367cat >>confdefs.h <<_ACEOF
11368#define SELECT_TYPE_ARG1 $1
11369_ACEOF
11370
11371
11372cat >>confdefs.h <<_ACEOF
11373#define SELECT_TYPE_ARG234 ($2)
11374_ACEOF
11375
11376
11377cat >>confdefs.h <<_ACEOF
11378#define SELECT_TYPE_ARG5 ($3)
11379_ACEOF
11380
80992638 11381rm -f conftest*
80992638 11382
8106cdd5 11383fi
ad6254c5 11384
ad6254c5
AK
11385if test x$CLUSTER != xnone; then
11386
11387
11388for ac_header in sys/socket.h sys/un.h
b896caa1 11389do
ec6a6fbe 11390as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11392 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11393$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11395 $as_echo_n "(cached) " >&6
ad6254c5 11396fi
ec6a6fbe
AK
11397ac_res=`eval 'as_val=${'$as_ac_Header'}
11398 $as_echo "$as_val"'`
11399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11400$as_echo "$ac_res" >&6; }
ad6254c5
AK
11401else
11402 # Is the header compilable?
ec6a6fbe
AK
11403{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11404$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11405cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411$ac_includes_default
11412#include <$ac_header>
11413_ACEOF
11414rm -f conftest.$ac_objext
7a197a62
AK
11415if { (ac_try="$ac_compile"
11416case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419esac
ec6a6fbe
AK
11420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421$as_echo "$ac_try_echo") >&5
7a197a62 11422 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11423 ac_status=$?
8a2fc586
AK
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
ec6a6fbe 11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11432 ac_header_compiler=yes
11433else
ec6a6fbe 11434 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
7a197a62 11437 ac_header_compiler=no
ad6254c5 11438fi
7a197a62
AK
11439
11440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11441{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11442$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11443
11444# Is the header present?
ec6a6fbe
AK
11445{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11446$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11447cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453#include <$ac_header>
11454_ACEOF
7a197a62
AK
11455if { (ac_try="$ac_cpp conftest.$ac_ext"
11456case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459esac
ec6a6fbe
AK
11460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11461$as_echo "$ac_try_echo") >&5
7a197a62 11462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
ec6a6fbe 11467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11468 (exit $ac_status); } >/dev/null && {
11469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 }; then
ad6254c5
AK
11472 ac_header_preproc=yes
11473else
ec6a6fbe 11474 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 ac_header_preproc=no
11478fi
7a197a62 11479
ad6254c5 11480rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11481{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11482$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11483
11484# So? What about this header?
8a2fc586
AK
11485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11486 yes:no: )
ec6a6fbe
AK
11487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11488$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11490$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11491 ac_header_preproc=yes
ad6254c5 11492 ;;
8a2fc586 11493 no:yes:* )
ec6a6fbe
AK
11494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11495$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11497$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11499$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11501$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11503$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11505$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11506
ad6254c5
AK
11507 ;;
11508esac
ec6a6fbe
AK
11509{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11510$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11512 $as_echo_n "(cached) " >&6
ad6254c5 11513else
8a2fc586 11514 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11515fi
ec6a6fbe
AK
11516ac_res=`eval 'as_val=${'$as_ac_Header'}
11517 $as_echo "$as_val"'`
11518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11519$as_echo "$ac_res" >&6; }
ad6254c5
AK
11520
11521fi
ec6a6fbe
AK
11522as_val=`eval 'as_val=${'$as_ac_Header'}
11523 $as_echo "$as_val"'`
11524 if test "x$as_val" = x""yes; then
ad6254c5 11525 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11526#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11527_ACEOF
11528
80992638 11529else
ec6a6fbe
AK
11530 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11531$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11532 { (exit 1); exit 1; }; }
b896caa1 11533fi
ad6254c5 11534
b896caa1
AK
11535done
11536
11537
ad6254c5
AK
11538for ac_func in socket
11539do
ec6a6fbe
AK
11540as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11542$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11543if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11544 $as_echo_n "(cached) " >&6
795ca3e5 11545else
ad6254c5 11546 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
8a2fc586
AK
11552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11554#define $ac_func innocuous_$ac_func
11555
ad6254c5
AK
11556/* System header to define __stub macros and hopefully few prototypes,
11557 which can conflict with char $ac_func (); below.
11558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11559 <limits.h> exists even on freestanding compilers. */
8a2fc586 11560
ad6254c5
AK
11561#ifdef __STDC__
11562# include <limits.h>
11563#else
11564# include <assert.h>
11565#endif
8a2fc586
AK
11566
11567#undef $ac_func
11568
7a197a62
AK
11569/* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11572#ifdef __cplusplus
11573extern "C"
ad6254c5 11574#endif
ad6254c5
AK
11575char $ac_func ();
11576/* The GNU C library defines this for functions which it implements
11577 to always fail with ENOSYS. Some functions are actually named
11578 something starting with __ and the normal name is an alias. */
7a197a62 11579#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11580choke me
ad6254c5
AK
11581#endif
11582
11583int
11584main ()
11585{
7a197a62 11586return $ac_func ();
ad6254c5
AK
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11592if { (ac_try="$ac_link"
11593case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
ec6a6fbe
AK
11597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11598$as_echo "$ac_try_echo") >&5
7a197a62 11599 (eval "$ac_link") 2>conftest.er1
ad6254c5 11600 ac_status=$?
8a2fc586
AK
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
ec6a6fbe 11604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11605 (exit $ac_status); } && {
11606 test -z "$ac_c_werror_flag" ||
11607 test ! -s conftest.err
ec6a6fbe
AK
11608 } && test -s conftest$ac_exeext && {
11609 test "$cross_compiling" = yes ||
11610 $as_test_x conftest$ac_exeext
11611 }; then
ad6254c5
AK
11612 eval "$as_ac_var=yes"
11613else
ec6a6fbe 11614 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
7a197a62 11617 eval "$as_ac_var=no"
ad6254c5 11618fi
7a197a62 11619
ec6a6fbe 11620rm -rf conftest.dSYM
25fbec5b 11621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11622 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11623fi
ec6a6fbe
AK
11624ac_res=`eval 'as_val=${'$as_ac_var'}
11625 $as_echo "$as_val"'`
11626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11627$as_echo "$ac_res" >&6; }
11628as_val=`eval 'as_val=${'$as_ac_var'}
11629 $as_echo "$as_val"'`
11630 if test "x$as_val" = x""yes; then
ad6254c5 11631 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11632#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11633_ACEOF
11634
11635else
ec6a6fbe
AK
11636 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11637$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11638 { (exit 1); exit 1; }; }
11639fi
11640done
11641
11642fi
11643
11644if test x$HAVE_LIBDL = xyes; then
11645
11646for ac_header in dlfcn.h
11647do
ec6a6fbe 11648as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11651$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11653 $as_echo_n "(cached) " >&6
ad6254c5 11654fi
ec6a6fbe
AK
11655ac_res=`eval 'as_val=${'$as_ac_Header'}
11656 $as_echo "$as_val"'`
11657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11658$as_echo "$ac_res" >&6; }
ad6254c5
AK
11659else
11660 # Is the header compilable?
ec6a6fbe
AK
11661{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11662$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11663cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
11669$ac_includes_default
11670#include <$ac_header>
11671_ACEOF
11672rm -f conftest.$ac_objext
7a197a62
AK
11673if { (ac_try="$ac_compile"
11674case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677esac
ec6a6fbe
AK
11678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11679$as_echo "$ac_try_echo") >&5
7a197a62 11680 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11681 ac_status=$?
8a2fc586
AK
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
ec6a6fbe 11685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11690 ac_header_compiler=yes
11691else
ec6a6fbe 11692 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11693sed 's/^/| /' conftest.$ac_ext >&5
11694
7a197a62 11695 ac_header_compiler=no
ad6254c5 11696fi
7a197a62
AK
11697
11698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11699{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11700$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11701
11702# Is the header present?
ec6a6fbe
AK
11703{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11704$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11705cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11706/* confdefs.h. */
11707_ACEOF
11708cat confdefs.h >>conftest.$ac_ext
11709cat >>conftest.$ac_ext <<_ACEOF
11710/* end confdefs.h. */
11711#include <$ac_header>
11712_ACEOF
7a197a62
AK
11713if { (ac_try="$ac_cpp conftest.$ac_ext"
11714case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
ec6a6fbe
AK
11718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719$as_echo "$ac_try_echo") >&5
7a197a62 11720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
ec6a6fbe 11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11726 (exit $ac_status); } >/dev/null && {
11727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 }; then
ad6254c5
AK
11730 ac_header_preproc=yes
11731else
ec6a6fbe 11732 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_header_preproc=no
11736fi
7a197a62 11737
ad6254c5 11738rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11739{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11740$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11741
11742# So? What about this header?
8a2fc586
AK
11743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11744 yes:no: )
ec6a6fbe
AK
11745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11746$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11748$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11749 ac_header_preproc=yes
ad6254c5 11750 ;;
8a2fc586 11751 no:yes:* )
ec6a6fbe
AK
11752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11753$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11755$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11757$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11759$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11761$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11763$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11764
ad6254c5
AK
11765 ;;
11766esac
ec6a6fbe
AK
11767{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11768$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11770 $as_echo_n "(cached) " >&6
ad6254c5 11771else
8a2fc586 11772 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 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; }
80992638 11778
8106cdd5 11779fi
ec6a6fbe
AK
11780as_val=`eval 'as_val=${'$as_ac_Header'}
11781 $as_echo "$as_val"'`
11782 if test "x$as_val" = x""yes; then
ad6254c5 11783 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11785_ACEOF
795ca3e5
AK
11786
11787else
ec6a6fbe
AK
11788 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11789$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11790 { (exit 1); exit 1; }; }
795ca3e5
AK
11791fi
11792
ad6254c5 11793done
80992638 11794
ad6254c5 11795fi
80992638 11796
ad6254c5 11797if test x$INTL = xyes; then
83912faa 11798
ad6254c5
AK
11799for ac_header in libintl.h
11800do
ec6a6fbe 11801as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11804$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11806 $as_echo_n "(cached) " >&6
ad6254c5 11807fi
ec6a6fbe
AK
11808ac_res=`eval 'as_val=${'$as_ac_Header'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11811$as_echo "$ac_res" >&6; }
83912faa 11812else
ad6254c5 11813 # Is the header compilable?
ec6a6fbe
AK
11814{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11816cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822$ac_includes_default
11823#include <$ac_header>
11824_ACEOF
11825rm -f conftest.$ac_objext
7a197a62
AK
11826if { (ac_try="$ac_compile"
11827case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830esac
ec6a6fbe
AK
11831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832$as_echo "$ac_try_echo") >&5
7a197a62 11833 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11834 ac_status=$?
8a2fc586
AK
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
ec6a6fbe 11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11843 ac_header_compiler=yes
11844else
ec6a6fbe 11845 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
7a197a62 11848 ac_header_compiler=no
ad6254c5 11849fi
7a197a62
AK
11850
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11852{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11853$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11854
11855# Is the header present?
ec6a6fbe
AK
11856{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11857$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11858cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
11864#include <$ac_header>
11865_ACEOF
7a197a62
AK
11866if { (ac_try="$ac_cpp conftest.$ac_ext"
11867case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870esac
ec6a6fbe
AK
11871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11872$as_echo "$ac_try_echo") >&5
7a197a62 11873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
ec6a6fbe 11878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11879 (exit $ac_status); } >/dev/null && {
11880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11881 test ! -s conftest.err
11882 }; then
ad6254c5
AK
11883 ac_header_preproc=yes
11884else
ec6a6fbe 11885 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11886sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 ac_header_preproc=no
11889fi
7a197a62 11890
ad6254c5 11891rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11892{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11893$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11894
11895# So? What about this header?
8a2fc586
AK
11896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11897 yes:no: )
ec6a6fbe
AK
11898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11899$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11901$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11902 ac_header_preproc=yes
ad6254c5 11903 ;;
8a2fc586 11904 no:yes:* )
ec6a6fbe
AK
11905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11906$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11908$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11910$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11912$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11914$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11916$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11917
ad6254c5
AK
11918 ;;
11919esac
ec6a6fbe
AK
11920{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11921$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11923 $as_echo_n "(cached) " >&6
80992638 11924else
8a2fc586 11925 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11926fi
ec6a6fbe
AK
11927ac_res=`eval 'as_val=${'$as_ac_Header'}
11928 $as_echo "$as_val"'`
11929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11930$as_echo "$ac_res" >&6; }
83912faa 11931
69792976 11932fi
ec6a6fbe
AK
11933as_val=`eval 'as_val=${'$as_ac_Header'}
11934 $as_echo "$as_val"'`
11935 if test "x$as_val" = x""yes; then
ad6254c5 11936 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11938_ACEOF
69792976 11939
69792976 11940else
ec6a6fbe
AK
11941 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11942$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11943 { (exit 1); exit 1; }; }
80992638
AK
11944fi
11945
ad6254c5 11946done
69792976 11947
ad6254c5
AK
11948fi
11949
ad6254c5
AK
11950if test x$HAVE_SELINUX = xyes; then
11951
11952for ac_header in selinux/selinux.h
11953do
ec6a6fbe 11954as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11957$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11959 $as_echo_n "(cached) " >&6
ad6254c5 11960fi
ec6a6fbe
AK
11961ac_res=`eval 'as_val=${'$as_ac_Header'}
11962 $as_echo "$as_val"'`
11963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11964$as_echo "$ac_res" >&6; }
4a7f3eb2 11965else
ad6254c5 11966 # Is the header compilable?
ec6a6fbe
AK
11967{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11968$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11969cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
11975$ac_includes_default
11976#include <$ac_header>
11977_ACEOF
11978rm -f conftest.$ac_objext
7a197a62
AK
11979if { (ac_try="$ac_compile"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
ec6a6fbe
AK
11984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11985$as_echo "$ac_try_echo") >&5
7a197a62 11986 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11987 ac_status=$?
8a2fc586
AK
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
ec6a6fbe 11991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11992 (exit $ac_status); } && {
11993 test -z "$ac_c_werror_flag" ||
11994 test ! -s conftest.err
11995 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11996 ac_header_compiler=yes
11997else
ec6a6fbe 11998 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
7a197a62 12001 ac_header_compiler=no
ad6254c5 12002fi
7a197a62
AK
12003
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12005{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12006$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12007
12008# Is the header present?
ec6a6fbe
AK
12009{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12010$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12011cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017#include <$ac_header>
12018_ACEOF
7a197a62
AK
12019if { (ac_try="$ac_cpp conftest.$ac_ext"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
ec6a6fbe
AK
12024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12025$as_echo "$ac_try_echo") >&5
7a197a62 12026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
ec6a6fbe 12031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12032 (exit $ac_status); } >/dev/null && {
12033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12034 test ! -s conftest.err
12035 }; then
ad6254c5
AK
12036 ac_header_preproc=yes
12037else
ec6a6fbe 12038 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_header_preproc=no
12042fi
7a197a62 12043
ad6254c5 12044rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12045{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12046$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12047
12048# So? What about this header?
8a2fc586
AK
12049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12050 yes:no: )
ec6a6fbe
AK
12051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12052$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12054$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12055 ac_header_preproc=yes
ad6254c5 12056 ;;
8a2fc586 12057 no:yes:* )
ec6a6fbe
AK
12058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12059$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12061$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12063$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12065$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12067$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12069$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12070
ad6254c5
AK
12071 ;;
12072esac
ec6a6fbe
AK
12073{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12074$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12076 $as_echo_n "(cached) " >&6
ad6254c5 12077else
8a2fc586 12078 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12079fi
ec6a6fbe
AK
12080ac_res=`eval 'as_val=${'$as_ac_Header'}
12081 $as_echo "$as_val"'`
12082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12083$as_echo "$ac_res" >&6; }
4a7f3eb2 12084
ad6254c5 12085fi
ec6a6fbe
AK
12086as_val=`eval 'as_val=${'$as_ac_Header'}
12087 $as_echo "$as_val"'`
12088 if test "x$as_val" = x""yes; then
ad6254c5 12089 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12091_ACEOF
0a62c911 12092
0a62c911 12093else
ec6a6fbe
AK
12094 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12095$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12096 { (exit 1); exit 1; }; }
80992638
AK
12097fi
12098
ad6254c5 12099done
0a62c911 12100
ad6254c5 12101fi
0a62c911 12102
a653923f
AK
12103################################################################################
12104# Extract the first word of "modprobe", so it can be a program name with args.
12105set dummy modprobe; ac_word=$2
ec6a6fbe
AK
12106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12107$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 12108if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 12109 $as_echo_n "(cached) " >&6
72b2cb61
AK
12110else
12111 case $MODPROBE_CMD in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12114 ;;
12115 *)
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117for as_dir in $PATH
12118do
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12123 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12125 break 2
12126 fi
12127done
12128done
7a197a62 12129IFS=$as_save_IFS
72b2cb61
AK
12130
12131 ;;
12132esac
12133fi
12134MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12135if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
12136 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12137$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 12138else
ec6a6fbe
AK
12139 { $as_echo "$as_me:$LINENO: result: no" >&5
12140$as_echo "no" >&6; }
72b2cb61
AK
12141fi
12142
a653923f 12143
7a197a62 12144
a653923f 12145if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12146
12147cat >>confdefs.h <<_ACEOF
12148#define MODPROBE_CMD "$MODPROBE_CMD"
12149_ACEOF
12150
a653923f
AK
12151fi
12152
80992638 12153################################################################################
93bd259b
AK
12154
12155
12156if test "$BUILD_DMEVENTD" = yes; then
12157
12158# Check whether --with-dmeventd-pidfile was given.
12159if test "${with_dmeventd_pidfile+set}" = set; then
12160 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12161#define DMEVENTD_PIDFILE "$withval"
12162_ACEOF
12163
12164else
12165 cat >>confdefs.h <<_ACEOF
12166#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12167_ACEOF
12168
12169fi
12170
12171fi
12172
12173
12174
12175if test "$BUILD_DMEVENTD" = yes; then
12176 dmeventd_prefix="$exec_prefix"
12177 if test "x$dmeventd_prefix" = "xNONE"; then
12178 dmeventd_prefix="$prefix"
12179 fi
12180 if test "x$dmeventd_prefix" = "xNONE"; then
12181 dmeventd_prefix=""
12182 fi
12183
12184# Check whether --with-dmeventd-path was given.
12185if test "${with_dmeventd_path+set}" = set; then
12186 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12187#define DMEVENTD_PATH "$withval"
12188_ACEOF
12189
12190else
12191 cat >>confdefs.h <<_ACEOF
12192#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12193_ACEOF
12194
12195fi
12196
12197fi
12198
12199################################################################################
ec6a6fbe
AK
12200{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12201$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
12202
12203# Check whether --with-interface was given.
12204if test "${with_interface+set}" = set; then
12205 withval=$with_interface; interface="$withval"
12206else
12207 interface=ioctl
12208fi
12209
12210if [ "x$interface" != xioctl ];
12211then
ec6a6fbe
AK
12212 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12213$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
12214 { (exit 1); exit 1; }; }
12215fi
ec6a6fbe
AK
12216{ $as_echo "$as_me:$LINENO: result: $interface" >&5
12217$as_echo "$interface" >&6; }
93bd259b
AK
12218
12219################################################################################
2c44337b 12220DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
12221
12222cat >>confdefs.h <<_ACEOF
12223#define DM_LIB_VERSION $DM_LIB_VERSION
12224_ACEOF
12225
12226
ec6a6fbe 12227DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 12228
d0191583 12229LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 12230
ec6a6fbe
AK
12231VER=`cat VERSION`
12232LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\""
12233VER=`echo "$VER" | $AWK '{print $1}'`
12234LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12235VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12236LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12237LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12238LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'`
12239
80992638 12240################################################################################
fae0c576 12241
83912faa 12242
795ca3e5
AK
12243
12244
12245
12246
12247
12248
5a52dca9 12249
8ef2b021 12250
199e490e 12251
69792976
AK
12252
12253
12254
d0191583 12255
69792976 12256
8106cdd5
AK
12257
12258
12259
12260
12261
d68a82ec 12262
036f273a 12263
7d1552c9 12264
8106cdd5 12265
0a62c911 12266
8106cdd5 12267
4a7f3eb2 12268
4922197a
AK
12269
12270
d8ac0fbc 12271
1a9ea74d 12272
8a2fc586
AK
12273
12274
d0191583 12275
93bd259b
AK
12276
12277
12278
12279
12280
d0191583
JM
12281
12282
12283
12284
12285
8a2fc586 12286
8ce0cbda 12287
8b1a3214 12288
ec6a6fbe
AK
12289
12290
12291
12292
12293
33f732c5 12294
66e941e8 12295
d3c8211f 12296
7e3fe830 12297
68f2de6d
AK
12298
12299
80992638 12300################################################################################
ec6a6fbe 12301ac_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 man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
7a197a62 12302
ad6254c5 12303cat >confcache <<\_ACEOF
795ca3e5
AK
12304# This file is a shell script that caches the results of configure
12305# tests run on this system so they can be shared between configure
ad6254c5
AK
12306# scripts and configure runs, see configure's option --config-cache.
12307# It is not useful on other systems. If it contains results you don't
12308# want to keep, you may remove or edit it.
795ca3e5 12309#
ad6254c5
AK
12310# config.status only pays attention to the cache file if you give it
12311# the --recheck option to rerun configure.
795ca3e5 12312#
ad6254c5
AK
12313# `ac_cv_env_foo' variables (set or unset) will be overridden when
12314# loading this file, other *unset* `ac_cv_foo' will be assigned the
12315# following values.
12316
12317_ACEOF
12318
795ca3e5
AK
12319# The following way of writing the cache mishandles newlines in values,
12320# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12321# So, we kill variables containing newlines.
795ca3e5
AK
12322# Ultrix sh set writes to stderr and can't be redirected directly,
12323# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12324(
12325 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12326 eval ac_val=\$$ac_var
12327 case $ac_val in #(
12328 *${as_nl}*)
12329 case $ac_var in #(
ec6a6fbe
AK
12330 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12331$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
12332 esac
12333 case $ac_var in #(
12334 _ | IFS | as_nl) ;; #(
ec6a6fbe 12335 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12336 *) $as_unset $ac_var ;;
12337 esac ;;
12338 esac
12339 done
12340
ad6254c5 12341 (set) 2>&1 |
7a197a62
AK
12342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12343 *${as_nl}ac_space=\ *)
ad6254c5
AK
12344 # `set' does not quote correctly, so add quotes (double-quote
12345 # substitution turns \\\\ into \\, and sed turns \\ into \).
12346 sed -n \
8a2fc586
AK
12347 "s/'/'\\\\''/g;
12348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12349 ;; #(
ad6254c5
AK
12350 *)
12351 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12353 ;;
7a197a62
AK
12354 esac |
12355 sort
12356) |
ad6254c5 12357 sed '
7a197a62 12358 /^ac_cv_env_/b end
ad6254c5 12359 t clear
7a197a62 12360 :clear
ad6254c5
AK
12361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12362 t end
7a197a62
AK
12363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12364 :end' >>confcache
12365if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12366 if test -w "$cache_file"; then
12367 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
12368 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12369$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12370 cat confcache >$cache_file
795ca3e5 12371 else
ec6a6fbe
AK
12372 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12373$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12374 fi
12375fi
12376rm -f confcache
12377
795ca3e5
AK
12378test "x$prefix" = xNONE && prefix=$ac_default_prefix
12379# Let make expand exec_prefix.
12380test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12381
72b2cb61 12382DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12383
12384ac_libobjs=
12385ac_ltlibobjs=
12386for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12387 # 1. Remove the extension, and $U if already installed.
7a197a62 12388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 12389 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12391 # will be set to the directory where LIBOBJS objects are built.
12392 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12393 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12394done
12395LIBOBJS=$ac_libobjs
80992638 12396
ad6254c5
AK
12397LTLIBOBJS=$ac_ltlibobjs
12398
12399
12400
12401: ${CONFIG_STATUS=./config.status}
ec6a6fbe 12402ac_write_fail=0
ad6254c5
AK
12403ac_clean_files_save=$ac_clean_files
12404ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
12405{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12406$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12407cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12408#! $SHELL
12409# Generated by $as_me.
795ca3e5 12410# Run this file to recreate the current configuration.
795ca3e5 12411# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12412# configure, is in config.log if it exists.
12413
12414debug=false
12415ac_cs_recheck=false
12416ac_cs_silent=false
12417SHELL=\${CONFIG_SHELL-$SHELL}
12418_ACEOF
12419
ec6a6fbe 12420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12421## --------------------- ##
12422## M4sh Initialization. ##
12423## --------------------- ##
12424
25fbec5b
AK
12425# Be more Bourne compatible
12426DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
12427if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12428 emulate sh
12429 NULLCMD=:
ec6a6fbe 12430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
12431 # is contrary to our usage. Disable this feature.
12432 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12433 setopt NO_GLOB_SUBST
12434else
25fbec5b
AK
12435 case `(set -o) 2>/dev/null` in
12436 *posix*) set -o posix ;;
12437esac
12438
7a197a62 12439fi
25fbec5b
AK
12440
12441
7a197a62
AK
12442
12443
12444# PATH needs CR
12445# Avoid depending upon Character Ranges.
12446as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12447as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12448as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12449as_cr_digits='0123456789'
12450as_cr_alnum=$as_cr_Letters$as_cr_digits
12451
ec6a6fbe
AK
12452as_nl='
12453'
12454export as_nl
12455# Printing a long string crashes Solaris 7 /usr/bin/printf.
12456as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12457as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12459if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12460 as_echo='printf %s\n'
12461 as_echo_n='printf %s'
12462else
12463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12465 as_echo_n='/usr/ucb/echo -n'
68f2de6d 12466 else
ec6a6fbe
AK
12467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12468 as_echo_n_body='eval
12469 arg=$1;
12470 case $arg in
12471 *"$as_nl"*)
12472 expr "X$arg" : "X\\(.*\\)$as_nl";
12473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12474 esac;
12475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12476 '
12477 export as_echo_n_body
12478 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 12479 fi
ec6a6fbe
AK
12480 export as_echo_body
12481 as_echo='sh -c $as_echo_body as_echo'
12482fi
12483
12484# The user is always right.
12485if test "${PATH_SEPARATOR+set}" != set; then
12486 PATH_SEPARATOR=:
12487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12489 PATH_SEPARATOR=';'
12490 }
ad6254c5
AK
12491fi
12492
12493# Support unset when possible.
8a2fc586 12494if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12495 as_unset=unset
12496else
12497 as_unset=false
12498fi
8106cdd5 12499
ad6254c5 12500
7a197a62
AK
12501# IFS
12502# We need space, tab and new line, in precisely that order. Quoting is
12503# there to prevent editors from complaining about space-tab.
12504# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12505# splitting by setting IFS to empty value.)
7a197a62
AK
12506IFS=" "" $as_nl"
12507
12508# Find who we are. Look in the path if we contain no directory separator.
12509case $0 in
12510 *[\\/]* ) as_myself=$0 ;;
12511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512for as_dir in $PATH
12513do
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
12516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12517done
12518IFS=$as_save_IFS
12519
12520 ;;
12521esac
12522# We did not find ourselves, most probably we were run as `sh COMMAND'
12523# in which case we are not to be found in the path.
12524if test "x$as_myself" = x; then
12525 as_myself=$0
12526fi
12527if test ! -f "$as_myself"; then
ec6a6fbe 12528 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12529 { (exit 1); exit 1; }
12530fi
12531
ad6254c5 12532# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12533for as_var in ENV MAIL MAILPATH
12534do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12535done
ad6254c5
AK
12536PS1='$ '
12537PS2='> '
12538PS4='+ '
12539
12540# NLS nuisances.
ec6a6fbe
AK
12541LC_ALL=C
12542export LC_ALL
12543LANGUAGE=C
12544export LANGUAGE
8106cdd5 12545
ad6254c5 12546# Required to use basename.
7a197a62
AK
12547if expr a : '\(a\)' >/dev/null 2>&1 &&
12548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12549 as_expr=expr
12550else
12551 as_expr=false
12552fi
8106cdd5 12553
7a197a62 12554if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12555 as_basename=basename
12556else
12557 as_basename=false
12558fi
12559
12560
12561# Name of the executable.
7a197a62 12562as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12563$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12564 X"$0" : 'X\(//\)$' \| \
7a197a62 12565 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 12566$as_echo X/"$0" |
7a197a62
AK
12567 sed '/^.*\/\([^/][^/]*\)\/*$/{
12568 s//\1/
12569 q
12570 }
12571 /^X\/\(\/\/\)$/{
12572 s//\1/
12573 q
12574 }
12575 /^X\/\(\/\).*/{
12576 s//\1/
12577 q
12578 }
12579 s/.*/./; q'`
ad6254c5 12580
7a197a62
AK
12581# CDPATH.
12582$as_unset CDPATH
ad6254c5
AK
12583
12584
ad6254c5 12585
ad6254c5
AK
12586 as_lineno_1=$LINENO
12587 as_lineno_2=$LINENO
ad6254c5 12588 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12589 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12590
ad6254c5
AK
12591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12592 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12593 # line-number line after each line using $LINENO; the second 'sed'
12594 # does the real work. The second script uses 'N' to pair each
12595 # line-number line with the line containing $LINENO, and appends
12596 # trailing '-' during substitution so that $LINENO is not a special
12597 # case at line end.
ad6254c5 12598 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12599 # scripts with optimization help from Paolo Bonzini. Blame Lee
12600 # E. McMahon (1931-1989) for sed's syntax. :-)
12601 sed -n '
12602 p
12603 /[$]LINENO/=
12604 ' <$as_myself |
ad6254c5 12605 sed '
7a197a62
AK
12606 s/[$]LINENO.*/&-/
12607 t lineno
12608 b
12609 :lineno
ad6254c5 12610 N
7a197a62
AK
12611 :loop
12612 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12613 t loop
7a197a62 12614 s/-\n.*//
ad6254c5 12615 ' >$as_me.lineno &&
7a197a62 12616 chmod +x "$as_me.lineno" ||
ec6a6fbe 12617 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12618 { (exit 1); exit 1; }; }
12619
12620 # Don't try to exec as it changes $[0], causing all sort of problems
12621 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12622 # original and so on. Autoconf is especially sensitive to this).
12623 . "./$as_me.lineno"
ad6254c5
AK
12624 # Exit status is that of the last command.
12625 exit
12626}
12627
12628
7a197a62
AK
12629if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12630 as_dirname=dirname
12631else
12632 as_dirname=false
12633fi
12634
12635ECHO_C= ECHO_N= ECHO_T=
12636case `echo -n x` in
12637-n*)
12638 case `echo 'x\c'` in
12639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12640 *) ECHO_C='\c';;
12641 esac;;
12642*)
12643 ECHO_N='-n';;
ad6254c5 12644esac
7a197a62
AK
12645if expr a : '\(a\)' >/dev/null 2>&1 &&
12646 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12647 as_expr=expr
12648else
12649 as_expr=false
12650fi
80992638 12651
ad6254c5 12652rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12653if test -d conf$$.dir; then
12654 rm -f conf$$.dir/conf$$.file
12655else
12656 rm -f conf$$.dir
ec6a6fbe
AK
12657 mkdir conf$$.dir 2>/dev/null
12658fi
12659if (echo >conf$$.file) 2>/dev/null; then
12660 if ln -s conf$$.file conf$$ 2>/dev/null; then
12661 as_ln_s='ln -s'
12662 # ... but there are two gotchas:
12663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12665 # In both cases, we have to default to `cp -p'.
12666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12667 as_ln_s='cp -p'
12668 elif ln conf$$.file conf$$ 2>/dev/null; then
12669 as_ln_s=ln
12670 else
ad6254c5 12671 as_ln_s='cp -p'
ec6a6fbe 12672 fi
ad6254c5
AK
12673else
12674 as_ln_s='cp -p'
12675fi
7a197a62
AK
12676rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12677rmdir conf$$.dir 2>/dev/null
8106cdd5 12678
ad6254c5
AK
12679if mkdir -p . 2>/dev/null; then
12680 as_mkdir_p=:
12681else
8a2fc586 12682 test -d ./-p && rmdir ./-p
ad6254c5
AK
12683 as_mkdir_p=false
12684fi
12685
25fbec5b
AK
12686if test -x / >/dev/null 2>&1; then
12687 as_test_x='test -x'
7a197a62 12688else
25fbec5b
AK
12689 if ls -dL / >/dev/null 2>&1; then
12690 as_ls_L_option=L
12691 else
12692 as_ls_L_option=
12693 fi
12694 as_test_x='
12695 eval sh -c '\''
12696 if test -d "$1"; then
ec6a6fbe 12697 test -d "$1/.";
25fbec5b
AK
12698 else
12699 case $1 in
ec6a6fbe 12700 -*)set "./$1";;
25fbec5b
AK
12701 esac;
12702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12703 ???[sx]*):;;*)false;;esac;fi
12704 '\'' sh
12705 '
7a197a62 12706fi
25fbec5b 12707as_executable_p=$as_test_x
ad6254c5
AK
12708
12709# Sed expression to map a string onto a valid CPP name.
8a2fc586 12710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12711
12712# Sed expression to map a string onto a valid variable name.
8a2fc586 12713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12714
12715
ad6254c5
AK
12716exec 6>&1
12717
7a197a62 12718# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12719# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12720# values after options handling.
12721ac_log="
ad6254c5 12722This file was extended by $as_me, which was
ec6a6fbe 12723generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
12724
12725 CONFIG_FILES = $CONFIG_FILES
12726 CONFIG_HEADERS = $CONFIG_HEADERS
12727 CONFIG_LINKS = $CONFIG_LINKS
12728 CONFIG_COMMANDS = $CONFIG_COMMANDS
12729 $ $0 $@
12730
7a197a62
AK
12731on `(hostname || uname -n) 2>/dev/null | sed 1q`
12732"
12733
ad6254c5
AK
12734_ACEOF
12735
ec6a6fbe
AK
12736case $ac_config_files in *"
12737"*) set x $ac_config_files; shift; ac_config_files=$*;;
12738esac
12739
12740case $ac_config_headers in *"
12741"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12742esac
12743
12744
12745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 12746# Files that config.status was made for.
68f2de6d
AK
12747config_files="$ac_config_files"
12748config_headers="$ac_config_headers"
ad6254c5 12749
7a197a62 12750_ACEOF
ad6254c5 12751
ec6a6fbe 12752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12753ac_cs_usage="\
12754\`$as_me' instantiates files from templates according to the
12755current configuration.
12756
ec6a6fbe 12757Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
12758
12759 -h, --help print this help, then exit
25fbec5b 12760 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
12761 -q, --quiet, --silent
12762 do not print progress messages
ad6254c5
AK
12763 -d, --debug don't remove temporary files
12764 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
12765 --file=FILE[:TEMPLATE]
12766 instantiate the configuration file FILE
12767 --header=FILE[:TEMPLATE]
12768 instantiate the configuration header FILE
ad6254c5
AK
12769
12770Configuration files:
12771$config_files
12772
72b2cb61
AK
12773Configuration headers:
12774$config_headers
12775
ad6254c5 12776Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12777
7a197a62 12778_ACEOF
ec6a6fbe 12779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12780ac_cs_version="\\
12781config.status
ec6a6fbe
AK
12782configured by $0, generated by GNU Autoconf 2.63,
12783 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12784
ec6a6fbe 12785Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
12786This config.status script is free software; the Free Software Foundation
12787gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12788
12789ac_pwd='$ac_pwd'
12790srcdir='$srcdir'
12791INSTALL='$INSTALL'
fddafd51 12792MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
12793AWK='$AWK'
12794test -n "\$AWK" || AWK=awk
ad6254c5
AK
12795_ACEOF
12796
ec6a6fbe
AK
12797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798# The default lists apply if the user does not specify any file.
ad6254c5
AK
12799ac_need_defaults=:
12800while test $# != 0
12801do
12802 case $1 in
12803 --*=*)
7a197a62
AK
12804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12806 ac_shift=:
12807 ;;
7a197a62 12808 *)
ad6254c5
AK
12809 ac_option=$1
12810 ac_optarg=$2
12811 ac_shift=shift
12812 ;;
ad6254c5
AK
12813 esac
12814
12815 case $ac_option in
12816 # Handling of the options.
ad6254c5
AK
12817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12818 ac_cs_recheck=: ;;
7a197a62 12819 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 12820 $as_echo "$ac_cs_version"; exit ;;
7a197a62 12821 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12822 debug=: ;;
12823 --file | --fil | --fi | --f )
12824 $ac_shift
ec6a6fbe
AK
12825 case $ac_optarg in
12826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12827 esac
12828 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
12829 ac_need_defaults=false;;
12830 --header | --heade | --head | --hea )
12831 $ac_shift
ec6a6fbe
AK
12832 case $ac_optarg in
12833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12834 esac
12835 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 12836 ac_need_defaults=false;;
7a197a62
AK
12837 --he | --h)
12838 # Conflict between --help and --header
ec6a6fbe 12839 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12840Try \`$0 --help' for more information." >&2
12841 { (exit 1); exit 1; }; };;
12842 --help | --hel | -h )
ec6a6fbe 12843 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12846 ac_cs_silent=: ;;
12847
12848 # This is an error.
ec6a6fbe 12849 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 12850Try \`$0 --help' for more information." >&2
ad6254c5
AK
12851 { (exit 1); exit 1; }; } ;;
12852
7a197a62
AK
12853 *) ac_config_targets="$ac_config_targets $1"
12854 ac_need_defaults=false ;;
ad6254c5
AK
12855
12856 esac
12857 shift
12858done
12859
12860ac_configure_extra_args=
12861
12862if $ac_cs_silent; then
12863 exec 6>/dev/null
12864 ac_configure_extra_args="$ac_configure_extra_args --silent"
12865fi
12866
12867_ACEOF
ec6a6fbe 12868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 12869if \$ac_cs_recheck; then
ec6a6fbe
AK
12870 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12871 shift
12872 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12873 CONFIG_SHELL='$SHELL'
7a197a62 12874 export CONFIG_SHELL
ec6a6fbe 12875 exec "\$@"
ad6254c5
AK
12876fi
12877
12878_ACEOF
ec6a6fbe 12879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12880exec 5>>config.log
12881{
12882 echo
12883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12884## Running $as_me. ##
12885_ASBOX
ec6a6fbe 12886 $as_echo "$ac_log"
7a197a62 12887} >&5
ad6254c5 12888
7a197a62 12889_ACEOF
ec6a6fbe 12890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 12891_ACEOF
ad6254c5 12892
ec6a6fbe 12893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
12894
12895# Handling of arguments.
ad6254c5
AK
12896for ac_config_target in $ac_config_targets
12897do
7a197a62
AK
12898 case $ac_config_target in
12899 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12901 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12902 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12903 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
12904 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12905 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 12906 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
12907 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12908 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 12909 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
12910 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12911 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
12912 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12913 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12914 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12915 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 12916 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 12917 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
12918 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12919 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12920 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12921 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 12922 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 12923 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 12924 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 12925 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 12926 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7a197a62 12927
ec6a6fbe
AK
12928 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12929$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12930 { (exit 1); exit 1; }; };;
80992638 12931 esac
ad6254c5
AK
12932done
12933
7a197a62 12934
ad6254c5
AK
12935# If the user did not use the arguments to specify the items to instantiate,
12936# then the envvar interface is used. Set only those that are not.
12937# We use the long form for the default assignment because of an extremely
12938# bizarre bug on SunOS 4.1.3.
12939if $ac_need_defaults; then
12940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12942fi
12943
12944# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12945# simply because there is no reason against having it here, and in addition,
ad6254c5 12946# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12947# Hook for its removal unless debugging.
12948# Note that there is a small window in which the directory will not be cleaned:
12949# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12950$debug ||
12951{
7a197a62
AK
12952 tmp=
12953 trap 'exit_status=$?
12954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12955' 0
ad6254c5
AK
12956 trap '{ (exit 1); exit 1; }' 1 2 13 15
12957}
ad6254c5
AK
12958# Create a (secure) tmp directory for tmp files.
12959
12960{
7a197a62 12961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12962 test -n "$tmp" && test -d "$tmp"
12963} ||
12964{
7a197a62
AK
12965 tmp=./conf$$-$RANDOM
12966 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12967} ||
12968{
ec6a6fbe 12969 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12970 { (exit 1); exit 1; }
12971}
12972
ec6a6fbe
AK
12973# Set up the scripts for CONFIG_FILES section.
12974# No need to generate them if there are no CONFIG_FILES.
12975# This happens for instance with `./config.status config.h'.
1995c9ff 12976if test -n "$CONFIG_FILES"; then
7a197a62 12977
68f2de6d 12978
ec6a6fbe
AK
12979ac_cr='\r'
12980ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12981if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12982 ac_cs_awk_cr='\\r'
12983else
12984 ac_cs_awk_cr=$ac_cr
1995c9ff 12985fi
7a197a62 12986
ec6a6fbe 12987echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 12988_ACEOF
7a197a62 12989
8106cdd5 12990
ec6a6fbe
AK
12991{
12992 echo "cat >conf$$subs.awk <<_ACEOF" &&
12993 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12994 echo "_ACEOF"
12995} >conf$$subs.sh ||
12996 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12997$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12998 { (exit 1); exit 1; }; }
12999ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
13000ac_delim='%!_!# '
13001for ac_last_try in false false false false false :; do
ec6a6fbe
AK
13002 . ./conf$$subs.sh ||
13003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13004$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13005 { (exit 1); exit 1; }; }
13006
13007 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13008 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
13009 break
13010 elif $ac_last_try; then
ec6a6fbe
AK
13011 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13012$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
13013 { (exit 1); exit 1; }; }
13014 else
13015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13016 fi
13017done
ec6a6fbe
AK
13018rm -f conf$$subs.sh
13019
13020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13021cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13022_ACEOF
13023sed -n '
13024h
13025s/^/S["/; s/!.*/"]=/
13026p
13027g
13028s/^[^!]*!//
13029:repl
13030t repl
13031s/'"$ac_delim"'$//
13032t delim
13033:nl
13034h
13035s/\(.\{148\}\).*/\1/
13036t more1
13037s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13038p
13039n
13040b repl
13041:more1
13042s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13043p
13044g
13045s/.\{148\}//
13046t nl
13047:delim
13048h
13049s/\(.\{148\}\).*/\1/
13050t more2
13051s/["\\]/\\&/g; s/^/"/; s/$/"/
13052p
13053b
13054:more2
13055s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13056p
13057g
13058s/.\{148\}//
13059t delim
13060' <conf$$subs.awk | sed '
13061/^[^""]/{
13062 N
13063 s/\n//
13064}
13065' >>$CONFIG_STATUS || ac_write_fail=1
13066rm -f conf$$subs.awk
13067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13068_ACAWK
13069cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13070 for (key in S) S_is_set[key] = 1
13071 FS = "\a"
7a197a62 13072
ec6a6fbe
AK
13073}
13074{
13075 line = $ 0
13076 nfields = split(line, field, "@")
13077 substed = 0
13078 len = length(field[1])
13079 for (i = 2; i < nfields; i++) {
13080 key = field[i]
13081 keylen = length(key)
13082 if (S_is_set[key]) {
13083 value = S[key]
13084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13085 len += length(value) + length(field[++i])
13086 substed = 1
13087 } else
13088 len += 1 + keylen
13089 }
13090
13091 print line
13092}
fddafd51 13093
ec6a6fbe 13094_ACAWK
1995c9ff 13095_ACEOF
ec6a6fbe
AK
13096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13097if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13099else
13100 cat
13101fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13102 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13103$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13104 { (exit 1); exit 1; }; }
7a197a62
AK
13105_ACEOF
13106
7a197a62
AK
13107# VPATH may cause trouble with some makes, so we remove $(srcdir),
13108# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13109# trailing colons and then remove the whole line if VPATH becomes empty
13110# (actually we leave an empty line to preserve line numbers).
13111if test "x$srcdir" = x.; then
13112 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13113s/:*\$(srcdir):*/:/
13114s/:*\${srcdir}:*/:/
13115s/:*@srcdir@:*/:/
13116s/^\([^=]*=[ ]*\):*/\1/
13117s/:*$//
13118s/^[^=]*=[ ]*$//
13119}'
13120fi
13121
ec6a6fbe 13122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13123fi # test -n "$CONFIG_FILES"
13124
ec6a6fbe
AK
13125# Set up the scripts for CONFIG_HEADERS section.
13126# No need to generate them if there are no CONFIG_HEADERS.
13127# This happens for instance with `./config.status Makefile'.
13128if test -n "$CONFIG_HEADERS"; then
13129cat >"$tmp/defines.awk" <<\_ACAWK ||
13130BEGIN {
13131_ACEOF
13132
13133# Transform confdefs.h into an awk script `defines.awk', embedded as
13134# here-document in config.status, that substitutes the proper values into
13135# config.h.in to produce config.h.
13136
13137# Create a delimiter string that does not exist in confdefs.h, to ease
13138# handling of long lines.
13139ac_delim='%!_!# '
13140for ac_last_try in false false :; do
13141 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13142 if test -z "$ac_t"; then
13143 break
13144 elif $ac_last_try; then
13145 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13146$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13147 { (exit 1); exit 1; }; }
13148 else
13149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13150 fi
13151done
13152
13153# For the awk script, D is an array of macro values keyed by name,
13154# likewise P contains macro parameters if any. Preserve backslash
13155# newline sequences.
13156
13157ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13158sed -n '
13159s/.\{148\}/&'"$ac_delim"'/g
13160t rset
13161:rset
13162s/^[ ]*#[ ]*define[ ][ ]*/ /
13163t def
13164d
13165:def
13166s/\\$//
13167t bsnl
13168s/["\\]/\\&/g
13169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13170D["\1"]=" \3"/p
13171s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13172d
13173:bsnl
13174s/["\\]/\\&/g
13175s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13176D["\1"]=" \3\\\\\\n"\\/p
13177t cont
13178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13179t cont
13180d
13181:cont
13182n
13183s/.\{148\}/&'"$ac_delim"'/g
13184t clear
13185:clear
13186s/\\$//
13187t bsnlc
13188s/["\\]/\\&/g; s/^/"/; s/$/"/p
13189d
13190:bsnlc
13191s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13192b cont
13193' <confdefs.h | sed '
13194s/'"$ac_delim"'/"\\\
13195"/g' >>$CONFIG_STATUS || ac_write_fail=1
13196
13197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13198 for (key in D) D_is_set[key] = 1
13199 FS = "\a"
13200}
13201/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13202 line = \$ 0
13203 split(line, arg, " ")
13204 if (arg[1] == "#") {
13205 defundef = arg[2]
13206 mac1 = arg[3]
13207 } else {
13208 defundef = substr(arg[1], 2)
13209 mac1 = arg[2]
13210 }
13211 split(mac1, mac2, "(") #)
13212 macro = mac2[1]
13213 prefix = substr(line, 1, index(line, defundef) - 1)
13214 if (D_is_set[macro]) {
13215 # Preserve the white space surrounding the "#".
13216 print prefix "define", macro P[macro] D[macro]
13217 next
13218 } else {
13219 # Replace #undef with comments. This is necessary, for example,
13220 # in the case of _POSIX_SOURCE, which is predefined and required
13221 # on some systems where configure will not decide to define it.
13222 if (defundef == "undef") {
13223 print "/*", prefix defundef, macro, "*/"
13224 next
13225 }
13226 }
13227}
13228{ print }
13229_ACAWK
13230_ACEOF
13231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13233$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13234 { (exit 1); exit 1; }; }
13235fi # test -n "$CONFIG_HEADERS"
13236
7a197a62 13237
ec6a6fbe
AK
13238eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13239shift
13240for ac_tag
7a197a62
AK
13241do
13242 case $ac_tag in
13243 :[FHLC]) ac_mode=$ac_tag; continue;;
13244 esac
13245 case $ac_mode$ac_tag in
13246 :[FHL]*:*);;
ec6a6fbe
AK
13247 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13248$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
13249 { (exit 1); exit 1; }; };;
13250 :[FH]-) ac_tag=-:-;;
13251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13252 esac
13253 ac_save_IFS=$IFS
13254 IFS=:
13255 set x $ac_tag
13256 IFS=$ac_save_IFS
13257 shift
13258 ac_file=$1
13259 shift
13260
13261 case $ac_mode in
13262 :L) ac_source=$1;;
13263 :[FH])
13264 ac_file_inputs=
13265 for ac_f
13266 do
13267 case $ac_f in
13268 -) ac_f="$tmp/stdin";;
13269 *) # Look for the file first in the build tree, then in the source tree
13270 # (if the path is not absolute). The absolute path cannot be DOS-style,
13271 # because $ac_f cannot contain `:'.
13272 test -f "$ac_f" ||
13273 case $ac_f in
13274 [\\/$]*) false;;
13275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13276 esac ||
ec6a6fbe
AK
13277 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13278$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13279 { (exit 1); exit 1; }; };;
13280 esac
ec6a6fbe
AK
13281 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13282 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
13283 done
13284
13285 # Let's still pretend it is `configure' which instantiates (i.e., don't
13286 # use $as_me), people would be surprised to read:
13287 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
13288 configure_input='Generated from '`
13289 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13290 `' by configure.'
7a197a62
AK
13291 if test x"$ac_file" != x-; then
13292 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
13293 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13294$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 13295 fi
ec6a6fbe
AK
13296 # Neutralize special characters interpreted by sed in replacement strings.
13297 case $configure_input in #(
13298 *\&* | *\|* | *\\* )
13299 ac_sed_conf_input=`$as_echo "$configure_input" |
13300 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13301 *) ac_sed_conf_input=$configure_input;;
13302 esac
7a197a62
AK
13303
13304 case $ac_tag in
ec6a6fbe
AK
13305 *:-:* | *:-) cat >"$tmp/stdin" \
13306 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13307$as_echo "$as_me: error: could not create $ac_file" >&2;}
13308 { (exit 1); exit 1; }; } ;;
7a197a62
AK
13309 esac
13310 ;;
80992638 13311 esac
8106cdd5 13312
7a197a62 13313 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13314$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13315 X"$ac_file" : 'X\(//\)[^/]' \| \
13316 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13318$as_echo X"$ac_file" |
7a197a62
AK
13319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13320 s//\1/
13321 q
13322 }
13323 /^X\(\/\/\)[^/].*/{
13324 s//\1/
13325 q
13326 }
13327 /^X\(\/\/\)$/{
13328 s//\1/
13329 q
13330 }
13331 /^X\(\/\).*/{
13332 s//\1/
13333 q
13334 }
13335 s/.*/./; q'`
13336 { as_dir="$ac_dir"
13337 case $as_dir in #(
13338 -*) as_dir=./$as_dir;;
13339 esac
13340 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13341 as_dirs=
7a197a62
AK
13342 while :; do
13343 case $as_dir in #(
ec6a6fbe 13344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13345 *) as_qdir=$as_dir;;
13346 esac
13347 as_dirs="'$as_qdir' $as_dirs"
13348 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13350 X"$as_dir" : 'X\(//\)[^/]' \| \
13351 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13353$as_echo X"$as_dir" |
7a197a62
AK
13354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13355 s//\1/
13356 q
13357 }
13358 /^X\(\/\/\)[^/].*/{
13359 s//\1/
13360 q
13361 }
13362 /^X\(\/\/\)$/{
13363 s//\1/
13364 q
13365 }
13366 /^X\(\/\).*/{
13367 s//\1/
13368 q
13369 }
13370 s/.*/./; q'`
13371 test -d "$as_dir" && break
ad6254c5 13372 done
7a197a62 13373 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
13374 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13375$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13376 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13377 ac_builddir=.
13378
7a197a62
AK
13379case "$ac_dir" in
13380.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13381*)
ec6a6fbe 13382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13383 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 13384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13385 case $ac_top_builddir_sub in
13386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13388 esac ;;
13389esac
13390ac_abs_top_builddir=$ac_pwd
13391ac_abs_builddir=$ac_pwd$ac_dir_suffix
13392# for backward compatibility:
13393ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13394
13395case $srcdir in
7a197a62 13396 .) # We are building in place.
ad6254c5 13397 ac_srcdir=.
7a197a62
AK
13398 ac_top_srcdir=$ac_top_builddir_sub
13399 ac_abs_top_srcdir=$ac_pwd ;;
13400 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13401 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13402 ac_top_srcdir=$srcdir
13403 ac_abs_top_srcdir=$srcdir ;;
13404 *) # Relative name.
13405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13406 ac_top_srcdir=$ac_top_build_prefix$srcdir
13407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13408esac
7a197a62 13409ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13410
ad6254c5 13411
7a197a62
AK
13412 case $ac_mode in
13413 :F)
13414 #
13415 # CONFIG_FILE
13416 #
ad6254c5
AK
13417
13418 case $INSTALL in
13419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13421 esac
fddafd51
ZK
13422 ac_MKDIR_P=$MKDIR_P
13423 case $MKDIR_P in
13424 [\\/$]* | ?:[\\/]* ) ;;
13425 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13426 esac
7a197a62 13427_ACEOF
795ca3e5 13428
ec6a6fbe 13429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13430# If the template does not know about datarootdir, expand it.
13431# FIXME: This hack should be removed a few years after 2.60.
13432ac_datarootdir_hack=; ac_datarootdir_seen=
13433
ec6a6fbe
AK
13434ac_sed_dataroot='
13435/datarootdir/ {
7a197a62
AK
13436 p
13437 q
13438}
13439/@datadir@/p
13440/@docdir@/p
13441/@infodir@/p
13442/@localedir@/p
13443/@mandir@/p
ec6a6fbe
AK
13444'
13445case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
13446*datarootdir*) ac_datarootdir_seen=yes;;
13447*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
13448 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13449$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13450_ACEOF
ec6a6fbe 13451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
13452 ac_datarootdir_hack='
13453 s&@datadir@&$datadir&g
13454 s&@docdir@&$docdir&g
13455 s&@infodir@&$infodir&g
13456 s&@localedir@&$localedir&g
13457 s&@mandir@&$mandir&g
13458 s&\\\${datarootdir}&$datarootdir&g' ;;
13459esac
13460_ACEOF
13461
13462# Neutralize VPATH when `$srcdir' = `.'.
13463# Shell code in configure.ac might set extrasub.
13464# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
13465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13466ac_sed_extra="$ac_vpsub
ad6254c5
AK
13467$extrasub
13468_ACEOF
ec6a6fbe 13469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13470:t
13471/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 13472s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 13473s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 13474s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
13475s&@srcdir@&$ac_srcdir&;t t
13476s&@abs_srcdir@&$ac_abs_srcdir&;t t
13477s&@top_srcdir@&$ac_top_srcdir&;t t
13478s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13479s&@builddir@&$ac_builddir&;t t
13480s&@abs_builddir@&$ac_abs_builddir&;t t
13481s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13482s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 13483s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 13484$ac_datarootdir_hack
ec6a6fbe
AK
13485"
13486eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13487 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13488$as_echo "$as_me: error: could not create $ac_file" >&2;}
13489 { (exit 1); exit 1; }; }
7a197a62
AK
13490
13491test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 13494 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13495which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 13496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13497which seems to be undefined. Please make sure it is defined." >&2;}
13498
13499 rm -f "$tmp/stdin"
72b2cb61 13500 case $ac_file in
ec6a6fbe
AK
13501 -) cat "$tmp/out" && rm -f "$tmp/out";;
13502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13503 esac \
13504 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13505$as_echo "$as_me: error: could not create $ac_file" >&2;}
13506 { (exit 1); exit 1; }; }
7a197a62
AK
13507 ;;
13508 :H)
13509 #
13510 # CONFIG_HEADER
13511 #
72b2cb61 13512 if test x"$ac_file" != x-; then
ec6a6fbe
AK
13513 {
13514 $as_echo "/* $configure_input */" \
13515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13516 } >"$tmp/config.h" \
13517 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13518$as_echo "$as_me: error: could not create $ac_file" >&2;}
13519 { (exit 1); exit 1; }; }
13520 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13521 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13522$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13523 else
ec6a6fbe
AK
13524 rm -f "$ac_file"
13525 mv "$tmp/config.h" "$ac_file" \
13526 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13527$as_echo "$as_me: error: could not create $ac_file" >&2;}
13528 { (exit 1); exit 1; }; }
72b2cb61
AK
13529 fi
13530 else
ec6a6fbe
AK
13531 $as_echo "/* $configure_input */" \
13532 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13533 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13534$as_echo "$as_me: error: could not create -" >&2;}
13535 { (exit 1); exit 1; }; }
72b2cb61 13536 fi
7a197a62
AK
13537 ;;
13538
13539
13540 esac
13541
13542done # for ac_tag
795ca3e5 13543
795ca3e5 13544
ad6254c5
AK
13545{ (exit 0); exit 0; }
13546_ACEOF
795ca3e5 13547chmod +x $CONFIG_STATUS
ad6254c5
AK
13548ac_clean_files=$ac_clean_files_save
13549
ec6a6fbe
AK
13550test $ac_write_fail = 0 ||
13551 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13552$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13553 { (exit 1); exit 1; }; }
13554
ad6254c5
AK
13555
13556# configure is writing to config.log, and then calls config.status.
13557# config.status does its own redirection, appending to config.log.
13558# Unfortunately, on DOS this fails, as config.log is still kept open
13559# by configure, so config.status won't be able to write to it; its
13560# output is simply discarded. So we exec the FD to /dev/null,
13561# effectively closing config.log, so it can be properly (re)opened and
13562# appended to by config.status. When coming back to configure, we
13563# need to make the FD available again.
13564if test "$no_create" != yes; then
13565 ac_cs_success=:
13566 ac_config_status_args=
13567 test "$silent" = yes &&
13568 ac_config_status_args="$ac_config_status_args --quiet"
13569 exec 5>/dev/null
13570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13571 exec 5>>config.log
13572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13573 # would make configure fail if this is the last instruction.
13574 $ac_cs_success || { (exit 1); exit 1; }
13575fi
ec6a6fbe
AK
13576if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13577 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13578$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13579fi
795ca3e5 13580
2dc95e1c
AK
13581
13582if test x$ODIRECT != xyes; then
ec6a6fbe
AK
13583 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13584$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13585fi
This page took 1.829523 seconds and 5 git commands to generate.