]> sourceware.org Git - lvm2.git/blame - configure
More comment updates in lvm2app.h.
[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 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
23b059e7 649WRITE_INSTALL
0878503f 650UDEV_SYNC
a5f46f6a 651UDEV_RULES
f7f0854e 652UDEV_PC
db724a44 653UDEV_LIBS
ec6a6fbe
AK
654STATIC_LINK
655STATICDIR
656SNAPSHOTS
f7f0854e 657SELINUX_PC
e1b8a236 658SELINUX_LIBS
539f4a77 659READLINE_LIBS
f30875db 660PTHREAD_LIBS
ec6a6fbe
AK
661POOL
662PKGCONFIG
8fea97b7 663REPLICATORS
ec6a6fbe
AK
664MIRRORS
665LVM_RELEASE_DATE
666LVM_RELEASE
667LVM_PATCHLEVEL
668LVM_MINOR
669LVM_MAJOR
bf456146 670LVM_LIBAPI
ec6a6fbe 671LVM_VERSION
ec6a6fbe
AK
672LVM1_FALLBACK
673LVM1
674LOCALEDIR
675LIB_SUFFIX
676LDDEPS
677JOBS
678INTL_PACKAGE
679INTL
ec6a6fbe
AK
680HAVE_REALTIME
681HAVE_LIBDL
ec6a6fbe
AK
682FSADM
683DM_LIB_PATCHLEVEL
684DM_LIB_VERSION
685DM_IOCTLS
686DM_DEVICE_UID
687DM_DEVICE_MODE
688DM_DEVICE_GID
689DM_COMPAT
690DMEVENTD
19a2c6e0 691DL_LIBS
ec6a6fbe 692DEVMAPPER
3399ae32
AK
693DEFAULT_LOCK_DIR
694DEFAULT_CACHE_SUBDIR
695DEFAULT_BACKUP_SUBDIR
696DEFAULT_ARCHIVE_SUBDIR
697DEFAULT_SYS_DIR
ec6a6fbe
AK
698DEBUG
699COPTIMISE_FLAG
e2997b73 700CONFDIR
ec6a6fbe
AK
701CMDLIB
702CLVMD
703CLUSTER
704CLDWHOLEARCHIVE
705CLDNOWHOLEARCHIVE
706CLDFLAGS
707BUILD_DMEVENTD
66fd4529 708BUILD_CMIRRORD
572fefeb 709APPLIB
ec6a6fbe
AK
710MODPROBE_CMD
711MSGFMT
712LVM2CMD_LIB
572fefeb 713LVM2APP_LIB
fd4728e1 714GENPNG
ec6a6fbe
AK
715GENHTML
716LCOV
90c80887
AK
717SACKPT_LIBS
718SACKPT_CFLAGS
a946372e
AK
719DLM_LIBS
720DLM_CFLAGS
e2997b73
AK
721CPG_LIBS
722CPG_CFLAGS
723CONFDB_LIBS
724CONFDB_CFLAGS
a946372e
AK
725SALCK_LIBS
726SALCK_CFLAGS
e2997b73
AK
727QUORUM_LIBS
728QUORUM_CFLAGS
a946372e
AK
729COROSYNC_LIBS
730COROSYNC_CFLAGS
731CMAN_LIBS
732CMAN_CFLAGS
733GULM_LIBS
734GULM_CFLAGS
735CCS_LIBS
736CCS_CFLAGS
737PKGCONFIGINIT_LIBS
738PKGCONFIGINIT_CFLAGS
71082be4
ZK
739PKG_CONFIG_LIBDIR
740PKG_CONFIG_PATH
e2997b73 741PKG_CONFIG
ec6a6fbe
AK
742POW_LIB
743LIBOBJS
744ALLOCA
745CSCOPE_CMD
746CFLOW_CMD
747RANLIB
748MKDIR_P
749SET_MAKE
750LN_S
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754EGREP
755GREP
756CPP
757OBJEXT
758EXEEXT
759ac_ct_CC
760CPPFLAGS
761LDFLAGS
762CFLAGS
763CC
764AWK
765SED
766target_os
767target_vendor
768target_cpu
769target
770host_os
771host_vendor
772host_cpu
773host
774build_os
775build_vendor
776build_cpu
777build
778target_alias
779host_alias
780build_alias
781LIBS
782ECHO_T
783ECHO_N
784ECHO_C
785DEFS
786mandir
787localedir
788libdir
789psdir
790pdfdir
791dvidir
792htmldir
793infodir
794docdir
795oldincludedir
796includedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL'
ad6254c5 815ac_subst_files=''
ec6a6fbe
AK
816ac_user_opts='
817enable_option_checking
818enable_static_link
819with_user
820with_group
821with_device_uid
822with_device_gid
823with_device_mode
824enable_lvm1_fallback
825with_lvm1
826with_pool
827with_cluster
828with_snapshots
829with_mirrors
8fea97b7 830with_replicators
ec6a6fbe
AK
831enable_readline
832enable_realtime
833with_clvmd
66fd4529
AK
834enable_cmirrord
835with_cmirrord_pidfile
ec6a6fbe
AK
836enable_debug
837with_optimisation
838enable_profiling
839enable_devmapper
a5f46f6a
AK
840enable_udev_sync
841enable_udev_rules
ec6a6fbe 842enable_compat
95eaa683 843enable_units_compat
ec6a6fbe
AK
844enable_ioctl
845enable_o_direct
572fefeb 846enable_applib
ec6a6fbe
AK
847enable_cmdlib
848enable_pkgconfig
23b059e7 849enable_write_install
ec6a6fbe
AK
850enable_fsadm
851enable_dmeventd
852enable_selinux
853enable_nls
854with_localedir
855with_confdir
856with_staticdir
857with_usrlibdir
858with_usrsbindir
a5f46f6a 859with_udev_prefix
78ce7acc 860with_udevdir
ec6a6fbe
AK
861with_dmeventd_pidfile
862with_dmeventd_path
3399ae32
AK
863with_default_system_dir
864with_default_archive_subdir
865with_default_backup_subdir
866with_default_cache_subdir
867with_default_locking_dir
ec6a6fbe
AK
868with_interface
869'
7a197a62
AK
870 ac_precious_vars='build_alias
871host_alias
872target_alias
873CC
874CFLAGS
875LDFLAGS
25fbec5b 876LIBS
7a197a62 877CPPFLAGS
e2997b73
AK
878CPP
879PKG_CONFIG
71082be4
ZK
880PKG_CONFIG_PATH
881PKG_CONFIG_LIBDIR
a946372e
AK
882PKGCONFIGINIT_CFLAGS
883PKGCONFIGINIT_LIBS
884CCS_CFLAGS
885CCS_LIBS
886GULM_CFLAGS
887GULM_LIBS
888CMAN_CFLAGS
889CMAN_LIBS
890COROSYNC_CFLAGS
891COROSYNC_LIBS
e2997b73
AK
892QUORUM_CFLAGS
893QUORUM_LIBS
a946372e
AK
894SALCK_CFLAGS
895SALCK_LIBS
e2997b73
AK
896CONFDB_CFLAGS
897CONFDB_LIBS
898CPG_CFLAGS
a946372e
AK
899CPG_LIBS
900DLM_CFLAGS
90c80887
AK
901DLM_LIBS
902SACKPT_CFLAGS
903SACKPT_LIBS'
7a197a62 904
795ca3e5
AK
905
906# Initialize some variables set by options.
ad6254c5
AK
907ac_init_help=
908ac_init_version=false
ec6a6fbe
AK
909ac_unrecognized_opts=
910ac_unrecognized_sep=
795ca3e5
AK
911# The variables have the same names as the options, with
912# dashes changed to underlines.
ad6254c5 913cache_file=/dev/null
795ca3e5 914exec_prefix=NONE
795ca3e5 915no_create=
795ca3e5
AK
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
795ca3e5
AK
924verbose=
925x_includes=NONE
926x_libraries=NONE
ad6254c5
AK
927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 933# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
7a197a62
AK
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
795ca3e5
AK
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
795ca3e5
AK
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
7a197a62
AK
944docdir='${datarootdir}/doc/${PACKAGE}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
795ca3e5 953
795ca3e5 954ac_prev=
7a197a62 955ac_dashdash=
795ca3e5
AK
956for ac_option
957do
795ca3e5
AK
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
7a197a62 960 eval $ac_prev=\$ac_option
795ca3e5
AK
961 ac_prev=
962 continue
963 fi
964
7a197a62
AK
965 case $ac_option in
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *) ac_optarg=yes ;;
968 esac
795ca3e5
AK
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
7a197a62
AK
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
795ca3e5
AK
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 979 bindir=$ac_optarg ;;
795ca3e5
AK
980
981 -build | --build | --buil | --bui | --bu)
ad6254c5 982 ac_prev=build_alias ;;
795ca3e5 983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 984 build_alias=$ac_optarg ;;
795ca3e5
AK
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
795ca3e5 995
7a197a62 996 -datadir | --datadir | --datadi | --datad)
795ca3e5 997 ac_prev=datadir ;;
7a197a62 998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 999 datadir=$ac_optarg ;;
795ca3e5 1000
7a197a62
AK
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
795ca3e5 1008 -disable-* | --disable-*)
ec6a6fbe 1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1010 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1013 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
7a197a62
AK
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
795ca3e5
AK
1034
1035 -enable-* | --enable-*)
ec6a6fbe 1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1037 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1040 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
ad6254c5 1059 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
ad6254c5
AK
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
795ca3e5
AK
1071
1072 -host | --host | --hos | --ho)
ad6254c5 1073 ac_prev=host_alias ;;
795ca3e5 1074 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1075 host_alias=$ac_optarg ;;
795ca3e5 1076
7a197a62
AK
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
795ca3e5
AK
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1088 includedir=$ac_optarg ;;
795ca3e5
AK
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1093 infodir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1098 libdir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1105 libexecdir=$ac_optarg ;;
795ca3e5 1106
7a197a62
AK
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
795ca3e5 1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1113 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1117 localstatedir=$ac_optarg ;;
795ca3e5
AK
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1122 mandir=$ac_optarg ;;
795ca3e5
AK
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1129 | --no-cr | --no-c | -n)
795ca3e5
AK
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1143 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1148 prefix=$ac_optarg ;;
795ca3e5
AK
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1155 program_prefix=$ac_optarg ;;
795ca3e5
AK
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1162 program_suffix=$ac_optarg ;;
795ca3e5
AK
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1179 program_transform_name=$ac_optarg ;;
795ca3e5 1180
7a197a62
AK
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
795ca3e5
AK
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
ad6254c5 1199 sbindir=$ac_optarg ;;
795ca3e5
AK
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
ad6254c5 1210 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
ad6254c5 1215 site=$ac_optarg ;;
795ca3e5
AK
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1220 srcdir=$ac_optarg ;;
795ca3e5
AK
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1227 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1230 ac_prev=target_alias ;;
795ca3e5 1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1232 target_alias=$ac_optarg ;;
795ca3e5
AK
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
ad6254c5
AK
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
795ca3e5
AK
1239
1240 -with-* | --with-*)
ec6a6fbe 1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1242 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1245 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250"with_$ac_useropt"
1251"*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1256
1257 -without-* | --without-*)
ec6a6fbe 1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1259 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1262 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
795ca3e5
AK
1273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1283 x_includes=$ac_optarg ;;
795ca3e5
AK
1284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1290 x_libraries=$ac_optarg ;;
795ca3e5 1291
ec6a6fbe 1292 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1293Try \`$0 --help' for more information." >&2
1294 { (exit 1); exit 1; }; }
795ca3e5
AK
1295 ;;
1296
ad6254c5
AK
1297 *=*)
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1301 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1302 { (exit 1); exit 1; }; }
7a197a62 1303 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1304 export $ac_envvar ;;
1305
795ca3e5 1306 *)
ad6254c5 1307 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1311 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1312 ;;
1313
1314 esac
1315done
1316
1317if test -n "$ac_prev"; then
ad6254c5 1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1319 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1320 { (exit 1); exit 1; }; }
795ca3e5 1321fi
795ca3e5 1322
ec6a6fbe
AK
1323if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1325 no) ;;
1326 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1327 { (exit 1); exit 1; }; } ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 esac
1330fi
1331
1332# Check all directory arguments for consistency.
7a197a62
AK
1333for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
795ca3e5 1337do
7a197a62 1338 eval ac_val=\$$ac_var
ec6a6fbe
AK
1339 # Remove trailing slashes.
1340 case $ac_val in
1341 */ )
1342 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\$ac_val;;
1344 esac
1345 # Be sure to have absolute directory names.
ad6254c5 1346 case $ac_val in
7a197a62
AK
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1349 esac
ec6a6fbe 1350 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1351 { (exit 1); exit 1; }; }
795ca3e5
AK
1352done
1353
ad6254c5
AK
1354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
1360
1361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
ec6a6fbe 1365 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370fi
8106cdd5 1371
ad6254c5
AK
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
795ca3e5 1376
795ca3e5 1377
7a197a62
AK
1378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1381 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1382 { (exit 1); exit 1; }; }
1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1384 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1385 { (exit 1); exit 1; }; }
1386
1387
795ca3e5
AK
1388# Find the source files, if location was not specified.
1389if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
7a197a62 1391 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397$as_echo X"$as_myself" |
7a197a62
AK
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
795ca3e5 1415 srcdir=$ac_confdir
7a197a62 1416 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1417 srcdir=..
1418 fi
1419else
1420 ac_srcdir_defaulted=no
1421fi
7a197a62
AK
1422if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1424 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1425 { (exit 1); exit 1; }; }
795ca3e5 1426fi
7a197a62
AK
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
ec6a6fbe 1429 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1430 { (exit 1); exit 1; }; }
7a197a62
AK
1431 pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
ad6254c5
AK
1448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456\`configure' configures this package to adapt to many kinds of systems.
1457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE. See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
ad6254c5
AK
1476Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1478 [$ac_default_prefix]
ad6254c5 1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1480 [PREFIX]
ad6254c5
AK
1481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
ec6a6fbe
AK
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 --target=TARGET configure for building compilers for TARGET [HOST]
1517_ACEOF
1518fi
1519
1520if test -n "$ac_init_help"; then
1521
1522 cat <<\_ACEOF
1523
1524Optional Features:
ec6a6fbe 1525 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1528 --enable-static_link use this to link the tools to their libraries
1529 statically (default is dynamic linking
1530 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1531 device-mapper is missing from the kernel
71082be4
ZK
1532 --disable-readline disable readline support
1533 --enable-realtime enable realtime clock support
1534 --enable-cmirrord enable the cluster mirror log daemon
1535 --enable-debug enable debugging
1536 --enable-profiling gather gcov profiling data
1537 --disable-devmapper disable LVM2 device-mapper interaction
1538 --enable-udev_sync enable synchronisation with udev processing
1539 --enable-udev_rules install rule files needed for udev synchronisation
1540 --enable-compat enable support for old device-mapper versions
1541 --enable-units-compat enable output compatibility with old versions that
1542 that do not use KiB-style unit suffixes
1543 --disable-driver disable calls to device-mapper in the kernel
1544 --disable-o_direct disable O_DIRECT
1545 --enable-applib build application library
1546 --enable-cmdlib build shared command library
1547 --enable-pkgconfig install pkgconfig support
1548 --enable-write_install install user writable files
1549 --disable-fsadm disable fsadm
1550 --enable-dmeventd enable the device-mapper event daemon
1551 --disable-selinux disable selinux support
1552 --enable-nls enable Native Language Support
ad6254c5
AK
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1557 --with-user=USER set the owner of installed files [USER=]
1558 --with-group=GROUP set the group owner of installed files [GROUP=]
1559 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1560 --with-device-gid=GID set the group used for new device nodes [GID=0]
1561 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1562 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1563 [TYPE=internal]
ad6254c5 1564 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1565 [TYPE=internal]
1566 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1567 [TYPE=internal]
1568 --with-snapshots=TYPE snapshot support: internal/shared/none
1569 [TYPE=internal]
1570 --with-mirrors=TYPE mirror support: internal/shared/none
1571 [TYPE=internal]
1572 --with-replicators=TYPE replicator support: internal/shared/none
1573 [TYPE=none]
1574 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1575 The following cluster manager combinations are valid:
a946372e
AK
1576 * cman,gulm (RHEL4 or equivalent)
1577 * cman (RHEL5 or equivalent)
1578 * cman,corosync,openais (or selection of them)
1091650a 1579 * singlenode (localhost only)
a946372e
AK
1580 * all (autodetect)
1581 * none (disable build)
71082be4
ZK
1582 [TYPE=none]
1583 --with-cmirrord-pidfile=PATH
1584 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1585 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1586 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1587 --with-confdir=DIR configuration files in DIR [/etc]
1588 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1589 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1590 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1591 --with-udev-prefix=UPREFIX
1592 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1593 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1594 --with-dmeventd-pidfile=PATH
1595 dmeventd pidfile [/var/run/dmeventd.pid]
1596 --with-dmeventd-path=PATH
1597 dmeventd path [EPREFIX/sbin/dmeventd]
1598 --with-default-system-dir=DIR
1599 default LVM system directory [/etc/lvm]
1600 --with-default-archive-subdir=SUBDIR
1601 default metadata archive subdir [archive]
1602 --with-default-backup-subdir=SUBDIR
1603 default metadata backup subdir [backup]
1604 --with-default-cache-subdir=SUBDIR
1605 default metadata cache subdir [cache]
1606 --with-default-locking-dir=DIR
1607 default locking directory [/var/lock/lvm]
1608 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1609
1610Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
25fbec5b 1615 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
ad6254c5 1618 CPP C preprocessor
e2997b73 1619 PKG_CONFIG path to pkg-config utility
71082be4
ZK
1620 PKG_CONFIG_PATH
1621 directories to add to pkg-config's search path
1622 PKG_CONFIG_LIBDIR
1623 path overriding pkg-config's built-in search path
a946372e
AK
1624 PKGCONFIGINIT_CFLAGS
1625 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1626 PKGCONFIGINIT_LIBS
1627 linker flags for PKGCONFIGINIT, overriding pkg-config
1628 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1629 CCS_LIBS linker flags for CCS, overriding pkg-config
1630 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1631 GULM_LIBS linker flags for GULM, overriding pkg-config
1632 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1633 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1634 COROSYNC_CFLAGS
1635 C compiler flags for COROSYNC, overriding pkg-config
1636 COROSYNC_LIBS
1637 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1638 QUORUM_CFLAGS
1639 C compiler flags for QUORUM, overriding pkg-config
1640 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1641 SALCK_CFLAGS
1642 C compiler flags for SALCK, overriding pkg-config
1643 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1644 CONFDB_CFLAGS
1645 C compiler flags for CONFDB, overriding pkg-config
1646 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1647 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1648 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1649 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1650 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1651 SACKPT_CFLAGS
1652 C compiler flags for SACKPT, overriding pkg-config
1653 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1654
1655Use these variables to override the choices made by `configure' or to help
1656it to find libraries and programs with nonstandard names/locations.
1657
1658_ACEOF
7a197a62 1659ac_status=$?
ad6254c5
AK
1660fi
1661
1662if test "$ac_init_help" = "recursive"; then
1663 # If there are subdirs, report their specific --help.
ad6254c5 1664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1665 test -d "$ac_dir" ||
1666 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1667 continue
ad6254c5
AK
1668 ac_builddir=.
1669
7a197a62
AK
1670case "$ac_dir" in
1671.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672*)
ec6a6fbe 1673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1674 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679 esac ;;
1680esac
1681ac_abs_top_builddir=$ac_pwd
1682ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683# for backward compatibility:
1684ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1685
1686case $srcdir in
7a197a62 1687 .) # We are building in place.
ad6254c5 1688 ac_srcdir=.
7a197a62
AK
1689 ac_top_srcdir=$ac_top_builddir_sub
1690 ac_abs_top_srcdir=$ac_pwd ;;
1691 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1692 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1693 ac_top_srcdir=$srcdir
1694 ac_abs_top_srcdir=$srcdir ;;
1695 *) # Relative name.
1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1699esac
7a197a62
AK
1700ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701
1702 cd "$ac_dir" || { ac_status=$?; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1710 else
ec6a6fbe 1711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1712 fi || ac_status=$?
1713 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1714 done
1715fi
1716
7a197a62 1717test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1718if $ac_init_version; then
1719 cat <<\_ACEOF
7a197a62 1720configure
ec6a6fbe 1721generated by GNU Autoconf 2.63
ad6254c5 1722
7a197a62 1723Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17242002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1725This configure script is free software; the Free Software Foundation
1726gives unlimited permission to copy, distribute and modify it.
1727_ACEOF
7a197a62 1728 exit
ad6254c5 1729fi
7a197a62 1730cat >config.log <<_ACEOF
ad6254c5
AK
1731This file contains any messages produced by compilers while
1732running configure, to aid debugging if configure makes a mistake.
1733
1734It was created by $as_me, which was
ec6a6fbe 1735generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1736
1737 $ $0 $@
1738
1739_ACEOF
7a197a62 1740exec 5>>config.log
ad6254c5
AK
1741{
1742cat <<_ASUNAME
1743## --------- ##
1744## Platform. ##
1745## --------- ##
1746
1747hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1748uname -m = `(uname -m) 2>/dev/null || echo unknown`
1749uname -r = `(uname -r) 2>/dev/null || echo unknown`
1750uname -s = `(uname -s) 2>/dev/null || echo unknown`
1751uname -v = `(uname -v) 2>/dev/null || echo unknown`
1752
1753/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1754/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1755
1756/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1757/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1758/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1759/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1760/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1761/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1762/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1763
1764_ASUNAME
1765
1766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
ec6a6fbe 1771 $as_echo "PATH: $as_dir"
ad6254c5 1772done
7a197a62 1773IFS=$as_save_IFS
ad6254c5
AK
1774
1775} >&5
1776
1777cat >&5 <<_ACEOF
1778
1779
1780## ----------- ##
1781## Core tests. ##
1782## ----------- ##
1783
1784_ACEOF
1785
1786
1787# Keep a trace of the command line.
1788# Strip out --no-create and --no-recursion so they do not pile up.
1789# Strip out --silent because we don't want to record it for future runs.
1790# Also quote any args containing shell meta-characters.
1791# Make two passes to allow for proper duplicate-argument suppression.
1792ac_configure_args=
1793ac_configure_args0=
1794ac_configure_args1=
ad6254c5
AK
1795ac_must_keep_next=false
1796for ac_pass in 1 2
1797do
1798 for ac_arg
1799 do
1800 case $ac_arg in
1801 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1803 | -silent | --silent | --silen | --sile | --sil)
1804 continue ;;
7a197a62 1805 *\'*)
ec6a6fbe 1806 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1807 esac
1808 case $ac_pass in
1809 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1810 2)
1811 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1812 if test $ac_must_keep_next = true; then
8a2fc586 1813 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1814 else
8a2fc586
AK
1815 case $ac_arg in
1816 *=* | --config-cache | -C | -disable-* | --disable-* \
1817 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1818 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1819 | -with-* | --with-* | -without-* | --without-* | --x)
1820 case "$ac_configure_args0 " in
1821 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1822 esac
1823 ;;
1824 -* ) ac_must_keep_next=true ;;
1825 esac
ad6254c5 1826 fi
7a197a62 1827 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1828 ;;
1829 esac
1830 done
1831done
1832$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1833$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1834
1835# When interrupted or exit'd, cleanup temporary files, and complete
1836# config.log. We remove comments because anyway the quotes in there
1837# would cause problems or look ugly.
7a197a62
AK
1838# WARNING: Use '\'' to represent an apostrophe within the trap.
1839# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1840trap 'exit_status=$?
1841 # Save into config.log some information that might help in debugging.
1842 {
1843 echo
1844
1845 cat <<\_ASBOX
1846## ---------------- ##
1847## Cache variables. ##
1848## ---------------- ##
1849_ASBOX
1850 echo
1851 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1852(
1853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1854 eval ac_val=\$$ac_var
1855 case $ac_val in #(
1856 *${as_nl}*)
1857 case $ac_var in #(
ec6a6fbe
AK
1858 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1859$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1860 esac
1861 case $ac_var in #(
1862 _ | IFS | as_nl) ;; #(
ec6a6fbe 1863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1864 *) $as_unset $ac_var ;;
1865 esac ;;
1866 esac
1867 done
ad6254c5 1868 (set) 2>&1 |
7a197a62
AK
1869 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1870 *${as_nl}ac_space=\ *)
ad6254c5 1871 sed -n \
7a197a62
AK
1872 "s/'\''/'\''\\\\'\'''\''/g;
1873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1874 ;; #(
ad6254c5 1875 *)
7a197a62 1876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1877 ;;
7a197a62
AK
1878 esac |
1879 sort
1880)
ad6254c5
AK
1881 echo
1882
1883 cat <<\_ASBOX
1884## ----------------- ##
1885## Output variables. ##
1886## ----------------- ##
1887_ASBOX
1888 echo
1889 for ac_var in $ac_subst_vars
1890 do
7a197a62
AK
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
ec6a6fbe 1893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1894 esac
ec6a6fbe 1895 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1896 done | sort
1897 echo
1898
1899 if test -n "$ac_subst_files"; then
1900 cat <<\_ASBOX
7a197a62
AK
1901## ------------------- ##
1902## File substitutions. ##
1903## ------------------- ##
ad6254c5
AK
1904_ASBOX
1905 echo
1906 for ac_var in $ac_subst_files
1907 do
7a197a62
AK
1908 eval ac_val=\$$ac_var
1909 case $ac_val in
ec6a6fbe 1910 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1911 esac
ec6a6fbe 1912 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1913 done | sort
1914 echo
1915 fi
1916
1917 if test -s confdefs.h; then
1918 cat <<\_ASBOX
1919## ----------- ##
1920## confdefs.h. ##
1921## ----------- ##
1922_ASBOX
1923 echo
7a197a62 1924 cat confdefs.h
ad6254c5
AK
1925 echo
1926 fi
1927 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1928 $as_echo "$as_me: caught signal $ac_signal"
1929 $as_echo "$as_me: exit $exit_status"
ad6254c5 1930 } >&5
7a197a62
AK
1931 rm -f core *.core core.conftest.* &&
1932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1933 exit $exit_status
7a197a62 1934' 0
ad6254c5
AK
1935for ac_signal in 1 2 13 15; do
1936 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1937done
1938ac_signal=0
1939
1940# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1941rm -f -r conftest* confdefs.h
ad6254c5
AK
1942
1943# Predefined preprocessor variables.
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_NAME "$PACKAGE_NAME"
1947_ACEOF
1948
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1952_ACEOF
1953
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_VERSION "$PACKAGE_VERSION"
1957_ACEOF
8106cdd5 1958
ad6254c5
AK
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_STRING "$PACKAGE_STRING"
1962_ACEOF
1963
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1967_ACEOF
1968
1969
1970# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1971# Prefer an explicitly selected file to automatically selected ones.
1972ac_site_file1=NONE
1973ac_site_file2=NONE
7a197a62 1974if test -n "$CONFIG_SITE"; then
ec6a6fbe 1975 ac_site_file1=$CONFIG_SITE
7a197a62 1976elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1977 ac_site_file1=$prefix/share/config.site
1978 ac_site_file2=$prefix/etc/config.site
7a197a62 1979else
ec6a6fbe
AK
1980 ac_site_file1=$ac_default_prefix/share/config.site
1981 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1982fi
ec6a6fbe 1983for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1984do
ec6a6fbe 1985 test "x$ac_site_file" = xNONE && continue
795ca3e5 1986 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1987 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1988$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1989 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1990 . "$ac_site_file"
1991 fi
1992done
1993
1994if test -r "$cache_file"; then
ad6254c5
AK
1995 # Some versions of bash will fail to source /dev/null (special
1996 # files actually), so we avoid doing that.
1997 if test -f "$cache_file"; then
ec6a6fbe
AK
1998 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1999$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 2000 case $cache_file in
7a197a62
AK
2001 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2002 *) . "./$cache_file";;
ad6254c5
AK
2003 esac
2004 fi
795ca3e5 2005else
ec6a6fbe
AK
2006 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2007$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2008 >$cache_file
2009fi
2010
2011# Check that the precious variables saved in the cache have kept the same
2012# value.
2013ac_cache_corrupted=false
7a197a62 2014for ac_var in $ac_precious_vars; do
ad6254c5
AK
2015 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2016 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2017 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2018 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2019 case $ac_old_set,$ac_new_set in
2020 set,)
ec6a6fbe
AK
2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2022$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2023 ac_cache_corrupted=: ;;
2024 ,set)
ec6a6fbe
AK
2025 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2026$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2027 ac_cache_corrupted=: ;;
2028 ,);;
2029 *)
2030 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2031 # differences in whitespace do not lead to failure.
2032 ac_old_val_w=`echo x $ac_old_val`
2033 ac_new_val_w=`echo x $ac_new_val`
2034 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2035 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2036$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2037 ac_cache_corrupted=:
2038 else
2039 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2040$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2041 eval $ac_var=\$ac_old_val
2042 fi
2043 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2044$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2045 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2046$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2047 fi;;
2048 esac
2049 # Pass precious variables to config.status.
2050 if test "$ac_new_set" = set; then
2051 case $ac_new_val in
ec6a6fbe 2052 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2053 *) ac_arg=$ac_var=$ac_new_val ;;
2054 esac
2055 case " $ac_configure_args " in
2056 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2057 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2058 esac
2059 fi
2060done
2061if $ac_cache_corrupted; then
ec6a6fbe
AK
2062 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2064 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2065$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2066 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2067$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2068 { (exit 1); exit 1; }; }
795ca3e5
AK
2069fi
2070
ad6254c5
AK
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
7a197a62
AK
2087ac_ext=c
2088ac_cpp='$CPP $CPPFLAGS'
2089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2092
795ca3e5
AK
2093
2094
7a197a62 2095ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2096
2097
80992638 2098################################################################################
795ca3e5 2099ac_aux_dir=
7a197a62
AK
2100for ac_dir in autoconf "$srcdir"/autoconf; do
2101 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install-sh -c"
2104 break
7a197a62 2105 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/install.sh -c"
2108 break
7a197a62 2109 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2110 ac_aux_dir=$ac_dir
2111 ac_install_sh="$ac_aux_dir/shtool install -c"
2112 break
795ca3e5
AK
2113 fi
2114done
2115if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2116 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2117$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2118 { (exit 1); exit 1; }; }
795ca3e5 2119fi
7a197a62
AK
2120
2121# These three variables are undocumented and unsupported,
2122# and are intended to be withdrawn in a future Autoconf release.
2123# They can cause serious problems if a builder's source tree is in a directory
2124# whose full name contains unusual characters.
2125ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2126ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2127ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2128
8ce0cbda
AK
2129
2130
ad6254c5 2131################################################################################
8ce0cbda 2132# Make sure we can run config.sub.
7a197a62 2133$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2134 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2136 { (exit 1); exit 1; }; }
2137
ec6a6fbe
AK
2138{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2139$as_echo_n "checking build system type... " >&6; }
ad6254c5 2140if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2141 $as_echo_n "(cached) " >&6
ad6254c5 2142else
7a197a62
AK
2143 ac_build_alias=$build_alias
2144test "x$ac_build_alias" = x &&
2145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2147 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2149 { (exit 1); exit 1; }; }
7a197a62 2150ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2151 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2153 { (exit 1); exit 1; }; }
2154
2155fi
ec6a6fbe
AK
2156{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2158case $ac_cv_build in
2159*-*-*) ;;
ec6a6fbe
AK
2160*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2162 { (exit 1); exit 1; }; };;
2163esac
ad6254c5 2164build=$ac_cv_build
7a197a62
AK
2165ac_save_IFS=$IFS; IFS='-'
2166set x $ac_cv_build
2167shift
2168build_cpu=$1
2169build_vendor=$2
2170shift; shift
2171# Remember, the first character of IFS is used to create $*,
2172# except with old shells:
2173build_os=$*
2174IFS=$ac_save_IFS
2175case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2176
2177
ec6a6fbe
AK
2178{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2179$as_echo_n "checking host system type... " >&6; }
ad6254c5 2180if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2181 $as_echo_n "(cached) " >&6
ad6254c5 2182else
7a197a62
AK
2183 if test "x$host_alias" = x; then
2184 ac_cv_host=$ac_cv_build
2185else
2186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2187 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2189 { (exit 1); exit 1; }; }
7a197a62 2190fi
ad6254c5
AK
2191
2192fi
ec6a6fbe
AK
2193{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2195case $ac_cv_host in
2196*-*-*) ;;
ec6a6fbe
AK
2197*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2199 { (exit 1); exit 1; }; };;
2200esac
ad6254c5 2201host=$ac_cv_host
7a197a62
AK
2202ac_save_IFS=$IFS; IFS='-'
2203set x $ac_cv_host
2204shift
2205host_cpu=$1
2206host_vendor=$2
2207shift; shift
2208# Remember, the first character of IFS is used to create $*,
2209# except with old shells:
2210host_os=$*
2211IFS=$ac_save_IFS
2212case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2213
2214
ec6a6fbe
AK
2215{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2216$as_echo_n "checking target system type... " >&6; }
ad6254c5 2217if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2218 $as_echo_n "(cached) " >&6
ad6254c5 2219else
7a197a62
AK
2220 if test "x$target_alias" = x; then
2221 ac_cv_target=$ac_cv_host
2222else
2223 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2224 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2225$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2226 { (exit 1); exit 1; }; }
7a197a62 2227fi
8ce0cbda 2228
ad6254c5 2229fi
ec6a6fbe
AK
2230{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2232case $ac_cv_target in
2233*-*-*) ;;
ec6a6fbe
AK
2234*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2235$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2236 { (exit 1); exit 1; }; };;
2237esac
ad6254c5 2238target=$ac_cv_target
7a197a62
AK
2239ac_save_IFS=$IFS; IFS='-'
2240set x $ac_cv_target
2241shift
2242target_cpu=$1
2243target_vendor=$2
2244shift; shift
2245# Remember, the first character of IFS is used to create $*,
2246# except with old shells:
2247target_os=$*
2248IFS=$ac_save_IFS
2249case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2250
8ce0cbda 2251
ad6254c5
AK
2252# The aliases save the names the user supplied, while $host etc.
2253# will get canonicalized.
2254test -n "$target_alias" &&
8ce0cbda
AK
2255 test "$program_prefix$program_suffix$program_transform_name" = \
2256 NONENONEs,x,x, &&
2257 program_prefix=${target_alias}-
2258
8ce0cbda
AK
2259case "$host_os" in
2260 linux*)
7f54ef36 2261 CFLAGS="$CFLAGS"
8ce0cbda
AK
2262 COPTIMISE_FLAG="-O2"
2263 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2264 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2265 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2266 LDDEPS="$LDDEPS .export.sym"
2267 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2268 LIB_SUFFIX=so
8ce0cbda
AK
2269 DEVMAPPER=yes
2270 ODIRECT=yes
d0191583 2271 DM_IOCTLS=yes
8ce0cbda
AK
2272 SELINUX=yes
2273 CLUSTER=internal
93bd259b 2274 FSADM=yes
d0191583 2275 ;;
8ce0cbda
AK
2276 darwin*)
2277 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2278 COPTIMISE_FLAG="-O2"
2279 CLDFLAGS="$CLDFLAGS"
2280 CLDWHOLEARCHIVE="-all_load"
2281 CLDNOWHOLEARCHIVE=
d0191583 2282 LIB_SUFFIX=dylib
a653923f 2283 DEVMAPPER=yes
8ce0cbda 2284 ODIRECT=no
d0191583 2285 DM_IOCTLS=no
8ce0cbda
AK
2286 SELINUX=no
2287 CLUSTER=none
d0191583
JM
2288 FSADM=no
2289 ;;
8ce0cbda
AK
2290esac
2291
80992638 2292################################################################################
ec6a6fbe
AK
2293{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2294$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2295if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2296 $as_echo_n "(cached) " >&6
5951ef33
AK
2297else
2298 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2299 for ac_i in 1 2 3 4 5 6 7; do
2300 ac_script="$ac_script$as_nl$ac_script"
2301 done
ec6a6fbe 2302 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2303 $as_unset ac_script || ac_script=
ec6a6fbe 2304 if test -z "$SED"; then
5951ef33 2305 ac_path_SED_found=false
ec6a6fbe
AK
2306 # Loop through the user's path and test for each of PROGNAME-LIST
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2308for as_dir in $PATH
2309do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_prog in sed gsed; do
ec6a6fbe
AK
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2315 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2316# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2317 # Check for GNU $ac_path_SED
2318case `"$ac_path_SED" --version 2>&1` in
2319*GNU*)
2320 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2321*)
2322 ac_count=0
ec6a6fbe 2323 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2324 while :
2325 do
2326 cat "conftest.in" "conftest.in" >"conftest.tmp"
2327 mv "conftest.tmp" "conftest.in"
2328 cp "conftest.in" "conftest.nl"
ec6a6fbe 2329 $as_echo '' >> "conftest.nl"
5951ef33
AK
2330 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2332 ac_count=`expr $ac_count + 1`
2333 if test $ac_count -gt ${ac_path_SED_max-0}; then
2334 # Best one so far, save it but keep looking for a better one
2335 ac_cv_path_SED="$ac_path_SED"
2336 ac_path_SED_max=$ac_count
2337 fi
2338 # 10*(2^10) chars as input seems more than enough
2339 test $ac_count -gt 10 && break
2340 done
2341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2342esac
2343
ec6a6fbe
AK
2344 $ac_path_SED_found && break 3
2345 done
5951ef33
AK
2346 done
2347done
5951ef33 2348IFS=$as_save_IFS
ec6a6fbe
AK
2349 if test -z "$ac_cv_path_SED"; then
2350 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2351$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2352 { (exit 1); exit 1; }; }
ec6a6fbe 2353 fi
5951ef33
AK
2354else
2355 ac_cv_path_SED=$SED
2356fi
2357
2358fi
ec6a6fbe
AK
2359{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2360$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2361 SED="$ac_cv_path_SED"
2362 rm -f conftest.sed
2363
ad6254c5 2364for ac_prog in gawk mawk nawk awk
795ca3e5 2365do
ad6254c5 2366 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2367set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2368{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2369$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2370if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2371 $as_echo_n "(cached) " >&6
795ca3e5
AK
2372else
2373 if test -n "$AWK"; then
2374 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2375else
ad6254c5
AK
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2383 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2385 break 2
2386 fi
2387done
2388done
7a197a62 2389IFS=$as_save_IFS
ad6254c5 2390
795ca3e5
AK
2391fi
2392fi
ad6254c5 2393AWK=$ac_cv_prog_AWK
795ca3e5 2394if test -n "$AWK"; then
ec6a6fbe
AK
2395 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2396$as_echo "$AWK" >&6; }
795ca3e5 2397else
ec6a6fbe
AK
2398 { $as_echo "$as_me:$LINENO: result: no" >&5
2399$as_echo "no" >&6; }
795ca3e5
AK
2400fi
2401
7a197a62 2402
ad6254c5
AK
2403 test -n "$AWK" && break
2404done
2405
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2416if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2417 $as_echo_n "(cached) " >&6
ad6254c5
AK
2418else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2431 break 2
2432 fi
2433done
8106cdd5 2434done
7a197a62 2435IFS=$as_save_IFS
8106cdd5 2436
ad6254c5
AK
2437fi
2438fi
2439CC=$ac_cv_prog_CC
2440if test -n "$CC"; then
ec6a6fbe
AK
2441 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2442$as_echo "$CC" >&6; }
ad6254c5 2443else
ec6a6fbe
AK
2444 { $as_echo "$as_me:$LINENO: result: no" >&5
2445$as_echo "no" >&6; }
ad6254c5
AK
2446fi
2447
7a197a62 2448
ad6254c5
AK
2449fi
2450if test -z "$ac_cv_prog_CC"; then
2451 ac_ct_CC=$CC
2452 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2453set dummy gcc; ac_word=$2
ec6a6fbe
AK
2454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2457 $as_echo_n "(cached) " >&6
ad6254c5
AK
2458else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2469 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2471 break 2
2472 fi
2473done
2474done
7a197a62 2475IFS=$as_save_IFS
ad6254c5
AK
2476
2477fi
2478fi
2479ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2481 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2483else
ec6a6fbe
AK
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485$as_echo "no" >&6; }
ad6254c5
AK
2486fi
2487
7a197a62
AK
2488 if test "x$ac_ct_CC" = x; then
2489 CC=""
2490 else
2491 case $cross_compiling:$ac_tool_warned in
2492yes:)
ec6a6fbe
AK
2493{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2495ac_tool_warned=yes ;;
2496esac
2497 CC=$ac_ct_CC
2498 fi
ad6254c5
AK
2499else
2500 CC="$ac_cv_prog_CC"
2501fi
2502
2503if test -z "$CC"; then
7a197a62
AK
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2506set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2507{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2509if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2510 $as_echo_n "(cached) " >&6
8106cdd5
AK
2511else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514else
ad6254c5
AK
2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2522 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2524 break 2
2525 fi
2526done
2527done
7a197a62 2528IFS=$as_save_IFS
ad6254c5 2529
8106cdd5
AK
2530fi
2531fi
ad6254c5 2532CC=$ac_cv_prog_CC
8106cdd5 2533if test -n "$CC"; then
ec6a6fbe
AK
2534 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2535$as_echo "$CC" >&6; }
ad6254c5 2536else
ec6a6fbe
AK
2537 { $as_echo "$as_me:$LINENO: result: no" >&5
2538$as_echo "no" >&6; }
ad6254c5
AK
2539fi
2540
8106cdd5 2541
7a197a62 2542 fi
ad6254c5 2543fi
795ca3e5
AK
2544if test -z "$CC"; then
2545 # Extract the first word of "cc", so it can be a program name with args.
2546set dummy cc; ac_word=$2
ec6a6fbe
AK
2547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2549if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2550 $as_echo_n "(cached) " >&6
795ca3e5
AK
2551else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554else
795ca3e5 2555 ac_prog_rejected=no
ad6254c5
AK
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2564 ac_prog_rejected=yes
2565 continue
2566 fi
2567 ac_cv_prog_CC="cc"
ec6a6fbe 2568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2569 break 2
2570 fi
2571done
2572done
7a197a62 2573IFS=$as_save_IFS
ad6254c5 2574
795ca3e5
AK
2575if test $ac_prog_rejected = yes; then
2576 # We found a bogon in the path, so make sure we never use it.
2577 set dummy $ac_cv_prog_CC
2578 shift
ad6254c5 2579 if test $# != 0; then
795ca3e5
AK
2580 # We chose a different compiler from the bogus one.
2581 # However, it has the same basename, so the bogon will be chosen
2582 # first if we set CC to just the basename; use the full file name.
2583 shift
ad6254c5 2584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2585 fi
2586fi
2587fi
2588fi
ad6254c5 2589CC=$ac_cv_prog_CC
795ca3e5 2590if test -n "$CC"; then
ec6a6fbe
AK
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592$as_echo "$CC" >&6; }
795ca3e5 2593else
ec6a6fbe
AK
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595$as_echo "no" >&6; }
795ca3e5
AK
2596fi
2597
7a197a62 2598
ad6254c5
AK
2599fi
2600if test -z "$CC"; then
2601 if test -n "$ac_tool_prefix"; then
7a197a62 2602 for ac_prog in cl.exe
ad6254c5
AK
2603 do
2604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2606{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2608if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2609 $as_echo_n "(cached) " >&6
795ca3e5
AK
2610else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
ad6254c5
AK
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2623 break 2
2624 fi
2625done
2626done
7a197a62 2627IFS=$as_save_IFS
ad6254c5 2628
795ca3e5
AK
2629fi
2630fi
ad6254c5 2631CC=$ac_cv_prog_CC
795ca3e5 2632if test -n "$CC"; then
ec6a6fbe
AK
2633 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2634$as_echo "$CC" >&6; }
795ca3e5 2635else
ec6a6fbe
AK
2636 { $as_echo "$as_me:$LINENO: result: no" >&5
2637$as_echo "no" >&6; }
795ca3e5 2638fi
ad6254c5 2639
7a197a62 2640
ad6254c5
AK
2641 test -n "$CC" && break
2642 done
2643fi
2644if test -z "$CC"; then
2645 ac_ct_CC=$CC
7a197a62 2646 for ac_prog in cl.exe
ad6254c5
AK
2647do
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2650{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2653 $as_echo_n "(cached) " >&6
ad6254c5
AK
2654else
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2665 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2667 break 2
795ca3e5 2668 fi
ad6254c5
AK
2669done
2670done
7a197a62 2671IFS=$as_save_IFS
ad6254c5
AK
2672
2673fi
2674fi
2675ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2677 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2678$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2679else
ec6a6fbe
AK
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681$as_echo "no" >&6; }
795ca3e5
AK
2682fi
2683
7a197a62 2684
ad6254c5
AK
2685 test -n "$ac_ct_CC" && break
2686done
795ca3e5 2687
7a197a62
AK
2688 if test "x$ac_ct_CC" = x; then
2689 CC=""
2690 else
2691 case $cross_compiling:$ac_tool_warned in
2692yes:)
ec6a6fbe
AK
2693{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2695ac_tool_warned=yes ;;
2696esac
2697 CC=$ac_ct_CC
2698 fi
ad6254c5
AK
2699fi
2700
2701fi
2702
2703
ec6a6fbe
AK
2704test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2707See \`config.log' for more details." >&5
ec6a6fbe 2708$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2709See \`config.log' for more details." >&2;}
ec6a6fbe 2710 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2711
2712# Provide some information about the compiler.
ec6a6fbe
AK
2713$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2714set X $ac_compile
2715ac_compiler=$2
7a197a62
AK
2716{ (ac_try="$ac_compiler --version >&5"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
ec6a6fbe
AK
2721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2722$as_echo "$ac_try_echo") >&5
7a197a62 2723 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2724 ac_status=$?
ec6a6fbe 2725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2726 (exit $ac_status); }
7a197a62
AK
2727{ (ac_try="$ac_compiler -v >&5"
2728case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
ec6a6fbe
AK
2732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2733$as_echo "$ac_try_echo") >&5
7a197a62 2734 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2735 ac_status=$?
ec6a6fbe 2736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2737 (exit $ac_status); }
7a197a62
AK
2738{ (ac_try="$ac_compiler -V >&5"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
ec6a6fbe
AK
2743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2744$as_echo "$ac_try_echo") >&5
7a197a62 2745 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2746 ac_status=$?
ec6a6fbe 2747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2748 (exit $ac_status); }
2749
2750cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2751/* confdefs.h. */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h. */
2756
2757int
2758main ()
2759{
2760
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765ac_clean_files_save=$ac_clean_files
ec6a6fbe 2766ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2767# Try to create an executable without -o first, disregard a.out.
2768# It will help us diagnose broken compilers, and finding out an intuition
2769# of exeext.
ec6a6fbe
AK
2770{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2771$as_echo_n "checking for C compiler default output file name... " >&6; }
2772ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2773
2774# The possible output files:
2775ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2776
7a197a62
AK
2777ac_rmfiles=
2778for ac_file in $ac_files
2779do
2780 case $ac_file in
ec6a6fbe 2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2782 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2783 esac
2784done
2785rm -f $ac_rmfiles
2786
2787if { (ac_try="$ac_link_default"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
ec6a6fbe
AK
2792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2793$as_echo "$ac_try_echo") >&5
7a197a62 2794 (eval "$ac_link_default") 2>&5
ad6254c5 2795 ac_status=$?
ec6a6fbe 2796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2797 (exit $ac_status); }; then
7a197a62
AK
2798 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2799# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2800# in a Makefile. We should not override ac_cv_exeext if it was cached,
2801# so that the user can short-circuit this test for compilers unknown to
2802# Autoconf.
25fbec5b 2803for ac_file in $ac_files ''
ad6254c5
AK
2804do
2805 test -f "$ac_file" || continue
2806 case $ac_file in
ec6a6fbe 2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2808 ;;
ad6254c5 2809 [ab].out )
8a2fc586
AK
2810 # We found the default executable, but exeext='' is most
2811 # certainly right.
2812 break;;
ad6254c5 2813 *.* )
7a197a62
AK
2814 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2815 then :; else
2816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2817 fi
2818 # We set ac_cv_exeext here because the later test for it is not
2819 # safe: cross compilers may not add the suffix if given an `-o'
2820 # argument, so we may need to know it at that point already.
2821 # Even if this section looks crufty: it has the advantage of
2822 # actually working.
8a2fc586 2823 break;;
ad6254c5 2824 * )
8a2fc586 2825 break;;
ad6254c5
AK
2826 esac
2827done
7a197a62
AK
2828test "$ac_cv_exeext" = no && ac_cv_exeext=
2829
ad6254c5 2830else
25fbec5b
AK
2831 ac_file=''
2832fi
2833
ec6a6fbe
AK
2834{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2835$as_echo "$ac_file" >&6; }
25fbec5b 2836if test -z "$ac_file"; then
ec6a6fbe 2837 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
ec6a6fbe
AK
2840{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2842{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2843See \`config.log' for more details." >&5
ec6a6fbe 2844$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2845See \`config.log' for more details." >&2;}
ec6a6fbe 2846 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2847fi
2848
2849ac_exeext=$ac_cv_exeext
ad6254c5 2850
7a197a62 2851# Check that the compiler produces executables we can run. If not, either
ad6254c5 2852# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2853{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2854$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2855# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2856# If not cross compiling, check that we can run a simple program.
2857if test "$cross_compiling" != yes; then
2858 if { ac_try='./$ac_file'
7a197a62
AK
2859 { (case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
ec6a6fbe
AK
2863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2864$as_echo "$ac_try_echo") >&5
7a197a62 2865 (eval "$ac_try") 2>&5
ad6254c5 2866 ac_status=$?
ec6a6fbe 2867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2868 (exit $ac_status); }; }; then
2869 cross_compiling=no
795ca3e5 2870 else
ad6254c5
AK
2871 if test "$cross_compiling" = maybe; then
2872 cross_compiling=yes
2873 else
ec6a6fbe
AK
2874 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2877If you meant to cross compile, use \`--host'.
2878See \`config.log' for more details." >&5
ec6a6fbe 2879$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2880If you meant to cross compile, use \`--host'.
2881See \`config.log' for more details." >&2;}
ec6a6fbe 2882 { (exit 1); exit 1; }; }; }
ad6254c5 2883 fi
795ca3e5 2884 fi
80992638 2885fi
ec6a6fbe
AK
2886{ $as_echo "$as_me:$LINENO: result: yes" >&5
2887$as_echo "yes" >&6; }
ad6254c5 2888
ec6a6fbe 2889rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2890ac_clean_files=$ac_clean_files_save
7a197a62 2891# Check that the compiler produces executables we can run. If not, either
ad6254c5 2892# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2893{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2894$as_echo_n "checking whether we are cross compiling... " >&6; }
2895{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2896$as_echo "$cross_compiling" >&6; }
7a197a62 2897
ec6a6fbe
AK
2898{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2899$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2900if { (ac_try="$ac_link"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
ec6a6fbe
AK
2905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906$as_echo "$ac_try_echo") >&5
7a197a62 2907 (eval "$ac_link") 2>&5
ad6254c5 2908 ac_status=$?
ec6a6fbe 2909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2910 (exit $ac_status); }; then
2911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2912# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2913# work properly (i.e., refer to `conftest.exe'), while it won't with
2914# `rm'.
2915for ac_file in conftest.exe conftest conftest.*; do
2916 test -f "$ac_file" || continue
2917 case $ac_file in
ec6a6fbe 2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2920 break;;
ad6254c5
AK
2921 * ) break;;
2922 esac
2923done
80992638 2924else
ec6a6fbe
AK
2925 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2928See \`config.log' for more details." >&5
ec6a6fbe 2929$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2930See \`config.log' for more details." >&2;}
ec6a6fbe 2931 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2932fi
2933
2934rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2935{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2936$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2937
2938rm -f conftest.$ac_ext
2939EXEEXT=$ac_cv_exeext
2940ac_exeext=$EXEEXT
ec6a6fbe
AK
2941{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2942$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2943if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2944 $as_echo_n "(cached) " >&6
795ca3e5 2945else
ad6254c5 2946 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
2952
2953int
2954main ()
2955{
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961rm -f conftest.o conftest.obj
7a197a62
AK
2962if { (ac_try="$ac_compile"
2963case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
ec6a6fbe
AK
2967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2968$as_echo "$ac_try_echo") >&5
7a197a62 2969 (eval "$ac_compile") 2>&5
ad6254c5 2970 ac_status=$?
ec6a6fbe 2971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2972 (exit $ac_status); }; then
7a197a62
AK
2973 for ac_file in conftest.o conftest.obj conftest.*; do
2974 test -f "$ac_file" || continue;
ad6254c5 2975 case $ac_file in
ec6a6fbe 2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2977 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2978 break;;
2979 esac
2980done
2981else
ec6a6fbe 2982 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
ec6a6fbe
AK
2985{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2988See \`config.log' for more details." >&5
ec6a6fbe 2989$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2990See \`config.log' for more details." >&2;}
ec6a6fbe 2991 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2992fi
2993
2994rm -f conftest.$ac_cv_objext conftest.$ac_ext
2995fi
ec6a6fbe
AK
2996{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2997$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2998OBJEXT=$ac_cv_objext
2999ac_objext=$OBJEXT
ec6a6fbe
AK
3000{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3001$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 3002if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 3003 $as_echo_n "(cached) " >&6
ad6254c5
AK
3004else
3005 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3006/* confdefs.h. */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h. */
3011
3012int
3013main ()
3014{
3015#ifndef __GNUC__
3016 choke me
3017#endif
80992638 3018
ad6254c5
AK
3019 ;
3020 return 0;
3021}
3022_ACEOF
3023rm -f conftest.$ac_objext
7a197a62
AK
3024if { (ac_try="$ac_compile"
3025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
ec6a6fbe
AK
3029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3030$as_echo "$ac_try_echo") >&5
7a197a62 3031 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3032 ac_status=$?
8a2fc586
AK
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
ec6a6fbe 3036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
ad6254c5 3041 ac_compiler_gnu=yes
80992638 3042else
ec6a6fbe 3043 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
7a197a62 3046 ac_compiler_gnu=no
8106cdd5 3047fi
7a197a62
AK
3048
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3050ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3051
ad6254c5 3052fi
ec6a6fbe
AK
3053{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3054$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3055if test $ac_compiler_gnu = yes; then
3056 GCC=yes
3057else
3058 GCC=
3059fi
ad6254c5
AK
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3062{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3064if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3065 $as_echo_n "(cached) " >&6
795ca3e5 3066else
7a197a62
AK
3067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3069 ac_cv_prog_cc_g=no
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
7a197a62
AK
3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
ec6a6fbe
AK
3092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093$as_echo "$ac_try_echo") >&5
7a197a62 3094 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3095 ac_status=$?
8a2fc586
AK
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
ec6a6fbe 3099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
7a197a62
AK
3104 ac_cv_prog_cc_g=yes
3105else
ec6a6fbe 3106 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
ec6a6fbe
AK
3131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132$as_echo "$ac_try_echo") >&5
7a197a62 3133 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3134 ac_status=$?
7a197a62
AK
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
ec6a6fbe 3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
7a197a62
AK
3143 :
3144else
ec6a6fbe 3145 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3149 CFLAGS="-g"
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (ac_try="$ac_compile"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
ec6a6fbe
AK
3171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3172$as_echo "$ac_try_echo") >&5
7a197a62 3173 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3174 ac_status=$?
7a197a62
AK
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
ec6a6fbe 3178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3183 ac_cv_prog_cc_g=yes
3184else
ec6a6fbe 3185 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3186sed 's/^/| /' conftest.$ac_ext >&5
80992638 3187
7a197a62
AK
3188
3189fi
3190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3195fi
7a197a62
AK
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3199fi
ec6a6fbe
AK
3200{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3201$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3202if test "$ac_test_CFLAGS" = set; then
ad6254c5 3203 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3204elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3206 CFLAGS="-g -O2"
3207 else
3208 CFLAGS="-g"
3209 fi
3210else
3211 if test "$GCC" = yes; then
3212 CFLAGS="-O2"
3213 else
3214 CFLAGS=
3215 fi
3216fi
ec6a6fbe
AK
3217{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3218$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3219if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3220 $as_echo_n "(cached) " >&6
ad6254c5 3221else
7a197a62 3222 ac_cv_prog_cc_c89=no
ad6254c5
AK
3223ac_save_CC=$CC
3224cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
3230#include <stdarg.h>
3231#include <stdio.h>
3232#include <sys/types.h>
3233#include <sys/stat.h>
3234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3235struct buf { int x; };
3236FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237static char *e (p, i)
3238 char **p;
3239 int i;
3240{
3241 return p[i];
3242}
3243static char *f (char * (*g) (char **, int), char **p, ...)
3244{
3245 char *s;
3246 va_list v;
3247 va_start (v,p);
3248 s = g (p, va_arg (v,int));
3249 va_end (v);
3250 return s;
3251}
8a2fc586
AK
3252
3253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3254 function prototypes and stuff, but not '\xHH' hex character constants.
3255 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3256 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3258 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3259 that's true only with -std. */
8a2fc586
AK
3260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261
7a197a62
AK
3262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263 inside strings and character constants. */
3264#define FOO(x) 'x'
3265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266
ad6254c5
AK
3267int test (int i, double x);
3268struct s1 {int (*f) (int a);};
3269struct s2 {int (*f) (double a);};
3270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271int argc;
3272char **argv;
3273int
3274main ()
3275{
3276return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3277 ;
3278 return 0;
3279}
3280_ACEOF
7a197a62
AK
3281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3283do
3284 CC="$ac_save_CC $ac_arg"
3285 rm -f conftest.$ac_objext
7a197a62
AK
3286if { (ac_try="$ac_compile"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
ec6a6fbe
AK
3291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292$as_echo "$ac_try_echo") >&5
7a197a62 3293 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3294 ac_status=$?
8a2fc586
AK
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
ec6a6fbe 3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3299 (exit $ac_status); } && {
3300 test -z "$ac_c_werror_flag" ||
3301 test ! -s conftest.err
3302 } && test -s conftest.$ac_objext; then
7a197a62 3303 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3304else
ec6a6fbe 3305 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
7a197a62 3308
ad6254c5 3309fi
7a197a62
AK
3310
3311rm -f core conftest.err conftest.$ac_objext
3312 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3313done
7a197a62 3314rm -f conftest.$ac_ext
ad6254c5
AK
3315CC=$ac_save_CC
3316
3317fi
7a197a62
AK
3318# AC_CACHE_VAL
3319case "x$ac_cv_prog_cc_c89" in
3320 x)
ec6a6fbe
AK
3321 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3322$as_echo "none needed" >&6; } ;;
7a197a62 3323 xno)
ec6a6fbe
AK
3324 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3325$as_echo "unsupported" >&6; } ;;
ad6254c5 3326 *)
7a197a62 3327 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3328 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3329$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3330esac
3331
ad6254c5 3332
ad6254c5
AK
3333ac_ext=c
3334ac_cpp='$CPP $CPPFLAGS'
3335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3338
d0191583
JM
3339
3340
3341ac_ext=c
3342ac_cpp='$CPP $CPPFLAGS'
3343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3346{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3347$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3348# On Suns, sometimes $CPP names a directory.
3349if test -n "$CPP" && test -d "$CPP"; then
3350 CPP=
3351fi
3352if test -z "$CPP"; then
3353 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3354 $as_echo_n "(cached) " >&6
ad6254c5 3355else
d0191583
JM
3356 # Double quotes because CPP needs to be expanded
3357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3358 do
3359 ac_preproc_ok=false
3360for ac_c_preproc_warn_flag in '' yes
ad6254c5 3361do
d0191583
JM
3362 # Use a header file that comes with gcc, so configuring glibc
3363 # with a fresh cross-compiler works.
3364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365 # <limits.h> exists even on freestanding compilers.
3366 # On the NeXT, cc -E runs the code through the compiler's parser,
3367 # not just through cpp. "Syntax error" is here to catch this case.
3368 cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h. */
3374#ifdef __STDC__
3375# include <limits.h>
3376#else
3377# include <assert.h>
3378#endif
3379 Syntax error
3380_ACEOF
3381if { (ac_try="$ac_cpp conftest.$ac_ext"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
ad6254c5 3385esac
ec6a6fbe
AK
3386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3387$as_echo "$ac_try_echo") >&5
d0191583
JM
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
ec6a6fbe 3393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3394 (exit $ac_status); } >/dev/null && {
3395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 }; then
3398 :
3399else
ec6a6fbe 3400 $as_echo "$as_me: failed program was:" >&5
d0191583 3401sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3402
d0191583
JM
3403 # Broken: fails on valid input.
3404continue
795ca3e5 3405fi
795ca3e5 3406
d0191583 3407rm -f conftest.err conftest.$ac_ext
795ca3e5 3408
d0191583
JM
3409 # OK, works on sane cases. Now check whether nonexistent headers
3410 # can be detected and how.
3411 cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h. */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h. */
3417#include <ac_nonexistent.h>
3418_ACEOF
3419if { (ac_try="$ac_cpp conftest.$ac_ext"
3420case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423esac
ec6a6fbe
AK
3424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3425$as_echo "$ac_try_echo") >&5
d0191583
JM
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
ec6a6fbe 3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3432 (exit $ac_status); } >/dev/null && {
3433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 }; then
3436 # Broken: success on invalid input.
3437continue
3438else
ec6a6fbe 3439 $as_echo "$as_me: failed program was:" >&5
d0191583 3440sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3441
d0191583
JM
3442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
795ca3e5 3446
d0191583
JM
3447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453 break
795ca3e5
AK
3454fi
3455
d0191583
JM
3456 done
3457 ac_cv_prog_CPP=$CPP
3458
3459fi
3460 CPP=$ac_cv_prog_CPP
795ca3e5 3461else
d0191583
JM
3462 ac_cv_prog_CPP=$CPP
3463fi
ec6a6fbe
AK
3464{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3465$as_echo "$CPP" >&6; }
d0191583
JM
3466ac_preproc_ok=false
3467for ac_c_preproc_warn_flag in '' yes
3468do
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
ad6254c5 3477_ACEOF
d0191583
JM
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#ifdef __STDC__
3482# include <limits.h>
3483#else
3484# include <assert.h>
3485#endif
3486 Syntax error
3487_ACEOF
3488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
7a197a62 3492esac
ec6a6fbe
AK
3493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494$as_echo "$ac_try_echo") >&5
d0191583
JM
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
ec6a6fbe 3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
3505 :
795ca3e5 3506else
ec6a6fbe 3507 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 # Broken: fails on valid input.
3511continue
795ca3e5
AK
3512fi
3513
d0191583
JM
3514rm -f conftest.err conftest.$ac_ext
3515
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524#include <ac_nonexistent.h>
3525_ACEOF
3526if { (ac_try="$ac_cpp conftest.$ac_ext"
3527case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530esac
ec6a6fbe
AK
3531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532$as_echo "$ac_try_echo") >&5
d0191583
JM
3533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
ec6a6fbe 3538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3539 (exit $ac_status); } >/dev/null && {
3540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 }; then
3543 # Broken: success on invalid input.
3544continue
795ca3e5 3545else
ec6a6fbe 3546 $as_echo "$as_me: failed program was:" >&5
d0191583 3547sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3548
d0191583
JM
3549 # Passes both tests.
3550ac_preproc_ok=:
3551break
795ca3e5 3552fi
d0191583
JM
3553
3554rm -f conftest.err conftest.$ac_ext
3555
3556done
3557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3558rm -f conftest.err conftest.$ac_ext
3559if $ac_preproc_ok; then
3560 :
8106cdd5 3561else
ec6a6fbe
AK
3562 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3565See \`config.log' for more details." >&5
ec6a6fbe 3566$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3567See \`config.log' for more details." >&2;}
ec6a6fbe 3568 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3569fi
3570
d0191583
JM
3571ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
7a197a62 3577
ec6a6fbe
AK
3578{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3579$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3580if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3581 $as_echo_n "(cached) " >&6
ad6254c5 3582else
ec6a6fbe 3583 if test -z "$GREP"; then
d0191583 3584 ac_path_GREP_found=false
ec6a6fbe
AK
3585 # Loop through the user's path and test for each of PROGNAME-LIST
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3587for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3588do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
d0191583 3591 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3594 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3595# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3596 # Check for GNU $ac_path_GREP
3597case `"$ac_path_GREP" --version 2>&1` in
3598*GNU*)
3599 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3600*)
3601 ac_count=0
ec6a6fbe 3602 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3603 while :
3604 do
3605 cat "conftest.in" "conftest.in" >"conftest.tmp"
3606 mv "conftest.tmp" "conftest.in"
3607 cp "conftest.in" "conftest.nl"
ec6a6fbe 3608 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3609 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3611 ac_count=`expr $ac_count + 1`
3612 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3613 # Best one so far, save it but keep looking for a better one
3614 ac_cv_path_GREP="$ac_path_GREP"
3615 ac_path_GREP_max=$ac_count
3616 fi
3617 # 10*(2^10) chars as input seems more than enough
3618 test $ac_count -gt 10 && break
3619 done
3620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3621esac
3622
ec6a6fbe
AK
3623 $ac_path_GREP_found && break 3
3624 done
d0191583 3625 done
ad6254c5 3626done
7a197a62 3627IFS=$as_save_IFS
ec6a6fbe
AK
3628 if test -z "$ac_cv_path_GREP"; then
3629 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3630$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3631 { (exit 1); exit 1; }; }
ec6a6fbe 3632 fi
80992638 3633else
d0191583 3634 ac_cv_path_GREP=$GREP
8106cdd5 3635fi
8106cdd5 3636
80992638 3637fi
ec6a6fbe
AK
3638{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3639$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3640 GREP="$ac_cv_path_GREP"
795ca3e5 3641
d0191583 3642
ec6a6fbe
AK
3643{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3644$as_echo_n "checking for egrep... " >&6; }
d0191583 3645if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3646 $as_echo_n "(cached) " >&6
8a2fc586 3647else
d0191583
JM
3648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3649 then ac_cv_path_EGREP="$GREP -E"
3650 else
ec6a6fbe 3651 if test -z "$EGREP"; then
d0191583 3652 ac_path_EGREP_found=false
ec6a6fbe
AK
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
d0191583 3659 for ac_prog in egrep; do
ec6a6fbe
AK
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3662 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3663# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3664 # Check for GNU $ac_path_EGREP
3665case `"$ac_path_EGREP" --version 2>&1` in
3666*GNU*)
3667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3668*)
3669 ac_count=0
ec6a6fbe 3670 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3671 while :
3672 do
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
ec6a6fbe 3676 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 ac_count=`expr $ac_count + 1`
3680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_EGREP="$ac_path_EGREP"
3683 ac_path_EGREP_max=$ac_count
3684 fi
3685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3687 done
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3689esac
8a2fc586 3690
ec6a6fbe
AK
3691 $ac_path_EGREP_found && break 3
3692 done
d0191583 3693 done
8a2fc586 3694done
7a197a62 3695IFS=$as_save_IFS
ec6a6fbe
AK
3696 if test -z "$ac_cv_path_EGREP"; then
3697 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3698$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3699 { (exit 1); exit 1; }; }
ec6a6fbe 3700 fi
d0191583
JM
3701else
3702 ac_cv_path_EGREP=$EGREP
3703fi
ad6254c5 3704
d0191583
JM
3705 fi
3706fi
ec6a6fbe
AK
3707{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3708$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3709 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3710
3711
d0191583 3712if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3713 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3714$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3715if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3716 $as_echo_n "(cached) " >&6
8106cdd5 3717else
d0191583 3718 ac_pattern="Autoconf.*'x'"
ad6254c5 3719 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3720/* confdefs.h. */
3721_ACEOF
3722cat confdefs.h >>conftest.$ac_ext
3723cat >>conftest.$ac_ext <<_ACEOF
3724/* end confdefs.h. */
d0191583
JM
3725#include <sgtty.h>
3726Autoconf TIOCGETP
ad6254c5 3727_ACEOF
d0191583
JM
3728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3730 ac_cv_prog_gcc_traditional=yes
8106cdd5 3731else
d0191583 3732 ac_cv_prog_gcc_traditional=no
80992638 3733fi
d0191583 3734rm -f conftest*
ad6254c5 3735
8106cdd5 3736
d0191583
JM
3737 if test $ac_cv_prog_gcc_traditional = no; then
3738 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3739/* confdefs.h. */
3740_ACEOF
3741cat confdefs.h >>conftest.$ac_ext
3742cat >>conftest.$ac_ext <<_ACEOF
3743/* end confdefs.h. */
d0191583
JM
3744#include <termio.h>
3745Autoconf TCGETA
ad6254c5 3746_ACEOF
d0191583
JM
3747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3749 ac_cv_prog_gcc_traditional=yes
7a197a62 3750fi
d0191583 3751rm -f conftest*
795ca3e5 3752
d0191583 3753 fi
795ca3e5 3754fi
ec6a6fbe
AK
3755{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3756$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3757 if test $ac_cv_prog_gcc_traditional = yes; then
3758 CC="$CC -traditional"
3759 fi
795ca3e5
AK
3760fi
3761
d0191583
JM
3762# Find a good install program. We prefer a C program (faster),
3763# so one script is as good as another. But avoid the broken or
3764# incompatible versions:
3765# SysV /etc/install, /usr/sbin/install
3766# SunOS /usr/etc/install
3767# IRIX /sbin/install
3768# AIX /bin/install
3769# AmigaOS /C/install, which installs bootblocks on floppy discs
3770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773# OS/2's system install, which has a completely different semantic
3774# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3775# Reject install programs that cannot install multiple files.
3776{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3777$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3778if test -z "$INSTALL"; then
3779if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3780 $as_echo_n "(cached) " >&6
ad6254c5 3781else
d0191583
JM
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 # Account for people who put trailing slashes in PATH elements.
3788case $as_dir/ in
3789 ./ | .// | /cC/* | \
3790 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3791 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3792 /usr/ucb/* ) ;;
3793 *)
3794 # OSF1 and SCO ODT 3.0 have their own names for install.
3795 # Don't use installbsd from OSF since it installs stuff as root
3796 # by default.
3797 for ac_prog in ginstall scoinst install; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3800 if test $ac_prog = install &&
3801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3802 # AIX install. It has an incompatible calling convention.
3803 :
3804 elif test $ac_prog = install &&
3805 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3806 # program-specific install script used by HP pwplus--don't use.
3807 :
3808 else
ec6a6fbe
AK
3809 rm -rf conftest.one conftest.two conftest.dir
3810 echo one > conftest.one
3811 echo two > conftest.two
3812 mkdir conftest.dir
3813 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3814 test -s conftest.one && test -s conftest.two &&
3815 test -s conftest.dir/conftest.one &&
3816 test -s conftest.dir/conftest.two
3817 then
3818 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3819 break 3
3820 fi
d0191583
JM
3821 fi
3822 fi
3823 done
3824 done
3825 ;;
3826esac
ec6a6fbe 3827
d0191583
JM
3828done
3829IFS=$as_save_IFS
80992638 3830
ec6a6fbe 3831rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3832
3833fi
3834 if test "${ac_cv_path_install+set}" = set; then
3835 INSTALL=$ac_cv_path_install
7a197a62 3836 else
d0191583
JM
3837 # As a last resort, use the slow shell script. Don't cache a
3838 # value for INSTALL within a source directory, because that will
3839 # break other packages using the cache if that directory is
3840 # removed, or if the value is a relative name.
3841 INSTALL=$ac_install_sh
7a197a62 3842 fi
d0191583 3843fi
ec6a6fbe
AK
3844{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3845$as_echo "$INSTALL" >&6; }
ad6254c5 3846
d0191583
JM
3847# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3848# It thinks the first close brace ends the variable substitution.
3849test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3850
d0191583 3851test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3852
d0191583
JM
3853test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854
ec6a6fbe
AK
3855{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3856$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3857LN_S=$as_ln_s
3858if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3859 { $as_echo "$as_me:$LINENO: result: yes" >&5
3860$as_echo "yes" >&6; }
d0191583 3861else
ec6a6fbe
AK
3862 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3863$as_echo "no, using $LN_S" >&6; }
795ca3e5 3864fi
d0191583 3865
ec6a6fbe
AK
3866{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3867$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3868set x ${MAKE-make}
3869ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3870if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3871 $as_echo_n "(cached) " >&6
7a197a62 3872else
d0191583
JM
3873 cat >conftest.make <<\_ACEOF
3874SHELL = /bin/sh
3875all:
3876 @echo '@@@%%%=$(MAKE)=@@@%%%'
3877_ACEOF
3878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3879case `${MAKE-make} -f conftest.make 2>/dev/null` in
3880 *@@@%%%=?*=@@@%%%*)
3881 eval ac_cv_prog_make_${ac_make}_set=yes;;
3882 *)
3883 eval ac_cv_prog_make_${ac_make}_set=no;;
3884esac
3885rm -f conftest.make
ad6254c5 3886fi
d0191583 3887if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3888 { $as_echo "$as_me:$LINENO: result: yes" >&5
3889$as_echo "yes" >&6; }
d0191583
JM
3890 SET_MAKE=
3891else
ec6a6fbe
AK
3892 { $as_echo "$as_me:$LINENO: result: no" >&5
3893$as_echo "no" >&6; }
d0191583 3894 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3895fi
8106cdd5 3896
ec6a6fbe
AK
3897{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3898$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3899if test -z "$MKDIR_P"; then
3900 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3901 $as_echo_n "(cached) " >&6
5556819a
AK
3902else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in mkdir gmkdir; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3911 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3912 'mkdir (GNU coreutils) '* | \
3913 'mkdir (coreutils) '* | \
3914 'mkdir (fileutils) '4.1*)
3915 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3916 break 3;;
3917 esac
3918 done
3919 done
3920done
3921IFS=$as_save_IFS
3922
3923fi
3924
3925 if test "${ac_cv_path_mkdir+set}" = set; then
3926 MKDIR_P="$ac_cv_path_mkdir -p"
3927 else
3928 # As a last resort, use the slow shell script. Don't cache a
3929 # value for MKDIR_P within a source directory, because that will
3930 # break other packages using the cache if that directory is
3931 # removed, or if the value is a relative name.
3932 test -d ./--version && rmdir ./--version
3933 MKDIR_P="$ac_install_sh -d"
3934 fi
3935fi
ec6a6fbe
AK
3936{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3937$as_echo "$MKDIR_P" >&6; }
5556819a 3938
d0191583
JM
3939if test -n "$ac_tool_prefix"; then
3940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3942{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3943$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3944if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3945 $as_echo_n "(cached) " >&6
d0191583
JM
3946else
3947 if test -n "$RANLIB"; then
3948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3949else
3950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
3952do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3959 break 2
3960 fi
3961done
3962done
3963IFS=$as_save_IFS
8106cdd5 3964
795ca3e5 3965fi
d0191583
JM
3966fi
3967RANLIB=$ac_cv_prog_RANLIB
3968if test -n "$RANLIB"; then
ec6a6fbe
AK
3969 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3970$as_echo "$RANLIB" >&6; }
d0191583 3971else
ec6a6fbe
AK
3972 { $as_echo "$as_me:$LINENO: result: no" >&5
3973$as_echo "no" >&6; }
d0191583
JM
3974fi
3975
8106cdd5 3976
ad6254c5 3977fi
d0191583
JM
3978if test -z "$ac_cv_prog_RANLIB"; then
3979 ac_ct_RANLIB=$RANLIB
3980 # Extract the first word of "ranlib", so it can be a program name with args.
3981set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3982{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3984if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3985 $as_echo_n "(cached) " >&6
ad6254c5 3986else
d0191583
JM
3987 if test -n "$ac_ct_RANLIB"; then
3988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
8106cdd5 3992do
d0191583
JM
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3999 break 2
4000 fi
4001done
4002done
4003IFS=$as_save_IFS
4004
4005fi
4006fi
4007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4008if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4009 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4010$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4011else
ec6a6fbe
AK
4012 { $as_echo "$as_me:$LINENO: result: no" >&5
4013$as_echo "no" >&6; }
d0191583 4014fi
ad6254c5 4015
d0191583
JM
4016 if test "x$ac_ct_RANLIB" = x; then
4017 RANLIB=":"
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020yes:)
ec6a6fbe
AK
4021{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4023ac_tool_warned=yes ;;
4024esac
4025 RANLIB=$ac_ct_RANLIB
4026 fi
4027else
4028 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4029fi
7a197a62 4030
d0191583
JM
4031# Extract the first word of "cflow", so it can be a program name with args.
4032set dummy cflow; ac_word=$2
ec6a6fbe
AK
4033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4035if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4036 $as_echo_n "(cached) " >&6
d0191583
JM
4037else
4038 case $CFLOW_CMD in
4039 [\\/]* | ?:[\\/]*)
4040 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4041 ;;
4042 *)
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4052 break 2
4053 fi
4054done
4055done
4056IFS=$as_save_IFS
ad6254c5 4057
d0191583 4058 ;;
7a197a62 4059esac
d0191583
JM
4060fi
4061CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4062if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4063 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4064$as_echo "$CFLOW_CMD" >&6; }
80992638 4065else
ec6a6fbe
AK
4066 { $as_echo "$as_me:$LINENO: result: no" >&5
4067$as_echo "no" >&6; }
795ca3e5 4068fi
7a197a62 4069
ad6254c5 4070
d0191583
JM
4071# Extract the first word of "cscope", so it can be a program name with args.
4072set dummy cscope; ac_word=$2
ec6a6fbe
AK
4073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4074$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4075if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4076 $as_echo_n "(cached) " >&6
d0191583
JM
4077else
4078 case $CSCOPE_CMD in
4079 [\\/]* | ?:[\\/]*)
4080 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4081 ;;
4082 *)
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4092 break 2
4093 fi
795ca3e5 4094done
d0191583
JM
4095done
4096IFS=$as_save_IFS
795ca3e5 4097
d0191583
JM
4098 ;;
4099esac
ad6254c5 4100fi
d0191583
JM
4101CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4102if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4103 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4104$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4105else
ec6a6fbe
AK
4106 { $as_echo "$as_me:$LINENO: result: no" >&5
4107$as_echo "no" >&6; }
795ca3e5 4108fi
ad6254c5 4109
7a197a62 4110
ad6254c5 4111
d0191583
JM
4112################################################################################
4113
4114
4115
4116
4117
4118ac_header_dirent=no
4119for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4120 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4121{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4122$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4124 $as_echo_n "(cached) " >&6
d0191583 4125else
ad6254c5 4126 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4127/* confdefs.h. */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h. */
d0191583
JM
4132#include <sys/types.h>
4133#include <$ac_hdr>
4134
4135int
4136main ()
4137{
4138if ((DIR *) 0)
4139return 0;
4140 ;
4141 return 0;
4142}
ad6254c5 4143_ACEOF
d0191583
JM
4144rm -f conftest.$ac_objext
4145if { (ac_try="$ac_compile"
7a197a62
AK
4146case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
ec6a6fbe
AK
4150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4151$as_echo "$ac_try_echo") >&5
d0191583 4152 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
ec6a6fbe 4157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4158 (exit $ac_status); } && {
4159 test -z "$ac_c_werror_flag" ||
25fbec5b 4160 test ! -s conftest.err
d0191583
JM
4161 } && test -s conftest.$ac_objext; then
4162 eval "$as_ac_Header=yes"
ad6254c5 4163else
ec6a6fbe 4164 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4165sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4166
d0191583 4167 eval "$as_ac_Header=no"
795ca3e5 4168fi
7a197a62 4169
d0191583 4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4171fi
ec6a6fbe
AK
4172ac_res=`eval 'as_val=${'$as_ac_Header'}
4173 $as_echo "$as_val"'`
4174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4175$as_echo "$ac_res" >&6; }
4176as_val=`eval 'as_val=${'$as_ac_Header'}
4177 $as_echo "$as_val"'`
4178 if test "x$as_val" = x""yes; then
d0191583 4179 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4180#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4181_ACEOF
795ca3e5 4182
d0191583
JM
4183ac_header_dirent=$ac_hdr; break
4184fi
ad6254c5 4185
d0191583
JM
4186done
4187# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4188if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4189 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4190$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4191if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4192 $as_echo_n "(cached) " >&6
ad6254c5 4193else
d0191583
JM
4194 ac_func_search_save_LIBS=$LIBS
4195cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
ad6254c5 4201
d0191583
JM
4202/* Override any GCC internal prototype to avoid an error.
4203 Use char because int might match the return type of a GCC
4204 builtin and then its argument prototype would still apply. */
4205#ifdef __cplusplus
4206extern "C"
4207#endif
4208char opendir ();
4209int
4210main ()
4211{
4212return opendir ();
4213 ;
4214 return 0;
4215}
4216_ACEOF
4217for ac_lib in '' dir; do
4218 if test -z "$ac_lib"; then
4219 ac_res="none required"
4220 else
4221 ac_res=-l$ac_lib
4222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4223 fi
4224 rm -f conftest.$ac_objext conftest$ac_exeext
4225if { (ac_try="$ac_link"
4226case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
ec6a6fbe
AK
4230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4231$as_echo "$ac_try_echo") >&5
d0191583
JM
4232 (eval "$ac_link") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
ec6a6fbe 4237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4238 (exit $ac_status); } && {
4239 test -z "$ac_c_werror_flag" ||
4240 test ! -s conftest.err
ec6a6fbe
AK
4241 } && test -s conftest$ac_exeext && {
4242 test "$cross_compiling" = yes ||
4243 $as_test_x conftest$ac_exeext
4244 }; then
d0191583
JM
4245 ac_cv_search_opendir=$ac_res
4246else
ec6a6fbe 4247 $as_echo "$as_me: failed program was:" >&5
d0191583 4248sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4249
ad6254c5 4250
795ca3e5 4251fi
ad6254c5 4252
ec6a6fbe 4253rm -rf conftest.dSYM
d0191583
JM
4254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4255 conftest$ac_exeext
4256 if test "${ac_cv_search_opendir+set}" = set; then
4257 break
7a197a62 4258fi
d0191583
JM
4259done
4260if test "${ac_cv_search_opendir+set}" = set; then
4261 :
7a197a62 4262else
d0191583 4263 ac_cv_search_opendir=no
7a197a62 4264fi
d0191583
JM
4265rm conftest.$ac_ext
4266LIBS=$ac_func_search_save_LIBS
7a197a62 4267fi
ec6a6fbe
AK
4268{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4269$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4270ac_res=$ac_cv_search_opendir
4271if test "$ac_res" != no; then
4272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4273
d0191583 4274fi
7a197a62 4275
7a197a62 4276else
ec6a6fbe
AK
4277 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4278$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4279if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4280 $as_echo_n "(cached) " >&6
7a197a62 4281else
d0191583
JM
4282 ac_func_search_save_LIBS=$LIBS
4283cat >conftest.$ac_ext <<_ACEOF
4284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
7a197a62 4289
d0191583
JM
4290/* Override any GCC internal prototype to avoid an error.
4291 Use char because int might match the return type of a GCC
4292 builtin and then its argument prototype would still apply. */
4293#ifdef __cplusplus
4294extern "C"
4295#endif
4296char opendir ();
4297int
4298main ()
4299{
4300return opendir ();
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305for ac_lib in '' x; do
4306 if test -z "$ac_lib"; then
4307 ac_res="none required"
4308 else
4309 ac_res=-l$ac_lib
4310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4311 fi
4312 rm -f conftest.$ac_objext conftest$ac_exeext
4313if { (ac_try="$ac_link"
4314case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
ec6a6fbe
AK
4318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4319$as_echo "$ac_try_echo") >&5
d0191583
JM
4320 (eval "$ac_link") 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
ec6a6fbe 4325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4326 (exit $ac_status); } && {
4327 test -z "$ac_c_werror_flag" ||
4328 test ! -s conftest.err
ec6a6fbe
AK
4329 } && test -s conftest$ac_exeext && {
4330 test "$cross_compiling" = yes ||
4331 $as_test_x conftest$ac_exeext
4332 }; then
d0191583
JM
4333 ac_cv_search_opendir=$ac_res
4334else
ec6a6fbe 4335 $as_echo "$as_me: failed program was:" >&5
d0191583 4336sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4337
4338
4339fi
4340
ec6a6fbe 4341rm -rf conftest.dSYM
d0191583
JM
4342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4343 conftest$ac_exeext
4344 if test "${ac_cv_search_opendir+set}" = set; then
4345 break
7a197a62 4346fi
d0191583
JM
4347done
4348if test "${ac_cv_search_opendir+set}" = set; then
4349 :
7a197a62 4350else
d0191583 4351 ac_cv_search_opendir=no
7a197a62 4352fi
d0191583
JM
4353rm conftest.$ac_ext
4354LIBS=$ac_func_search_save_LIBS
4355fi
ec6a6fbe
AK
4356{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4357$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4358ac_res=$ac_cv_search_opendir
4359if test "$ac_res" != no; then
4360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4361
7a197a62 4362fi
7a197a62 4363
d0191583 4364fi
7a197a62 4365
ec6a6fbe
AK
4366{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4367$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4368if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4369 $as_echo_n "(cached) " >&6
7a197a62
AK
4370else
4371 cat >conftest.$ac_ext <<_ACEOF
4372/* confdefs.h. */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h. */
4377#include <stdlib.h>
4378#include <stdarg.h>
4379#include <string.h>
4380#include <float.h>
4381
4382int
4383main ()
4384{
4385
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (ac_try="$ac_compile"
4392case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
ec6a6fbe
AK
4396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4397$as_echo "$ac_try_echo") >&5
7a197a62
AK
4398 (eval "$ac_compile") 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
ec6a6fbe 4403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
7a197a62
AK
4408 ac_cv_header_stdc=yes
4409else
ec6a6fbe 4410 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ac_cv_header_stdc=no
4414fi
4415
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417
4418if test $ac_cv_header_stdc = yes; then
4419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4420 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
4426#include <string.h>
8106cdd5 4427
ad6254c5
AK
4428_ACEOF
4429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "memchr" >/dev/null 2>&1; then
4431 :
4432else
4433 ac_cv_header_stdc=no
80992638 4434fi
ad6254c5 4435rm -f conftest*
795ca3e5
AK
4436
4437fi
4438
ad6254c5
AK
4439if test $ac_cv_header_stdc = yes; then
4440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4441 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
80992638 4447#include <stdlib.h>
ad6254c5
AK
4448
4449_ACEOF
80992638 4450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4451 $EGREP "free" >/dev/null 2>&1; then
4452 :
795ca3e5 4453else
ad6254c5 4454 ac_cv_header_stdc=no
795ca3e5 4455fi
80992638 4456rm -f conftest*
8106cdd5 4457
795ca3e5
AK
4458fi
4459
ad6254c5
AK
4460if test $ac_cv_header_stdc = yes; then
4461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4462 if test "$cross_compiling" = yes; then
4463 :
795ca3e5 4464else
ad6254c5 4465 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471#include <ctype.h>
7a197a62 4472#include <stdlib.h>
ad6254c5
AK
4473#if ((' ' & 0x0FF) == 0x020)
4474# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4475# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4476#else
4477# define ISLOWER(c) \
8a2fc586
AK
4478 (('a' <= (c) && (c) <= 'i') \
4479 || ('j' <= (c) && (c) <= 'r') \
4480 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4481# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4482#endif
ad6254c5
AK
4483
4484#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4485int
4486main ()
4487{
4488 int i;
4489 for (i = 0; i < 256; i++)
4490 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4491 || toupper (i) != TOUPPER (i))
7a197a62
AK
4492 return 2;
4493 return 0;
ad6254c5
AK
4494}
4495_ACEOF
4496rm -f conftest$ac_exeext
7a197a62
AK
4497if { (ac_try="$ac_link"
4498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
ec6a6fbe
AK
4502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4503$as_echo "$ac_try_echo") >&5
7a197a62 4504 (eval "$ac_link") 2>&5
ad6254c5 4505 ac_status=$?
ec6a6fbe 4506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4508 { (case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
ec6a6fbe
AK
4512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513$as_echo "$ac_try_echo") >&5
7a197a62 4514 (eval "$ac_try") 2>&5
ad6254c5 4515 ac_status=$?
ec6a6fbe 4516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4517 (exit $ac_status); }; }; then
4518 :
795ca3e5 4519else
ec6a6fbe
AK
4520 $as_echo "$as_me: program exited with status $ac_status" >&5
4521$as_echo "$as_me: failed program was:" >&5
ad6254c5 4522sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4523
ad6254c5
AK
4524( exit $ac_status )
4525ac_cv_header_stdc=no
80992638 4526fi
ec6a6fbe 4527rm -rf conftest.dSYM
7a197a62 4528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4529fi
7a197a62
AK
4530
4531
ad6254c5
AK
4532fi
4533fi
ec6a6fbe
AK
4534{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4535$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4536if test $ac_cv_header_stdc = yes; then
4537
4538cat >>confdefs.h <<\_ACEOF
4539#define STDC_HEADERS 1
4540_ACEOF
795ca3e5
AK
4541
4542fi
4543
d911ec67 4544# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4545
ad6254c5 4546
7a197a62 4547
8106cdd5 4548
795ca3e5 4549
795ca3e5 4550
d911ec67
AK
4551
4552
4553
4554for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4555 inttypes.h stdint.h unistd.h
4556do
4557as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4558{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4559$as_echo_n "checking for $ac_header... " >&6; }
4560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4561 $as_echo_n "(cached) " >&6
795ca3e5 4562else
ad6254c5 4563 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */
d911ec67 4569$ac_includes_default
ad6254c5 4570
d911ec67 4571#include <$ac_header>
ad6254c5
AK
4572_ACEOF
4573rm -f conftest.$ac_objext
7a197a62
AK
4574if { (ac_try="$ac_compile"
4575case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578esac
ec6a6fbe
AK
4579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4580$as_echo "$ac_try_echo") >&5
7a197a62 4581 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4582 ac_status=$?
8a2fc586
AK
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
ec6a6fbe 4586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
d911ec67 4591 eval "$as_ac_Header=yes"
795ca3e5 4592else
ec6a6fbe 4593 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4594sed 's/^/| /' conftest.$ac_ext >&5
4595
d911ec67 4596 eval "$as_ac_Header=no"
795ca3e5 4597fi
7a197a62
AK
4598
4599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4600fi
d911ec67
AK
4601ac_res=`eval 'as_val=${'$as_ac_Header'}
4602 $as_echo "$as_val"'`
4603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4604$as_echo "$ac_res" >&6; }
4605as_val=`eval 'as_val=${'$as_ac_Header'}
4606 $as_echo "$as_val"'`
4607 if test "x$as_val" = x""yes; then
4608 cat >>confdefs.h <<_ACEOF
4609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4610_ACEOF
b896caa1 4611
8106cdd5 4612fi
b896caa1 4613
d911ec67 4614done
d0191583
JM
4615
4616
d911ec67
AK
4617{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4618$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4619if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4620 $as_echo_n "(cached) " >&6
d0191583
JM
4621else
4622 cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
d911ec67
AK
4628#include <sys/types.h>
4629int
4630main ()
4631{
4632return makedev(0, 0);
4633 ;
4634 return 0;
4635}
d0191583 4636_ACEOF
d911ec67
AK
4637rm -f conftest.$ac_objext conftest$ac_exeext
4638if { (ac_try="$ac_link"
d0191583
JM
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
d911ec67 4645 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4646 ac_status=$?
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
d0191583
JM
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
d911ec67
AK
4654 } && test -s conftest$ac_exeext && {
4655 test "$cross_compiling" = yes ||
4656 $as_test_x conftest$ac_exeext
4657 }; then
4658 ac_cv_header_sys_types_h_makedev=yes
d0191583 4659else
ec6a6fbe 4660 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4661sed 's/^/| /' conftest.$ac_ext >&5
4662
d911ec67 4663 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4664fi
4665
d911ec67
AK
4666rm -rf conftest.dSYM
4667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4668 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4669
4670fi
d911ec67
AK
4671{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4672$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4673
d911ec67
AK
4674if test $ac_cv_header_sys_types_h_makedev = no; then
4675if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4676 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4677$as_echo_n "checking for sys/mkdev.h... " >&6; }
4678if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4679 $as_echo_n "(cached) " >&6
d0191583 4680fi
d911ec67
AK
4681{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4682$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4683else
d0191583 4684 # Is the header compilable?
d911ec67
AK
4685{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4686$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4687cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4688/* confdefs.h. */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h. */
4693$ac_includes_default
d911ec67 4694#include <sys/mkdev.h>
ad6254c5
AK
4695_ACEOF
4696rm -f conftest.$ac_objext
7a197a62
AK
4697if { (ac_try="$ac_compile"
4698case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701esac
ec6a6fbe
AK
4702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703$as_echo "$ac_try_echo") >&5
7a197a62 4704 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4705 ac_status=$?
8a2fc586
AK
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
ec6a6fbe 4709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4710 (exit $ac_status); } && {
4711 test -z "$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 } && test -s conftest.$ac_objext; then
d0191583 4714 ac_header_compiler=yes
ad6254c5 4715else
ec6a6fbe 4716 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4717sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4718
d0191583 4719 ac_header_compiler=no
ad6254c5 4720fi
7a197a62
AK
4721
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4723{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4724$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4725
4726# Is the header present?
d911ec67
AK
4727{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4728$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4729cat >conftest.$ac_ext <<_ACEOF
4730/* confdefs.h. */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h. */
d911ec67 4735#include <sys/mkdev.h>
d0191583
JM
4736_ACEOF
4737if { (ac_try="$ac_cpp conftest.$ac_ext"
4738case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741esac
ec6a6fbe
AK
4742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743$as_echo "$ac_try_echo") >&5
d0191583
JM
4744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
ec6a6fbe 4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4750 (exit $ac_status); } >/dev/null && {
4751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 }; then
4754 ac_header_preproc=yes
4755else
ec6a6fbe 4756 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ac_header_preproc=no
4760fi
4761
4762rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4763{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4764$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4765
4766# So? What about this header?
4767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4768 yes:no: )
d911ec67
AK
4769 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4770$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4771 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4772$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4773 ac_header_preproc=yes
4774 ;;
4775 no:yes:* )
d911ec67
AK
4776 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4777$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4779$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4781$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4783$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4785$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4787$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4788
4789 ;;
4790esac
d911ec67
AK
4791{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4792$as_echo_n "checking for sys/mkdev.h... " >&6; }
4793if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4794 $as_echo_n "(cached) " >&6
d0191583 4795else
d911ec67 4796 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4797fi
d911ec67
AK
4798{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4799$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4800
4801fi
d911ec67
AK
4802if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4803
4804cat >>confdefs.h <<\_ACEOF
4805#define MAJOR_IN_MKDEV 1
ad6254c5 4806_ACEOF
a38df97f 4807
80992638
AK
4808fi
4809
80992638 4810
5a52dca9 4811
d911ec67
AK
4812 if test $ac_cv_header_sys_mkdev_h = no; then
4813 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4814 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4815$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4816if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4817 $as_echo_n "(cached) " >&6
ad6254c5 4818fi
d911ec67
AK
4819{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4820$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4821else
4822 # Is the header compilable?
d911ec67
AK
4823{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4824$as_echo_n "checking sys/sysmacros.h usability... " >&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$ac_includes_default
d911ec67 4832#include <sys/sysmacros.h>
ad6254c5
AK
4833_ACEOF
4834rm -f conftest.$ac_objext
7a197a62
AK
4835if { (ac_try="$ac_compile"
4836case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839esac
ec6a6fbe
AK
4840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4841$as_echo "$ac_try_echo") >&5
7a197a62 4842 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4843 ac_status=$?
8a2fc586
AK
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
ec6a6fbe 4847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4848 (exit $ac_status); } && {
4849 test -z "$ac_c_werror_flag" ||
4850 test ! -s conftest.err
4851 } && test -s conftest.$ac_objext; then
fc54be10
AK
4852 ac_header_compiler=yes
4853else
ec6a6fbe 4854 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
4857 ac_header_compiler=no
4858fi
4859
4860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4861{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4862$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4863
4864# Is the header present?
d911ec67
AK
4865{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4866$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4867cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
d911ec67 4873#include <sys/sysmacros.h>
ad6254c5 4874_ACEOF
7a197a62
AK
4875if { (ac_try="$ac_cpp conftest.$ac_ext"
4876case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879esac
ec6a6fbe
AK
4880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4881$as_echo "$ac_try_echo") >&5
7a197a62 4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
ec6a6fbe 4887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4888 (exit $ac_status); } >/dev/null && {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 }; then
ad6254c5
AK
4892 ac_header_preproc=yes
4893else
ec6a6fbe 4894 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 ac_header_preproc=no
4898fi
7a197a62 4899
ad6254c5 4900rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4901{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4902$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4903
4904# So? What about this header?
8a2fc586
AK
4905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4906 yes:no: )
d911ec67
AK
4907 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4908$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4909 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4910$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4911 ac_header_preproc=yes
ad6254c5 4912 ;;
8a2fc586 4913 no:yes:* )
d911ec67
AK
4914 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4915$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4916 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4917$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4918 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4919$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4920 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4921$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4922 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4923$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4925$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4926
ad6254c5
AK
4927 ;;
4928esac
d911ec67
AK
4929{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4930$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4931if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4932 $as_echo_n "(cached) " >&6
ad6254c5 4933else
d911ec67 4934 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4935fi
d911ec67
AK
4936{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4937$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4938
4939fi
d911ec67
AK
4940if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4941
4942cat >>confdefs.h <<\_ACEOF
4943#define MAJOR_IN_SYSMACROS 1
ad6254c5 4944_ACEOF
b896caa1 4945
80992638
AK
4946fi
4947
d8ac0fbc 4948
d911ec67
AK
4949 fi
4950fi
d8ac0fbc 4951
d911ec67
AK
4952{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4953$as_echo_n "checking for ANSI C header files... " >&6; }
4954if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4955 $as_echo_n "(cached) " >&6
ad6254c5 4956else
d911ec67 4957 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4958/* confdefs.h. */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h. */
d911ec67
AK
4963#include <stdlib.h>
4964#include <stdarg.h>
4965#include <string.h>
4966#include <float.h>
4967
4968int
4969main ()
4970{
4971
4972 ;
4973 return 0;
4974}
ad6254c5
AK
4975_ACEOF
4976rm -f conftest.$ac_objext
7a197a62
AK
4977if { (ac_try="$ac_compile"
4978case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981esac
ec6a6fbe
AK
4982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983$as_echo "$ac_try_echo") >&5
7a197a62 4984 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4985 ac_status=$?
8a2fc586
AK
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
ec6a6fbe 4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
d911ec67 4994 ac_cv_header_stdc=yes
ad6254c5 4995else
ec6a6fbe 4996 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4997sed 's/^/| /' conftest.$ac_ext >&5
4998
d911ec67 4999 ac_cv_header_stdc=no
ad6254c5 5000fi
7a197a62
AK
5001
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5003
d911ec67
AK
5004if test $ac_cv_header_stdc = yes; then
5005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5006 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5007/* confdefs.h. */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h. */
d911ec67
AK
5012#include <string.h>
5013
ad6254c5 5014_ACEOF
d911ec67
AK
5015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5016 $EGREP "memchr" >/dev/null 2>&1; then
5017 :
5018else
5019 ac_cv_header_stdc=no
5020fi
5021rm -f conftest*
5022
5023fi
5024
5025if test $ac_cv_header_stdc = yes; then
5026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5027 cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h. */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h. */
5033#include <stdlib.h>
5034
5035_ACEOF
5036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5037 $EGREP "free" >/dev/null 2>&1; then
5038 :
5039else
5040 ac_cv_header_stdc=no
5041fi
5042rm -f conftest*
5043
5044fi
5045
5046if test $ac_cv_header_stdc = yes; then
5047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5048 if test "$cross_compiling" = yes; then
5049 :
5050else
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#include <ctype.h>
5058#include <stdlib.h>
5059#if ((' ' & 0x0FF) == 0x020)
5060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5062#else
5063# define ISLOWER(c) \
5064 (('a' <= (c) && (c) <= 'i') \
5065 || ('j' <= (c) && (c) <= 'r') \
5066 || ('s' <= (c) && (c) <= 'z'))
5067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5068#endif
5069
5070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5071int
5072main ()
5073{
5074 int i;
5075 for (i = 0; i < 256; i++)
5076 if (XOR (islower (i), ISLOWER (i))
5077 || toupper (i) != TOUPPER (i))
5078 return 2;
5079 return 0;
5080}
5081_ACEOF
5082rm -f conftest$ac_exeext
5083if { (ac_try="$ac_link"
7a197a62
AK
5084case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087esac
ec6a6fbe
AK
5088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089$as_echo "$ac_try_echo") >&5
d911ec67
AK
5090 (eval "$ac_link") 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5094 { (case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
5098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099$as_echo "$ac_try_echo") >&5
5100 (eval "$ac_try") 2>&5
5101 ac_status=$?
5102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 :
5105else
5106 $as_echo "$as_me: program exited with status $ac_status" >&5
5107$as_echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110( exit $ac_status )
5111ac_cv_header_stdc=no
5112fi
5113rm -rf conftest.dSYM
5114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5115fi
5116
5117
5118fi
5119fi
5120{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5121$as_echo "$ac_cv_header_stdc" >&6; }
5122if test $ac_cv_header_stdc = yes; then
5123
5124cat >>confdefs.h <<\_ACEOF
5125#define STDC_HEADERS 1
5126_ACEOF
5127
5128fi
5129
5130{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5131$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5132if test "${ac_cv_header_sys_wait_h+set}" = set; then
5133 $as_echo_n "(cached) " >&6
5134else
5135 cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h. */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h. */
5141#include <sys/types.h>
5142#include <sys/wait.h>
5143#ifndef WEXITSTATUS
5144# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5145#endif
5146#ifndef WIFEXITED
5147# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5148#endif
5149
5150int
5151main ()
5152{
5153 int s;
5154 wait (&s);
5155 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5156 ;
5157 return 0;
5158}
5159_ACEOF
5160rm -f conftest.$ac_objext
5161if { (ac_try="$ac_compile"
5162case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165esac
5166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5167$as_echo "$ac_try_echo") >&5
5168 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
ec6a6fbe 5173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5174 (exit $ac_status); } && {
5175 test -z "$ac_c_werror_flag" ||
25fbec5b 5176 test ! -s conftest.err
d911ec67
AK
5177 } && test -s conftest.$ac_objext; then
5178 ac_cv_header_sys_wait_h=yes
ad6254c5 5179else
ec6a6fbe 5180 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5181sed 's/^/| /' conftest.$ac_ext >&5
5182
d911ec67 5183 ac_cv_header_sys_wait_h=no
ad6254c5 5184fi
7a197a62 5185
d911ec67
AK
5186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187fi
5188{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5189$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5190if test $ac_cv_header_sys_wait_h = yes; then
5191
5192cat >>confdefs.h <<\_ACEOF
5193#define HAVE_SYS_WAIT_H 1
5194_ACEOF
5195
5196fi
5197
5198{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5199$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5200if test "${ac_cv_header_time+set}" = set; then
5201 $as_echo_n "(cached) " >&6
5202else
5203 cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h. */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h. */
5209#include <sys/types.h>
5210#include <sys/time.h>
5211#include <time.h>
5212
5213int
5214main ()
5215{
5216if ((struct tm *) 0)
5217return 0;
5218 ;
5219 return 0;
5220}
5221_ACEOF
5222rm -f conftest.$ac_objext
5223if { (ac_try="$ac_compile"
5224case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227esac
5228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229$as_echo "$ac_try_echo") >&5
5230 (eval "$ac_compile") 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && {
5237 test -z "$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest.$ac_objext; then
5240 ac_cv_header_time=yes
5241else
5242 $as_echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 ac_cv_header_time=no
5246fi
5247
5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249fi
5250{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5251$as_echo "$ac_cv_header_time" >&6; }
5252if test $ac_cv_header_time = yes; then
5253
5254cat >>confdefs.h <<\_ACEOF
5255#define TIME_WITH_SYS_TIME 1
5256_ACEOF
5257
5258fi
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5276 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5277 sys/wait.h time.h
5278do
5279as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5282$as_echo_n "checking for $ac_header... " >&6; }
5283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5284 $as_echo_n "(cached) " >&6
5285fi
5286ac_res=`eval 'as_val=${'$as_ac_Header'}
5287 $as_echo "$as_val"'`
5288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5289$as_echo "$ac_res" >&6; }
5290else
5291 # Is the header compilable?
5292{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5293$as_echo_n "checking $ac_header usability... " >&6; }
5294cat >conftest.$ac_ext <<_ACEOF
5295/* confdefs.h. */
5296_ACEOF
5297cat confdefs.h >>conftest.$ac_ext
5298cat >>conftest.$ac_ext <<_ACEOF
5299/* end confdefs.h. */
5300$ac_includes_default
5301#include <$ac_header>
5302_ACEOF
5303rm -f conftest.$ac_objext
5304if { (ac_try="$ac_compile"
5305case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308esac
5309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310$as_echo "$ac_try_echo") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } && {
5318 test -z "$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 } && test -s conftest.$ac_objext; then
5321 ac_header_compiler=yes
5322else
5323 $as_echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 ac_header_compiler=no
5327fi
5328
5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5331$as_echo "$ac_header_compiler" >&6; }
5332
5333# Is the header present?
5334{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5335$as_echo_n "checking $ac_header presence... " >&6; }
5336cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h. */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h. */
5342#include <$ac_header>
5343_ACEOF
5344if { (ac_try="$ac_cpp conftest.$ac_ext"
5345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5350$as_echo "$ac_try_echo") >&5
5351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null && {
5358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5360 }; then
5361 ac_header_preproc=yes
5362else
5363 $as_echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_header_preproc=no
5367fi
5368
5369rm -f conftest.err conftest.$ac_ext
5370{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5371$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5372
5373# So? What about this header?
8a2fc586
AK
5374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5375 yes:no: )
ec6a6fbe
AK
5376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5377$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5379$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5380 ac_header_preproc=yes
ad6254c5 5381 ;;
8a2fc586 5382 no:yes:* )
ec6a6fbe
AK
5383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5384$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5386$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5388$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5390$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5392$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5394$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5395
ad6254c5
AK
5396 ;;
5397esac
d911ec67
AK
5398{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5399$as_echo_n "checking for $ac_header... " >&6; }
5400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5401 $as_echo_n "(cached) " >&6
5402else
5403 eval "$as_ac_Header=\$ac_header_preproc"
5404fi
5405ac_res=`eval 'as_val=${'$as_ac_Header'}
5406 $as_echo "$as_val"'`
5407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5408$as_echo "$ac_res" >&6; }
5409
5410fi
5411as_val=`eval 'as_val=${'$as_ac_Header'}
5412 $as_echo "$as_val"'`
5413 if test "x$as_val" = x""yes; then
5414 cat >>confdefs.h <<_ACEOF
5415#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5416_ACEOF
5417
5418else
5419 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5420$as_echo "$as_me: error: bailing out" >&2;}
5421 { (exit 1); exit 1; }; }
5422fi
5423
5424done
5425
5426
5427case "$host_os" in
5428 linux*)
5429
5430
5431
5432for ac_header in asm/byteorder.h linux/fs.h malloc.h
5433do
5434as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5437$as_echo_n "checking for $ac_header... " >&6; }
5438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 $as_echo_n "(cached) " >&6
5440fi
5441ac_res=`eval 'as_val=${'$as_ac_Header'}
5442 $as_echo "$as_val"'`
5443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5444$as_echo "$ac_res" >&6; }
5445else
5446 # Is the header compilable?
5447{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5448$as_echo_n "checking $ac_header usability... " >&6; }
5449cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h. */
5455$ac_includes_default
5456#include <$ac_header>
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (ac_try="$ac_compile"
5460case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463esac
5464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5465$as_echo "$ac_try_echo") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_c_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5476 ac_header_compiler=yes
5477else
5478 $as_echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 ac_header_compiler=no
5482fi
5483
5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486$as_echo "$ac_header_compiler" >&6; }
5487
5488# Is the header present?
5489{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5490$as_echo_n "checking $ac_header presence... " >&6; }
5491cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
5497#include <$ac_header>
5498_ACEOF
5499if { (ac_try="$ac_cpp conftest.$ac_ext"
5500case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503esac
5504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5505$as_echo "$ac_try_echo") >&5
5506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } >/dev/null && {
5513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5514 test ! -s conftest.err
5515 }; then
5516 ac_header_preproc=yes
5517else
5518 $as_echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521 ac_header_preproc=no
5522fi
5523
5524rm -f conftest.err conftest.$ac_ext
5525{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526$as_echo "$ac_header_preproc" >&6; }
5527
5528# So? What about this header?
5529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5530 yes:no: )
5531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5532$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5534$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5535 ac_header_preproc=yes
5536 ;;
5537 no:yes:* )
5538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5539$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5541$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5543$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5545$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5547$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5549$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5550
5551 ;;
5552esac
5553{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5554$as_echo_n "checking for $ac_header... " >&6; }
5555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556 $as_echo_n "(cached) " >&6
5557else
5558 eval "$as_ac_Header=\$ac_header_preproc"
5559fi
5560ac_res=`eval 'as_val=${'$as_ac_Header'}
5561 $as_echo "$as_val"'`
5562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5563$as_echo "$ac_res" >&6; }
5564
5565fi
5566as_val=`eval 'as_val=${'$as_ac_Header'}
5567 $as_echo "$as_val"'`
5568 if test "x$as_val" = x""yes; then
5569 cat >>confdefs.h <<_ACEOF
5570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571_ACEOF
5572
5573else
5574 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5575$as_echo "$as_me: error: bailing out" >&2;}
5576 { (exit 1); exit 1; }; }
5577fi
5578
5579done
5580 ;;
5581 darwin*)
5582
5583
5584for ac_header in machine/endian.h sys/disk.h
5585do
5586as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5589$as_echo_n "checking for $ac_header... " >&6; }
5590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 $as_echo_n "(cached) " >&6
5592fi
5593ac_res=`eval 'as_val=${'$as_ac_Header'}
5594 $as_echo "$as_val"'`
5595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5596$as_echo "$ac_res" >&6; }
5597else
5598 # Is the header compilable?
5599{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5600$as_echo_n "checking $ac_header usability... " >&6; }
5601cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607$ac_includes_default
5608#include <$ac_header>
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (ac_try="$ac_compile"
5612case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615esac
5616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617$as_echo "$ac_try_echo") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 ac_header_compiler=yes
5629else
5630 $as_echo "$as_me: failed program was:" >&5
5631sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 ac_header_compiler=no
5634fi
5635
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5638$as_echo "$ac_header_compiler" >&6; }
5639
5640# Is the header present?
5641{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5642$as_echo_n "checking $ac_header presence... " >&6; }
5643cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h. */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h. */
5649#include <$ac_header>
5650_ACEOF
5651if { (ac_try="$ac_cpp conftest.$ac_ext"
5652case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5657$as_echo "$ac_try_echo") >&5
5658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } >/dev/null && {
5665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 }; then
5668 ac_header_preproc=yes
5669else
5670 $as_echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 ac_header_preproc=no
5674fi
5675
5676rm -f conftest.err conftest.$ac_ext
5677{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5678$as_echo "$ac_header_preproc" >&6; }
5679
5680# So? What about this header?
5681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5682 yes:no: )
5683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5684$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5686$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5687 ac_header_preproc=yes
5688 ;;
5689 no:yes:* )
5690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5691$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5693$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5695$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5697$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5699$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5701$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5702
5703 ;;
5704esac
5705{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5706$as_echo_n "checking for $ac_header... " >&6; }
5707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5708 $as_echo_n "(cached) " >&6
5709else
5710 eval "$as_ac_Header=\$ac_header_preproc"
5711fi
5712ac_res=`eval 'as_val=${'$as_ac_Header'}
5713 $as_echo "$as_val"'`
5714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5715$as_echo "$ac_res" >&6; }
5716
5717fi
5718as_val=`eval 'as_val=${'$as_ac_Header'}
5719 $as_echo "$as_val"'`
5720 if test "x$as_val" = x""yes; then
5721 cat >>confdefs.h <<_ACEOF
5722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723_ACEOF
5724
5725else
5726 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5727$as_echo "$as_me: error: bailing out" >&2;}
5728 { (exit 1); exit 1; }; }
5729fi
5730
5731done
5732 ;;
5733esac
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5752 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5753 sys/types.h unistd.h
5754do
5755as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5757 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5758$as_echo_n "checking for $ac_header... " >&6; }
5759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5760 $as_echo_n "(cached) " >&6
5761fi
5762ac_res=`eval 'as_val=${'$as_ac_Header'}
5763 $as_echo "$as_val"'`
5764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5765$as_echo "$ac_res" >&6; }
5766else
5767 # Is the header compilable?
5768{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5769$as_echo_n "checking $ac_header usability... " >&6; }
5770cat >conftest.$ac_ext <<_ACEOF
5771/* confdefs.h. */
5772_ACEOF
5773cat confdefs.h >>conftest.$ac_ext
5774cat >>conftest.$ac_ext <<_ACEOF
5775/* end confdefs.h. */
5776$ac_includes_default
5777#include <$ac_header>
5778_ACEOF
5779rm -f conftest.$ac_objext
5780if { (ac_try="$ac_compile"
5781case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786$as_echo "$ac_try_echo") >&5
5787 (eval "$ac_compile") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest.$ac_objext; then
5797 ac_header_compiler=yes
5798else
5799 $as_echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_header_compiler=no
5803fi
5804
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5807$as_echo "$ac_header_compiler" >&6; }
5808
5809# Is the header present?
5810{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5811$as_echo_n "checking $ac_header presence... " >&6; }
5812cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818#include <$ac_header>
5819_ACEOF
5820if { (ac_try="$ac_cpp conftest.$ac_ext"
5821case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
5825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5826$as_echo "$ac_try_echo") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 }; then
5837 ac_header_preproc=yes
5838else
5839 $as_echo "$as_me: failed program was:" >&5
5840sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_header_preproc=no
5843fi
5844
5845rm -f conftest.err conftest.$ac_ext
5846{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5847$as_echo "$ac_header_preproc" >&6; }
5848
5849# So? What about this header?
5850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5851 yes:no: )
5852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5853$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5855$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5856 ac_header_preproc=yes
5857 ;;
5858 no:yes:* )
5859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5860$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5862$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5864$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5866$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5868$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5870$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5871
5872 ;;
5873esac
5874{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5875$as_echo_n "checking for $ac_header... " >&6; }
5876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5877 $as_echo_n "(cached) " >&6
5878else
5879 eval "$as_ac_Header=\$ac_header_preproc"
5880fi
5881ac_res=`eval 'as_val=${'$as_ac_Header'}
5882 $as_echo "$as_val"'`
5883 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5884$as_echo "$ac_res" >&6; }
5885
5886fi
5887as_val=`eval 'as_val=${'$as_ac_Header'}
5888 $as_echo "$as_val"'`
5889 if test "x$as_val" = x""yes; then
5890 cat >>confdefs.h <<_ACEOF
5891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5892_ACEOF
5893
5894else
5895 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5896$as_echo "$as_me: error: bailing out" >&2;}
5897 { (exit 1); exit 1; }; }
5898fi
5899
5900done
5901
5902
5903
5904for ac_header in termios.h sys/statvfs.h
5905do
5906as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5909$as_echo_n "checking for $ac_header... " >&6; }
5910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5911 $as_echo_n "(cached) " >&6
5912fi
5913ac_res=`eval 'as_val=${'$as_ac_Header'}
5914 $as_echo "$as_val"'`
5915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5916$as_echo "$ac_res" >&6; }
5917else
5918 # Is the header compilable?
5919{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920$as_echo_n "checking $ac_header usability... " >&6; }
5921cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927$ac_includes_default
5928#include <$ac_header>
5929_ACEOF
5930rm -f conftest.$ac_objext
5931if { (ac_try="$ac_compile"
5932case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935esac
5936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5937$as_echo "$ac_try_echo") >&5
5938 (eval "$ac_compile") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && {
5945 test -z "$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 } && test -s conftest.$ac_objext; then
5948 ac_header_compiler=yes
5949else
5950 $as_echo "$as_me: failed program was:" >&5
5951sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_header_compiler=no
5954fi
5955
5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5958$as_echo "$ac_header_compiler" >&6; }
5959
5960# Is the header present?
5961{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5962$as_echo_n "checking $ac_header presence... " >&6; }
5963cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
5969#include <$ac_header>
5970_ACEOF
5971if { (ac_try="$ac_cpp conftest.$ac_ext"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977$as_echo "$ac_try_echo") >&5
5978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } >/dev/null && {
5985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 }; then
5988 ac_header_preproc=yes
5989else
5990 $as_echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 ac_header_preproc=no
5994fi
5995
5996rm -f conftest.err conftest.$ac_ext
5997{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5998$as_echo "$ac_header_preproc" >&6; }
5999
6000# So? What about this header?
6001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6002 yes:no: )
6003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6004$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6006$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6007 ac_header_preproc=yes
6008 ;;
6009 no:yes:* )
6010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6011$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6013$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6015$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6017$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6019$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6021$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6022
6023 ;;
6024esac
6025{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6026$as_echo_n "checking for $ac_header... " >&6; }
6027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6028 $as_echo_n "(cached) " >&6
6029else
6030 eval "$as_ac_Header=\$ac_header_preproc"
6031fi
6032ac_res=`eval 'as_val=${'$as_ac_Header'}
6033 $as_echo "$as_val"'`
6034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6035$as_echo "$ac_res" >&6; }
6036
6037fi
6038as_val=`eval 'as_val=${'$as_ac_Header'}
6039 $as_echo "$as_val"'`
6040 if test "x$as_val" = x""yes; then
6041 cat >>confdefs.h <<_ACEOF
6042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6043_ACEOF
6044
6045fi
6046
6047done
6048
6049
6050################################################################################
6051{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6052$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6053if test "${ac_cv_c_const+set}" = set; then
6054 $as_echo_n "(cached) " >&6
6055else
6056 cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h. */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h. */
6062
6063int
6064main ()
6065{
6066/* FIXME: Include the comments suggested by Paul. */
6067#ifndef __cplusplus
6068 /* Ultrix mips cc rejects this. */
6069 typedef int charset[2];
6070 const charset cs;
6071 /* SunOS 4.1.1 cc rejects this. */
6072 char const *const *pcpcc;
6073 char **ppc;
6074 /* NEC SVR4.0.2 mips cc rejects this. */
6075 struct point {int x, y;};
6076 static struct point const zero = {0,0};
6077 /* AIX XL C 1.02.0.0 rejects this.
6078 It does not let you subtract one const X* pointer from another in
6079 an arm of an if-expression whose if-part is not a constant
6080 expression */
6081 const char *g = "string";
6082 pcpcc = &g + (g ? g-g : 0);
6083 /* HPUX 7.0 cc rejects these. */
6084 ++pcpcc;
6085 ppc = (char**) pcpcc;
6086 pcpcc = (char const *const *) ppc;
6087 { /* SCO 3.2v4 cc rejects this. */
6088 char *t;
6089 char const *s = 0 ? (char *) 0 : (char const *) 0;
6090
6091 *t++ = 0;
6092 if (s) return 0;
6093 }
6094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6095 int x[] = {25, 17};
6096 const int *foo = &x[0];
6097 ++foo;
6098 }
6099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6100 typedef const int *iptr;
6101 iptr p = 0;
6102 ++p;
6103 }
6104 { /* AIX XL C 1.02.0.0 rejects this saying
6105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6106 struct s { int j; const int *ap[3]; };
6107 struct s *b; b->j = 5;
6108 }
6109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6110 const int foo = 10;
6111 if (!foo) return 0;
6112 }
6113 return !cs[0] && !zero.x;
6114#endif
6115
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120rm -f conftest.$ac_objext
6121if { (ac_try="$ac_compile"
6122case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125esac
6126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127$as_echo "$ac_try_echo") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
6138 ac_cv_c_const=yes
6139else
6140 $as_echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_cv_c_const=no
6144fi
6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6149$as_echo "$ac_cv_c_const" >&6; }
6150if test $ac_cv_c_const = no; then
6151
6152cat >>confdefs.h <<\_ACEOF
6153#define const /**/
6154_ACEOF
6155
6156fi
6157
6158{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6159$as_echo_n "checking for inline... " >&6; }
6160if test "${ac_cv_c_inline+set}" = set; then
6161 $as_echo_n "(cached) " >&6
6162else
6163 ac_cv_c_inline=no
6164for ac_kw in inline __inline__ __inline; do
6165 cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171#ifndef __cplusplus
6172typedef int foo_t;
6173static $ac_kw foo_t static_foo () {return 0; }
6174$ac_kw foo_t foo () {return 0; }
6175#endif
6176
6177_ACEOF
6178rm -f conftest.$ac_objext
6179if { (ac_try="$ac_compile"
6180case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
6184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6185$as_echo "$ac_try_echo") >&5
6186 (eval "$ac_compile") 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest.$ac_objext; then
6196 ac_cv_c_inline=$ac_kw
6197else
6198 $as_echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201
6202fi
6203
6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 test "$ac_cv_c_inline" != no && break
6206done
6207
6208fi
6209{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6210$as_echo "$ac_cv_c_inline" >&6; }
6211
6212
6213case $ac_cv_c_inline in
6214 inline | yes) ;;
6215 *)
6216 case $ac_cv_c_inline in
6217 no) ac_val=;;
6218 *) ac_val=$ac_cv_c_inline;;
6219 esac
6220 cat >>confdefs.h <<_ACEOF
6221#ifndef __cplusplus
6222#define inline $ac_val
6223#endif
6224_ACEOF
6225 ;;
6226esac
6227
6228{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6229$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6230if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6231 $as_echo_n "(cached) " >&6
6232else
6233 cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h. */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */
6239$ac_includes_default
6240int
6241main ()
6242{
6243static struct stat ac_aggr;
6244if (ac_aggr.st_rdev)
6245return 0;
6246 ;
6247 return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext
6251if { (ac_try="$ac_compile"
6252case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255esac
6256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6257$as_echo "$ac_try_echo") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6268 ac_cv_member_struct_stat_st_rdev=yes
6269else
6270 $as_echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 cat >conftest.$ac_ext <<_ACEOF
6274/* confdefs.h. */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h. */
6279$ac_includes_default
6280int
6281main ()
6282{
6283static struct stat ac_aggr;
6284if (sizeof ac_aggr.st_rdev)
6285return 0;
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290rm -f conftest.$ac_objext
6291if { (ac_try="$ac_compile"
6292case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6295esac
6296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6297$as_echo "$ac_try_echo") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest.$ac_objext; then
6308 ac_cv_member_struct_stat_st_rdev=yes
6309else
6310 $as_echo "$as_me: failed program was:" >&5
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 ac_cv_member_struct_stat_st_rdev=no
6314fi
6315
6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320fi
6321{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6322$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6323if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6324
6325cat >>confdefs.h <<_ACEOF
6326#define HAVE_STRUCT_STAT_ST_RDEV 1
6327_ACEOF
6328
6329
6330fi
6331
6332{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6333$as_echo_n "checking for off_t... " >&6; }
6334if test "${ac_cv_type_off_t+set}" = set; then
6335 $as_echo_n "(cached) " >&6
6336else
6337 ac_cv_type_off_t=no
6338cat >conftest.$ac_ext <<_ACEOF
6339/* confdefs.h. */
6340_ACEOF
6341cat confdefs.h >>conftest.$ac_ext
6342cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h. */
6344$ac_includes_default
6345int
6346main ()
6347{
6348if (sizeof (off_t))
6349 return 0;
6350 ;
6351 return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (ac_try="$ac_compile"
6356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
6360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6361$as_echo "$ac_try_echo") >&5
6362 (eval "$ac_compile") 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && {
6369 test -z "$ac_c_werror_flag" ||
6370 test ! -s conftest.err
6371 } && test -s conftest.$ac_objext; then
6372 cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h. */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h. */
6378$ac_includes_default
6379int
6380main ()
6381{
6382if (sizeof ((off_t)))
6383 return 0;
6384 ;
6385 return 0;
6386}
6387_ACEOF
6388rm -f conftest.$ac_objext
6389if { (ac_try="$ac_compile"
6390case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393esac
6394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6395$as_echo "$ac_try_echo") >&5
6396 (eval "$ac_compile") 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.$ac_objext; then
6406 :
6407else
6408 $as_echo "$as_me: failed program was:" >&5
6409sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 ac_cv_type_off_t=yes
6412fi
6413
6414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415else
6416 $as_echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419
6420fi
6421
6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423fi
6424{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6425$as_echo "$ac_cv_type_off_t" >&6; }
6426if test "x$ac_cv_type_off_t" = x""yes; then
6427 :
6428else
6429
6430cat >>confdefs.h <<_ACEOF
6431#define off_t long int
6432_ACEOF
6433
6434fi
6435
6436{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6437$as_echo_n "checking for pid_t... " >&6; }
6438if test "${ac_cv_type_pid_t+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6440else
6441 ac_cv_type_pid_t=no
6442cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
6448$ac_includes_default
6449int
6450main ()
6451{
6452if (sizeof (pid_t))
6453 return 0;
6454 ;
6455 return 0;
6456}
6457_ACEOF
6458rm -f conftest.$ac_objext
6459if { (ac_try="$ac_compile"
6460case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6465$as_echo "$ac_try_echo") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest.$ac_objext; then
6476 cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482$ac_includes_default
6483int
6484main ()
6485{
6486if (sizeof ((pid_t)))
6487 return 0;
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext
6493if { (ac_try="$ac_compile"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499$as_echo "$ac_try_echo") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 :
6511else
6512 $as_echo "$as_me: failed program was:" >&5
6513sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_cv_type_pid_t=yes
6516fi
6517
6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519else
6520 $as_echo "$as_me: failed program was:" >&5
6521sed 's/^/| /' conftest.$ac_ext >&5
6522
6523
6524fi
6525
6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527fi
6528{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6529$as_echo "$ac_cv_type_pid_t" >&6; }
6530if test "x$ac_cv_type_pid_t" = x""yes; then
6531 :
6532else
6533
6534cat >>confdefs.h <<_ACEOF
6535#define pid_t int
6536_ACEOF
6537
6538fi
6539
6540{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6541$as_echo_n "checking return type of signal handlers... " >&6; }
6542if test "${ac_cv_type_signal+set}" = set; then
6543 $as_echo_n "(cached) " >&6
6544else
6545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551#include <sys/types.h>
6552#include <signal.h>
6553
6554int
6555main ()
6556{
6557return *(signal (0, 0)) (0) == 1;
6558 ;
6559 return 0;
6560}
6561_ACEOF
6562rm -f conftest.$ac_objext
6563if { (ac_try="$ac_compile"
6564case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567esac
6568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6569$as_echo "$ac_try_echo") >&5
6570 (eval "$ac_compile") 2>conftest.er1
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } && {
6577 test -z "$ac_c_werror_flag" ||
6578 test ! -s conftest.err
6579 } && test -s conftest.$ac_objext; then
6580 ac_cv_type_signal=int
6581else
6582 $as_echo "$as_me: failed program was:" >&5
6583sed 's/^/| /' conftest.$ac_ext >&5
6584
6585 ac_cv_type_signal=void
6586fi
6587
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589fi
6590{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6591$as_echo "$ac_cv_type_signal" >&6; }
6592
6593cat >>confdefs.h <<_ACEOF
6594#define RETSIGTYPE $ac_cv_type_signal
6595_ACEOF
6596
6597
6598{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6599$as_echo_n "checking for size_t... " >&6; }
6600if test "${ac_cv_type_size_t+set}" = set; then
6601 $as_echo_n "(cached) " >&6
6602else
6603 ac_cv_type_size_t=no
6604cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610$ac_includes_default
6611int
6612main ()
6613{
6614if (sizeof (size_t))
6615 return 0;
6616 ;
6617 return 0;
6618}
6619_ACEOF
6620rm -f conftest.$ac_objext
6621if { (ac_try="$ac_compile"
6622case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6625esac
6626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6627$as_echo "$ac_try_echo") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 cat >conftest.$ac_ext <<_ACEOF
6639/* confdefs.h. */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h. */
6644$ac_includes_default
6645int
6646main ()
6647{
6648if (sizeof ((size_t)))
6649 return 0;
6650 ;
6651 return 0;
6652}
6653_ACEOF
6654rm -f conftest.$ac_objext
6655if { (ac_try="$ac_compile"
6656case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659esac
6660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6661$as_echo "$ac_try_echo") >&5
6662 (eval "$ac_compile") 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && {
6669 test -z "$ac_c_werror_flag" ||
6670 test ! -s conftest.err
6671 } && test -s conftest.$ac_objext; then
6672 :
ad6254c5 6673else
d911ec67
AK
6674 $as_echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6676
d911ec67 6677 ac_cv_type_size_t=yes
ad6254c5 6678fi
4922197a 6679
d911ec67 6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6681else
d911ec67
AK
6682 $as_echo "$as_me: failed program was:" >&5
6683sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6684
6685
d911ec67 6686fi
d0191583 6687
d911ec67
AK
6688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689fi
6690{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6691$as_echo "$ac_cv_type_size_t" >&6; }
6692if test "x$ac_cv_type_size_t" = x""yes; then
6693 :
6694else
d0191583 6695
d911ec67
AK
6696cat >>confdefs.h <<_ACEOF
6697#define size_t unsigned int
6698_ACEOF
d0191583 6699
d911ec67 6700fi
d0191583 6701
d911ec67
AK
6702{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6703$as_echo_n "checking for mode_t... " >&6; }
6704if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6705 $as_echo_n "(cached) " >&6
795ca3e5 6706else
d911ec67 6707 ac_cv_type_mode_t=no
ad6254c5 6708cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6709/* confdefs.h. */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h. */
6714$ac_includes_default
d911ec67
AK
6715int
6716main ()
6717{
6718if (sizeof (mode_t))
6719 return 0;
6720 ;
6721 return 0;
6722}
ad6254c5
AK
6723_ACEOF
6724rm -f conftest.$ac_objext
7a197a62
AK
6725if { (ac_try="$ac_compile"
6726case "(($ac_try" in
6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728 *) ac_try_echo=$ac_try;;
6729esac
ec6a6fbe
AK
6730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6731$as_echo "$ac_try_echo") >&5
7a197a62 6732 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6733 ac_status=$?
8a2fc586
AK
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
ec6a6fbe 6737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.$ac_objext; then
d911ec67 6742 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6743/* confdefs.h. */
6744_ACEOF
6745cat confdefs.h >>conftest.$ac_ext
6746cat >>conftest.$ac_ext <<_ACEOF
6747/* end confdefs.h. */
d911ec67
AK
6748$ac_includes_default
6749int
6750main ()
6751{
6752if (sizeof ((mode_t)))
6753 return 0;
6754 ;
6755 return 0;
6756}
ad6254c5 6757_ACEOF
d911ec67
AK
6758rm -f conftest.$ac_objext
6759if { (ac_try="$ac_compile"
7a197a62
AK
6760case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6763esac
ec6a6fbe
AK
6764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6765$as_echo "$ac_try_echo") >&5
d911ec67 6766 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
ec6a6fbe 6771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6772 (exit $ac_status); } && {
6773 test -z "$ac_c_werror_flag" ||
25fbec5b 6774 test ! -s conftest.err
d911ec67
AK
6775 } && test -s conftest.$ac_objext; then
6776 :
ad6254c5 6777else
ec6a6fbe 6778 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
d911ec67 6781 ac_cv_type_mode_t=yes
ad6254c5 6782fi
7a197a62 6783
d911ec67
AK
6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785else
6786 $as_echo "$as_me: failed program was:" >&5
6787sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6788
7a197a62 6789
80992638
AK
6790fi
6791
d911ec67 6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6793fi
d911ec67
AK
6794{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6795$as_echo "$ac_cv_type_mode_t" >&6; }
6796if test "x$ac_cv_type_mode_t" = x""yes; then
6797 :
795ca3e5 6798else
80992638 6799
d911ec67
AK
6800cat >>confdefs.h <<_ACEOF
6801#define mode_t int
6802_ACEOF
ad6254c5 6803
d911ec67 6804fi
795ca3e5 6805
d0191583 6806
d911ec67
AK
6807 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6808$as_echo_n "checking for int8_t... " >&6; }
6809if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6810 $as_echo_n "(cached) " >&6
ad6254c5 6811else
d911ec67
AK
6812 ac_cv_c_int8_t=no
6813 for ac_type in 'int8_t' 'int' 'long int' \
6814 'long long int' 'short int' 'signed char'; do
6815 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
6821$ac_includes_default
d911ec67
AK
6822int
6823main ()
6824{
6825static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6826test_array [0] = 0
6827
6828 ;
6829 return 0;
6830}
ad6254c5
AK
6831_ACEOF
6832rm -f conftest.$ac_objext
7a197a62
AK
6833if { (ac_try="$ac_compile"
6834case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837esac
ec6a6fbe
AK
6838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6839$as_echo "$ac_try_echo") >&5
7a197a62 6840 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6841 ac_status=$?
8a2fc586
AK
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
ec6a6fbe 6845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest.$ac_objext; then
d911ec67 6850 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
d911ec67
AK
6856$ac_includes_default
6857int
6858main ()
6859{
6860static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6861 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6862test_array [0] = 0
6863
6864 ;
6865 return 0;
6866}
ad6254c5 6867_ACEOF
d911ec67
AK
6868rm -f conftest.$ac_objext
6869if { (ac_try="$ac_compile"
7a197a62
AK
6870case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6873esac
ec6a6fbe
AK
6874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6875$as_echo "$ac_try_echo") >&5
d911ec67 6876 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
ec6a6fbe 6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
25fbec5b 6884 test ! -s conftest.err
d911ec67
AK
6885 } && test -s conftest.$ac_objext; then
6886 :
ad6254c5 6887else
ec6a6fbe 6888 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
d911ec67
AK
6891 case $ac_type in
6892 int8_t) ac_cv_c_int8_t=yes ;;
6893 *) ac_cv_c_int8_t=$ac_type ;;
6894esac
ad6254c5 6895
d911ec67 6896fi
7a197a62 6897
d911ec67 6898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6899else
d911ec67
AK
6900 $as_echo "$as_me: failed program was:" >&5
6901sed 's/^/| /' conftest.$ac_ext >&5
6902
b896caa1 6903
ad6254c5 6904fi
ad6254c5 6905
d911ec67
AK
6906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 test "$ac_cv_c_int8_t" != no && break
6908 done
80992638 6909fi
d911ec67
AK
6910{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6911$as_echo "$ac_cv_c_int8_t" >&6; }
6912 case $ac_cv_c_int8_t in #(
6913 no|yes) ;; #(
6914 *)
80992638 6915
d911ec67
AK
6916cat >>confdefs.h <<_ACEOF
6917#define int8_t $ac_cv_c_int8_t
6918_ACEOF
6919;;
6920 esac
d0191583 6921
d3c8211f 6922
d911ec67
AK
6923 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6924$as_echo_n "checking for int16_t... " >&6; }
6925if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6926 $as_echo_n "(cached) " >&6
d3c8211f 6927else
d911ec67
AK
6928 ac_cv_c_int16_t=no
6929 for ac_type in 'int16_t' 'int' 'long int' \
6930 'long long int' 'short int' 'signed char'; do
6931 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
d911ec67 6937$ac_includes_default
ad6254c5
AK
6938int
6939main ()
6940{
d911ec67
AK
6941static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6942test_array [0] = 0
ad6254c5
AK
6943
6944 ;
6945 return 0;
6946}
6947_ACEOF
6948rm -f conftest.$ac_objext
7a197a62
AK
6949if { (ac_try="$ac_compile"
6950case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953esac
ec6a6fbe
AK
6954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955$as_echo "$ac_try_echo") >&5
7a197a62 6956 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6957 ac_status=$?
8a2fc586
AK
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
ec6a6fbe 6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
ad6254c5 6966 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6967/* confdefs.h. */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */
d911ec67
AK
6972$ac_includes_default
6973int
6974main ()
6975{
6976static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6977 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6978test_array [0] = 0
80992638 6979
d911ec67
AK
6980 ;
6981 return 0;
6982}
ad6254c5
AK
6983_ACEOF
6984rm -f conftest.$ac_objext
7a197a62
AK
6985if { (ac_try="$ac_compile"
6986case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989esac
ec6a6fbe
AK
6990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6991$as_echo "$ac_try_echo") >&5
7a197a62 6992 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6993 ac_status=$?
8a2fc586
AK
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
ec6a6fbe 6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6998 (exit $ac_status); } && {
6999 test -z "$ac_c_werror_flag" ||
7000 test ! -s conftest.err
7001 } && test -s conftest.$ac_objext; then
d911ec67 7002 :
ad6254c5 7003else
ec6a6fbe 7004 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7005sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7006
d911ec67
AK
7007 case $ac_type in
7008 int16_t) ac_cv_c_int16_t=yes ;;
7009 *) ac_cv_c_int16_t=$ac_type ;;
7010esac
7a197a62 7011
8ce0cbda 7012fi
7a197a62
AK
7013
7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7015else
7016 $as_echo "$as_me: failed program was:" >&5
7017sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7018
8a2fc586 7019
d911ec67 7020fi
8a2fc586 7021
d911ec67
AK
7022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 test "$ac_cv_c_int16_t" != no && break
7024 done
7025fi
7026{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7027$as_echo "$ac_cv_c_int16_t" >&6; }
7028 case $ac_cv_c_int16_t in #(
7029 no|yes) ;; #(
8a2fc586 7030 *)
d911ec67
AK
7031
7032cat >>confdefs.h <<_ACEOF
7033#define int16_t $ac_cv_c_int16_t
c1c065a3 7034_ACEOF
d911ec67
AK
7035;;
7036 esac
d0191583 7037
d911ec67
AK
7038
7039 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7040$as_echo_n "checking for int32_t... " >&6; }
7041if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7042 $as_echo_n "(cached) " >&6
d0191583 7043else
d911ec67
AK
7044 ac_cv_c_int32_t=no
7045 for ac_type in 'int32_t' 'int' 'long int' \
7046 'long long int' 'short int' 'signed char'; do
7047 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7048/* confdefs.h. */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h. */
7053$ac_includes_default
7054int
7055main ()
7056{
d911ec67
AK
7057static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7058test_array [0] = 0
7059
d0191583
JM
7060 ;
7061 return 0;
7062}
7063_ACEOF
7064rm -f conftest.$ac_objext
7065if { (ac_try="$ac_compile"
7066case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069esac
ec6a6fbe
AK
7070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7071$as_echo "$ac_try_echo") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
d911ec67 7082 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7083/* confdefs.h. */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h. */
7088$ac_includes_default
7089int
7090main ()
7091{
d911ec67
AK
7092static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7093 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7094test_array [0] = 0
7095
ec6a6fbe
AK
7096 ;
7097 return 0;
7098}
7099_ACEOF
7100rm -f conftest.$ac_objext
7101if { (ac_try="$ac_compile"
7102case "(($ac_try" in
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7105esac
7106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7107$as_echo "$ac_try_echo") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
d911ec67 7118 :
ec6a6fbe
AK
7119else
7120 $as_echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
d911ec67
AK
7123 case $ac_type in
7124 int32_t) ac_cv_c_int32_t=yes ;;
7125 *) ac_cv_c_int32_t=$ac_type ;;
7126esac
7127
ec6a6fbe
AK
7128fi
7129
7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7131else
7132 $as_echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135
ec6a6fbe
AK
7136fi
7137
7138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7139 test "$ac_cv_c_int32_t" != no && break
7140 done
ec6a6fbe 7141fi
d911ec67
AK
7142{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7143$as_echo "$ac_cv_c_int32_t" >&6; }
7144 case $ac_cv_c_int32_t in #(
7145 no|yes) ;; #(
7146 *)
ec6a6fbe
AK
7147
7148cat >>confdefs.h <<_ACEOF
d911ec67 7149#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7150_ACEOF
d911ec67
AK
7151;;
7152 esac
ec6a6fbe
AK
7153
7154
d911ec67
AK
7155 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7156$as_echo_n "checking for int64_t... " >&6; }
7157if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7158 $as_echo_n "(cached) " >&6
7159else
d911ec67
AK
7160 ac_cv_c_int64_t=no
7161 for ac_type in 'int64_t' 'int' 'long int' \
7162 'long long int' 'short int' 'signed char'; do
7163 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7164/* confdefs.h. */
7165_ACEOF
7166cat confdefs.h >>conftest.$ac_ext
7167cat >>conftest.$ac_ext <<_ACEOF
7168/* end confdefs.h. */
7169$ac_includes_default
7170int
7171main ()
7172{
d911ec67
AK
7173static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7174test_array [0] = 0
7175
ec6a6fbe
AK
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180rm -f conftest.$ac_objext
7181if { (ac_try="$ac_compile"
7182case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185esac
7186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187$as_echo "$ac_try_echo") >&5
7188 (eval "$ac_compile") 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest.$ac_objext; then
7198 cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h. */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h. */
7204$ac_includes_default
7205int
7206main ()
7207{
d911ec67
AK
7208static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7209 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7210test_array [0] = 0
7211
ec6a6fbe
AK
7212 ;
7213 return 0;
7214}
7215_ACEOF
7216rm -f conftest.$ac_objext
7217if { (ac_try="$ac_compile"
7218case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221esac
7222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7223$as_echo "$ac_try_echo") >&5
7224 (eval "$ac_compile") 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && {
7231 test -z "$ac_c_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest.$ac_objext; then
7234 :
7235else
7236 $as_echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
d911ec67
AK
7239 case $ac_type in
7240 int64_t) ac_cv_c_int64_t=yes ;;
7241 *) ac_cv_c_int64_t=$ac_type ;;
7242esac
7243
ec6a6fbe
AK
7244fi
7245
7246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247else
7248 $as_echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251
7252fi
7253
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7255 test "$ac_cv_c_int64_t" != no && break
7256 done
ec6a6fbe 7257fi
d911ec67
AK
7258{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7259$as_echo "$ac_cv_c_int64_t" >&6; }
7260 case $ac_cv_c_int64_t in #(
7261 no|yes) ;; #(
7262 *)
ec6a6fbe
AK
7263
7264cat >>confdefs.h <<_ACEOF
d911ec67 7265#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7266_ACEOF
d911ec67
AK
7267;;
7268 esac
ec6a6fbe 7269
d911ec67
AK
7270{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7271$as_echo_n "checking for ssize_t... " >&6; }
7272if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7273 $as_echo_n "(cached) " >&6
7274else
d911ec67 7275 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7276cat >conftest.$ac_ext <<_ACEOF
7277/* confdefs.h. */
7278_ACEOF
7279cat confdefs.h >>conftest.$ac_ext
7280cat >>conftest.$ac_ext <<_ACEOF
7281/* end confdefs.h. */
7282$ac_includes_default
7283int
7284main ()
7285{
d911ec67 7286if (sizeof (ssize_t))
ec6a6fbe
AK
7287 return 0;
7288 ;
7289 return 0;
7290}
7291_ACEOF
7292rm -f conftest.$ac_objext
7293if { (ac_try="$ac_compile"
7294case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297esac
7298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299$as_echo "$ac_try_echo") >&5
d0191583
JM
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
ec6a6fbe 7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
ec6a6fbe 7310 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7311/* confdefs.h. */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h. */
7316$ac_includes_default
7317int
7318main ()
7319{
d911ec67 7320if (sizeof ((ssize_t)))
ec6a6fbe 7321 return 0;
d0191583
JM
7322 ;
7323 return 0;
7324}
7325_ACEOF
7326rm -f conftest.$ac_objext
7327if { (ac_try="$ac_compile"
7328case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331esac
ec6a6fbe
AK
7332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7333$as_echo "$ac_try_echo") >&5
d0191583
JM
7334 (eval "$ac_compile") 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
ec6a6fbe 7339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest.$ac_objext; then
ec6a6fbe 7344 :
d0191583 7345else
ec6a6fbe 7346 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7347sed 's/^/| /' conftest.$ac_ext >&5
7348
d911ec67 7349 ac_cv_type_ssize_t=yes
d0191583
JM
7350fi
7351
7352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7353else
7354 $as_echo "$as_me: failed program was:" >&5
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
7357
d0191583
JM
7358fi
7359
7360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361fi
d911ec67
AK
7362{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7363$as_echo "$ac_cv_type_ssize_t" >&6; }
7364if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7365 :
7366else
d0191583
JM
7367
7368cat >>confdefs.h <<_ACEOF
d911ec67 7369#define ssize_t int
d0191583
JM
7370_ACEOF
7371
d0191583 7372fi
8ce0cbda 7373
d911ec67
AK
7374{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7375$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7376if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7377 $as_echo_n "(cached) " >&6
ad6254c5 7378else
b145d876
ZK
7379 cat >conftest.$ac_ext <<_ACEOF
7380/* confdefs.h. */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h. */
ec6a6fbe 7385#include <sys/types.h>
ec6a6fbe 7386
ad6254c5 7387_ACEOF
d911ec67
AK
7388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7389 $EGREP "uid_t" >/dev/null 2>&1; then
7390 ac_cv_type_uid_t=yes
b145d876 7391else
d911ec67 7392 ac_cv_type_uid_t=no
ad6254c5 7393fi
d911ec67 7394rm -f conftest*
b145d876 7395
b145d876 7396fi
d911ec67
AK
7397{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7398$as_echo "$ac_cv_type_uid_t" >&6; }
7399if test $ac_cv_type_uid_t = no; then
80992638 7400
d911ec67
AK
7401cat >>confdefs.h <<\_ACEOF
7402#define uid_t int
ad6254c5 7403_ACEOF
199e490e 7404
b896caa1 7405
d911ec67
AK
7406cat >>confdefs.h <<\_ACEOF
7407#define gid_t int
7408_ACEOF
7409
7410fi
7411
7412
7413 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7414$as_echo_n "checking for uint8_t... " >&6; }
7415if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7416 $as_echo_n "(cached) " >&6
ad6254c5 7417else
d911ec67
AK
7418 ac_cv_c_uint8_t=no
7419 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7420 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7421 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7422/* confdefs.h. */
7423_ACEOF
7424cat confdefs.h >>conftest.$ac_ext
7425cat >>conftest.$ac_ext <<_ACEOF
7426/* end confdefs.h. */
7427$ac_includes_default
7428int
7429main ()
7430{
d911ec67
AK
7431static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7432test_array [0] = 0
7433
ad6254c5
AK
7434 ;
7435 return 0;
7436}
7437_ACEOF
7438rm -f conftest.$ac_objext
7a197a62
AK
7439if { (ac_try="$ac_compile"
7440case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443esac
ec6a6fbe
AK
7444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7445$as_echo "$ac_try_echo") >&5
7a197a62 7446 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7447 ac_status=$?
8a2fc586
AK
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
ec6a6fbe 7451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest.$ac_objext; then
d911ec67
AK
7456 case $ac_type in
7457 uint8_t) ac_cv_c_uint8_t=yes ;;
7458 *) ac_cv_c_uint8_t=$ac_type ;;
7459esac
7460
7461else
7462 $as_echo "$as_me: failed program was:" >&5
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
7465
7466fi
7467
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 test "$ac_cv_c_uint8_t" != no && break
7470 done
7471fi
7472{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7473$as_echo "$ac_cv_c_uint8_t" >&6; }
7474 case $ac_cv_c_uint8_t in #(
7475 no|yes) ;; #(
7476 *)
7477
7478cat >>confdefs.h <<\_ACEOF
7479#define _UINT8_T 1
7480_ACEOF
7481
7482
7483cat >>confdefs.h <<_ACEOF
7484#define uint8_t $ac_cv_c_uint8_t
7485_ACEOF
7486;;
7487 esac
7488
7489
7490 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7491$as_echo_n "checking for uint16_t... " >&6; }
7492if test "${ac_cv_c_uint16_t+set}" = set; then
7493 $as_echo_n "(cached) " >&6
7494else
7495 ac_cv_c_uint16_t=no
7496 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7497 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7498 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7499/* confdefs.h. */
7500_ACEOF
7501cat confdefs.h >>conftest.$ac_ext
7502cat >>conftest.$ac_ext <<_ACEOF
7503/* end confdefs.h. */
ec6a6fbe 7504$ac_includes_default
d0191583
JM
7505int
7506main ()
7507{
d911ec67
AK
7508static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7509test_array [0] = 0
7510
d0191583
JM
7511 ;
7512 return 0;
7513}
7514_ACEOF
7515rm -f conftest.$ac_objext
7516if { (ac_try="$ac_compile"
7517case "(($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
d0191583
JM
7523 (eval "$ac_compile") 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
ec6a6fbe 7528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
d911ec67
AK
7533 case $ac_type in
7534 uint16_t) ac_cv_c_uint16_t=yes ;;
7535 *) ac_cv_c_uint16_t=$ac_type ;;
7536esac
ec6a6fbe 7537
ec6a6fbe
AK
7538else
7539 $as_echo "$as_me: failed program was:" >&5
7540sed 's/^/| /' conftest.$ac_ext >&5
7541
7542
d0191583
JM
7543fi
7544
7545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7546 test "$ac_cv_c_uint16_t" != no && break
7547 done
d0191583 7548fi
d911ec67
AK
7549{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7550$as_echo "$ac_cv_c_uint16_t" >&6; }
7551 case $ac_cv_c_uint16_t in #(
7552 no|yes) ;; #(
7553 *)
7554
d0191583
JM
7555
7556cat >>confdefs.h <<_ACEOF
d911ec67 7557#define uint16_t $ac_cv_c_uint16_t
d0191583 7558_ACEOF
d911ec67
AK
7559;;
7560 esac
d0191583
JM
7561
7562
d911ec67
AK
7563 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7564$as_echo_n "checking for uint32_t... " >&6; }
7565if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7566 $as_echo_n "(cached) " >&6
8106cdd5 7567else
d911ec67
AK
7568 ac_cv_c_uint32_t=no
7569 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7570 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7571 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7572/* confdefs.h. */
7573_ACEOF
7574cat confdefs.h >>conftest.$ac_ext
7575cat >>conftest.$ac_ext <<_ACEOF
7576/* end confdefs.h. */
7577$ac_includes_default
7578int
7579main ()
7580{
d911ec67
AK
7581static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7582test_array [0] = 0
7583
ad6254c5
AK
7584 ;
7585 return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext
7a197a62
AK
7589if { (ac_try="$ac_compile"
7590case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593esac
ec6a6fbe
AK
7594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7595$as_echo "$ac_try_echo") >&5
7a197a62 7596 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7597 ac_status=$?
8a2fc586
AK
7598 grep -v '^ *+' conftest.er1 >conftest.err
7599 rm -f conftest.er1
7600 cat conftest.err >&5
ec6a6fbe 7601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7602 (exit $ac_status); } && {
7603 test -z "$ac_c_werror_flag" ||
7604 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then
d911ec67
AK
7606 case $ac_type in
7607 uint32_t) ac_cv_c_uint32_t=yes ;;
7608 *) ac_cv_c_uint32_t=$ac_type ;;
7609esac
7610
7611else
7612 $as_echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615
7616fi
7617
7618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 test "$ac_cv_c_uint32_t" != no && break
7620 done
7621fi
7622{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7623$as_echo "$ac_cv_c_uint32_t" >&6; }
7624 case $ac_cv_c_uint32_t in #(
7625 no|yes) ;; #(
7626 *)
7627
7628cat >>confdefs.h <<\_ACEOF
7629#define _UINT32_T 1
7630_ACEOF
7631
7632
7633cat >>confdefs.h <<_ACEOF
7634#define uint32_t $ac_cv_c_uint32_t
7635_ACEOF
7636;;
7637 esac
7638
7639
7640 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7641$as_echo_n "checking for uint64_t... " >&6; }
7642if test "${ac_cv_c_uint64_t+set}" = set; then
7643 $as_echo_n "(cached) " >&6
7644else
7645 ac_cv_c_uint64_t=no
7646 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7647 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7648 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7649/* confdefs.h. */
7650_ACEOF
7651cat confdefs.h >>conftest.$ac_ext
7652cat >>conftest.$ac_ext <<_ACEOF
7653/* end confdefs.h. */
7654$ac_includes_default
7655int
7656main ()
7657{
d911ec67
AK
7658static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7659test_array [0] = 0
7660
ad6254c5
AK
7661 ;
7662 return 0;
7663}
7664_ACEOF
7665rm -f conftest.$ac_objext
7a197a62
AK
7666if { (ac_try="$ac_compile"
7667case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670esac
ec6a6fbe
AK
7671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672$as_echo "$ac_try_echo") >&5
7a197a62 7673 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7674 ac_status=$?
8a2fc586
AK
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
ec6a6fbe 7678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
d911ec67
AK
7683 case $ac_type in
7684 uint64_t) ac_cv_c_uint64_t=yes ;;
7685 *) ac_cv_c_uint64_t=$ac_type ;;
7686esac
ec6a6fbe 7687
fddafd51 7688else
ec6a6fbe 7689 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7690sed 's/^/| /' conftest.$ac_ext >&5
7691
ec6a6fbe 7692
80992638 7693fi
7a197a62
AK
7694
7695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7696 test "$ac_cv_c_uint64_t" != no && break
7697 done
ad6254c5 7698fi
d911ec67
AK
7699{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7700$as_echo "$ac_cv_c_uint64_t" >&6; }
7701 case $ac_cv_c_uint64_t in #(
7702 no|yes) ;; #(
7703 *)
80992638 7704
d911ec67
AK
7705cat >>confdefs.h <<\_ACEOF
7706#define _UINT64_T 1
ad6254c5
AK
7707_ACEOF
7708
d911ec67
AK
7709
7710cat >>confdefs.h <<_ACEOF
7711#define uint64_t $ac_cv_c_uint64_t
7712_ACEOF
7713;;
7714 esac
ad6254c5 7715
ec6a6fbe
AK
7716{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7717$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7718if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7719 $as_echo_n "(cached) " >&6
ad6254c5
AK
7720else
7721 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7722/* confdefs.h. */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h. */
7727$ac_includes_default
7728int
7729main ()
7730{
7731static struct stat ac_aggr;
7732if (ac_aggr.st_rdev)
7733return 0;
7734 ;
7735 return 0;
7736}
7737_ACEOF
7738rm -f conftest.$ac_objext
7a197a62
AK
7739if { (ac_try="$ac_compile"
7740case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743esac
ec6a6fbe
AK
7744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7745$as_echo "$ac_try_echo") >&5
7a197a62 7746 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7747 ac_status=$?
8a2fc586
AK
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
ec6a6fbe 7751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7756 ac_cv_member_struct_stat_st_rdev=yes
7757else
ec6a6fbe 7758 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7a197a62 7761 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7762/* confdefs.h. */
7763_ACEOF
7764cat confdefs.h >>conftest.$ac_ext
7765cat >>conftest.$ac_ext <<_ACEOF
7766/* end confdefs.h. */
7767$ac_includes_default
7768int
7769main ()
7770{
7771static struct stat ac_aggr;
7772if (sizeof ac_aggr.st_rdev)
7773return 0;
7774 ;
7775 return 0;
7776}
7777_ACEOF
7778rm -f conftest.$ac_objext
7a197a62
AK
7779if { (ac_try="$ac_compile"
7780case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7783esac
ec6a6fbe
AK
7784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7785$as_echo "$ac_try_echo") >&5
7a197a62 7786 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7787 ac_status=$?
8a2fc586
AK
7788 grep -v '^ *+' conftest.er1 >conftest.err
7789 rm -f conftest.er1
7790 cat conftest.err >&5
ec6a6fbe 7791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7792 (exit $ac_status); } && {
7793 test -z "$ac_c_werror_flag" ||
7794 test ! -s conftest.err
7795 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7796 ac_cv_member_struct_stat_st_rdev=yes
7797else
ec6a6fbe 7798 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7799sed 's/^/| /' conftest.$ac_ext >&5
7800
7a197a62 7801 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7802fi
7a197a62
AK
7803
7804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7805fi
7a197a62
AK
7806
7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7808fi
ec6a6fbe
AK
7809{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7810$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7811if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7812
7813cat >>confdefs.h <<_ACEOF
7814#define HAVE_STRUCT_STAT_ST_RDEV 1
7815_ACEOF
7816
7817
ad6254c5
AK
7818fi
7819
ec6a6fbe
AK
7820{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7821$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7822if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7823 $as_echo_n "(cached) " >&6
ad6254c5
AK
7824else
7825 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7826/* confdefs.h. */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h. */
7831#include <sys/types.h>
7832#include <time.h>
7833
7834int
7835main ()
7836{
25fbec5b
AK
7837struct tm tm;
7838 int *p = &tm.tm_sec;
ec6a6fbe 7839 return !p;
ad6254c5
AK
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest.$ac_objext
7a197a62
AK
7845if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 7853 ac_status=$?
8a2fc586
AK
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
ec6a6fbe 7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
d911ec67
AK
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_struct_tm=time.h
7863else
7864 $as_echo "$as_me: failed program was:" >&5
7865sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 ac_cv_struct_tm=sys/time.h
7868fi
7869
7870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871fi
7872{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7873$as_echo "$ac_cv_struct_tm" >&6; }
7874if test $ac_cv_struct_tm = sys/time.h; then
7875
7876cat >>confdefs.h <<\_ACEOF
7877#define TM_IN_SYS_TIME 1
7878_ACEOF
7879
7880fi
7881
7882
7883################################################################################
7884{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7885$as_echo_n "checking for library containing floor... " >&6; }
7886if test "${ac_cv_search_floor+set}" = set; then
7887 $as_echo_n "(cached) " >&6
7888else
7889 ac_func_search_save_LIBS=$LIBS
7890cat >conftest.$ac_ext <<_ACEOF
7891/* confdefs.h. */
7892_ACEOF
7893cat confdefs.h >>conftest.$ac_ext
7894cat >>conftest.$ac_ext <<_ACEOF
7895/* end confdefs.h. */
7896
7897/* Override any GCC internal prototype to avoid an error.
7898 Use char because int might match the return type of a GCC
7899 builtin and then its argument prototype would still apply. */
7900#ifdef __cplusplus
7901extern "C"
7902#endif
7903char floor ();
7904int
7905main ()
7906{
7907return floor ();
7908 ;
7909 return 0;
7910}
7911_ACEOF
7912for ac_lib in '' m; do
7913 if test -z "$ac_lib"; then
7914 ac_res="none required"
7915 else
7916 ac_res=-l$ac_lib
7917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7918 fi
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920if { (ac_try="$ac_link"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926$as_echo "$ac_try_echo") >&5
7927 (eval "$ac_link") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest$ac_exeext && {
7937 test "$cross_compiling" = yes ||
7938 $as_test_x conftest$ac_exeext
7939 }; then
7940 ac_cv_search_floor=$ac_res
ad6254c5 7941else
ec6a6fbe 7942 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7a197a62 7945
ad6254c5 7946fi
ad6254c5 7947
d911ec67
AK
7948rm -rf conftest.dSYM
7949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7950 conftest$ac_exeext
7951 if test "${ac_cv_search_floor+set}" = set; then
7952 break
7953fi
7954done
7955if test "${ac_cv_search_floor+set}" = set; then
7956 :
7957else
7958 ac_cv_search_floor=no
7959fi
7960rm conftest.$ac_ext
7961LIBS=$ac_func_search_save_LIBS
7962fi
7963{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7964$as_echo "$ac_cv_search_floor" >&6; }
7965ac_res=$ac_cv_search_floor
7966if test "$ac_res" != no; then
7967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7968
d911ec67
AK
7969else
7970 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7971$as_echo "$as_me: error: bailing out" >&2;}
7972 { (exit 1); exit 1; }; }
ad6254c5 7973fi
809fae91 7974
795ca3e5 7975
ad6254c5
AK
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
d0191583
JM
7990
7991
7992
d911ec67
AK
7993
7994
7995
7996
7997
7998
7999
8000for ac_func in floor ftruncate gethostname getpagesize \
8001 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8002 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8003 strstr strtol strtoul uname
ad6254c5 8004do
ec6a6fbe
AK
8005as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8006{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8007$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8009 $as_echo_n "(cached) " >&6
795ca3e5 8010else
ad6254c5 8011 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8012/* confdefs.h. */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h. */
8a2fc586
AK
8017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8019#define $ac_func innocuous_$ac_func
8020
ad6254c5
AK
8021/* System header to define __stub macros and hopefully few prototypes,
8022 which can conflict with char $ac_func (); below.
8023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8024 <limits.h> exists even on freestanding compilers. */
8a2fc586 8025
ad6254c5
AK
8026#ifdef __STDC__
8027# include <limits.h>
8028#else
8029# include <assert.h>
8030#endif
8a2fc586
AK
8031
8032#undef $ac_func
8033
7a197a62
AK
8034/* Override any GCC internal prototype to avoid an error.
8035 Use char because int might match the return type of a GCC
8036 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8037#ifdef __cplusplus
8038extern "C"
ad6254c5 8039#endif
ad6254c5
AK
8040char $ac_func ();
8041/* The GNU C library defines this for functions which it implements
8042 to always fail with ENOSYS. Some functions are actually named
8043 something starting with __ and the normal name is an alias. */
7a197a62 8044#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8045choke me
ad6254c5
AK
8046#endif
8047
8048int
8049main ()
8050{
7a197a62 8051return $ac_func ();
ad6254c5
AK
8052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8057if { (ac_try="$ac_link"
8058case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061esac
ec6a6fbe
AK
8062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8063$as_echo "$ac_try_echo") >&5
7a197a62 8064 (eval "$ac_link") 2>conftest.er1
ad6254c5 8065 ac_status=$?
8a2fc586
AK
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
ec6a6fbe 8069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
ec6a6fbe
AK
8073 } && test -s conftest$ac_exeext && {
8074 test "$cross_compiling" = yes ||
8075 $as_test_x conftest$ac_exeext
8076 }; then
fc54be10
AK
8077 eval "$as_ac_var=yes"
8078else
ec6a6fbe 8079 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 eval "$as_ac_var=no"
8083fi
8084
ec6a6fbe 8085rm -rf conftest.dSYM
25fbec5b 8086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8087 conftest$ac_exeext conftest.$ac_ext
8088fi
ec6a6fbe
AK
8089ac_res=`eval 'as_val=${'$as_ac_var'}
8090 $as_echo "$as_val"'`
8091 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8092$as_echo "$ac_res" >&6; }
8093as_val=`eval 'as_val=${'$as_ac_var'}
8094 $as_echo "$as_val"'`
8095 if test "x$as_val" = x""yes; then
ad6254c5 8096 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8097#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8098_ACEOF
8099
8100else
ec6a6fbe
AK
8101 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8102$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8103 { (exit 1); exit 1; }; }
8104fi
8105done
795ca3e5 8106
a0f9708e
AK
8107
8108for ac_func in siginterrupt
8109do
8110as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8111{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8112$as_echo_n "checking for $ac_func... " >&6; }
8113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8114 $as_echo_n "(cached) " >&6
8115else
8116 cat >conftest.$ac_ext <<_ACEOF
8117/* confdefs.h. */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h. */
8122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8124#define $ac_func innocuous_$ac_func
8125
8126/* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char $ac_func (); below.
8128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129 <limits.h> exists even on freestanding compilers. */
8130
8131#ifdef __STDC__
8132# include <limits.h>
8133#else
8134# include <assert.h>
8135#endif
8136
8137#undef $ac_func
8138
8139/* Override any GCC internal prototype to avoid an error.
8140 Use char because int might match the return type of a GCC
8141 builtin and then its argument prototype would still apply. */
8142#ifdef __cplusplus
8143extern "C"
8144#endif
8145char $ac_func ();
8146/* The GNU C library defines this for functions which it implements
8147 to always fail with ENOSYS. Some functions are actually named
8148 something starting with __ and the normal name is an alias. */
8149#if defined __stub_$ac_func || defined __stub___$ac_func
8150choke me
8151#endif
8152
8153int
8154main ()
8155{
8156return $ac_func ();
8157 ;
8158 return 0;
8159}
8160_ACEOF
8161rm -f conftest.$ac_objext conftest$ac_exeext
8162if { (ac_try="$ac_link"
8163case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168$as_echo "$ac_try_echo") >&5
8169 (eval "$ac_link") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest$ac_exeext && {
8179 test "$cross_compiling" = yes ||
8180 $as_test_x conftest$ac_exeext
8181 }; then
8182 eval "$as_ac_var=yes"
8183else
8184 $as_echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 eval "$as_ac_var=no"
8188fi
8189
8190rm -rf conftest.dSYM
8191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8192 conftest$ac_exeext conftest.$ac_ext
8193fi
8194ac_res=`eval 'as_val=${'$as_ac_var'}
8195 $as_echo "$as_val"'`
8196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8197$as_echo "$ac_res" >&6; }
8198as_val=`eval 'as_val=${'$as_ac_var'}
8199 $as_echo "$as_val"'`
8200 if test "x$as_val" = x""yes; then
8201 cat >>confdefs.h <<_ACEOF
8202#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8203_ACEOF
8204
8205fi
8206done
8207
ad6254c5
AK
8208# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8209# for constant arguments. Useless!
ec6a6fbe
AK
8210{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8211$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8212if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8213 $as_echo_n "(cached) " >&6
ad6254c5
AK
8214else
8215 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
8221#include <alloca.h>
8222int
8223main ()
8224{
8225char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8226 if (p) return 0;
ad6254c5
AK
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8232if { (ac_try="$ac_link"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
ec6a6fbe
AK
8237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8238$as_echo "$ac_try_echo") >&5
7a197a62 8239 (eval "$ac_link") 2>conftest.er1
ad6254c5 8240 ac_status=$?
8a2fc586
AK
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
ec6a6fbe 8244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
ec6a6fbe
AK
8248 } && test -s conftest$ac_exeext && {
8249 test "$cross_compiling" = yes ||
8250 $as_test_x conftest$ac_exeext
8251 }; then
ad6254c5
AK
8252 ac_cv_working_alloca_h=yes
8253else
ec6a6fbe 8254 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8255sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8256
7a197a62 8257 ac_cv_working_alloca_h=no
ad6254c5 8258fi
7a197a62 8259
ec6a6fbe 8260rm -rf conftest.dSYM
25fbec5b 8261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8262 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8263fi
ec6a6fbe
AK
8264{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8265$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8266if test $ac_cv_working_alloca_h = yes; then
8267
8268cat >>confdefs.h <<\_ACEOF
8269#define HAVE_ALLOCA_H 1
8270_ACEOF
8271
8272fi
8273
ec6a6fbe
AK
8274{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8275$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8276if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8277 $as_echo_n "(cached) " >&6
ad6254c5
AK
8278else
8279 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8280/* confdefs.h. */
8281_ACEOF
8282cat confdefs.h >>conftest.$ac_ext
8283cat >>conftest.$ac_ext <<_ACEOF
8284/* end confdefs.h. */
8285#ifdef __GNUC__
8286# define alloca __builtin_alloca
8287#else
8288# ifdef _MSC_VER
8289# include <malloc.h>
8290# define alloca _alloca
8291# else
25fbec5b 8292# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8293# include <alloca.h>
8294# else
8295# ifdef _AIX
8296 #pragma alloca
8297# else
8298# ifndef alloca /* predefined by HP cc +Olibcalls */
8299char *alloca ();
8300# endif
8301# endif
8302# endif
8303# endif
8304#endif
8305
8306int
8307main ()
8308{
8309char *p = (char *) alloca (1);
7a197a62 8310 if (p) return 0;
ad6254c5
AK
8311 ;
8312 return 0;
8313}
8314_ACEOF
8315rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8316if { (ac_try="$ac_link"
8317case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320esac
ec6a6fbe
AK
8321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8322$as_echo "$ac_try_echo") >&5
7a197a62 8323 (eval "$ac_link") 2>conftest.er1
ad6254c5 8324 ac_status=$?
8a2fc586
AK
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
ec6a6fbe 8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
ec6a6fbe
AK
8332 } && test -s conftest$ac_exeext && {
8333 test "$cross_compiling" = yes ||
8334 $as_test_x conftest$ac_exeext
8335 }; then
ad6254c5
AK
8336 ac_cv_func_alloca_works=yes
8337else
ec6a6fbe 8338 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8339sed 's/^/| /' conftest.$ac_ext >&5
8340
7a197a62 8341 ac_cv_func_alloca_works=no
ad6254c5 8342fi
7a197a62 8343
ec6a6fbe 8344rm -rf conftest.dSYM
25fbec5b 8345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8346 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8347fi
ec6a6fbe
AK
8348{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8349$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8350
8351if test $ac_cv_func_alloca_works = yes; then
8352
8353cat >>confdefs.h <<\_ACEOF
8354#define HAVE_ALLOCA 1
8355_ACEOF
8356
8357else
8358 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8359# that cause trouble. Some versions do not even contain alloca or
8360# contain a buggy version. If you still want to use their alloca,
8361# use ar to extract alloca.o from them instead of compiling alloca.c.
8362
7a197a62 8363ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8364
8365cat >>confdefs.h <<\_ACEOF
8366#define C_ALLOCA 1
8367_ACEOF
8368
8369
ec6a6fbe
AK
8370{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8371$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8372if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8373 $as_echo_n "(cached) " >&6
ad6254c5
AK
8374else
8375 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8376/* confdefs.h. */
8377_ACEOF
8378cat confdefs.h >>conftest.$ac_ext
8379cat >>conftest.$ac_ext <<_ACEOF
8380/* end confdefs.h. */
7a197a62 8381#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8382webecray
8383#else
8384wenotbecray
8385#endif
8386
8387_ACEOF
795ca3e5 8388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8389 $EGREP "webecray" >/dev/null 2>&1; then
8390 ac_cv_os_cray=yes
8391else
8392 ac_cv_os_cray=no
795ca3e5
AK
8393fi
8394rm -f conftest*
8395
795ca3e5 8396fi
ec6a6fbe
AK
8397{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8398$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8399if test $ac_cv_os_cray = yes; then
8400 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8402{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8403$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8404if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8405 $as_echo_n "(cached) " >&6
ad6254c5
AK
8406else
8407 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8408/* confdefs.h. */
8409_ACEOF
8410cat confdefs.h >>conftest.$ac_ext
8411cat >>conftest.$ac_ext <<_ACEOF
8412/* end confdefs.h. */
8a2fc586
AK
8413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8415#define $ac_func innocuous_$ac_func
8416
ad6254c5
AK
8417/* System header to define __stub macros and hopefully few prototypes,
8418 which can conflict with char $ac_func (); below.
8419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8420 <limits.h> exists even on freestanding compilers. */
8a2fc586 8421
ad6254c5
AK
8422#ifdef __STDC__
8423# include <limits.h>
8424#else
8425# include <assert.h>
8426#endif
8a2fc586
AK
8427
8428#undef $ac_func
8429
7a197a62
AK
8430/* Override any GCC internal prototype to avoid an error.
8431 Use char because int might match the return type of a GCC
8432 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8433#ifdef __cplusplus
8434extern "C"
ad6254c5 8435#endif
ad6254c5
AK
8436char $ac_func ();
8437/* The GNU C library defines this for functions which it implements
8438 to always fail with ENOSYS. Some functions are actually named
8439 something starting with __ and the normal name is an alias. */
7a197a62 8440#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8441choke me
ad6254c5
AK
8442#endif
8443
8444int
8445main ()
8446{
7a197a62 8447return $ac_func ();
ad6254c5
AK
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8453if { (ac_try="$ac_link"
8454case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457esac
ec6a6fbe
AK
8458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8459$as_echo "$ac_try_echo") >&5
7a197a62 8460 (eval "$ac_link") 2>conftest.er1
ad6254c5 8461 ac_status=$?
8a2fc586
AK
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
ec6a6fbe 8465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
ec6a6fbe
AK
8469 } && test -s conftest$ac_exeext && {
8470 test "$cross_compiling" = yes ||
8471 $as_test_x conftest$ac_exeext
8472 }; then
ad6254c5
AK
8473 eval "$as_ac_var=yes"
8474else
ec6a6fbe 8475 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8476sed 's/^/| /' conftest.$ac_ext >&5
8477
7a197a62 8478 eval "$as_ac_var=no"
ad6254c5 8479fi
7a197a62 8480
ec6a6fbe 8481rm -rf conftest.dSYM
25fbec5b 8482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8483 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8484fi
ec6a6fbe
AK
8485ac_res=`eval 'as_val=${'$as_ac_var'}
8486 $as_echo "$as_val"'`
8487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8488$as_echo "$ac_res" >&6; }
8489as_val=`eval 'as_val=${'$as_ac_var'}
8490 $as_echo "$as_val"'`
8491 if test "x$as_val" = x""yes; then
80992638 8492
ad6254c5
AK
8493cat >>confdefs.h <<_ACEOF
8494#define CRAY_STACKSEG_END $ac_func
8495_ACEOF
8496
8497 break
8498fi
8499
8500 done
8501fi
8502
ec6a6fbe
AK
8503{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8504$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8505if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8506 $as_echo_n "(cached) " >&6
ad6254c5
AK
8507else
8508 if test "$cross_compiling" = yes; then
8509 ac_cv_c_stack_direction=0
8510else
8511 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8512/* confdefs.h. */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
8516/* end confdefs.h. */
7a197a62 8517$ac_includes_default
ad6254c5
AK
8518int
8519find_stack_direction ()
8520{
8521 static char *addr = 0;
8522 auto char dummy;
8523 if (addr == 0)
8524 {
8525 addr = &dummy;
8526 return find_stack_direction ();
8527 }
8528 else
8529 return (&dummy > addr) ? 1 : -1;
8530}
8531
8532int
8533main ()
8534{
7a197a62 8535 return find_stack_direction () < 0;
ad6254c5
AK
8536}
8537_ACEOF
8538rm -f conftest$ac_exeext
7a197a62
AK
8539if { (ac_try="$ac_link"
8540case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543esac
ec6a6fbe
AK
8544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8545$as_echo "$ac_try_echo") >&5
7a197a62 8546 (eval "$ac_link") 2>&5
ad6254c5 8547 ac_status=$?
ec6a6fbe 8548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
ec6a6fbe
AK
8554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8555$as_echo "$ac_try_echo") >&5
7a197a62 8556 (eval "$ac_try") 2>&5
ad6254c5 8557 ac_status=$?
ec6a6fbe 8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8559 (exit $ac_status); }; }; then
8560 ac_cv_c_stack_direction=1
8561else
ec6a6fbe
AK
8562 $as_echo "$as_me: program exited with status $ac_status" >&5
8563$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566( exit $ac_status )
8567ac_cv_c_stack_direction=-1
8568fi
ec6a6fbe 8569rm -rf conftest.dSYM
7a197a62 8570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8571fi
7a197a62
AK
8572
8573
ad6254c5 8574fi
ec6a6fbe
AK
8575{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8576$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8577
d911ec67
AK
8578cat >>confdefs.h <<_ACEOF
8579#define STACK_DIRECTION $ac_cv_c_stack_direction
8580_ACEOF
8581
8582
8583fi
8584
8585{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8586$as_echo_n "checking whether closedir returns void... " >&6; }
8587if test "${ac_cv_func_closedir_void+set}" = set; then
8588 $as_echo_n "(cached) " >&6
8589else
8590 if test "$cross_compiling" = yes; then
8591 ac_cv_func_closedir_void=yes
8592else
8593 cat >conftest.$ac_ext <<_ACEOF
8594/* confdefs.h. */
8595_ACEOF
8596cat confdefs.h >>conftest.$ac_ext
8597cat >>conftest.$ac_ext <<_ACEOF
8598/* end confdefs.h. */
8599$ac_includes_default
8600#include <$ac_header_dirent>
8601#ifndef __cplusplus
8602int closedir ();
8603#endif
8604
8605int
8606main ()
8607{
8608return closedir (opendir (".")) != 0;
8609 ;
8610 return 0;
8611}
8612_ACEOF
8613rm -f conftest$ac_exeext
8614if { (ac_try="$ac_link"
8615case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618esac
8619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8620$as_echo "$ac_try_echo") >&5
8621 (eval "$ac_link") 2>&5
8622 ac_status=$?
8623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8625 { (case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628esac
8629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8630$as_echo "$ac_try_echo") >&5
8631 (eval "$ac_try") 2>&5
8632 ac_status=$?
8633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_func_closedir_void=no
8636else
8637 $as_echo "$as_me: program exited with status $ac_status" >&5
8638$as_echo "$as_me: failed program was:" >&5
8639sed 's/^/| /' conftest.$ac_ext >&5
8640
8641( exit $ac_status )
8642ac_cv_func_closedir_void=yes
8643fi
8644rm -rf conftest.dSYM
8645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8646fi
8647
8648
8649fi
8650{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8651$as_echo "$ac_cv_func_closedir_void" >&6; }
8652if test $ac_cv_func_closedir_void = yes; then
8653
8654cat >>confdefs.h <<\_ACEOF
8655#define CLOSEDIR_VOID 1
8656_ACEOF
8657
8658fi
8659
8660
8661for ac_header in unistd.h
8662do
8663as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8666$as_echo_n "checking for $ac_header... " >&6; }
8667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8668 $as_echo_n "(cached) " >&6
8669fi
8670ac_res=`eval 'as_val=${'$as_ac_Header'}
8671 $as_echo "$as_val"'`
8672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8673$as_echo "$ac_res" >&6; }
8674else
8675 # Is the header compilable?
8676{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8677$as_echo_n "checking $ac_header usability... " >&6; }
8678cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
8684$ac_includes_default
8685#include <$ac_header>
8686_ACEOF
8687rm -f conftest.$ac_objext
8688if { (ac_try="$ac_compile"
8689case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8692esac
8693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8694$as_echo "$ac_try_echo") >&5
8695 (eval "$ac_compile") 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest.$ac_objext; then
8705 ac_header_compiler=yes
8706else
8707 $as_echo "$as_me: failed program was:" >&5
8708sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 ac_header_compiler=no
8711fi
8712
8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8715$as_echo "$ac_header_compiler" >&6; }
8716
8717# Is the header present?
8718{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8719$as_echo_n "checking $ac_header presence... " >&6; }
8720cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h. */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h. */
8726#include <$ac_header>
8727_ACEOF
8728if { (ac_try="$ac_cpp conftest.$ac_ext"
8729case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732esac
8733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734$as_echo "$ac_try_echo") >&5
8735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } >/dev/null && {
8742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 }; then
8745 ac_header_preproc=yes
8746else
8747 $as_echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_header_preproc=no
8751fi
8752
8753rm -f conftest.err conftest.$ac_ext
8754{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755$as_echo "$ac_header_preproc" >&6; }
8756
8757# So? What about this header?
8758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8759 yes:no: )
8760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8761$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8763$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8764 ac_header_preproc=yes
8765 ;;
8766 no:yes:* )
8767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8768$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8770$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8772$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8774$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8776$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8778$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8779
8780 ;;
8781esac
8782{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8783$as_echo_n "checking for $ac_header... " >&6; }
8784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8785 $as_echo_n "(cached) " >&6
8786else
8787 eval "$as_ac_Header=\$ac_header_preproc"
8788fi
8789ac_res=`eval 'as_val=${'$as_ac_Header'}
8790 $as_echo "$as_val"'`
8791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8792$as_echo "$ac_res" >&6; }
8793
8794fi
8795as_val=`eval 'as_val=${'$as_ac_Header'}
8796 $as_echo "$as_val"'`
8797 if test "x$as_val" = x""yes; then
8798 cat >>confdefs.h <<_ACEOF
8799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8800_ACEOF
8801
ad6254c5
AK
8802fi
8803
d911ec67
AK
8804done
8805
8806{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8807$as_echo_n "checking for working chown... " >&6; }
8808if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8809 $as_echo_n "(cached) " >&6
ad6254c5
AK
8810else
8811 if test "$cross_compiling" = yes; then
d911ec67 8812 ac_cv_func_chown_works=no
ad6254c5
AK
8813else
8814 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8815/* confdefs.h. */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h. */
8820$ac_includes_default
d911ec67 8821#include <fcntl.h>
ad6254c5
AK
8822
8823int
8824main ()
8825{
d911ec67
AK
8826 char *f = "conftest.chown";
8827 struct stat before, after;
8828
8829 if (creat (f, 0600) < 0)
8830 return 1;
8831 if (stat (f, &before) < 0)
8832 return 1;
8833 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8834 return 1;
8835 if (stat (f, &after) < 0)
8836 return 1;
8837 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8838
ad6254c5
AK
8839 ;
8840 return 0;
8841}
8842_ACEOF
8843rm -f conftest$ac_exeext
7a197a62
AK
8844if { (ac_try="$ac_link"
8845case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848esac
ec6a6fbe
AK
8849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850$as_echo "$ac_try_echo") >&5
7a197a62 8851 (eval "$ac_link") 2>&5
ad6254c5 8852 ac_status=$?
ec6a6fbe 8853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8855 { (case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858esac
ec6a6fbe
AK
8859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860$as_echo "$ac_try_echo") >&5
7a197a62 8861 (eval "$ac_try") 2>&5
ad6254c5 8862 ac_status=$?
ec6a6fbe 8863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8864 (exit $ac_status); }; }; then
d911ec67 8865 ac_cv_func_chown_works=yes
ad6254c5 8866else
ec6a6fbe
AK
8867 $as_echo "$as_me: program exited with status $ac_status" >&5
8868$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8869sed 's/^/| /' conftest.$ac_ext >&5
8870
8871( exit $ac_status )
d911ec67 8872ac_cv_func_chown_works=no
ad6254c5 8873fi
ec6a6fbe 8874rm -rf conftest.dSYM
7a197a62 8875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8876fi
7a197a62
AK
8877
8878
d911ec67
AK
8879rm -f conftest.chown
8880
ad6254c5 8881fi
d911ec67
AK
8882{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8883$as_echo "$ac_cv_func_chown_works" >&6; }
8884if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8885
8886cat >>confdefs.h <<\_ACEOF
d911ec67 8887#define HAVE_CHOWN 1
ad6254c5
AK
8888_ACEOF
8889
8890fi
8891
8892
7a197a62 8893for ac_header in vfork.h
ad6254c5 8894do
ec6a6fbe 8895as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8897 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8898$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8900 $as_echo_n "(cached) " >&6
ad6254c5 8901fi
ec6a6fbe
AK
8902ac_res=`eval 'as_val=${'$as_ac_Header'}
8903 $as_echo "$as_val"'`
8904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8905$as_echo "$ac_res" >&6; }
ad6254c5
AK
8906else
8907 # Is the header compilable?
ec6a6fbe
AK
8908{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8909$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8910cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8911/* confdefs.h. */
8912_ACEOF
8913cat confdefs.h >>conftest.$ac_ext
8914cat >>conftest.$ac_ext <<_ACEOF
8915/* end confdefs.h. */
8916$ac_includes_default
8917#include <$ac_header>
8918_ACEOF
8919rm -f conftest.$ac_objext
7a197a62
AK
8920if { (ac_try="$ac_compile"
8921case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8924esac
ec6a6fbe
AK
8925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8926$as_echo "$ac_try_echo") >&5
7a197a62 8927 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8928 ac_status=$?
8a2fc586
AK
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
ec6a6fbe 8932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8933 (exit $ac_status); } && {
8934 test -z "$ac_c_werror_flag" ||
8935 test ! -s conftest.err
8936 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8937 ac_header_compiler=yes
8938else
ec6a6fbe 8939 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8940sed 's/^/| /' conftest.$ac_ext >&5
8941
7a197a62 8942 ac_header_compiler=no
ad6254c5 8943fi
7a197a62
AK
8944
8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8946{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8947$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8948
8949# Is the header present?
ec6a6fbe
AK
8950{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8951$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8952cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8953/* confdefs.h. */
8954_ACEOF
8955cat confdefs.h >>conftest.$ac_ext
8956cat >>conftest.$ac_ext <<_ACEOF
8957/* end confdefs.h. */
8958#include <$ac_header>
8959_ACEOF
7a197a62
AK
8960if { (ac_try="$ac_cpp conftest.$ac_ext"
8961case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
ec6a6fbe
AK
8965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8966$as_echo "$ac_try_echo") >&5
7a197a62 8967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
ec6a6fbe 8972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8973 (exit $ac_status); } >/dev/null && {
8974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8975 test ! -s conftest.err
8976 }; then
ad6254c5
AK
8977 ac_header_preproc=yes
8978else
ec6a6fbe 8979 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 ac_header_preproc=no
8983fi
7a197a62 8984
ad6254c5 8985rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8986{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8988
8989# So? What about this header?
8a2fc586
AK
8990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8991 yes:no: )
ec6a6fbe
AK
8992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8996 ac_header_preproc=yes
ad6254c5 8997 ;;
8a2fc586 8998 no:yes:* )
ec6a6fbe
AK
8999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9002$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9006$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9011
ad6254c5
AK
9012 ;;
9013esac
ec6a6fbe
AK
9014{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9015$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9017 $as_echo_n "(cached) " >&6
ad6254c5 9018else
8a2fc586 9019 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9020fi
ec6a6fbe
AK
9021ac_res=`eval 'as_val=${'$as_ac_Header'}
9022 $as_echo "$as_val"'`
9023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9024$as_echo "$ac_res" >&6; }
ad6254c5 9025
795ca3e5 9026fi
ec6a6fbe
AK
9027as_val=`eval 'as_val=${'$as_ac_Header'}
9028 $as_echo "$as_val"'`
9029 if test "x$as_val" = x""yes; then
ad6254c5 9030 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9032_ACEOF
9033
9034fi
9035
9036done
795ca3e5 9037
ad6254c5
AK
9038
9039
9040for ac_func in fork vfork
9041do
ec6a6fbe
AK
9042as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9043{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9044$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9046 $as_echo_n "(cached) " >&6
795ca3e5 9047else
ad6254c5 9048 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9049/* confdefs.h. */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h. */
8a2fc586
AK
9054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9056#define $ac_func innocuous_$ac_func
9057
ad6254c5
AK
9058/* System header to define __stub macros and hopefully few prototypes,
9059 which can conflict with char $ac_func (); below.
9060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9061 <limits.h> exists even on freestanding compilers. */
8a2fc586 9062
ad6254c5
AK
9063#ifdef __STDC__
9064# include <limits.h>
9065#else
9066# include <assert.h>
795ca3e5 9067#endif
8a2fc586
AK
9068
9069#undef $ac_func
9070
7a197a62
AK
9071/* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
795ca3e5 9074#ifdef __cplusplus
ad6254c5 9075extern "C"
ad6254c5 9076#endif
ad6254c5
AK
9077char $ac_func ();
9078/* The GNU C library defines this for functions which it implements
9079 to always fail with ENOSYS. Some functions are actually named
9080 something starting with __ and the normal name is an alias. */
7a197a62 9081#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9082choke me
795ca3e5
AK
9083#endif
9084
ad6254c5
AK
9085int
9086main ()
9087{
7a197a62 9088return $ac_func ();
ad6254c5
AK
9089 ;
9090 return 0;
9091}
9092_ACEOF
9093rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9094if { (ac_try="$ac_link"
9095case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9098esac
ec6a6fbe
AK
9099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9100$as_echo "$ac_try_echo") >&5
7a197a62 9101 (eval "$ac_link") 2>conftest.er1
ad6254c5 9102 ac_status=$?
8a2fc586
AK
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
ec6a6fbe 9106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9107 (exit $ac_status); } && {
9108 test -z "$ac_c_werror_flag" ||
9109 test ! -s conftest.err
ec6a6fbe
AK
9110 } && test -s conftest$ac_exeext && {
9111 test "$cross_compiling" = yes ||
9112 $as_test_x conftest$ac_exeext
9113 }; then
ad6254c5 9114 eval "$as_ac_var=yes"
795ca3e5 9115else
ec6a6fbe 9116 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9117sed 's/^/| /' conftest.$ac_ext >&5
9118
7a197a62 9119 eval "$as_ac_var=no"
795ca3e5 9120fi
7a197a62 9121
ec6a6fbe 9122rm -rf conftest.dSYM
25fbec5b 9123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9124 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9125fi
ec6a6fbe
AK
9126ac_res=`eval 'as_val=${'$as_ac_var'}
9127 $as_echo "$as_val"'`
9128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9129$as_echo "$ac_res" >&6; }
9130as_val=`eval 'as_val=${'$as_ac_var'}
9131 $as_echo "$as_val"'`
9132 if test "x$as_val" = x""yes; then
ad6254c5 9133 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9134#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9135_ACEOF
9136
9137fi
9138done
9139
9140if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9141 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9142$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9143if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9144 $as_echo_n "(cached) " >&6
ad6254c5
AK
9145else
9146 if test "$cross_compiling" = yes; then
9147 ac_cv_func_fork_works=cross
9148else
9149 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
9155$ac_includes_default
9156int
9157main ()
9158{
9159
9160 /* By Ruediger Kuhlmann. */
9161 return fork () < 0;
9162
9163 ;
9164 return 0;
9165}
ad6254c5
AK
9166_ACEOF
9167rm -f conftest$ac_exeext
7a197a62
AK
9168if { (ac_try="$ac_link"
9169case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172esac
ec6a6fbe
AK
9173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174$as_echo "$ac_try_echo") >&5
7a197a62 9175 (eval "$ac_link") 2>&5
ad6254c5 9176 ac_status=$?
ec6a6fbe 9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9179 { (case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182esac
ec6a6fbe
AK
9183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184$as_echo "$ac_try_echo") >&5
7a197a62 9185 (eval "$ac_try") 2>&5
ad6254c5 9186 ac_status=$?
ec6a6fbe 9187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9188 (exit $ac_status); }; }; then
9189 ac_cv_func_fork_works=yes
9190else
ec6a6fbe
AK
9191 $as_echo "$as_me: program exited with status $ac_status" >&5
9192$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195( exit $ac_status )
9196ac_cv_func_fork_works=no
9197fi
ec6a6fbe 9198rm -rf conftest.dSYM
7a197a62 9199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9200fi
7a197a62
AK
9201
9202
ad6254c5 9203fi
ec6a6fbe
AK
9204{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9205$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9206
9207else
9208 ac_cv_func_fork_works=$ac_cv_func_fork
9209fi
9210if test "x$ac_cv_func_fork_works" = xcross; then
9211 case $host in
9212 *-*-amigaos* | *-*-msdosdjgpp*)
9213 # Override, as these systems have only a dummy fork() stub
9214 ac_cv_func_fork_works=no
9215 ;;
9216 *)
9217 ac_cv_func_fork_works=yes
9218 ;;
9219 esac
ec6a6fbe
AK
9220 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9221$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9222fi
9223ac_cv_func_vfork_works=$ac_cv_func_vfork
9224if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9225 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9226$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9227if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9228 $as_echo_n "(cached) " >&6
ad6254c5
AK
9229else
9230 if test "$cross_compiling" = yes; then
9231 ac_cv_func_vfork_works=cross
9232else
9233 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9234/* confdefs.h. */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h. */
9239/* Thanks to Paul Eggert for this test. */
7a197a62 9240$ac_includes_default
ad6254c5 9241#include <sys/wait.h>
25fbec5b 9242#ifdef HAVE_VFORK_H
ad6254c5
AK
9243# include <vfork.h>
9244#endif
9245/* On some sparc systems, changes by the child to local and incoming
9246 argument registers are propagated back to the parent. The compiler
9247 is told about this with #include <vfork.h>, but some compilers
9248 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9249 static variable whose address is put into a register that is
9250 clobbered by the vfork. */
9251static void
9252#ifdef __cplusplus
9253sparc_address_test (int arg)
9254# else
9255sparc_address_test (arg) int arg;
9256#endif
9257{
9258 static pid_t child;
9259 if (!child) {
9260 child = vfork ();
9261 if (child < 0) {
9262 perror ("vfork");
9263 _exit(2);
9264 }
9265 if (!child) {
9266 arg = getpid();
9267 write(-1, "", 0);
9268 _exit (arg);
9269 }
9270 }
9271}
9272
9273int
9274main ()
9275{
9276 pid_t parent = getpid ();
9277 pid_t child;
9278
9279 sparc_address_test (0);
9280
9281 child = vfork ();
9282
9283 if (child == 0) {
9284 /* Here is another test for sparc vfork register problems. This
9285 test uses lots of local variables, at least as many local
9286 variables as main has allocated so far including compiler
9287 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9288 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9289 reuse the register of parent for one of the local variables,
9290 since it will think that parent can't possibly be used any more
9291 in this routine. Assigning to the local variable will thus
9292 munge parent in the parent process. */
9293 pid_t
9294 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9295 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9296 /* Convince the compiler that p..p7 are live; otherwise, it might
9297 use the same hardware register for all 8 local variables. */
9298 if (p != p1 || p != p2 || p != p3 || p != p4
9299 || p != p5 || p != p6 || p != p7)
9300 _exit(1);
9301
9302 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9303 from child file descriptors. If the child closes a descriptor
9304 before it execs or exits, this munges the parent's descriptor
9305 as well. Test for this by closing stdout in the child. */
9306 _exit(close(fileno(stdout)) != 0);
9307 } else {
9308 int status;
9309 struct stat st;
9310
9311 while (wait(&status) != child)
9312 ;
7a197a62 9313 return (
ad6254c5
AK
9314 /* Was there some problem with vforking? */
9315 child < 0
9316
9317 /* Did the child fail? (This shouldn't happen.) */
9318 || status
9319
9320 /* Did the vfork/compiler bug occur? */
9321 || parent != getpid()
9322
9323 /* Did the file descriptor bug occur? */
9324 || fstat(fileno(stdout), &st) != 0
9325 );
9326 }
9327}
9328_ACEOF
9329rm -f conftest$ac_exeext
7a197a62
AK
9330if { (ac_try="$ac_link"
9331case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334esac
ec6a6fbe
AK
9335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9336$as_echo "$ac_try_echo") >&5
7a197a62 9337 (eval "$ac_link") 2>&5
ad6254c5 9338 ac_status=$?
ec6a6fbe 9339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9341 { (case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344esac
ec6a6fbe
AK
9345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346$as_echo "$ac_try_echo") >&5
7a197a62 9347 (eval "$ac_try") 2>&5
ad6254c5 9348 ac_status=$?
ec6a6fbe 9349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9350 (exit $ac_status); }; }; then
9351 ac_cv_func_vfork_works=yes
9352else
ec6a6fbe
AK
9353 $as_echo "$as_me: program exited with status $ac_status" >&5
9354$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9355sed 's/^/| /' conftest.$ac_ext >&5
9356
9357( exit $ac_status )
9358ac_cv_func_vfork_works=no
9359fi
ec6a6fbe 9360rm -rf conftest.dSYM
7a197a62 9361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9362fi
7a197a62
AK
9363
9364
ad6254c5 9365fi
ec6a6fbe
AK
9366{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9367$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9368
9369fi;
9370if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9371 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9372 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9373$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9374fi
9375
9376if test "x$ac_cv_func_vfork_works" = xyes; then
9377
9378cat >>confdefs.h <<\_ACEOF
9379#define HAVE_WORKING_VFORK 1
9380_ACEOF
9381
9382else
9383
9384cat >>confdefs.h <<\_ACEOF
9385#define vfork fork
9386_ACEOF
9387
9388fi
9389if test "x$ac_cv_func_fork_works" = xyes; then
9390
9391cat >>confdefs.h <<\_ACEOF
9392#define HAVE_WORKING_FORK 1
9393_ACEOF
9394
9395fi
9396
ec6a6fbe
AK
9397{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9398$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9399if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9400 $as_echo_n "(cached) " >&6
ad6254c5
AK
9401else
9402 rm -f conftest.sym conftest.file
9403echo >conftest.file
9404if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9405 if test "$cross_compiling" = yes; then
9406 ac_cv_func_lstat_dereferences_slashed_symlink=no
9407else
9408 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9409/* confdefs.h. */
9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
9414$ac_includes_default
9415int
9416main ()
9417{
9418struct stat sbuf;
9419 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9420 That is better in the sense that it means we will not
9421 have to compile and use the lstat wrapper. */
7a197a62 9422 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9423 ;
9424 return 0;
9425}
9426_ACEOF
9427rm -f conftest$ac_exeext
7a197a62
AK
9428if { (ac_try="$ac_link"
9429case "(($ac_try" in
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9432esac
ec6a6fbe
AK
9433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9434$as_echo "$ac_try_echo") >&5
7a197a62 9435 (eval "$ac_link") 2>&5
ad6254c5 9436 ac_status=$?
ec6a6fbe 9437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9439 { (case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
ec6a6fbe
AK
9443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9444$as_echo "$ac_try_echo") >&5
7a197a62 9445 (eval "$ac_try") 2>&5
ad6254c5 9446 ac_status=$?
ec6a6fbe 9447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9448 (exit $ac_status); }; }; then
9449 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9450else
ec6a6fbe
AK
9451 $as_echo "$as_me: program exited with status $ac_status" >&5
9452$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455( exit $ac_status )
9456ac_cv_func_lstat_dereferences_slashed_symlink=no
9457fi
ec6a6fbe 9458rm -rf conftest.dSYM
7a197a62 9459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9460fi
7a197a62
AK
9461
9462
ad6254c5
AK
9463else
9464 # If the `ln -s' command failed, then we probably don't even
9465 # have an lstat function.
9466 ac_cv_func_lstat_dereferences_slashed_symlink=no
9467fi
9468rm -f conftest.sym conftest.file
9469
9470fi
ec6a6fbe
AK
9471{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9472$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9473
9474test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9475
9476cat >>confdefs.h <<_ACEOF
9477#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9478_ACEOF
9479
9480
9481if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9482 case " $LIBOBJS " in
8a2fc586 9483 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9484 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9485 ;;
8a2fc586
AK
9486esac
9487
ad6254c5
AK
9488fi
9489
ec6a6fbe
AK
9490{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9491$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9492if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9493 $as_echo_n "(cached) " >&6
ad6254c5
AK
9494else
9495 if test "$cross_compiling" = yes; then
9496 ac_cv_func_lstat_empty_string_bug=yes
9497else
9498 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9499/* confdefs.h. */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h. */
9504$ac_includes_default
9505int
9506main ()
9507{
9508struct stat sbuf;
7a197a62 9509 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9510 ;
9511 return 0;
9512}
9513_ACEOF
9514rm -f conftest$ac_exeext
7a197a62
AK
9515if { (ac_try="$ac_link"
9516case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519esac
ec6a6fbe
AK
9520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521$as_echo "$ac_try_echo") >&5
7a197a62 9522 (eval "$ac_link") 2>&5
ad6254c5 9523 ac_status=$?
ec6a6fbe 9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9526 { (case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9529esac
ec6a6fbe
AK
9530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9531$as_echo "$ac_try_echo") >&5
7a197a62 9532 (eval "$ac_try") 2>&5
ad6254c5 9533 ac_status=$?
ec6a6fbe 9534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9535 (exit $ac_status); }; }; then
7a197a62 9536 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9537else
ec6a6fbe
AK
9538 $as_echo "$as_me: program exited with status $ac_status" >&5
9539$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
9542( exit $ac_status )
7a197a62 9543ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9544fi
ec6a6fbe 9545rm -rf conftest.dSYM
7a197a62 9546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9547fi
7a197a62
AK
9548
9549
ad6254c5 9550fi
ec6a6fbe
AK
9551{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9552$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9553if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9554 case " $LIBOBJS " in
8a2fc586 9555 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9556 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9557 ;;
8a2fc586
AK
9558esac
9559
ad6254c5
AK
9560
9561cat >>confdefs.h <<_ACEOF
9562#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9563_ACEOF
9564
9565fi
9566
9567
9568for ac_header in stdlib.h
9569do
ec6a6fbe 9570as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9573$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9575 $as_echo_n "(cached) " >&6
ad6254c5 9576fi
ec6a6fbe
AK
9577ac_res=`eval 'as_val=${'$as_ac_Header'}
9578 $as_echo "$as_val"'`
9579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9580$as_echo "$ac_res" >&6; }
ad6254c5
AK
9581else
9582 # Is the header compilable?
ec6a6fbe
AK
9583{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9584$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9585cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9586/* confdefs.h. */
9587_ACEOF
9588cat confdefs.h >>conftest.$ac_ext
9589cat >>conftest.$ac_ext <<_ACEOF
9590/* end confdefs.h. */
9591$ac_includes_default
9592#include <$ac_header>
9593_ACEOF
9594rm -f conftest.$ac_objext
7a197a62
AK
9595if { (ac_try="$ac_compile"
9596case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599esac
ec6a6fbe
AK
9600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9601$as_echo "$ac_try_echo") >&5
7a197a62 9602 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9603 ac_status=$?
8a2fc586
AK
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
ec6a6fbe 9607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9612 ac_header_compiler=yes
9613else
ec6a6fbe 9614 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
7a197a62 9617 ac_header_compiler=no
ad6254c5 9618fi
7a197a62
AK
9619
9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9621{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9623
9624# Is the header present?
ec6a6fbe
AK
9625{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9626$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633#include <$ac_header>
9634_ACEOF
7a197a62
AK
9635if { (ac_try="$ac_cpp conftest.$ac_ext"
9636case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639esac
ec6a6fbe
AK
9640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641$as_echo "$ac_try_echo") >&5
7a197a62 9642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
ec6a6fbe 9647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9648 (exit $ac_status); } >/dev/null && {
9649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 }; then
ad6254c5
AK
9652 ac_header_preproc=yes
9653else
ec6a6fbe 9654 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657 ac_header_preproc=no
9658fi
7a197a62 9659
ad6254c5 9660rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9661{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9662$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9663
9664# So? What about this header?
8a2fc586
AK
9665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9666 yes:no: )
ec6a6fbe
AK
9667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9668$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9670$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9671 ac_header_preproc=yes
ad6254c5 9672 ;;
8a2fc586 9673 no:yes:* )
ec6a6fbe
AK
9674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9675$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9677$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9679$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9681$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9683$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9685$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9686
ad6254c5
AK
9687 ;;
9688esac
ec6a6fbe
AK
9689{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9690$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9692 $as_echo_n "(cached) " >&6
ad6254c5 9693else
8a2fc586 9694 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9695fi
ec6a6fbe
AK
9696ac_res=`eval 'as_val=${'$as_ac_Header'}
9697 $as_echo "$as_val"'`
9698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9699$as_echo "$ac_res" >&6; }
ad6254c5
AK
9700
9701fi
ec6a6fbe
AK
9702as_val=`eval 'as_val=${'$as_ac_Header'}
9703 $as_echo "$as_val"'`
9704 if test "x$as_val" = x""yes; then
ad6254c5 9705 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9706#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9707_ACEOF
9708
9709fi
9710
9711done
9712
ec6a6fbe
AK
9713{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9714$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9715if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9716 $as_echo_n "(cached) " >&6
ad6254c5
AK
9717else
9718 if test "$cross_compiling" = yes; then
9719 ac_cv_func_malloc_0_nonnull=no
9720else
9721 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9722/* confdefs.h. */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h. */
25fbec5b 9727#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9728# include <stdlib.h>
9729#else
9730char *malloc ();
9731#endif
9732
9733int
9734main ()
9735{
7a197a62 9736return ! malloc (0);
ad6254c5
AK
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest$ac_exeext
7a197a62
AK
9742if { (ac_try="$ac_link"
9743case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9746esac
ec6a6fbe
AK
9747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9748$as_echo "$ac_try_echo") >&5
7a197a62 9749 (eval "$ac_link") 2>&5
ad6254c5 9750 ac_status=$?
ec6a6fbe 9751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9753 { (case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756esac
ec6a6fbe
AK
9757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9758$as_echo "$ac_try_echo") >&5
7a197a62 9759 (eval "$ac_try") 2>&5
ad6254c5 9760 ac_status=$?
ec6a6fbe 9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9762 (exit $ac_status); }; }; then
9763 ac_cv_func_malloc_0_nonnull=yes
9764else
ec6a6fbe
AK
9765 $as_echo "$as_me: program exited with status $ac_status" >&5
9766$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769( exit $ac_status )
9770ac_cv_func_malloc_0_nonnull=no
9771fi
ec6a6fbe 9772rm -rf conftest.dSYM
7a197a62 9773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9774fi
7a197a62
AK
9775
9776
ad6254c5 9777fi
ec6a6fbe
AK
9778{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9779$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9780if test $ac_cv_func_malloc_0_nonnull = yes; then
9781
9782cat >>confdefs.h <<\_ACEOF
9783#define HAVE_MALLOC 1
9784_ACEOF
9785
9786else
9787 cat >>confdefs.h <<\_ACEOF
9788#define HAVE_MALLOC 0
9789_ACEOF
9790
7a197a62 9791 case " $LIBOBJS " in
8a2fc586 9792 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9793 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9794 ;;
8a2fc586
AK
9795esac
9796
ad6254c5
AK
9797
9798cat >>confdefs.h <<\_ACEOF
9799#define malloc rpl_malloc
9800_ACEOF
9801
9802fi
9803
9804
9805
ec6a6fbe
AK
9806{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9807$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9808if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9809 $as_echo_n "(cached) " >&6
ad6254c5
AK
9810else
9811 if test "$cross_compiling" = yes; then
9812 ac_cv_func_memcmp_working=no
9813else
9814 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9815/* confdefs.h. */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h. */
8a2fc586 9820$ac_includes_default
ad6254c5
AK
9821int
9822main ()
9823{
9824
9825 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9826 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9827 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9828 return 1;
ad6254c5
AK
9829
9830 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9831 or more and with at least one buffer not starting on a 4-byte boundary.
9832 William Lewis provided this test program. */
9833 {
9834 char foo[21];
9835 char bar[21];
9836 int i;
9837 for (i = 0; i < 4; i++)
9838 {
8a2fc586
AK
9839 char *a = foo + i;
9840 char *b = bar + i;
9841 strcpy (a, "--------01111111");
9842 strcpy (b, "--------10000000");
9843 if (memcmp (a, b, 16) >= 0)
7a197a62 9844 return 1;
ad6254c5 9845 }
7a197a62 9846 return 0;
ad6254c5
AK
9847 }
9848
9849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest$ac_exeext
7a197a62
AK
9854if { (ac_try="$ac_link"
9855case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
ec6a6fbe
AK
9859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9860$as_echo "$ac_try_echo") >&5
7a197a62 9861 (eval "$ac_link") 2>&5
ad6254c5 9862 ac_status=$?
ec6a6fbe 9863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9865 { (case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
ec6a6fbe
AK
9869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9870$as_echo "$ac_try_echo") >&5
7a197a62 9871 (eval "$ac_try") 2>&5
ad6254c5 9872 ac_status=$?
ec6a6fbe 9873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9874 (exit $ac_status); }; }; then
9875 ac_cv_func_memcmp_working=yes
9876else
ec6a6fbe
AK
9877 $as_echo "$as_me: program exited with status $ac_status" >&5
9878$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9879sed 's/^/| /' conftest.$ac_ext >&5
9880
9881( exit $ac_status )
9882ac_cv_func_memcmp_working=no
9883fi
ec6a6fbe 9884rm -rf conftest.dSYM
7a197a62 9885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9886fi
7a197a62
AK
9887
9888
ad6254c5 9889fi
ec6a6fbe
AK
9890{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9891$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9892test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9893 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9894 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9895 ;;
8a2fc586
AK
9896esac
9897
ad6254c5
AK
9898
9899
9900
9901for ac_header in stdlib.h unistd.h
9902do
ec6a6fbe 9903as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9906$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9908 $as_echo_n "(cached) " >&6
ad6254c5 9909fi
ec6a6fbe
AK
9910ac_res=`eval 'as_val=${'$as_ac_Header'}
9911 $as_echo "$as_val"'`
9912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9913$as_echo "$ac_res" >&6; }
ad6254c5
AK
9914else
9915 # Is the header compilable?
ec6a6fbe
AK
9916{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9917$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9918cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9919/* confdefs.h. */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h. */
9924$ac_includes_default
9925#include <$ac_header>
9926_ACEOF
9927rm -f conftest.$ac_objext
7a197a62
AK
9928if { (ac_try="$ac_compile"
9929case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
ec6a6fbe
AK
9933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9934$as_echo "$ac_try_echo") >&5
7a197a62 9935 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9936 ac_status=$?
8a2fc586
AK
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
ec6a6fbe 9940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9945 ac_header_compiler=yes
9946else
ec6a6fbe 9947 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
7a197a62 9950 ac_header_compiler=no
ad6254c5 9951fi
7a197a62
AK
9952
9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9954{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9955$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9956
9957# Is the header present?
ec6a6fbe
AK
9958{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9959$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9960cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h. */
9966#include <$ac_header>
9967_ACEOF
7a197a62
AK
9968if { (ac_try="$ac_cpp conftest.$ac_ext"
9969case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
ec6a6fbe
AK
9973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9974$as_echo "$ac_try_echo") >&5
7a197a62 9975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
ec6a6fbe 9980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9981 (exit $ac_status); } >/dev/null && {
9982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 }; then
ad6254c5
AK
9985 ac_header_preproc=yes
9986else
ec6a6fbe 9987 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 ac_header_preproc=no
9991fi
7a197a62 9992
ad6254c5 9993rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9994{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9995$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9996
9997# So? What about this header?
8a2fc586
AK
9998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9999 yes:no: )
ec6a6fbe
AK
10000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10001$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10003$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10004 ac_header_preproc=yes
ad6254c5 10005 ;;
8a2fc586 10006 no:yes:* )
ec6a6fbe
AK
10007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10008$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10010$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10012$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10014$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10016$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10018$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10019
ad6254c5
AK
10020 ;;
10021esac
ec6a6fbe
AK
10022{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10023$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10025 $as_echo_n "(cached) " >&6
ad6254c5 10026else
8a2fc586 10027 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10028fi
ec6a6fbe
AK
10029ac_res=`eval 'as_val=${'$as_ac_Header'}
10030 $as_echo "$as_val"'`
10031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10032$as_echo "$ac_res" >&6; }
ad6254c5
AK
10033
10034fi
ec6a6fbe
AK
10035as_val=`eval 'as_val=${'$as_ac_Header'}
10036 $as_echo "$as_val"'`
10037 if test "x$as_val" = x""yes; then
ad6254c5 10038 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10040_ACEOF
10041
10042fi
10043
10044done
10045
10046
10047for ac_func in getpagesize
10048do
ec6a6fbe
AK
10049as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10050{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10051$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10052if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10053 $as_echo_n "(cached) " >&6
ad6254c5
AK
10054else
10055 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10056/* confdefs.h. */
10057_ACEOF
10058cat confdefs.h >>conftest.$ac_ext
10059cat >>conftest.$ac_ext <<_ACEOF
10060/* end confdefs.h. */
8a2fc586
AK
10061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10063#define $ac_func innocuous_$ac_func
10064
ad6254c5
AK
10065/* System header to define __stub macros and hopefully few prototypes,
10066 which can conflict with char $ac_func (); below.
10067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10068 <limits.h> exists even on freestanding compilers. */
8a2fc586 10069
ad6254c5
AK
10070#ifdef __STDC__
10071# include <limits.h>
10072#else
10073# include <assert.h>
10074#endif
8a2fc586
AK
10075
10076#undef $ac_func
10077
7a197a62
AK
10078/* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10081#ifdef __cplusplus
10082extern "C"
ad6254c5 10083#endif
ad6254c5
AK
10084char $ac_func ();
10085/* The GNU C library defines this for functions which it implements
10086 to always fail with ENOSYS. Some functions are actually named
10087 something starting with __ and the normal name is an alias. */
7a197a62 10088#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10089choke me
ad6254c5
AK
10090#endif
10091
10092int
10093main ()
10094{
7a197a62 10095return $ac_func ();
ad6254c5
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
ad6254c5 10109 ac_status=$?
8a2fc586
AK
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
ad6254c5
AK
10121 eval "$as_ac_var=yes"
10122else
ec6a6fbe 10123 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10124sed 's/^/| /' conftest.$ac_ext >&5
10125
7a197a62 10126 eval "$as_ac_var=no"
ad6254c5 10127fi
7a197a62 10128
ec6a6fbe 10129rm -rf conftest.dSYM
25fbec5b 10130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10131 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10132fi
ec6a6fbe
AK
10133ac_res=`eval 'as_val=${'$as_ac_var'}
10134 $as_echo "$as_val"'`
10135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10136$as_echo "$ac_res" >&6; }
10137as_val=`eval 'as_val=${'$as_ac_var'}
10138 $as_echo "$as_val"'`
10139 if test "x$as_val" = x""yes; then
ad6254c5 10140 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10142_ACEOF
10143
10144fi
10145done
10146
ec6a6fbe
AK
10147{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10148$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10149if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10150 $as_echo_n "(cached) " >&6
ad6254c5
AK
10151else
10152 if test "$cross_compiling" = yes; then
10153 ac_cv_func_mmap_fixed_mapped=no
10154else
10155 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161$ac_includes_default
10162/* malloc might have been renamed as rpl_malloc. */
10163#undef malloc
10164
10165/* Thanks to Mike Haertel and Jim Avera for this test.
10166 Here is a matrix of mmap possibilities:
10167 mmap private not fixed
10168 mmap private fixed at somewhere currently unmapped
10169 mmap private fixed at somewhere already mapped
10170 mmap shared not fixed
10171 mmap shared fixed at somewhere currently unmapped
10172 mmap shared fixed at somewhere already mapped
10173 For private mappings, we should verify that changes cannot be read()
10174 back from the file, nor mmap's back from the file at a different
10175 address. (There have been systems where private was not correctly
10176 implemented like the infamous i386 svr4.0, and systems where the
10177 VM page cache was not coherent with the file system buffer cache
10178 like early versions of FreeBSD and possibly contemporary NetBSD.)
10179 For shared mappings, we should conversely verify that changes get
10180 propagated back to all the places they're supposed to be.
10181
10182 Grep wants private fixed already mapped.
10183 The main things grep needs to know about mmap are:
10184 * does it exist and is it safe to write into the mmap'd area
10185 * how to use it (BSD variants) */
10186
10187#include <fcntl.h>
10188#include <sys/mman.h>
10189
25fbec5b 10190#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10191char *malloc ();
10192#endif
10193
10194/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10195#ifndef HAVE_GETPAGESIZE
ad6254c5 10196/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10197# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10198# define HAVE_SYS_PARAM_H 1
10199# endif
10200
10201# ifdef _SC_PAGESIZE
10202# define getpagesize() sysconf(_SC_PAGESIZE)
10203# else /* no _SC_PAGESIZE */
25fbec5b 10204# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10205# include <sys/param.h>
10206# ifdef EXEC_PAGESIZE
10207# define getpagesize() EXEC_PAGESIZE
10208# else /* no EXEC_PAGESIZE */
10209# ifdef NBPG
10210# define getpagesize() NBPG * CLSIZE
10211# ifndef CLSIZE
10212# define CLSIZE 1
10213# endif /* no CLSIZE */
10214# else /* no NBPG */
10215# ifdef NBPC
10216# define getpagesize() NBPC
10217# else /* no NBPC */
10218# ifdef PAGESIZE
10219# define getpagesize() PAGESIZE
10220# endif /* PAGESIZE */
10221# endif /* no NBPC */
10222# endif /* no NBPG */
10223# endif /* no EXEC_PAGESIZE */
10224# else /* no HAVE_SYS_PARAM_H */
10225# define getpagesize() 8192 /* punt totally */
10226# endif /* no HAVE_SYS_PARAM_H */
10227# endif /* no _SC_PAGESIZE */
10228
10229#endif /* no HAVE_GETPAGESIZE */
10230
10231int
10232main ()
10233{
10234 char *data, *data2, *data3;
10235 int i, pagesize;
10236 int fd;
10237
10238 pagesize = getpagesize ();
10239
10240 /* First, make a file with some known garbage in it. */
10241 data = (char *) malloc (pagesize);
10242 if (!data)
7a197a62 10243 return 1;
ad6254c5
AK
10244 for (i = 0; i < pagesize; ++i)
10245 *(data + i) = rand ();
10246 umask (0);
10247 fd = creat ("conftest.mmap", 0600);
10248 if (fd < 0)
7a197a62 10249 return 1;
ad6254c5 10250 if (write (fd, data, pagesize) != pagesize)
7a197a62 10251 return 1;
ad6254c5
AK
10252 close (fd);
10253
10254 /* Next, try to mmap the file at a fixed address which already has
10255 something else allocated at it. If we can, also make sure that
10256 we see the same garbage. */
10257 fd = open ("conftest.mmap", O_RDWR);
10258 if (fd < 0)
7a197a62 10259 return 1;
ad6254c5
AK
10260 data2 = (char *) malloc (2 * pagesize);
10261 if (!data2)
7a197a62
AK
10262 return 1;
10263 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10264 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10265 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10266 return 1;
ad6254c5
AK
10267 for (i = 0; i < pagesize; ++i)
10268 if (*(data + i) != *(data2 + i))
7a197a62 10269 return 1;
ad6254c5 10270
d911ec67
AK
10271 /* Finally, make sure that changes to the mapped area do not
10272 percolate back to the file as seen by read(). (This is a bug on
10273 some variants of i386 svr4.0.) */
10274 for (i = 0; i < pagesize; ++i)
10275 *(data2 + i) = *(data2 + i) + 1;
10276 data3 = (char *) malloc (pagesize);
10277 if (!data3)
10278 return 1;
10279 if (read (fd, data3, pagesize) != pagesize)
10280 return 1;
10281 for (i = 0; i < pagesize; ++i)
10282 if (*(data + i) != *(data3 + i))
10283 return 1;
10284 close (fd);
10285 return 0;
10286}
10287_ACEOF
10288rm -f conftest$ac_exeext
10289if { (ac_try="$ac_link"
10290case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293esac
10294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10295$as_echo "$ac_try_echo") >&5
10296 (eval "$ac_link") 2>&5
10297 ac_status=$?
10298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303esac
10304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305$as_echo "$ac_try_echo") >&5
10306 (eval "$ac_try") 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_func_mmap_fixed_mapped=yes
10311else
10312 $as_echo "$as_me: program exited with status $ac_status" >&5
10313$as_echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316( exit $ac_status )
10317ac_cv_func_mmap_fixed_mapped=no
10318fi
10319rm -rf conftest.dSYM
10320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10321fi
10322
10323
10324fi
10325{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10326$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10327if test $ac_cv_func_mmap_fixed_mapped = yes; then
10328
10329cat >>confdefs.h <<\_ACEOF
10330#define HAVE_MMAP 1
10331_ACEOF
10332
10333fi
10334rm -f conftest.mmap
10335
10336
10337for ac_header in stdlib.h
10338do
10339as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10342$as_echo_n "checking for $ac_header... " >&6; }
10343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344 $as_echo_n "(cached) " >&6
10345fi
10346ac_res=`eval 'as_val=${'$as_ac_Header'}
10347 $as_echo "$as_val"'`
10348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10349$as_echo "$ac_res" >&6; }
10350else
10351 # Is the header compilable?
10352{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10353$as_echo_n "checking $ac_header usability... " >&6; }
10354cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h. */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h. */
10360$ac_includes_default
10361#include <$ac_header>
10362_ACEOF
10363rm -f conftest.$ac_objext
10364if { (ac_try="$ac_compile"
10365case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10370$as_echo "$ac_try_echo") >&5
10371 (eval "$ac_compile") 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && {
10378 test -z "$ac_c_werror_flag" ||
10379 test ! -s conftest.err
10380 } && test -s conftest.$ac_objext; then
10381 ac_header_compiler=yes
10382else
10383 $as_echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 ac_header_compiler=no
10387fi
10388
10389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10390{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10391$as_echo "$ac_header_compiler" >&6; }
10392
10393# Is the header present?
10394{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10395$as_echo_n "checking $ac_header presence... " >&6; }
10396cat >conftest.$ac_ext <<_ACEOF
10397/* confdefs.h. */
10398_ACEOF
10399cat confdefs.h >>conftest.$ac_ext
10400cat >>conftest.$ac_ext <<_ACEOF
10401/* end confdefs.h. */
10402#include <$ac_header>
10403_ACEOF
10404if { (ac_try="$ac_cpp conftest.$ac_ext"
10405case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10408esac
10409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10410$as_echo "$ac_try_echo") >&5
10411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } >/dev/null && {
10418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 }; then
10421 ac_header_preproc=yes
10422else
10423 $as_echo "$as_me: failed program was:" >&5
10424sed 's/^/| /' conftest.$ac_ext >&5
10425
10426 ac_header_preproc=no
10427fi
10428
10429rm -f conftest.err conftest.$ac_ext
10430{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10431$as_echo "$ac_header_preproc" >&6; }
10432
10433# So? What about this header?
10434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10435 yes:no: )
10436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10437$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10439$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10440 ac_header_preproc=yes
10441 ;;
10442 no:yes:* )
10443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10444$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10446$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10448$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10450$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10452$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10454$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10455
10456 ;;
10457esac
10458{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10459$as_echo_n "checking for $ac_header... " >&6; }
10460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10461 $as_echo_n "(cached) " >&6
10462else
10463 eval "$as_ac_Header=\$ac_header_preproc"
10464fi
10465ac_res=`eval 'as_val=${'$as_ac_Header'}
10466 $as_echo "$as_val"'`
10467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10468$as_echo "$ac_res" >&6; }
10469
10470fi
10471as_val=`eval 'as_val=${'$as_ac_Header'}
10472 $as_echo "$as_val"'`
10473 if test "x$as_val" = x""yes; then
10474 cat >>confdefs.h <<_ACEOF
10475#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10476_ACEOF
10477
10478fi
10479
10480done
10481
10482{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10483$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10484if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10485 $as_echo_n "(cached) " >&6
10486else
10487 if test "$cross_compiling" = yes; then
10488 ac_cv_func_realloc_0_nonnull=no
10489else
10490 cat >conftest.$ac_ext <<_ACEOF
10491/* confdefs.h. */
10492_ACEOF
10493cat confdefs.h >>conftest.$ac_ext
10494cat >>conftest.$ac_ext <<_ACEOF
10495/* end confdefs.h. */
10496#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10497# include <stdlib.h>
10498#else
10499char *realloc ();
10500#endif
10501
10502int
10503main ()
10504{
10505return ! realloc (0, 0);
10506 ;
7a197a62 10507 return 0;
ad6254c5
AK
10508}
10509_ACEOF
10510rm -f conftest$ac_exeext
7a197a62
AK
10511if { (ac_try="$ac_link"
10512case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
ec6a6fbe
AK
10516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10517$as_echo "$ac_try_echo") >&5
7a197a62 10518 (eval "$ac_link") 2>&5
ad6254c5 10519 ac_status=$?
ec6a6fbe 10520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
ec6a6fbe
AK
10526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527$as_echo "$ac_try_echo") >&5
7a197a62 10528 (eval "$ac_try") 2>&5
ad6254c5 10529 ac_status=$?
ec6a6fbe 10530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10531 (exit $ac_status); }; }; then
d911ec67 10532 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10533else
ec6a6fbe
AK
10534 $as_echo "$as_me: program exited with status $ac_status" >&5
10535$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10536sed 's/^/| /' conftest.$ac_ext >&5
10537
10538( exit $ac_status )
d911ec67 10539ac_cv_func_realloc_0_nonnull=no
ad6254c5 10540fi
ec6a6fbe 10541rm -rf conftest.dSYM
7a197a62 10542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10543fi
7a197a62
AK
10544
10545
ad6254c5 10546fi
d911ec67
AK
10547{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10548$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10549if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10550
10551cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10552#define HAVE_REALLOC 1
10553_ACEOF
10554
10555else
10556 cat >>confdefs.h <<\_ACEOF
10557#define HAVE_REALLOC 0
10558_ACEOF
10559
10560 case " $LIBOBJS " in
10561 *" realloc.$ac_objext "* ) ;;
10562 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10563 ;;
10564esac
10565
10566
10567cat >>confdefs.h <<\_ACEOF
10568#define realloc rpl_realloc
ad6254c5
AK
10569_ACEOF
10570
10571fi
d911ec67
AK
10572
10573
ad6254c5 10574
ec6a6fbe
AK
10575{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10576$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10577if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10578 $as_echo_n "(cached) " >&6
ad6254c5
AK
10579else
10580 if test "$cross_compiling" = yes; then
10581 ac_cv_func_stat_empty_string_bug=yes
10582else
10583 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
10589$ac_includes_default
10590int
10591main ()
10592{
10593struct stat sbuf;
7a197a62 10594 return stat ("", &sbuf) == 0;
ad6254c5
AK
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599rm -f conftest$ac_exeext
7a197a62
AK
10600if { (ac_try="$ac_link"
10601case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604esac
ec6a6fbe
AK
10605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606$as_echo "$ac_try_echo") >&5
7a197a62 10607 (eval "$ac_link") 2>&5
ad6254c5 10608 ac_status=$?
ec6a6fbe 10609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10611 { (case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
ec6a6fbe
AK
10615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616$as_echo "$ac_try_echo") >&5
7a197a62 10617 (eval "$ac_try") 2>&5
ad6254c5 10618 ac_status=$?
ec6a6fbe 10619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10620 (exit $ac_status); }; }; then
7a197a62 10621 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10622else
ec6a6fbe
AK
10623 $as_echo "$as_me: program exited with status $ac_status" >&5
10624$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10625sed 's/^/| /' conftest.$ac_ext >&5
10626
10627( exit $ac_status )
7a197a62 10628ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10629fi
ec6a6fbe 10630rm -rf conftest.dSYM
7a197a62 10631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10632fi
7a197a62
AK
10633
10634
ad6254c5 10635fi
ec6a6fbe
AK
10636{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10637$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10638if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10639 case " $LIBOBJS " in
8a2fc586 10640 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10641 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10642 ;;
8a2fc586
AK
10643esac
10644
ad6254c5
AK
10645
10646cat >>confdefs.h <<_ACEOF
10647#define HAVE_STAT_EMPTY_STRING_BUG 1
10648_ACEOF
10649
10650fi
10651
ec6a6fbe
AK
10652{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10653$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10654if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10655 $as_echo_n "(cached) " >&6
ad6254c5
AK
10656else
10657 if test "$cross_compiling" = yes; then
10658 ac_cv_func_strtod=no
10659else
10660 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
10666
7a197a62
AK
10667$ac_includes_default
10668#ifndef strtod
ad6254c5 10669double strtod ();
7a197a62 10670#endif
ad6254c5
AK
10671int
10672main()
10673{
10674 {
10675 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10676 char *string = " +69";
10677 char *term;
10678 double value;
10679 value = strtod (string, &term);
10680 if (value != 69 || term != (string + 4))
7a197a62 10681 return 1;
ad6254c5
AK
10682 }
10683
10684 {
10685 /* Under Solaris 2.4, strtod returns the wrong value for the
10686 terminating character under some conditions. */
10687 char *string = "NaN";
10688 char *term;
10689 strtod (string, &term);
10690 if (term != string && *(term - 1) == 0)
7a197a62 10691 return 1;
ad6254c5 10692 }
7a197a62 10693 return 0;
ad6254c5
AK
10694}
10695
10696_ACEOF
10697rm -f conftest$ac_exeext
7a197a62
AK
10698if { (ac_try="$ac_link"
10699case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702esac
ec6a6fbe
AK
10703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704$as_echo "$ac_try_echo") >&5
7a197a62 10705 (eval "$ac_link") 2>&5
ad6254c5 10706 ac_status=$?
ec6a6fbe 10707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10709 { (case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10712esac
ec6a6fbe
AK
10713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10714$as_echo "$ac_try_echo") >&5
7a197a62 10715 (eval "$ac_try") 2>&5
ad6254c5 10716 ac_status=$?
ec6a6fbe 10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10718 (exit $ac_status); }; }; then
10719 ac_cv_func_strtod=yes
10720else
ec6a6fbe
AK
10721 $as_echo "$as_me: program exited with status $ac_status" >&5
10722$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10723sed 's/^/| /' conftest.$ac_ext >&5
10724
10725( exit $ac_status )
10726ac_cv_func_strtod=no
10727fi
ec6a6fbe 10728rm -rf conftest.dSYM
7a197a62 10729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10730fi
7a197a62
AK
10731
10732
ad6254c5 10733fi
ec6a6fbe
AK
10734{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10735$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10736if test $ac_cv_func_strtod = no; then
7a197a62 10737 case " $LIBOBJS " in
8a2fc586 10738 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10739 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10740 ;;
8a2fc586
AK
10741esac
10742
ec6a6fbe
AK
10743{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10744$as_echo_n "checking for pow... " >&6; }
ad6254c5 10745if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10746 $as_echo_n "(cached) " >&6
ad6254c5
AK
10747else
10748 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10749/* confdefs.h. */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
10753/* end confdefs.h. */
8a2fc586
AK
10754/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10756#define pow innocuous_pow
10757
ad6254c5
AK
10758/* System header to define __stub macros and hopefully few prototypes,
10759 which can conflict with char pow (); below.
10760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10761 <limits.h> exists even on freestanding compilers. */
8a2fc586 10762
ad6254c5
AK
10763#ifdef __STDC__
10764# include <limits.h>
10765#else
10766# include <assert.h>
10767#endif
8a2fc586
AK
10768
10769#undef pow
10770
7a197a62
AK
10771/* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10774#ifdef __cplusplus
10775extern "C"
ad6254c5 10776#endif
ad6254c5
AK
10777char pow ();
10778/* The GNU C library defines this for functions which it implements
10779 to always fail with ENOSYS. Some functions are actually named
10780 something starting with __ and the normal name is an alias. */
7a197a62 10781#if defined __stub_pow || defined __stub___pow
ad6254c5 10782choke me
ad6254c5
AK
10783#endif
10784
10785int
10786main ()
10787{
7a197a62 10788return pow ();
ad6254c5
AK
10789 ;
10790 return 0;
10791}
10792_ACEOF
10793rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10794if { (ac_try="$ac_link"
10795case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798esac
ec6a6fbe
AK
10799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10800$as_echo "$ac_try_echo") >&5
7a197a62 10801 (eval "$ac_link") 2>conftest.er1
ad6254c5 10802 ac_status=$?
8a2fc586
AK
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
ec6a6fbe 10806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
ec6a6fbe
AK
10810 } && test -s conftest$ac_exeext && {
10811 test "$cross_compiling" = yes ||
10812 $as_test_x conftest$ac_exeext
10813 }; then
ad6254c5
AK
10814 ac_cv_func_pow=yes
10815else
ec6a6fbe 10816 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
7a197a62 10819 ac_cv_func_pow=no
ad6254c5 10820fi
7a197a62 10821
ec6a6fbe 10822rm -rf conftest.dSYM
25fbec5b 10823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10824 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10825fi
ec6a6fbe
AK
10826{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10827$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10828
10829if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10830 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10831$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10832if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10833 $as_echo_n "(cached) " >&6
ad6254c5
AK
10834else
10835 ac_check_lib_save_LIBS=$LIBS
10836LIBS="-lm $LIBS"
10837cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10838/* confdefs.h. */
10839_ACEOF
10840cat confdefs.h >>conftest.$ac_ext
10841cat >>conftest.$ac_ext <<_ACEOF
10842/* end confdefs.h. */
10843
7a197a62
AK
10844/* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10847#ifdef __cplusplus
10848extern "C"
10849#endif
ad6254c5
AK
10850char pow ();
10851int
10852main ()
10853{
7a197a62 10854return pow ();
ad6254c5
AK
10855 ;
10856 return 0;
10857}
10858_ACEOF
10859rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10860if { (ac_try="$ac_link"
10861case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
ec6a6fbe
AK
10865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10866$as_echo "$ac_try_echo") >&5
7a197a62 10867 (eval "$ac_link") 2>conftest.er1
ad6254c5 10868 ac_status=$?
8a2fc586
AK
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
ec6a6fbe 10872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10873 (exit $ac_status); } && {
10874 test -z "$ac_c_werror_flag" ||
10875 test ! -s conftest.err
ec6a6fbe
AK
10876 } && test -s conftest$ac_exeext && {
10877 test "$cross_compiling" = yes ||
10878 $as_test_x conftest$ac_exeext
10879 }; then
ad6254c5
AK
10880 ac_cv_lib_m_pow=yes
10881else
ec6a6fbe 10882 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10883sed 's/^/| /' conftest.$ac_ext >&5
10884
7a197a62 10885 ac_cv_lib_m_pow=no
ad6254c5 10886fi
7a197a62 10887
ec6a6fbe 10888rm -rf conftest.dSYM
25fbec5b 10889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10890 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10891LIBS=$ac_check_lib_save_LIBS
d0191583 10892fi
ec6a6fbe
AK
10893{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10894$as_echo "$ac_cv_lib_m_pow" >&6; }
10895if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10896 POW_LIB=-lm
10897else
ec6a6fbe
AK
10898 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10899$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10900fi
72b2cb61 10901
d0191583 10902fi
72b2cb61 10903
ad6254c5
AK
10904fi
10905
ad6254c5 10906
d0191583
JM
10907for ac_func in vprintf
10908do
ec6a6fbe
AK
10909as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10910{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10911$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10912if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10913 $as_echo_n "(cached) " >&6
ad6254c5 10914else
d0191583
JM
10915 cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
10921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10923#define $ac_func innocuous_$ac_func
7a197a62 10924
d0191583
JM
10925/* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char $ac_func (); below.
10927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928 <limits.h> exists even on freestanding compilers. */
ad6254c5 10929
d0191583
JM
10930#ifdef __STDC__
10931# include <limits.h>
10932#else
10933# include <assert.h>
10934#endif
ad6254c5 10935
d0191583 10936#undef $ac_func
72b2cb61 10937
d0191583
JM
10938/* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941#ifdef __cplusplus
10942extern "C"
10943#endif
10944char $ac_func ();
10945/* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
10948#if defined __stub_$ac_func || defined __stub___$ac_func
10949choke me
10950#endif
10951
10952int
10953main ()
10954{
10955return $ac_func ();
10956 ;
10957 return 0;
10958}
72b2cb61 10959_ACEOF
d0191583
JM
10960rm -f conftest.$ac_objext conftest$ac_exeext
10961if { (ac_try="$ac_link"
10962case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
ec6a6fbe
AK
10966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967$as_echo "$ac_try_echo") >&5
d0191583
JM
10968 (eval "$ac_link") 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
ec6a6fbe 10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
ec6a6fbe
AK
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10980 }; then
d0191583
JM
10981 eval "$as_ac_var=yes"
10982else
ec6a6fbe 10983 $as_echo "$as_me: failed program was:" >&5
d0191583 10984sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10985
d0191583 10986 eval "$as_ac_var=no"
ad6254c5
AK
10987fi
10988
ec6a6fbe 10989rm -rf conftest.dSYM
d0191583
JM
10990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
7a197a62 10992fi
ec6a6fbe
AK
10993ac_res=`eval 'as_val=${'$as_ac_var'}
10994 $as_echo "$as_val"'`
10995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10996$as_echo "$ac_res" >&6; }
10997as_val=`eval 'as_val=${'$as_ac_var'}
10998 $as_echo "$as_val"'`
10999 if test "x$as_val" = x""yes; then
d0191583 11000 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 11002_ACEOF
7a197a62 11003
ec6a6fbe
AK
11004{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11005$as_echo_n "checking for _doprnt... " >&6; }
d0191583 11006if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 11007 $as_echo_n "(cached) " >&6
ad6254c5 11008else
d0191583
JM
11009 cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11017#define _doprnt innocuous__doprnt
7a197a62 11018
d0191583
JM
11019/* System header to define __stub macros and hopefully few prototypes,
11020 which can conflict with char _doprnt (); below.
11021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022 <limits.h> exists even on freestanding compilers. */
ad6254c5 11023
d0191583
JM
11024#ifdef __STDC__
11025# include <limits.h>
11026#else
11027# include <assert.h>
11028#endif
72b2cb61 11029
d0191583
JM
11030#undef _doprnt
11031
11032/* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035#ifdef __cplusplus
11036extern "C"
11037#endif
11038char _doprnt ();
11039/* The GNU C library defines this for functions which it implements
11040 to always fail with ENOSYS. Some functions are actually named
11041 something starting with __ and the normal name is an alias. */
11042#if defined __stub__doprnt || defined __stub____doprnt
11043choke me
11044#endif
11045
11046int
11047main ()
11048{
11049return _doprnt ();
11050 ;
11051 return 0;
11052}
72b2cb61 11053_ACEOF
d0191583
JM
11054rm -f conftest.$ac_objext conftest$ac_exeext
11055if { (ac_try="$ac_link"
11056case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059esac
ec6a6fbe
AK
11060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11061$as_echo "$ac_try_echo") >&5
d0191583
JM
11062 (eval "$ac_link") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
ec6a6fbe 11067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
ec6a6fbe
AK
11071 } && test -s conftest$ac_exeext && {
11072 test "$cross_compiling" = yes ||
11073 $as_test_x conftest$ac_exeext
11074 }; then
d0191583
JM
11075 ac_cv_func__doprnt=yes
11076else
ec6a6fbe 11077 $as_echo "$as_me: failed program was:" >&5
d0191583 11078sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11079
d0191583 11080 ac_cv_func__doprnt=no
ad6254c5
AK
11081fi
11082
ec6a6fbe 11083rm -rf conftest.dSYM
d0191583
JM
11084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11085 conftest$ac_exeext conftest.$ac_ext
7a197a62 11086fi
ec6a6fbe
AK
11087{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11088$as_echo "$ac_cv_func__doprnt" >&6; }
11089if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11090
d0191583
JM
11091cat >>confdefs.h <<\_ACEOF
11092#define HAVE_DOPRNT 1
11093_ACEOF
ad6254c5 11094
7a197a62
AK
11095fi
11096
d0191583
JM
11097fi
11098done
8b1a3214 11099
ad6254c5 11100
7a197a62 11101
9c961554 11102################################################################################
ec6a6fbe
AK
11103{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11104$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11105# Check whether --enable-static_link was given.
11106if test "${enable_static_link+set}" = set; then
11107 enableval=$enable_static_link; STATIC_LINK=$enableval
11108else
11109 STATIC_LINK=no
11110fi
11111
ec6a6fbe
AK
11112{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11113$as_echo "$STATIC_LINK" >&6; }
9c961554 11114
d0191583 11115################################################################################
ad6254c5 11116
ad6254c5
AK
11117
11118################################################################################
ec6a6fbe
AK
11119{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11120$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11121
11122# Check whether --with-user was given.
11123if test "${with_user+set}" = set; then
71082be4 11124 withval=$with_user; OWNER=$withval
7a197a62
AK
11125fi
11126
ec6a6fbe
AK
11127{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11128$as_echo "$OWNER" >&6; }
ad6254c5 11129
d0191583 11130if test x$OWNER != x; then
23b059e7 11131 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11132fi
11133
11134################################################################################
ec6a6fbe
AK
11135{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11136$as_echo_n "checking group owner... " >&6; }
ad6254c5 11137
d0191583
JM
11138# Check whether --with-group was given.
11139if test "${with_group+set}" = set; then
71082be4 11140 withval=$with_group; GROUP=$withval
7a197a62
AK
11141fi
11142
ec6a6fbe
AK
11143{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11144$as_echo "$GROUP" >&6; }
d0191583
JM
11145
11146if test x$GROUP != x; then
23b059e7 11147 INSTALL="$INSTALL -g $GROUP"
d0191583 11148fi
ad6254c5 11149
24bbc4d7 11150################################################################################
ec6a6fbe
AK
11151{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11152$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11153
11154
11155# Check whether --with-device-uid was given.
11156if test "${with_device_uid+set}" = set; then
71082be4 11157 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11158else
71082be4 11159 DM_DEVICE_UID=0
24bbc4d7
AK
11160fi
11161
ec6a6fbe
AK
11162{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11163$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11164
11165################################################################################
ec6a6fbe
AK
11166{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11167$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11168
11169
11170# Check whether --with-device-gid was given.
11171if test "${with_device_gid+set}" = set; then
71082be4 11172 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11173else
71082be4 11174 DM_DEVICE_GID=0
24bbc4d7
AK
11175fi
11176
ec6a6fbe
AK
11177{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11178$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11179
93bd259b 11180################################################################################
ec6a6fbe
AK
11181{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11182$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11183
11184
11185# Check whether --with-device-mode was given.
11186if test "${with_device_mode+set}" = set; then
71082be4 11187 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11188else
71082be4 11189 DM_DEVICE_MODE=0600
93bd259b
AK
11190fi
11191
ec6a6fbe
AK
11192{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11193$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11194
ad6254c5 11195################################################################################
ec6a6fbe
AK
11196{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11197$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11198# Check whether --enable-lvm1_fallback was given.
11199if test "${enable_lvm1_fallback+set}" = set; then
11200 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11201else
11202 LVM1_FALLBACK=no
7a197a62
AK
11203fi
11204
ec6a6fbe
AK
11205{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11206$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11207
d0191583 11208if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11209
11210cat >>confdefs.h <<\_ACEOF
d0191583 11211#define LVM1_FALLBACK 1
72b2cb61
AK
11212_ACEOF
11213
ad6254c5
AK
11214fi
11215
11216################################################################################
ec6a6fbe
AK
11217{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11218$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11219
11220# Check whether --with-lvm1 was given.
11221if test "${with_lvm1+set}" = set; then
71082be4 11222 withval=$with_lvm1; LVM1=$withval
d0191583 11223else
71082be4 11224 LVM1=internal
7a197a62
AK
11225fi
11226
ec6a6fbe
AK
11227{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11228$as_echo "$LVM1" >&6; }
ad6254c5 11229
d0191583 11230if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11231 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11232" >&5
ec6a6fbe 11233$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11234" >&2;}
11235 { (exit 1); exit 1; }; }
11236fi;
11237
11238if test x$LVM1 = xinternal; then
72b2cb61
AK
11239
11240cat >>confdefs.h <<\_ACEOF
d0191583 11241#define LVM1_INTERNAL 1
72b2cb61
AK
11242_ACEOF
11243
ad6254c5
AK
11244fi
11245
11246################################################################################
ec6a6fbe
AK
11247{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11248$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11249
11250# Check whether --with-pool was given.
11251if test "${with_pool+set}" = set; then
71082be4 11252 withval=$with_pool; POOL=$withval
ad6254c5 11253else
71082be4 11254 POOL=internal
7a197a62
AK
11255fi
11256
ec6a6fbe
AK
11257{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11258$as_echo "$POOL" >&6; }
ad6254c5 11259
d0191583 11260if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11261 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11262" >&5
ec6a6fbe 11263$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11264" >&2;}
11265 { (exit 1); exit 1; }; }
11266fi;
7a197a62 11267
d0191583
JM
11268if test x$POOL = xinternal; then
11269
11270cat >>confdefs.h <<\_ACEOF
11271#define POOL_INTERNAL 1
11272_ACEOF
11273
11274fi
ad6254c5 11275
06f62ad1 11276################################################################################
ec6a6fbe
AK
11277{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11278$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11279
11280# Check whether --with-cluster was given.
11281if test "${with_cluster+set}" = set; then
71082be4 11282 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11283fi
11284
ec6a6fbe
AK
11285{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11286$as_echo "$CLUSTER" >&6; }
06f62ad1 11287
d0191583 11288if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11289 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11290" >&5
ec6a6fbe 11291$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11292" >&2;}
11293 { (exit 1); exit 1; }; }
d0191583 11294fi;
06f62ad1 11295
d0191583 11296if test x$CLUSTER = xinternal; then
72b2cb61
AK
11297
11298cat >>confdefs.h <<\_ACEOF
d0191583 11299#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11300_ACEOF
11301
15d91f5a 11302fi
ad6254c5
AK
11303
11304################################################################################
ec6a6fbe
AK
11305{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11306$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11307
d0191583
JM
11308# Check whether --with-snapshots was given.
11309if test "${with_snapshots+set}" = set; then
71082be4 11310 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11311else
71082be4 11312 SNAPSHOTS=internal
ad6254c5
AK
11313fi
11314
ec6a6fbe
AK
11315{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11316$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11317
d0191583 11318if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11319 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11320" >&5
ec6a6fbe 11321$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11322" >&2;}
11323 { (exit 1); exit 1; }; }
11324fi;
11325
11326if test x$SNAPSHOTS = xinternal; then
11327
11328cat >>confdefs.h <<\_ACEOF
11329#define SNAPSHOT_INTERNAL 1
11330_ACEOF
ad6254c5 11331
ad6254c5 11332fi
7a197a62 11333
d0191583 11334################################################################################
ec6a6fbe
AK
11335{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11336$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11337
11338# Check whether --with-mirrors was given.
11339if test "${with_mirrors+set}" = set; then
71082be4 11340 withval=$with_mirrors; MIRRORS=$withval
d0191583 11341else
71082be4 11342 MIRRORS=internal
ad6254c5 11343fi
ad6254c5 11344
ec6a6fbe
AK
11345{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11346$as_echo "$MIRRORS" >&6; }
ad6254c5 11347
d0191583 11348if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11349 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11350" >&5
ec6a6fbe 11351$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11352" >&2;}
11353 { (exit 1); exit 1; }; }
11354fi;
ad6254c5 11355
d0191583 11356if test x$MIRRORS = xinternal; then
ad6254c5 11357
d0191583
JM
11358cat >>confdefs.h <<\_ACEOF
11359#define MIRRORED_INTERNAL 1
ad6254c5 11360_ACEOF
8a2fc586 11361
d0191583 11362fi
8a2fc586 11363
8fea97b7
ZK
11364################################################################################
11365{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11366$as_echo_n "checking whether to include replicators... " >&6; }
11367
11368# Check whether --with-replicators was given.
11369if test "${with_replicators+set}" = set; then
11370 withval=$with_replicators; REPLICATORS=$withval
11371else
71082be4 11372 REPLICATORS=none
8fea97b7
ZK
11373fi
11374
11375{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11376$as_echo "$REPLICATORS" >&6; }
11377
11378case "$REPLICATORS" in
11379 none|shared) ;;
11380 internal)
11381cat >>confdefs.h <<\_ACEOF
11382#define REPLICATOR_INTERNAL 1
11383_ACEOF
11384 ;;
11385 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11386$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11387 { (exit 1); exit 1; }; } ;;
11388esac
11389
d0191583 11390################################################################################
ec6a6fbe
AK
11391{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11392$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11393# Check whether --enable-readline was given.
11394if test "${enable_readline+set}" = set; then
11395 enableval=$enable_readline; READLINE=$enableval
11396else
06e459df 11397 READLINE=maybe
d0191583 11398fi
8a2fc586 11399
ec6a6fbe
AK
11400{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11401$as_echo "$READLINE" >&6; }
8a2fc586 11402
d0191583 11403################################################################################
ec6a6fbe
AK
11404{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11405$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11406# Check whether --enable-realtime was given.
11407if test "${enable_realtime+set}" = set; then
11408 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11409fi
ad6254c5 11410
ec6a6fbe
AK
11411{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11412$as_echo "$REALTIME" >&6; }
d0191583
JM
11413
11414################################################################################
90c80887 11415pkg_config_init() {
e2997b73
AK
11416
11417
71082be4
ZK
11418
11419
11420
11421
e2997b73
AK
11422if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11423 if test -n "$ac_tool_prefix"; then
11424 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11425set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11426{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11427$as_echo_n "checking for $ac_word... " >&6; }
11428if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11429 $as_echo_n "(cached) " >&6
11430else
11431 case $PKG_CONFIG in
11432 [\\/]* | ?:[\\/]*)
11433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11434 ;;
11435 *)
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $PATH
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 break 2
11446 fi
11447done
11448done
11449IFS=$as_save_IFS
11450
11451 ;;
11452esac
11453fi
11454PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11455if test -n "$PKG_CONFIG"; then
11456 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11457$as_echo "$PKG_CONFIG" >&6; }
11458else
11459 { $as_echo "$as_me:$LINENO: result: no" >&5
11460$as_echo "no" >&6; }
11461fi
11462
11463
11464fi
11465if test -z "$ac_cv_path_PKG_CONFIG"; then
11466 ac_pt_PKG_CONFIG=$PKG_CONFIG
11467 # Extract the first word of "pkg-config", so it can be a program name with args.
11468set dummy pkg-config; ac_word=$2
11469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11470$as_echo_n "checking for $ac_word... " >&6; }
11471if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11472 $as_echo_n "(cached) " >&6
11473else
11474 case $ac_pt_PKG_CONFIG in
11475 [\\/]* | ?:[\\/]*)
11476 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11477 ;;
11478 *)
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11489 fi
11490done
11491done
11492IFS=$as_save_IFS
11493
11494 ;;
11495esac
11496fi
11497ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11498if test -n "$ac_pt_PKG_CONFIG"; then
11499 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11500$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11501else
11502 { $as_echo "$as_me:$LINENO: result: no" >&5
11503$as_echo "no" >&6; }
11504fi
11505
11506 if test "x$ac_pt_PKG_CONFIG" = x; then
11507 PKG_CONFIG=""
11508 else
11509 case $cross_compiling:$ac_tool_warned in
11510yes:)
11511{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11513ac_tool_warned=yes ;;
11514esac
11515 PKG_CONFIG=$ac_pt_PKG_CONFIG
11516 fi
11517else
11518 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11519fi
11520
11521fi
11522if test -n "$PKG_CONFIG"; then
11523 _pkg_min_version=0.9.0
11524 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11525$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11526 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11527 { $as_echo "$as_me:$LINENO: result: yes" >&5
11528$as_echo "yes" >&6; }
11529 else
11530 { $as_echo "$as_me:$LINENO: result: no" >&5
11531$as_echo "no" >&6; }
11532 PKG_CONFIG=""
11533 fi
e2997b73
AK
11534fi
11535
11536pkg_failed=no
a946372e
AK
11537{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11538$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11539
a946372e
AK
11540if test -n "$PKGCONFIGINIT_CFLAGS"; then
11541 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11542 elif test -n "$PKG_CONFIG"; then
11543 if test -n "$PKG_CONFIG" && \
a946372e
AK
11544 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11545 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11546 ac_status=$?
11547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; then
a946372e 11549 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11550else
11551 pkg_failed=yes
11552fi
11553 else
11554 pkg_failed=untried
11555fi
a946372e
AK
11556if test -n "$PKGCONFIGINIT_LIBS"; then
11557 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11558 elif test -n "$PKG_CONFIG"; then
11559 if test -n "$PKG_CONFIG" && \
a946372e
AK
11560 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11561 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11562 ac_status=$?
11563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; then
a946372e 11565 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11566else
11567 pkg_failed=yes
11568fi
11569 else
11570 pkg_failed=untried
11571fi
11572
11573
11574
11575if test $pkg_failed = yes; then
71082be4
ZK
11576 { $as_echo "$as_me:$LINENO: result: no" >&5
11577$as_echo "no" >&6; }
e2997b73
AK
11578
11579if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11580 _pkg_short_errors_supported=yes
11581else
11582 _pkg_short_errors_supported=no
11583fi
11584 if test $_pkg_short_errors_supported = yes; then
a946372e 11585 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11586 else
a946372e 11587 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11588 fi
11589 # Put the nasty error message in config.log where it belongs
a946372e 11590 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11591
71082be4 11592 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11593$as_echo "pkg-config initialized" >&6; }
e2997b73 11594elif test $pkg_failed = untried; then
71082be4
ZK
11595 { $as_echo "$as_me:$LINENO: result: no" >&5
11596$as_echo "no" >&6; }
a946372e
AK
11597 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11598$as_echo "pkg-config initialized" >&6; }
e2997b73 11599else
a946372e
AK
11600 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11601 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11602 { $as_echo "$as_me:$LINENO: result: yes" >&5
11603$as_echo "yes" >&6; }
71082be4 11604
e2997b73 11605fi
90c80887
AK
11606 PKGCONFIG_INIT=1
11607}
11608
11609################################################################################
11610{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11611$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11612
11613# Check whether --with-clvmd was given.
11614if test "${with_clvmd+set}" = set; then
71082be4 11615 withval=$with_clvmd; CLVMD=$withval
90c80887 11616else
71082be4 11617 CLVMD=none
90c80887
AK
11618fi
11619
11620if test x$CLVMD = xyes; then
11621 CLVMD=all
11622fi
11623{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11624$as_echo "$CLVMD" >&6; }
11625
11626if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11627 CLUSTER=internal
11628fi
11629
11630if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11631 pkg_config_init
11632fi
11633
11634
11635if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11636 BUILDGULM=yes
11637fi
11638if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11639 BUILDCOROSYNC=yes
11640fi
11641if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11642 BUILDOPENAIS=yes
11643fi
11644if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11645 BUILDCMAN=yes
11646fi
11647
11648if test x$BUILDGULM = xyes; then
11649 if test x$BUILDCOROSYNC = xyes || \
11650 test x$BUILDOPENAIS = xyes; then
11651 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11652$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11653 { (exit 1); exit 1; }; }
11654 fi
a946372e 11655fi
e2997b73 11656
a946372e
AK
11657soft_bailout() {
11658 NOTFOUND=1
11659}
e2997b73 11660
a946372e
AK
11661hard_bailout() {
11662 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11663$as_echo "$as_me: error: bailing out" >&2;}
11664 { (exit 1); exit 1; }; }
11665}
11666
11667if test x$CLVMD = xall; then
11668 bailout=soft_bailout
11669 BUILDGULM=yes
11670 BUILDCMAN=yes
11671 BUILDCOROSYNC=yes
11672 BUILDOPENAIS=yes
e2997b73 11673else
a946372e 11674 bailout=hard_bailout
e2997b73 11675fi
a946372e
AK
11676
11677check_lib_no_libs() {
11678 lib_no_libs_arg1=$1
11679 shift
11680 lib_no_libs_arg2=$1
11681 shift
11682 lib_no_libs_args=$@
11683
11684as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11685{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11686$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11687if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11688 $as_echo_n "(cached) " >&6
11689else
11690 ac_check_lib_save_LIBS=$LIBS
11691LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11692cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698
11699/* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
11702#ifdef __cplusplus
11703extern "C"
11704#endif
11705char $lib_no_libs_arg2 ();
11706int
11707main ()
11708{
11709return $lib_no_libs_arg2 ();
11710 ;
11711 return 0;
11712}
11713_ACEOF
11714rm -f conftest.$ac_objext conftest$ac_exeext
11715if { (ac_try="$ac_link"
11716case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11719esac
11720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11721$as_echo "$ac_try_echo") >&5
11722 (eval "$ac_link") 2>conftest.er1
e2997b73 11723 ac_status=$?
a946372e
AK
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
e2997b73 11727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11728 (exit $ac_status); } && {
11729 test -z "$ac_c_werror_flag" ||
11730 test ! -s conftest.err
11731 } && test -s conftest$ac_exeext && {
11732 test "$cross_compiling" = yes ||
11733 $as_test_x conftest$ac_exeext
11734 }; then
11735 eval "$as_ac_Lib=yes"
e2997b73 11736else
a946372e
AK
11737 $as_echo "$as_me: failed program was:" >&5
11738sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11739
a946372e
AK
11740 eval "$as_ac_Lib=no"
11741fi
e2997b73 11742
a946372e
AK
11743rm -rf conftest.dSYM
11744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11745 conftest$ac_exeext conftest.$ac_ext
11746LIBS=$ac_check_lib_save_LIBS
11747fi
11748ac_res=`eval 'as_val=${'$as_ac_Lib'}
11749 $as_echo "$as_val"'`
11750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11751$as_echo "$ac_res" >&6; }
11752as_val=`eval 'as_val=${'$as_ac_Lib'}
11753 $as_echo "$as_val"'`
11754 if test "x$as_val" = x""yes; then
11755 cat >>confdefs.h <<_ACEOF
11756#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11757_ACEOF
e2997b73 11758
a946372e 11759 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11760
e2997b73 11761else
a946372e 11762 $bailout
e2997b73 11763fi
e2997b73 11764
a946372e
AK
11765 LIBS=$ac_check_lib_save_LIBS
11766}
11767
11768if test x$BUILDGULM = xyes; then
e2997b73
AK
11769
11770pkg_failed=no
a946372e
AK
11771{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11772$as_echo_n "checking for CCS... " >&6; }
e2997b73 11773
a946372e
AK
11774if test -n "$CCS_CFLAGS"; then
11775 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11776 elif test -n "$PKG_CONFIG"; then
11777 if test -n "$PKG_CONFIG" && \
a946372e
AK
11778 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11779 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11780 ac_status=$?
11781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; then
a946372e 11783 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11784else
11785 pkg_failed=yes
11786fi
11787 else
11788 pkg_failed=untried
11789fi
a946372e
AK
11790if test -n "$CCS_LIBS"; then
11791 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11792 elif test -n "$PKG_CONFIG"; then
11793 if test -n "$PKG_CONFIG" && \
a946372e
AK
11794 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11795 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11796 ac_status=$?
11797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; then
a946372e 11799 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11800else
11801 pkg_failed=yes
11802fi
11803 else
11804 pkg_failed=untried
11805fi
11806
11807
11808
11809if test $pkg_failed = yes; then
71082be4
ZK
11810 { $as_echo "$as_me:$LINENO: result: no" >&5
11811$as_echo "no" >&6; }
e2997b73
AK
11812
11813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11814 _pkg_short_errors_supported=yes
11815else
11816 _pkg_short_errors_supported=no
11817fi
11818 if test $_pkg_short_errors_supported = yes; then
a946372e 11819 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11820 else
a946372e 11821 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11822 fi
11823 # Put the nasty error message in config.log where it belongs
a946372e 11824 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11825
71082be4 11826 NOTFOUND=0
e2997b73 11827
a946372e
AK
11828for ac_header in ccs.h
11829do
11830as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11833$as_echo_n "checking for $ac_header... " >&6; }
11834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835 $as_echo_n "(cached) " >&6
d0191583 11836fi
a946372e
AK
11837ac_res=`eval 'as_val=${'$as_ac_Header'}
11838 $as_echo "$as_val"'`
11839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11840$as_echo "$ac_res" >&6; }
fc54be10 11841else
a946372e
AK
11842 # Is the header compilable?
11843{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11844$as_echo_n "checking $ac_header usability... " >&6; }
11845cat >conftest.$ac_ext <<_ACEOF
11846/* confdefs.h. */
11847_ACEOF
11848cat confdefs.h >>conftest.$ac_ext
11849cat >>conftest.$ac_ext <<_ACEOF
11850/* end confdefs.h. */
11851$ac_includes_default
11852#include <$ac_header>
11853_ACEOF
11854rm -f conftest.$ac_objext
11855if { (ac_try="$ac_compile"
11856case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11861$as_echo "$ac_try_echo") >&5
11862 (eval "$ac_compile") 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && {
11869 test -z "$ac_c_werror_flag" ||
11870 test ! -s conftest.err
11871 } && test -s conftest.$ac_objext; then
11872 ac_header_compiler=yes
11873else
11874 $as_echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11876
a946372e 11877 ac_header_compiler=no
d0191583
JM
11878fi
11879
a946372e
AK
11880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11882$as_echo "$ac_header_compiler" >&6; }
fddafd51 11883
a946372e
AK
11884# Is the header present?
11885{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11886$as_echo_n "checking $ac_header presence... " >&6; }
11887cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
11893#include <$ac_header>
11894_ACEOF
11895if { (ac_try="$ac_cpp conftest.$ac_ext"
11896case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899esac
11900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901$as_echo "$ac_try_echo") >&5
11902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } >/dev/null && {
11909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11910 test ! -s conftest.err
11911 }; then
11912 ac_header_preproc=yes
11913else
11914 $as_echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 ac_header_preproc=no
11918fi
11919
11920rm -f conftest.err conftest.$ac_ext
11921{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11922$as_echo "$ac_header_preproc" >&6; }
11923
11924# So? What about this header?
11925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11926 yes:no: )
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11928$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11930$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11931 ac_header_preproc=yes
11932 ;;
11933 no:yes:* )
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11935$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11937$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11939$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11941$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11943$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11945$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11946
11947 ;;
11948esac
11949{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11950$as_echo_n "checking for $ac_header... " >&6; }
11951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11952 $as_echo_n "(cached) " >&6
11953else
11954 eval "$as_ac_Header=\$ac_header_preproc"
11955fi
11956ac_res=`eval 'as_val=${'$as_ac_Header'}
11957 $as_echo "$as_val"'`
11958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11959$as_echo "$ac_res" >&6; }
11960
11961fi
11962as_val=`eval 'as_val=${'$as_ac_Header'}
11963 $as_echo "$as_val"'`
11964 if test "x$as_val" = x""yes; then
11965 cat >>confdefs.h <<_ACEOF
11966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11967_ACEOF
11968
11969else
11970 $bailout
11971fi
11972
11973done
11974
11975 check_lib_no_libs ccs ccs_connect
11976 if test $NOTFOUND = 0; then
11977 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11978$as_echo "no pkg for libccs, using -lccs" >&6; }
11979 CCS_LIBS="-lccs"
11980 HAVE_CCS=yes
11981 fi
11982elif test $pkg_failed = untried; then
71082be4
ZK
11983 { $as_echo "$as_me:$LINENO: result: no" >&5
11984$as_echo "no" >&6; }
a946372e
AK
11985 NOTFOUND=0
11986
11987for ac_header in ccs.h
11988do
11989as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11992$as_echo_n "checking for $ac_header... " >&6; }
11993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11994 $as_echo_n "(cached) " >&6
11995fi
11996ac_res=`eval 'as_val=${'$as_ac_Header'}
11997 $as_echo "$as_val"'`
11998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11999$as_echo "$ac_res" >&6; }
12000else
12001 # Is the header compilable?
12002{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003$as_echo_n "checking $ac_header usability... " >&6; }
12004cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010$ac_includes_default
12011#include <$ac_header>
12012_ACEOF
12013rm -f conftest.$ac_objext
12014if { (ac_try="$ac_compile"
12015case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12020$as_echo "$ac_try_echo") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } && {
12028 test -z "$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 } && test -s conftest.$ac_objext; then
12031 ac_header_compiler=yes
12032else
12033 $as_echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_compiler=no
12037fi
12038
12039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041$as_echo "$ac_header_compiler" >&6; }
12042
12043# Is the header present?
12044{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045$as_echo_n "checking $ac_header presence... " >&6; }
12046cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052#include <$ac_header>
12053_ACEOF
12054if { (ac_try="$ac_cpp conftest.$ac_ext"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12060$as_echo "$ac_try_echo") >&5
12061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } >/dev/null && {
12068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 }; then
12071 ac_header_preproc=yes
12072else
12073 $as_echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 ac_header_preproc=no
12077fi
12078
12079rm -f conftest.err conftest.$ac_ext
12080{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12081$as_echo "$ac_header_preproc" >&6; }
12082
12083# So? What about this header?
12084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12085 yes:no: )
12086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12087$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12089$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12090 ac_header_preproc=yes
12091 ;;
12092 no:yes:* )
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12094$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12096$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12098$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12100$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12102$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12104$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12105
12106 ;;
12107esac
12108{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12109$as_echo_n "checking for $ac_header... " >&6; }
12110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12111 $as_echo_n "(cached) " >&6
12112else
12113 eval "$as_ac_Header=\$ac_header_preproc"
12114fi
12115ac_res=`eval 'as_val=${'$as_ac_Header'}
12116 $as_echo "$as_val"'`
12117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12118$as_echo "$ac_res" >&6; }
12119
12120fi
12121as_val=`eval 'as_val=${'$as_ac_Header'}
12122 $as_echo "$as_val"'`
12123 if test "x$as_val" = x""yes; then
12124 cat >>confdefs.h <<_ACEOF
12125#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12126_ACEOF
12127
12128else
12129 $bailout
12130fi
12131
12132done
12133
12134 check_lib_no_libs ccs ccs_connect
12135 if test $NOTFOUND = 0; then
12136 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12137$as_echo "no pkg for libccs, using -lccs" >&6; }
12138 CCS_LIBS="-lccs"
12139 HAVE_CCS=yes
12140 fi
12141else
12142 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12143 CCS_LIBS=$pkg_cv_CCS_LIBS
12144 { $as_echo "$as_me:$LINENO: result: yes" >&5
12145$as_echo "yes" >&6; }
12146 HAVE_CCS=yes
12147fi
12148
12149pkg_failed=no
12150{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12151$as_echo_n "checking for GULM... " >&6; }
12152
12153if test -n "$GULM_CFLAGS"; then
12154 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12155 elif test -n "$PKG_CONFIG"; then
12156 if test -n "$PKG_CONFIG" && \
12157 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12158 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12159 ac_status=$?
12160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; then
12162 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12163else
12164 pkg_failed=yes
12165fi
12166 else
12167 pkg_failed=untried
12168fi
12169if test -n "$GULM_LIBS"; then
12170 pkg_cv_GULM_LIBS="$GULM_LIBS"
12171 elif test -n "$PKG_CONFIG"; then
12172 if test -n "$PKG_CONFIG" && \
12173 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12174 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12175 ac_status=$?
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; then
12178 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12179else
12180 pkg_failed=yes
12181fi
12182 else
12183 pkg_failed=untried
12184fi
12185
12186
12187
12188if test $pkg_failed = yes; then
71082be4
ZK
12189 { $as_echo "$as_me:$LINENO: result: no" >&5
12190$as_echo "no" >&6; }
a946372e
AK
12191
12192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12193 _pkg_short_errors_supported=yes
12194else
12195 _pkg_short_errors_supported=no
12196fi
12197 if test $_pkg_short_errors_supported = yes; then
12198 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12199 else
12200 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12201 fi
12202 # Put the nasty error message in config.log where it belongs
12203 echo "$GULM_PKG_ERRORS" >&5
12204
71082be4 12205 NOTFOUND=0
a946372e
AK
12206
12207for ac_header in libgulm.h
12208do
12209as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12212$as_echo_n "checking for $ac_header... " >&6; }
12213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214 $as_echo_n "(cached) " >&6
12215fi
12216ac_res=`eval 'as_val=${'$as_ac_Header'}
12217 $as_echo "$as_val"'`
12218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12219$as_echo "$ac_res" >&6; }
12220else
12221 # Is the header compilable?
12222{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12223$as_echo_n "checking $ac_header usability... " >&6; }
12224cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230$ac_includes_default
12231#include <$ac_header>
12232_ACEOF
12233rm -f conftest.$ac_objext
12234if { (ac_try="$ac_compile"
12235case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238esac
12239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12240$as_echo "$ac_try_echo") >&5
12241 (eval "$ac_compile") 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && {
12248 test -z "$ac_c_werror_flag" ||
12249 test ! -s conftest.err
12250 } && test -s conftest.$ac_objext; then
12251 ac_header_compiler=yes
12252else
12253 $as_echo "$as_me: failed program was:" >&5
12254sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_header_compiler=no
12257fi
12258
12259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12261$as_echo "$ac_header_compiler" >&6; }
12262
12263# Is the header present?
12264{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12265$as_echo_n "checking $ac_header presence... " >&6; }
12266cat >conftest.$ac_ext <<_ACEOF
12267/* confdefs.h. */
12268_ACEOF
12269cat confdefs.h >>conftest.$ac_ext
12270cat >>conftest.$ac_ext <<_ACEOF
12271/* end confdefs.h. */
12272#include <$ac_header>
12273_ACEOF
12274if { (ac_try="$ac_cpp conftest.$ac_ext"
12275case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278esac
12279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12280$as_echo "$ac_try_echo") >&5
12281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } >/dev/null && {
12288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 }; then
12291 ac_header_preproc=yes
12292else
12293 $as_echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 ac_header_preproc=no
12297fi
12298
12299rm -f conftest.err conftest.$ac_ext
12300{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12301$as_echo "$ac_header_preproc" >&6; }
12302
12303# So? What about this header?
12304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12305 yes:no: )
12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12307$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12309$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12310 ac_header_preproc=yes
12311 ;;
12312 no:yes:* )
12313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12314$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12316$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12318$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12320$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12322$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12324$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12325
12326 ;;
12327esac
12328{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12329$as_echo_n "checking for $ac_header... " >&6; }
12330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 $as_echo_n "(cached) " >&6
12332else
12333 eval "$as_ac_Header=\$ac_header_preproc"
12334fi
12335ac_res=`eval 'as_val=${'$as_ac_Header'}
12336 $as_echo "$as_val"'`
12337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12338$as_echo "$ac_res" >&6; }
12339
12340fi
12341as_val=`eval 'as_val=${'$as_ac_Header'}
12342 $as_echo "$as_val"'`
12343 if test "x$as_val" = x""yes; then
12344 cat >>confdefs.h <<_ACEOF
12345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12346_ACEOF
12347
12348else
12349 $bailout
12350fi
12351
12352done
12353
12354 check_lib_no_libs gulm lg_core_login
12355 if test $NOTFOUND = 0; then
12356 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12357$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12358 GULM_LIBS="-lgulm"
12359 HAVE_GULM=yes
12360 fi
12361elif test $pkg_failed = untried; then
71082be4
ZK
12362 { $as_echo "$as_me:$LINENO: result: no" >&5
12363$as_echo "no" >&6; }
a946372e
AK
12364 NOTFOUND=0
12365
12366for ac_header in libgulm.h
12367do
12368as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12371$as_echo_n "checking for $ac_header... " >&6; }
12372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12373 $as_echo_n "(cached) " >&6
12374fi
12375ac_res=`eval 'as_val=${'$as_ac_Header'}
12376 $as_echo "$as_val"'`
12377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12378$as_echo "$ac_res" >&6; }
12379else
12380 # Is the header compilable?
12381{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12382$as_echo_n "checking $ac_header usability... " >&6; }
12383cat >conftest.$ac_ext <<_ACEOF
12384/* confdefs.h. */
12385_ACEOF
12386cat confdefs.h >>conftest.$ac_ext
12387cat >>conftest.$ac_ext <<_ACEOF
12388/* end confdefs.h. */
12389$ac_includes_default
12390#include <$ac_header>
12391_ACEOF
12392rm -f conftest.$ac_objext
12393if { (ac_try="$ac_compile"
12394case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12399$as_echo "$ac_try_echo") >&5
12400 (eval "$ac_compile") 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
12410 ac_header_compiler=yes
12411else
12412 $as_echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_header_compiler=no
12416fi
12417
12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12420$as_echo "$ac_header_compiler" >&6; }
12421
12422# Is the header present?
12423{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12424$as_echo_n "checking $ac_header presence... " >&6; }
12425cat >conftest.$ac_ext <<_ACEOF
12426/* confdefs.h. */
12427_ACEOF
12428cat confdefs.h >>conftest.$ac_ext
12429cat >>conftest.$ac_ext <<_ACEOF
12430/* end confdefs.h. */
12431#include <$ac_header>
12432_ACEOF
12433if { (ac_try="$ac_cpp conftest.$ac_ext"
12434case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437esac
12438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439$as_echo "$ac_try_echo") >&5
12440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } >/dev/null && {
12447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 }; then
12450 ac_header_preproc=yes
12451else
12452 $as_echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 ac_header_preproc=no
12456fi
12457
12458rm -f conftest.err conftest.$ac_ext
12459{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12460$as_echo "$ac_header_preproc" >&6; }
12461
12462# So? What about this header?
12463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12464 yes:no: )
12465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12466$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12468$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12469 ac_header_preproc=yes
12470 ;;
12471 no:yes:* )
12472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12473$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12475$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12477$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12479$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12481$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12483$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12484
12485 ;;
12486esac
12487{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12488$as_echo_n "checking for $ac_header... " >&6; }
12489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12490 $as_echo_n "(cached) " >&6
12491else
12492 eval "$as_ac_Header=\$ac_header_preproc"
12493fi
12494ac_res=`eval 'as_val=${'$as_ac_Header'}
12495 $as_echo "$as_val"'`
12496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12497$as_echo "$ac_res" >&6; }
12498
12499fi
12500as_val=`eval 'as_val=${'$as_ac_Header'}
12501 $as_echo "$as_val"'`
12502 if test "x$as_val" = x""yes; then
12503 cat >>confdefs.h <<_ACEOF
12504#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12505_ACEOF
12506
12507else
12508 $bailout
12509fi
12510
12511done
12512
12513 check_lib_no_libs gulm lg_core_login
12514 if test $NOTFOUND = 0; then
12515 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12516$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12517 GULM_LIBS="-lgulm"
12518 HAVE_GULM=yes
12519 fi
12520else
12521 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12522 GULM_LIBS=$pkg_cv_GULM_LIBS
12523 { $as_echo "$as_me:$LINENO: result: yes" >&5
12524$as_echo "yes" >&6; }
12525 HAVE_GULM=yes
12526fi
12527fi
12528
12529if test x$BUILDCMAN = xyes; then
12530
12531pkg_failed=no
12532{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12533$as_echo_n "checking for CMAN... " >&6; }
12534
12535if test -n "$CMAN_CFLAGS"; then
12536 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12537 elif test -n "$PKG_CONFIG"; then
12538 if test -n "$PKG_CONFIG" && \
12539 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12540 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12541 ac_status=$?
12542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; then
12544 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12545else
12546 pkg_failed=yes
12547fi
12548 else
12549 pkg_failed=untried
12550fi
12551if test -n "$CMAN_LIBS"; then
12552 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12553 elif test -n "$PKG_CONFIG"; then
12554 if test -n "$PKG_CONFIG" && \
12555 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12556 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12557 ac_status=$?
12558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; then
12560 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12561else
12562 pkg_failed=yes
12563fi
12564 else
12565 pkg_failed=untried
12566fi
12567
12568
12569
12570if test $pkg_failed = yes; then
71082be4
ZK
12571 { $as_echo "$as_me:$LINENO: result: no" >&5
12572$as_echo "no" >&6; }
a946372e
AK
12573
12574if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12575 _pkg_short_errors_supported=yes
12576else
12577 _pkg_short_errors_supported=no
12578fi
12579 if test $_pkg_short_errors_supported = yes; then
12580 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12581 else
12582 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12583 fi
12584 # Put the nasty error message in config.log where it belongs
12585 echo "$CMAN_PKG_ERRORS" >&5
12586
71082be4 12587 NOTFOUND=0
a946372e
AK
12588
12589for ac_header in libcman.h
12590do
12591as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12594$as_echo_n "checking for $ac_header... " >&6; }
12595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12596 $as_echo_n "(cached) " >&6
12597fi
12598ac_res=`eval 'as_val=${'$as_ac_Header'}
12599 $as_echo "$as_val"'`
12600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12601$as_echo "$ac_res" >&6; }
12602else
12603 # Is the header compilable?
12604{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12605$as_echo_n "checking $ac_header usability... " >&6; }
12606cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612$ac_includes_default
12613#include <$ac_header>
12614_ACEOF
12615rm -f conftest.$ac_objext
12616if { (ac_try="$ac_compile"
12617case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620esac
12621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12622$as_echo "$ac_try_echo") >&5
12623 (eval "$ac_compile") 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } && {
12630 test -z "$ac_c_werror_flag" ||
12631 test ! -s conftest.err
12632 } && test -s conftest.$ac_objext; then
12633 ac_header_compiler=yes
12634else
12635 $as_echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 ac_header_compiler=no
12639fi
12640
12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12643$as_echo "$ac_header_compiler" >&6; }
12644
12645# Is the header present?
12646{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12647$as_echo_n "checking $ac_header presence... " >&6; }
12648cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654#include <$ac_header>
12655_ACEOF
12656if { (ac_try="$ac_cpp conftest.$ac_ext"
12657case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660esac
12661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12662$as_echo "$ac_try_echo") >&5
12663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } >/dev/null && {
12670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12671 test ! -s conftest.err
12672 }; then
12673 ac_header_preproc=yes
12674else
12675 $as_echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 ac_header_preproc=no
12679fi
12680
12681rm -f conftest.err conftest.$ac_ext
12682{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12683$as_echo "$ac_header_preproc" >&6; }
12684
12685# So? What about this header?
12686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12687 yes:no: )
12688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12689$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12691$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12692 ac_header_preproc=yes
12693 ;;
12694 no:yes:* )
12695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12696$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12698$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12700$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12702$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12704$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12706$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12707
12708 ;;
12709esac
12710{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12711$as_echo_n "checking for $ac_header... " >&6; }
12712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12713 $as_echo_n "(cached) " >&6
12714else
12715 eval "$as_ac_Header=\$ac_header_preproc"
12716fi
12717ac_res=`eval 'as_val=${'$as_ac_Header'}
12718 $as_echo "$as_val"'`
12719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12720$as_echo "$ac_res" >&6; }
12721
12722fi
12723as_val=`eval 'as_val=${'$as_ac_Header'}
12724 $as_echo "$as_val"'`
12725 if test "x$as_val" = x""yes; then
12726 cat >>confdefs.h <<_ACEOF
12727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12728_ACEOF
12729
12730else
12731 $bailout
12732fi
12733
12734done
12735
12736 check_lib_no_libs cman cman_init
12737 if test $NOTFOUND = 0; then
12738 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12739$as_echo "no pkg for libcman, using -lcman" >&6; }
12740 CMAN_LIBS="-lcman"
12741 HAVE_CMAN=yes
12742 fi
12743elif test $pkg_failed = untried; then
71082be4
ZK
12744 { $as_echo "$as_me:$LINENO: result: no" >&5
12745$as_echo "no" >&6; }
a946372e
AK
12746 NOTFOUND=0
12747
12748for ac_header in libcman.h
12749do
12750as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12752 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12753$as_echo_n "checking for $ac_header... " >&6; }
12754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12755 $as_echo_n "(cached) " >&6
12756fi
12757ac_res=`eval 'as_val=${'$as_ac_Header'}
12758 $as_echo "$as_val"'`
12759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12760$as_echo "$ac_res" >&6; }
12761else
12762 # Is the header compilable?
12763{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12764$as_echo_n "checking $ac_header usability... " >&6; }
12765cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
12771$ac_includes_default
12772#include <$ac_header>
12773_ACEOF
12774rm -f conftest.$ac_objext
12775if { (ac_try="$ac_compile"
12776case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779esac
12780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12781$as_echo "$ac_try_echo") >&5
12782 (eval "$ac_compile") 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && {
12789 test -z "$ac_c_werror_flag" ||
12790 test ! -s conftest.err
12791 } && test -s conftest.$ac_objext; then
12792 ac_header_compiler=yes
12793else
12794 $as_echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 ac_header_compiler=no
12798fi
12799
12800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12802$as_echo "$ac_header_compiler" >&6; }
12803
12804# Is the header present?
12805{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12806$as_echo_n "checking $ac_header presence... " >&6; }
12807cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813#include <$ac_header>
12814_ACEOF
12815if { (ac_try="$ac_cpp conftest.$ac_ext"
12816case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
12820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12821$as_echo "$ac_try_echo") >&5
12822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } >/dev/null && {
12829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 }; then
12832 ac_header_preproc=yes
12833else
12834 $as_echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
12837 ac_header_preproc=no
12838fi
12839
12840rm -f conftest.err conftest.$ac_ext
12841{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842$as_echo "$ac_header_preproc" >&6; }
12843
12844# So? What about this header?
12845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 yes:no: )
12847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12848$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12850$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc=yes
12852 ;;
12853 no:yes:* )
12854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12855$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12857$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12859$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12861$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12863$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12865$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12866
12867 ;;
12868esac
12869{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12870$as_echo_n "checking for $ac_header... " >&6; }
12871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12872 $as_echo_n "(cached) " >&6
12873else
12874 eval "$as_ac_Header=\$ac_header_preproc"
12875fi
12876ac_res=`eval 'as_val=${'$as_ac_Header'}
12877 $as_echo "$as_val"'`
12878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12879$as_echo "$ac_res" >&6; }
12880
12881fi
12882as_val=`eval 'as_val=${'$as_ac_Header'}
12883 $as_echo "$as_val"'`
12884 if test "x$as_val" = x""yes; then
12885 cat >>confdefs.h <<_ACEOF
12886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12887_ACEOF
12888
12889else
12890 $bailout
12891fi
12892
12893done
12894
12895 check_lib_no_libs cman cman_init
12896 if test $NOTFOUND = 0; then
12897 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12898$as_echo "no pkg for libcman, using -lcman" >&6; }
12899 CMAN_LIBS="-lcman"
12900 HAVE_CMAN=yes
12901 fi
12902else
12903 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12904 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12905 { $as_echo "$as_me:$LINENO: result: yes" >&5
12906$as_echo "yes" >&6; }
12907 HAVE_CMAN=yes
12908fi
12909 CHECKCONFDB=yes
12910 CHECKDLM=yes
12911fi
12912
12913if test x$BUILDCOROSYNC = xyes || \
12914 test x$BUILDOPENAIS = xyes; then
12915
12916pkg_failed=no
12917{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12918$as_echo_n "checking for COROSYNC... " >&6; }
12919
12920if test -n "$COROSYNC_CFLAGS"; then
12921 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12922 elif test -n "$PKG_CONFIG"; then
12923 if test -n "$PKG_CONFIG" && \
12924 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12925 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; then
12929 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12930else
12931 pkg_failed=yes
12932fi
12933 else
12934 pkg_failed=untried
12935fi
12936if test -n "$COROSYNC_LIBS"; then
12937 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12938 elif test -n "$PKG_CONFIG"; then
12939 if test -n "$PKG_CONFIG" && \
12940 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12941 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12942 ac_status=$?
12943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; then
12945 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12946else
12947 pkg_failed=yes
12948fi
12949 else
12950 pkg_failed=untried
12951fi
12952
12953
12954
12955if test $pkg_failed = yes; then
71082be4
ZK
12956 { $as_echo "$as_me:$LINENO: result: no" >&5
12957$as_echo "no" >&6; }
a946372e
AK
12958
12959if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12960 _pkg_short_errors_supported=yes
12961else
12962 _pkg_short_errors_supported=no
12963fi
12964 if test $_pkg_short_errors_supported = yes; then
12965 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12966 else
12967 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12968 fi
12969 # Put the nasty error message in config.log where it belongs
12970 echo "$COROSYNC_PKG_ERRORS" >&5
12971
71082be4 12972 $bailout
d911ec67 12973elif test $pkg_failed = untried; then
71082be4
ZK
12974 { $as_echo "$as_me:$LINENO: result: no" >&5
12975$as_echo "no" >&6; }
a946372e
AK
12976 $bailout
12977else
12978 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12979 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12980 { $as_echo "$as_me:$LINENO: result: yes" >&5
12981$as_echo "yes" >&6; }
12982 HAVE_COROSYNC=yes
12983fi
12984 CHECKCONFDB=yes
12985fi
12986
12987if test x$BUILDCOROSYNC = xyes; then
12988
12989pkg_failed=no
12990{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12991$as_echo_n "checking for QUORUM... " >&6; }
12992
12993if test -n "$QUORUM_CFLAGS"; then
12994 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12995 elif test -n "$PKG_CONFIG"; then
12996 if test -n "$PKG_CONFIG" && \
12997 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12998 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12999 ac_status=$?
13000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; then
13002 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
13003else
13004 pkg_failed=yes
13005fi
13006 else
13007 pkg_failed=untried
13008fi
13009if test -n "$QUORUM_LIBS"; then
13010 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
13011 elif test -n "$PKG_CONFIG"; then
13012 if test -n "$PKG_CONFIG" && \
13013 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13014 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13015 ac_status=$?
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; then
13018 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13019else
13020 pkg_failed=yes
13021fi
13022 else
13023 pkg_failed=untried
13024fi
13025
13026
13027
13028if test $pkg_failed = yes; then
71082be4
ZK
13029 { $as_echo "$as_me:$LINENO: result: no" >&5
13030$as_echo "no" >&6; }
a946372e
AK
13031
13032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13033 _pkg_short_errors_supported=yes
13034else
13035 _pkg_short_errors_supported=no
13036fi
13037 if test $_pkg_short_errors_supported = yes; then
13038 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13039 else
13040 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13041 fi
13042 # Put the nasty error message in config.log where it belongs
13043 echo "$QUORUM_PKG_ERRORS" >&5
13044
71082be4 13045 $bailout
d911ec67 13046elif test $pkg_failed = untried; then
71082be4
ZK
13047 { $as_echo "$as_me:$LINENO: result: no" >&5
13048$as_echo "no" >&6; }
a946372e
AK
13049 $bailout
13050else
13051 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13052 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13053 { $as_echo "$as_me:$LINENO: result: yes" >&5
13054$as_echo "yes" >&6; }
13055 HAVE_QUORUM=yes
13056fi
13057 CHECKCPG=yes
13058 CHECKDLM=yes
13059fi
13060
13061if test x$BUILDOPENAIS = xyes; then
13062
13063pkg_failed=no
13064{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13065$as_echo_n "checking for SALCK... " >&6; }
13066
13067if test -n "$SALCK_CFLAGS"; then
13068 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13069 elif test -n "$PKG_CONFIG"; then
13070 if test -n "$PKG_CONFIG" && \
13071 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13072 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13073 ac_status=$?
13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; then
13076 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13077else
13078 pkg_failed=yes
13079fi
13080 else
13081 pkg_failed=untried
13082fi
13083if test -n "$SALCK_LIBS"; then
13084 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13085 elif test -n "$PKG_CONFIG"; then
13086 if test -n "$PKG_CONFIG" && \
13087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13088 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13089 ac_status=$?
13090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; then
13092 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13093else
13094 pkg_failed=yes
13095fi
13096 else
13097 pkg_failed=untried
13098fi
13099
13100
13101
13102if test $pkg_failed = yes; then
71082be4
ZK
13103 { $as_echo "$as_me:$LINENO: result: no" >&5
13104$as_echo "no" >&6; }
a946372e
AK
13105
13106if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13107 _pkg_short_errors_supported=yes
13108else
13109 _pkg_short_errors_supported=no
13110fi
13111 if test $_pkg_short_errors_supported = yes; then
13112 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13113 else
13114 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13115 fi
13116 # Put the nasty error message in config.log where it belongs
13117 echo "$SALCK_PKG_ERRORS" >&5
13118
71082be4 13119 $bailout
d911ec67 13120elif test $pkg_failed = untried; then
71082be4
ZK
13121 { $as_echo "$as_me:$LINENO: result: no" >&5
13122$as_echo "no" >&6; }
a946372e
AK
13123 $bailout
13124else
13125 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13126 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13127 { $as_echo "$as_me:$LINENO: result: yes" >&5
13128$as_echo "yes" >&6; }
13129 HAVE_SALCK=yes
13130fi
13131 CHECKCPG=yes
13132fi
13133
13134
13135
13136if test x$CHECKCONFDB = xyes; then
13137
13138pkg_failed=no
13139{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13140$as_echo_n "checking for CONFDB... " >&6; }
13141
13142if test -n "$CONFDB_CFLAGS"; then
13143 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13144 elif test -n "$PKG_CONFIG"; then
13145 if test -n "$PKG_CONFIG" && \
13146 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13147 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13148 ac_status=$?
13149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; then
13151 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13152else
13153 pkg_failed=yes
13154fi
13155 else
13156 pkg_failed=untried
13157fi
13158if test -n "$CONFDB_LIBS"; then
13159 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13160 elif test -n "$PKG_CONFIG"; then
13161 if test -n "$PKG_CONFIG" && \
13162 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13163 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13164 ac_status=$?
13165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; then
13167 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13168else
13169 pkg_failed=yes
13170fi
13171 else
13172 pkg_failed=untried
13173fi
13174
13175
13176
13177if test $pkg_failed = yes; then
71082be4
ZK
13178 { $as_echo "$as_me:$LINENO: result: no" >&5
13179$as_echo "no" >&6; }
a946372e
AK
13180
13181if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13182 _pkg_short_errors_supported=yes
13183else
13184 _pkg_short_errors_supported=no
13185fi
13186 if test $_pkg_short_errors_supported = yes; then
13187 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13188 else
13189 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13190 fi
13191 # Put the nasty error message in config.log where it belongs
13192 echo "$CONFDB_PKG_ERRORS" >&5
13193
71082be4 13194 HAVE_CONFDB=no
d911ec67 13195elif test $pkg_failed = untried; then
71082be4
ZK
13196 { $as_echo "$as_me:$LINENO: result: no" >&5
13197$as_echo "no" >&6; }
a946372e
AK
13198 HAVE_CONFDB=no
13199else
13200 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13201 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13202 { $as_echo "$as_me:$LINENO: result: yes" >&5
13203$as_echo "yes" >&6; }
13204 HAVE_CONFDB=yes
13205fi
13206
13207
13208for ac_header in corosync/confdb.h
13209do
13210as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13213$as_echo_n "checking for $ac_header... " >&6; }
13214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13215 $as_echo_n "(cached) " >&6
13216fi
13217ac_res=`eval 'as_val=${'$as_ac_Header'}
13218 $as_echo "$as_val"'`
13219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13220$as_echo "$ac_res" >&6; }
13221else
13222 # Is the header compilable?
13223{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13224$as_echo_n "checking $ac_header usability... " >&6; }
13225cat >conftest.$ac_ext <<_ACEOF
13226/* confdefs.h. */
13227_ACEOF
13228cat confdefs.h >>conftest.$ac_ext
13229cat >>conftest.$ac_ext <<_ACEOF
13230/* end confdefs.h. */
13231$ac_includes_default
13232#include <$ac_header>
13233_ACEOF
13234rm -f conftest.$ac_objext
13235if { (ac_try="$ac_compile"
13236case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241$as_echo "$ac_try_echo") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest.$ac_objext; then
13252 ac_header_compiler=yes
13253else
13254 $as_echo "$as_me: failed program was:" >&5
13255sed 's/^/| /' conftest.$ac_ext >&5
13256
13257 ac_header_compiler=no
13258fi
13259
13260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13262$as_echo "$ac_header_compiler" >&6; }
13263
13264# Is the header present?
13265{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13266$as_echo_n "checking $ac_header presence... " >&6; }
13267cat >conftest.$ac_ext <<_ACEOF
13268/* confdefs.h. */
13269_ACEOF
13270cat confdefs.h >>conftest.$ac_ext
13271cat >>conftest.$ac_ext <<_ACEOF
13272/* end confdefs.h. */
13273#include <$ac_header>
13274_ACEOF
13275if { (ac_try="$ac_cpp conftest.$ac_ext"
13276case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279esac
13280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13281$as_echo "$ac_try_echo") >&5
13282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13283 ac_status=$?
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
13287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } >/dev/null && {
13289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13290 test ! -s conftest.err
13291 }; then
13292 ac_header_preproc=yes
13293else
13294 $as_echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_header_preproc=no
13298fi
13299
13300rm -f conftest.err conftest.$ac_ext
13301{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13302$as_echo "$ac_header_preproc" >&6; }
13303
13304# So? What about this header?
13305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13306 yes:no: )
13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13308$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13310$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13311 ac_header_preproc=yes
13312 ;;
13313 no:yes:* )
13314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13315$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13317$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13319$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13321$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13323$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13325$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13326
13327 ;;
13328esac
13329{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13330$as_echo_n "checking for $ac_header... " >&6; }
13331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13332 $as_echo_n "(cached) " >&6
13333else
13334 eval "$as_ac_Header=\$ac_header_preproc"
13335fi
13336ac_res=`eval 'as_val=${'$as_ac_Header'}
13337 $as_echo "$as_val"'`
13338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13339$as_echo "$ac_res" >&6; }
13340
13341fi
13342as_val=`eval 'as_val=${'$as_ac_Header'}
13343 $as_echo "$as_val"'`
13344 if test "x$as_val" = x""yes; then
13345 cat >>confdefs.h <<_ACEOF
13346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13347_ACEOF
13348 HAVE_CONFDB_H=yes
13349else
13350 HAVE_CONFDB_H=no
13351fi
13352
13353done
13354
13355
13356 if test x$HAVE_CONFDB != xyes && \
13357 test x$HAVE_CONFDB_H = xyes; then
13358 check_lib_no_libs confdb confdb_initialize
13359 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13360$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13361 CONFDB_LIBS="-lconfdb"
13362 HAVE_CONFDB=yes
13363 fi
13364
13365 if test x$BUILDCOROSYNC = xyes && \
13366 test x$HAVE_CONFDB != xyes &&
13367 test x$CLVMD != xall; then
13368 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13369$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13370 { (exit 1); exit 1; }; }
13371 fi
13372fi
13373
13374if test x$CHECKCPG = xyes; then
13375
13376pkg_failed=no
13377{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13378$as_echo_n "checking for CPG... " >&6; }
13379
13380if test -n "$CPG_CFLAGS"; then
13381 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13382 elif test -n "$PKG_CONFIG"; then
13383 if test -n "$PKG_CONFIG" && \
13384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13385 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13386 ac_status=$?
13387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; then
13389 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13390else
13391 pkg_failed=yes
13392fi
13393 else
13394 pkg_failed=untried
13395fi
13396if test -n "$CPG_LIBS"; then
13397 pkg_cv_CPG_LIBS="$CPG_LIBS"
13398 elif test -n "$PKG_CONFIG"; then
13399 if test -n "$PKG_CONFIG" && \
13400 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13401 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13402 ac_status=$?
13403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; then
13405 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13406else
13407 pkg_failed=yes
13408fi
13409 else
13410 pkg_failed=untried
13411fi
13412
13413
13414
13415if test $pkg_failed = yes; then
71082be4
ZK
13416 { $as_echo "$as_me:$LINENO: result: no" >&5
13417$as_echo "no" >&6; }
a946372e
AK
13418
13419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13420 _pkg_short_errors_supported=yes
13421else
13422 _pkg_short_errors_supported=no
13423fi
13424 if test $_pkg_short_errors_supported = yes; then
13425 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13426 else
13427 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13428 fi
13429 # Put the nasty error message in config.log where it belongs
13430 echo "$CPG_PKG_ERRORS" >&5
13431
71082be4 13432 $bailout
d911ec67 13433elif test $pkg_failed = untried; then
71082be4
ZK
13434 { $as_echo "$as_me:$LINENO: result: no" >&5
13435$as_echo "no" >&6; }
a946372e
AK
13436 $bailout
13437else
13438 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13439 CPG_LIBS=$pkg_cv_CPG_LIBS
13440 { $as_echo "$as_me:$LINENO: result: yes" >&5
13441$as_echo "yes" >&6; }
13442 HAVE_CPG=yes
13443fi
13444fi
13445
13446if test x$CHECKDLM = xyes; then
13447
13448pkg_failed=no
13449{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13450$as_echo_n "checking for DLM... " >&6; }
13451
13452if test -n "$DLM_CFLAGS"; then
13453 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13454 elif test -n "$PKG_CONFIG"; then
13455 if test -n "$PKG_CONFIG" && \
13456 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13457 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13458 ac_status=$?
13459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; then
13461 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13462else
13463 pkg_failed=yes
13464fi
13465 else
13466 pkg_failed=untried
13467fi
13468if test -n "$DLM_LIBS"; then
13469 pkg_cv_DLM_LIBS="$DLM_LIBS"
13470 elif test -n "$PKG_CONFIG"; then
13471 if test -n "$PKG_CONFIG" && \
13472 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13473 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13474 ac_status=$?
13475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; then
13477 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13478else
13479 pkg_failed=yes
13480fi
13481 else
13482 pkg_failed=untried
13483fi
13484
13485
13486
13487if test $pkg_failed = yes; then
71082be4
ZK
13488 { $as_echo "$as_me:$LINENO: result: no" >&5
13489$as_echo "no" >&6; }
a946372e
AK
13490
13491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13492 _pkg_short_errors_supported=yes
13493else
13494 _pkg_short_errors_supported=no
13495fi
13496 if test $_pkg_short_errors_supported = yes; then
13497 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13498 else
13499 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13500 fi
13501 # Put the nasty error message in config.log where it belongs
13502 echo "$DLM_PKG_ERRORS" >&5
13503
71082be4 13504 NOTFOUND=0
a946372e
AK
13505
13506for ac_header in libdlm.h
13507do
13508as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13510 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13511$as_echo_n "checking for $ac_header... " >&6; }
13512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13513 $as_echo_n "(cached) " >&6
13514fi
13515ac_res=`eval 'as_val=${'$as_ac_Header'}
13516 $as_echo "$as_val"'`
13517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13518$as_echo "$ac_res" >&6; }
13519else
13520 # Is the header compilable?
13521{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13522$as_echo_n "checking $ac_header usability... " >&6; }
13523cat >conftest.$ac_ext <<_ACEOF
13524/* confdefs.h. */
13525_ACEOF
13526cat confdefs.h >>conftest.$ac_ext
13527cat >>conftest.$ac_ext <<_ACEOF
13528/* end confdefs.h. */
13529$ac_includes_default
13530#include <$ac_header>
13531_ACEOF
13532rm -f conftest.$ac_objext
13533if { (ac_try="$ac_compile"
13534case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13539$as_echo "$ac_try_echo") >&5
13540 (eval "$ac_compile") 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } && {
13547 test -z "$ac_c_werror_flag" ||
13548 test ! -s conftest.err
13549 } && test -s conftest.$ac_objext; then
13550 ac_header_compiler=yes
13551else
13552 $as_echo "$as_me: failed program was:" >&5
13553sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_header_compiler=no
13556fi
13557
13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13560$as_echo "$ac_header_compiler" >&6; }
13561
13562# Is the header present?
13563{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13564$as_echo_n "checking $ac_header presence... " >&6; }
13565cat >conftest.$ac_ext <<_ACEOF
13566/* confdefs.h. */
13567_ACEOF
13568cat confdefs.h >>conftest.$ac_ext
13569cat >>conftest.$ac_ext <<_ACEOF
13570/* end confdefs.h. */
13571#include <$ac_header>
13572_ACEOF
13573if { (ac_try="$ac_cpp conftest.$ac_ext"
13574case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577esac
13578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13579$as_echo "$ac_try_echo") >&5
13580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } >/dev/null && {
13587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13588 test ! -s conftest.err
13589 }; then
13590 ac_header_preproc=yes
13591else
13592 $as_echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
13595 ac_header_preproc=no
13596fi
13597
13598rm -f conftest.err conftest.$ac_ext
13599{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13600$as_echo "$ac_header_preproc" >&6; }
13601
13602# So? What about this header?
13603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13604 yes:no: )
13605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13606$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13608$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13609 ac_header_preproc=yes
13610 ;;
13611 no:yes:* )
13612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13613$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13615$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13617$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13619$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13621$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13623$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13624
13625 ;;
13626esac
13627{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13628$as_echo_n "checking for $ac_header... " >&6; }
13629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13630 $as_echo_n "(cached) " >&6
13631else
13632 eval "$as_ac_Header=\$ac_header_preproc"
13633fi
13634ac_res=`eval 'as_val=${'$as_ac_Header'}
13635 $as_echo "$as_val"'`
13636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13637$as_echo "$ac_res" >&6; }
13638
13639fi
13640as_val=`eval 'as_val=${'$as_ac_Header'}
13641 $as_echo "$as_val"'`
13642 if test "x$as_val" = x""yes; then
13643 cat >>confdefs.h <<_ACEOF
13644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13645_ACEOF
13646
13647else
13648 $bailout
13649fi
13650
13651done
13652
13653 check_lib_no_libs dlm dlm_lock -lpthread
13654 if test $NOTFOUND = 0; then
13655 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13656$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13657 DLM_LIBS="-ldlm -lpthread"
13658 HAVE_DLM=yes
13659 fi
13660elif test $pkg_failed = untried; then
71082be4
ZK
13661 { $as_echo "$as_me:$LINENO: result: no" >&5
13662$as_echo "no" >&6; }
a946372e
AK
13663 NOTFOUND=0
13664
13665for ac_header in libdlm.h
13666do
13667as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13669 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13670$as_echo_n "checking for $ac_header... " >&6; }
13671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13672 $as_echo_n "(cached) " >&6
13673fi
13674ac_res=`eval 'as_val=${'$as_ac_Header'}
13675 $as_echo "$as_val"'`
13676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13677$as_echo "$ac_res" >&6; }
13678else
13679 # Is the header compilable?
13680{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13681$as_echo_n "checking $ac_header usability... " >&6; }
13682cat >conftest.$ac_ext <<_ACEOF
13683/* confdefs.h. */
13684_ACEOF
13685cat confdefs.h >>conftest.$ac_ext
13686cat >>conftest.$ac_ext <<_ACEOF
13687/* end confdefs.h. */
13688$ac_includes_default
13689#include <$ac_header>
13690_ACEOF
13691rm -f conftest.$ac_objext
13692if { (ac_try="$ac_compile"
13693case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696esac
13697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13698$as_echo "$ac_try_echo") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } && {
13706 test -z "$ac_c_werror_flag" ||
13707 test ! -s conftest.err
13708 } && test -s conftest.$ac_objext; then
13709 ac_header_compiler=yes
13710else
13711 $as_echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_header_compiler=no
13715fi
13716
13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13719$as_echo "$ac_header_compiler" >&6; }
13720
13721# Is the header present?
13722{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13723$as_echo_n "checking $ac_header presence... " >&6; }
13724cat >conftest.$ac_ext <<_ACEOF
13725/* confdefs.h. */
13726_ACEOF
13727cat confdefs.h >>conftest.$ac_ext
13728cat >>conftest.$ac_ext <<_ACEOF
13729/* end confdefs.h. */
13730#include <$ac_header>
13731_ACEOF
13732if { (ac_try="$ac_cpp conftest.$ac_ext"
13733case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13736esac
13737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13738$as_echo "$ac_try_echo") >&5
13739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } >/dev/null && {
13746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 }; then
13749 ac_header_preproc=yes
13750else
13751 $as_echo "$as_me: failed program was:" >&5
13752sed 's/^/| /' conftest.$ac_ext >&5
13753
13754 ac_header_preproc=no
13755fi
13756
13757rm -f conftest.err conftest.$ac_ext
13758{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13759$as_echo "$ac_header_preproc" >&6; }
13760
13761# So? What about this header?
13762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13763 yes:no: )
13764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13765$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13767$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13768 ac_header_preproc=yes
13769 ;;
13770 no:yes:* )
13771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13772$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13774$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13776$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13778$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13780$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13782$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13783
13784 ;;
13785esac
13786{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13787$as_echo_n "checking for $ac_header... " >&6; }
13788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13789 $as_echo_n "(cached) " >&6
13790else
13791 eval "$as_ac_Header=\$ac_header_preproc"
13792fi
13793ac_res=`eval 'as_val=${'$as_ac_Header'}
13794 $as_echo "$as_val"'`
13795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13796$as_echo "$ac_res" >&6; }
13797
13798fi
13799as_val=`eval 'as_val=${'$as_ac_Header'}
13800 $as_echo "$as_val"'`
13801 if test "x$as_val" = x""yes; then
13802 cat >>confdefs.h <<_ACEOF
13803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13804_ACEOF
13805
13806else
13807 $bailout
13808fi
13809
13810done
13811
13812 check_lib_no_libs dlm dlm_lock -lpthread
13813 if test $NOTFOUND = 0; then
13814 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13815$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13816 DLM_LIBS="-ldlm -lpthread"
13817 HAVE_DLM=yes
13818 fi
13819else
13820 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13821 DLM_LIBS=$pkg_cv_DLM_LIBS
13822 { $as_echo "$as_me:$LINENO: result: yes" >&5
13823$as_echo "yes" >&6; }
13824 HAVE_DLM=yes
13825fi
13826fi
13827
13828if test x$CLVMD = xall; then
8c222979 13829 CLVMD=none
a946372e
AK
13830 if test x$HAVE_CCS = xyes && \
13831 test x$HAVE_GULM = xyes; then
8c222979
FDN
13832 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13833$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13834 CLVMD="$CLVMD,gulm"
a946372e
AK
13835 fi
13836 if test x$HAVE_CMAN = xyes && \
13837 test x$HAVE_DLM = xyes; then
8c222979
FDN
13838 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13839$as_echo "Enabling clvmd cman cluster manager" >&6; }
13840 CLVMD="$CLVMD,cman"
a946372e
AK
13841 fi
13842 if test x$HAVE_COROSYNC = xyes && \
13843 test x$HAVE_QUORUM = xyes && \
13844 test x$HAVE_CPG = xyes && \
13845 test x$HAVE_DLM = xyes && \
13846 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13847 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13848$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13849 CLVMD="$CLVMD,corosync"
a946372e
AK
13850 fi
13851 if test x$HAVE_COROSYNC = xyes && \
13852 test x$HAVE_CPG = xyes && \
13853 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13854 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13855$as_echo "Enabling clvmd openais cluster manager" >&6; }
13856 CLVMD="$CLVMD,openais"
13857 fi
13858 if test x$CLVMD = xnone; then
13859 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13860$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13861 fi
a946372e
AK
13862fi
13863
13864################################################################################
66fd4529
AK
13865{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13866$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13867# Check whether --enable-cmirrord was given.
13868if test "${enable_cmirrord+set}" = set; then
13869 enableval=$enable_cmirrord; CMIRRORD=$enableval
13870else
13871 CMIRRORD=no
13872fi
13873
13874{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13875$as_echo "$CMIRRORD" >&6; }
13876
13877BUILD_CMIRRORD=$CMIRRORD
13878
13879################################################################################
66fd4529
AK
13880if test "x$BUILD_CMIRRORD" = xyes; then
13881
13882# Check whether --with-cmirrord-pidfile was given.
13883if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13884 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13885else
71082be4 13886 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13887fi
13888
71082be4
ZK
13889
13890cat >>confdefs.h <<_ACEOF
13891#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13892_ACEOF
13893
66fd4529 13894fi
a946372e 13895
66fd4529
AK
13896################################################################################
13897if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13898 if test x$PKGCONFIG_INIT != x1; then
13899 pkg_config_init
13900 fi
13901
13902pkg_failed=no
13903{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13904$as_echo_n "checking for SACKPT... " >&6; }
13905
13906if test -n "$SACKPT_CFLAGS"; then
13907 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13908 elif test -n "$PKG_CONFIG"; then
13909 if test -n "$PKG_CONFIG" && \
13910 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13911 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; then
13915 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13916else
13917 pkg_failed=yes
13918fi
13919 else
13920 pkg_failed=untried
13921fi
13922if test -n "$SACKPT_LIBS"; then
13923 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13924 elif test -n "$PKG_CONFIG"; then
13925 if test -n "$PKG_CONFIG" && \
13926 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13927 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13928 ac_status=$?
13929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; then
13931 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13932else
13933 pkg_failed=yes
13934fi
13935 else
13936 pkg_failed=untried
13937fi
13938
13939
13940
13941if test $pkg_failed = yes; then
71082be4
ZK
13942 { $as_echo "$as_me:$LINENO: result: no" >&5
13943$as_echo "no" >&6; }
90c80887
AK
13944
13945if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13946 _pkg_short_errors_supported=yes
13947else
13948 _pkg_short_errors_supported=no
13949fi
13950 if test $_pkg_short_errors_supported = yes; then
13951 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13952 else
13953 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13954 fi
13955 # Put the nasty error message in config.log where it belongs
13956 echo "$SACKPT_PKG_ERRORS" >&5
13957
13958 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13959
13960$SACKPT_PKG_ERRORS
13961
13962Consider adjusting the PKG_CONFIG_PATH environment variable if you
13963installed software in a non-standard prefix.
13964
13965Alternatively, you may set the environment variables SACKPT_CFLAGS
13966and SACKPT_LIBS to avoid the need to call pkg-config.
71082be4 13967See the pkg-config man page for more details." >&5
90c80887
AK
13968$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13969
13970$SACKPT_PKG_ERRORS
13971
13972Consider adjusting the PKG_CONFIG_PATH environment variable if you
13973installed software in a non-standard prefix.
13974
13975Alternatively, you may set the environment variables SACKPT_CFLAGS
13976and SACKPT_LIBS to avoid the need to call pkg-config.
71082be4 13977See the pkg-config man page for more details." >&2;}
90c80887
AK
13978 { (exit 1); exit 1; }; }
13979elif test $pkg_failed = untried; then
71082be4
ZK
13980 { $as_echo "$as_me:$LINENO: result: no" >&5
13981$as_echo "no" >&6; }
90c80887
AK
13982 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13984{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13985is in your PATH or set the PKG_CONFIG environment variable to the full
13986path to pkg-config.
13987
13988Alternatively, you may set the environment variables SACKPT_CFLAGS
13989and SACKPT_LIBS to avoid the need to call pkg-config.
13990See the pkg-config man page for more details.
13991
13992To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13993See \`config.log' for more details." >&5
13994$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13995is in your PATH or set the PKG_CONFIG environment variable to the full
13996path to pkg-config.
13997
13998Alternatively, you may set the environment variables SACKPT_CFLAGS
13999and SACKPT_LIBS to avoid the need to call pkg-config.
14000See the pkg-config man page for more details.
14001
14002To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14003See \`config.log' for more details." >&2;}
14004 { (exit 1); exit 1; }; }; }
14005else
14006 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14007 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14008 { $as_echo "$as_me:$LINENO: result: yes" >&5
14009$as_echo "yes" >&6; }
71082be4 14010
90c80887
AK
14011fi
14012 if test x$HAVE_CPG != xyes; then
a946372e
AK
14013
14014pkg_failed=no
14015{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
14016$as_echo_n "checking for CPG... " >&6; }
14017
14018if test -n "$CPG_CFLAGS"; then
14019 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14020 elif test -n "$PKG_CONFIG"; then
14021 if test -n "$PKG_CONFIG" && \
14022 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14023 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14024 ac_status=$?
14025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; then
14027 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14028else
14029 pkg_failed=yes
14030fi
14031 else
14032 pkg_failed=untried
14033fi
14034if test -n "$CPG_LIBS"; then
14035 pkg_cv_CPG_LIBS="$CPG_LIBS"
14036 elif test -n "$PKG_CONFIG"; then
14037 if test -n "$PKG_CONFIG" && \
14038 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14039 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14040 ac_status=$?
14041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; then
14043 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14044else
14045 pkg_failed=yes
14046fi
14047 else
14048 pkg_failed=untried
14049fi
14050
14051
14052
14053if test $pkg_failed = yes; then
71082be4
ZK
14054 { $as_echo "$as_me:$LINENO: result: no" >&5
14055$as_echo "no" >&6; }
a946372e
AK
14056
14057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14058 _pkg_short_errors_supported=yes
14059else
14060 _pkg_short_errors_supported=no
14061fi
14062 if test $_pkg_short_errors_supported = yes; then
14063 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14064 else
14065 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14066 fi
14067 # Put the nasty error message in config.log where it belongs
14068 echo "$CPG_PKG_ERRORS" >&5
14069
90c80887
AK
14070 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14071
14072$CPG_PKG_ERRORS
14073
14074Consider adjusting the PKG_CONFIG_PATH environment variable if you
14075installed software in a non-standard prefix.
14076
14077Alternatively, you may set the environment variables CPG_CFLAGS
14078and CPG_LIBS to avoid the need to call pkg-config.
71082be4 14079See the pkg-config man page for more details." >&5
90c80887
AK
14080$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14081
14082$CPG_PKG_ERRORS
14083
14084Consider adjusting the PKG_CONFIG_PATH environment variable if you
14085installed software in a non-standard prefix.
14086
14087Alternatively, you may set the environment variables CPG_CFLAGS
14088and CPG_LIBS to avoid the need to call pkg-config.
71082be4 14089See the pkg-config man page for more details." >&2;}
90c80887 14090 { (exit 1); exit 1; }; }
a946372e 14091elif test $pkg_failed = untried; then
71082be4
ZK
14092 { $as_echo "$as_me:$LINENO: result: no" >&5
14093$as_echo "no" >&6; }
90c80887
AK
14094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14096{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14097is in your PATH or set the PKG_CONFIG environment variable to the full
14098path to pkg-config.
14099
14100Alternatively, you may set the environment variables CPG_CFLAGS
14101and CPG_LIBS to avoid the need to call pkg-config.
14102See the pkg-config man page for more details.
14103
14104To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14105See \`config.log' for more details." >&5
14106$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14107is in your PATH or set the PKG_CONFIG environment variable to the full
14108path to pkg-config.
14109
14110Alternatively, you may set the environment variables CPG_CFLAGS
14111and CPG_LIBS to avoid the need to call pkg-config.
14112See the pkg-config man page for more details.
14113
14114To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14115See \`config.log' for more details." >&2;}
14116 { (exit 1); exit 1; }; }; }
a946372e
AK
14117else
14118 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14119 CPG_LIBS=$pkg_cv_CPG_LIBS
14120 { $as_echo "$as_me:$LINENO: result: yes" >&5
14121$as_echo "yes" >&6; }
71082be4 14122
a946372e 14123fi
90c80887 14124 fi
a946372e
AK
14125fi
14126
14127################################################################################
14128{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14129$as_echo_n "checking whether to enable debugging... " >&6; }
14130# Check whether --enable-debug was given.
14131if test "${enable_debug+set}" = set; then
14132 enableval=$enable_debug; DEBUG=$enableval
14133else
14134 DEBUG=no
14135fi
14136
14137{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14138$as_echo "$DEBUG" >&6; }
14139
14140if test x$DEBUG = xyes; then
14141 COPTIMISE_FLAG=
14142else
14143 CSCOPE_CMD=
14144fi
14145
14146################################################################################
14147{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14148$as_echo_n "checking for C optimisation flag... " >&6; }
14149
14150# Check whether --with-optimisation was given.
14151if test "${with_optimisation+set}" = set; then
71082be4 14152 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14153fi
14154
14155{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14156$as_echo "$COPTIMISE_FLAG" >&6; }
14157
14158################################################################################
14159{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14160$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14161# Check whether --enable-profiling was given.
14162if test "${enable_profiling+set}" = set; then
5556819a 14163 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14164else
5556819a 14165 PROFILING=no
fddafd51
ZK
14166fi
14167
ec6a6fbe
AK
14168{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14169$as_echo "$PROFILING" >&6; }
5556819a
AK
14170
14171if test "x$PROFILING" = xyes; then
14172 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14173 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14174set dummy lcov; ac_word=$2
ec6a6fbe
AK
14175{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14176$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14177if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14178 $as_echo_n "(cached) " >&6
fddafd51
ZK
14179else
14180 case $LCOV in
14181 [\\/]* | ?:[\\/]*)
14182 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14183 ;;
14184 *)
14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186for as_dir in $PATH
14187do
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14192 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14194 break 2
14195 fi
14196done
14197done
14198IFS=$as_save_IFS
14199
14200 ;;
14201esac
14202fi
14203LCOV=$ac_cv_path_LCOV
14204if test -n "$LCOV"; then
ec6a6fbe
AK
14205 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14206$as_echo "$LCOV" >&6; }
fddafd51 14207else
ec6a6fbe
AK
14208 { $as_echo "$as_me:$LINENO: result: no" >&5
14209$as_echo "no" >&6; }
fddafd51
ZK
14210fi
14211
14212
5556819a 14213 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14214set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14216$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14217if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14218 $as_echo_n "(cached) " >&6
fddafd51
ZK
14219else
14220 case $GENHTML in
14221 [\\/]* | ?:[\\/]*)
14222 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14223 ;;
14224 *)
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226for as_dir in $PATH
14227do
14228 IFS=$as_save_IFS
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14232 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14234 break 2
14235 fi
14236done
14237done
14238IFS=$as_save_IFS
14239
14240 ;;
14241esac
14242fi
14243GENHTML=$ac_cv_path_GENHTML
14244if test -n "$GENHTML"; then
ec6a6fbe
AK
14245 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14246$as_echo "$GENHTML" >&6; }
fddafd51 14247else
ec6a6fbe
AK
14248 { $as_echo "$as_me:$LINENO: result: no" >&5
14249$as_echo "no" >&6; }
fddafd51
ZK
14250fi
14251
14252
fd4728e1 14253 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14254 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14255$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14256 { (exit 1); exit 1; }; }
14257 fi
fd4728e1
ZK
14258 # Extract the first word of "genpng", so it can be a program name with args.
14259set dummy genpng; ac_word=$2
14260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14261$as_echo_n "checking for $ac_word... " >&6; }
14262if test "${ac_cv_path_GENPNG+set}" = set; then
14263 $as_echo_n "(cached) " >&6
14264else
14265 case $GENPNG in
14266 [\\/]* | ?:[\\/]*)
14267 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14268 ;;
14269 *)
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271for as_dir in $PATH
14272do
14273 IFS=$as_save_IFS
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14277 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 break 2
14280 fi
14281done
14282done
14283IFS=$as_save_IFS
14284
14285 ;;
14286esac
14287fi
14288GENPNG=$ac_cv_path_GENPNG
14289if test -n "$GENPNG"; then
14290 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14291$as_echo "$GENPNG" >&6; }
14292else
14293 { $as_echo "$as_me:$LINENO: result: no" >&5
14294$as_echo "no" >&6; }
14295fi
14296
14297
14298 if test -n "$GENPNG"; then
14299 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14300$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14301 if $GENPNG --help > /dev/null 2>&1 ; then
14302 { $as_echo "$as_me:$LINENO: result: ok" >&5
14303$as_echo "ok" >&6; }
14304 GENHTML="$GENHTML --frames"
14305 else
14306 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14307$as_echo "not supported" >&6; }
14308 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14309$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14310 GENPNG=
14311 fi
14312 fi
5556819a 14313fi
d0191583
JM
14314
14315################################################################################
ec6a6fbe
AK
14316{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14317$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14318# Check whether --enable-devmapper was given.
14319if test "${enable_devmapper+set}" = set; then
14320 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14321fi
14322
ec6a6fbe
AK
14323{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14324$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14325
14326if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14327
14328cat >>confdefs.h <<\_ACEOF
d0191583 14329#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14330_ACEOF
14331
14332fi
14333
a5f46f6a
AK
14334################################################################################
14335{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14336$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14337# Check whether --enable-udev_sync was given.
14338if test "${enable_udev_sync+set}" = set; then
14339 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14340else
14341 UDEV_SYNC=no
14342fi
14343
14344{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14345$as_echo "$UDEV_SYNC" >&6; }
14346
90c80887
AK
14347if test x$UDEV_SYNC = xyes; then
14348 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14349$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14350if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14351 $as_echo_n "(cached) " >&6
14352else
14353 ac_check_lib_save_LIBS=$LIBS
14354LIBS="-ludev $LIBS"
14355cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361
14362/* Override any GCC internal prototype to avoid an error.
14363 Use char because int might match the return type of a GCC
14364 builtin and then its argument prototype would still apply. */
14365#ifdef __cplusplus
14366extern "C"
14367#endif
14368char udev_queue_get_udev_is_active ();
14369int
14370main ()
14371{
14372return udev_queue_get_udev_is_active ();
14373 ;
14374 return 0;
14375}
14376_ACEOF
14377rm -f conftest.$ac_objext conftest$ac_exeext
14378if { (ac_try="$ac_link"
14379case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382esac
14383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384$as_echo "$ac_try_echo") >&5
14385 (eval "$ac_link") 2>conftest.er1
14386 ac_status=$?
14387 grep -v '^ *+' conftest.er1 >conftest.err
14388 rm -f conftest.er1
14389 cat conftest.err >&5
14390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest$ac_exeext && {
14395 test "$cross_compiling" = yes ||
14396 $as_test_x conftest$ac_exeext
14397 }; then
14398 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14399else
14400 $as_echo "$as_me: failed program was:" >&5
14401sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14404fi
14405
14406rm -rf conftest.dSYM
14407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14408 conftest$ac_exeext conftest.$ac_ext
14409LIBS=$ac_check_lib_save_LIBS
14410fi
14411{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14412$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14413if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14414 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14415else
5161ecb9
PR
14416 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14417$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14418 { (exit 1); exit 1; }; }
90c80887
AK
14419fi
14420
14421
90c80887 14422cat >>confdefs.h <<\_ACEOF
5161ecb9 14423#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14424_ACEOF
14425
90c80887
AK
14426fi
14427
5161ecb9
PR
14428{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14429$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14430# Check whether --enable-udev_rules was given.
14431if test "${enable_udev_rules+set}" = set; then
14432 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14433else
14434 UDEV_RULES=$UDEV_SYNC
14435fi
14436
14437{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14438$as_echo "$UDEV_RULES" >&6; }
14439
93bd259b
AK
14440################################################################################
14441# Check whether --enable-compat was given.
14442if test "${enable_compat+set}" = set; then
14443 enableval=$enable_compat; DM_COMPAT=$enableval
14444else
14445 DM_COMPAT=no
14446fi
14447
14448
95eaa683
AK
14449################################################################################
14450# Check whether --enable-units-compat was given.
14451if test "${enable_units_compat+set}" = set; then
14452 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14453else
14454 UNITS_COMPAT=no
14455fi
14456
14457
14458if test x$UNITS_COMPAT = xyes; then
14459
14460cat >>confdefs.h <<\_ACEOF
14461#define DEFAULT_SI_UNIT_CONSISTENCY 0
14462_ACEOF
14463
14464fi
14465
93bd259b
AK
14466################################################################################
14467# Check whether --enable-ioctl was given.
14468if test "${enable_ioctl+set}" = set; then
14469 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14470fi
14471
14472
d0191583 14473################################################################################
ec6a6fbe
AK
14474{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14475$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14476# Check whether --enable-o_direct was given.
14477if test "${enable_o_direct+set}" = set; then
14478 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14479fi
ad6254c5 14480
ec6a6fbe
AK
14481{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14482$as_echo "$ODIRECT" >&6; }
ad6254c5 14483
d0191583 14484if test x$ODIRECT = xyes; then
ad6254c5 14485
d0191583
JM
14486cat >>confdefs.h <<\_ACEOF
14487#define O_DIRECT_SUPPORT 1
14488_ACEOF
ad6254c5 14489
d0191583 14490fi
ad6254c5 14491
572fefeb
AK
14492################################################################################
14493{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14494$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14495# Check whether --enable-applib was given.
14496if test "${enable_applib+set}" = set; then
14497 enableval=$enable_applib; APPLIB=$enableval
14498else
14499 APPLIB=no
14500fi
14501
14502{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14503$as_echo "$APPLIB" >&6; }
14504
14505test x$APPLIB = xyes \
14506 && LVM2APP_LIB=-llvm2app \
14507 || LVM2APP_LIB=
14508
d0191583 14509################################################################################
ec6a6fbe
AK
14510{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14511$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14512# Check whether --enable-cmdlib was given.
14513if test "${enable_cmdlib+set}" = set; then
14514 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14515else
d0191583
JM
14516 CMDLIB=no
14517fi
8a2fc586 14518
ec6a6fbe
AK
14519{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14520$as_echo "$CMDLIB" >&6; }
8a2fc586 14521
2a9a80c9 14522test x$CMDLIB = xyes \
d179cc7a
JM
14523 && LVM2CMD_LIB=-llvm2cmd \
14524 || LVM2CMD_LIB=
14525
93bd259b
AK
14526################################################################################
14527# Check whether --enable-pkgconfig was given.
14528if test "${enable_pkgconfig+set}" = set; then
14529 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14530else
14531 PKGCONFIG=no
14532fi
14533
2a9a80c9 14534
23b059e7
ZK
14535################################################################################
14536# Check whether --enable-write_install was given.
14537if test "${enable_write_install+set}" = set; then
14538 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14539else
14540 WRITE_INSTALL=no
14541fi
14542
14543
d0191583 14544################################################################################
ec6a6fbe
AK
14545{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14546$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14547# Check whether --enable-fsadm was given.
14548if test "${enable_fsadm+set}" = set; then
14549 enableval=$enable_fsadm; FSADM=$enableval
14550fi
8a2fc586 14551
ec6a6fbe
AK
14552{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14553$as_echo "$FSADM" >&6; }
8a2fc586 14554
d0191583 14555################################################################################
ec6a6fbe
AK
14556{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14557$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14558# Check whether --enable-dmeventd was given.
14559if test "${enable_dmeventd+set}" = set; then
14560 enableval=$enable_dmeventd; DMEVENTD=$enableval
14561fi
ad6254c5 14562
ec6a6fbe
AK
14563{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14564$as_echo "$DMEVENTD" >&6; }
ad6254c5 14565
93bd259b
AK
14566BUILD_DMEVENTD=$DMEVENTD
14567
2a9a80c9
PR
14568if test x$DMEVENTD = xyes; then
14569 if test x$MIRRORS != xinternal; then
ec6a6fbe 14570 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14571 " >&5
ec6a6fbe 14572$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14573 " >&2;}
d0191583 14574 { (exit 1); exit 1; }; }
2a9a80c9
PR
14575 fi
14576 if test x$CMDLIB = xno; then
ec6a6fbe 14577 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14578 " >&5
ec6a6fbe 14579$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14580 " >&2;}
14581 { (exit 1); exit 1; }; }
14582 fi
ad6254c5 14583fi
7a197a62 14584
d0191583
JM
14585if test x$DMEVENTD = xyes; then
14586
14587cat >>confdefs.h <<\_ACEOF
14588#define DMEVENTD 1
ad6254c5
AK
14589_ACEOF
14590
ad6254c5 14591fi
93bd259b
AK
14592
14593################################################################################
14594
ec6a6fbe
AK
14595{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14596$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14597if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14598 $as_echo_n "(cached) " >&6
93bd259b
AK
14599else
14600 ac_check_lib_save_LIBS=$LIBS
14601LIBS="-lc $LIBS"
14602cat >conftest.$ac_ext <<_ACEOF
14603/* confdefs.h. */
14604_ACEOF
14605cat confdefs.h >>conftest.$ac_ext
14606cat >>conftest.$ac_ext <<_ACEOF
14607/* end confdefs.h. */
14608
14609/* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14612#ifdef __cplusplus
14613extern "C"
14614#endif
14615char getline ();
14616int
14617main ()
14618{
14619return getline ();
14620 ;
14621 return 0;
14622}
14623_ACEOF
14624rm -f conftest.$ac_objext conftest$ac_exeext
14625if { (ac_try="$ac_link"
14626case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629esac
ec6a6fbe
AK
14630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14631$as_echo "$ac_try_echo") >&5
93bd259b
AK
14632 (eval "$ac_link") 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
ec6a6fbe 14637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
ec6a6fbe
AK
14641 } && test -s conftest$ac_exeext && {
14642 test "$cross_compiling" = yes ||
14643 $as_test_x conftest$ac_exeext
14644 }; then
93bd259b
AK
14645 ac_cv_lib_c_getline=yes
14646else
ec6a6fbe 14647 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14648sed 's/^/| /' conftest.$ac_ext >&5
14649
14650 ac_cv_lib_c_getline=no
14651fi
14652
ec6a6fbe 14653rm -rf conftest.dSYM
93bd259b
AK
14654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14655 conftest$ac_exeext conftest.$ac_ext
14656LIBS=$ac_check_lib_save_LIBS
14657fi
ec6a6fbe
AK
14658{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14659$as_echo "$ac_cv_lib_c_getline" >&6; }
14660if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14661
14662cat >>confdefs.h <<\_ACEOF
14663#define HAVE_GETLINE 1
14664_ACEOF
14665
14666fi
14667
14668
14669################################################################################
14670
ec6a6fbe
AK
14671{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14672$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14673if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14674 $as_echo_n "(cached) " >&6
93bd259b
AK
14675else
14676 ac_check_lib_save_LIBS=$LIBS
14677LIBS="-lc $LIBS"
14678cat >conftest.$ac_ext <<_ACEOF
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
14684
14685/* Override any GCC internal prototype to avoid an error.
14686 Use char because int might match the return type of a GCC
14687 builtin and then its argument prototype would still apply. */
14688#ifdef __cplusplus
14689extern "C"
14690#endif
14691char canonicalize_file_name ();
14692int
14693main ()
14694{
14695return canonicalize_file_name ();
14696 ;
14697 return 0;
14698}
14699_ACEOF
14700rm -f conftest.$ac_objext conftest$ac_exeext
14701if { (ac_try="$ac_link"
14702case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705esac
ec6a6fbe
AK
14706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14707$as_echo "$ac_try_echo") >&5
93bd259b
AK
14708 (eval "$ac_link") 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
ec6a6fbe 14713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14714 (exit $ac_status); } && {
14715 test -z "$ac_c_werror_flag" ||
14716 test ! -s conftest.err
ec6a6fbe
AK
14717 } && test -s conftest$ac_exeext && {
14718 test "$cross_compiling" = yes ||
14719 $as_test_x conftest$ac_exeext
14720 }; then
93bd259b
AK
14721 ac_cv_lib_c_canonicalize_file_name=yes
14722else
ec6a6fbe 14723 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14724sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_cv_lib_c_canonicalize_file_name=no
14727fi
14728
ec6a6fbe 14729rm -rf conftest.dSYM
93bd259b
AK
14730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14731 conftest$ac_exeext conftest.$ac_ext
14732LIBS=$ac_check_lib_save_LIBS
14733fi
ec6a6fbe
AK
14734{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14735$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14736if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
14737
14738cat >>confdefs.h <<\_ACEOF
14739#define HAVE_CANONICALIZE_FILE_NAME 1
14740_ACEOF
14741
14742fi
14743
14744
d0191583
JM
14745################################################################################
14746if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14747 then exec_prefix="";
14748fi;
ad6254c5 14749
ad6254c5 14750################################################################################
ec6a6fbe
AK
14751{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14752$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 14753if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 14754 $as_echo_n "(cached) " >&6
ad6254c5
AK
14755else
14756 ac_check_lib_save_LIBS=$LIBS
14757LIBS="-ldl $LIBS"
14758cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14759/* confdefs.h. */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h. */
14764
7a197a62
AK
14765/* Override any GCC internal prototype to avoid an error.
14766 Use char because int might match the return type of a GCC
14767 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14768#ifdef __cplusplus
14769extern "C"
14770#endif
ad6254c5
AK
14771char dlopen ();
14772int
14773main ()
14774{
7a197a62 14775return dlopen ();
ad6254c5
AK
14776 ;
14777 return 0;
14778}
14779_ACEOF
14780rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14781if { (ac_try="$ac_link"
14782case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785esac
ec6a6fbe
AK
14786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14787$as_echo "$ac_try_echo") >&5
7a197a62 14788 (eval "$ac_link") 2>conftest.er1
ad6254c5 14789 ac_status=$?
8a2fc586
AK
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
ec6a6fbe 14793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14794 (exit $ac_status); } && {
14795 test -z "$ac_c_werror_flag" ||
14796 test ! -s conftest.err
ec6a6fbe
AK
14797 } && test -s conftest$ac_exeext && {
14798 test "$cross_compiling" = yes ||
14799 $as_test_x conftest$ac_exeext
14800 }; then
ad6254c5
AK
14801 ac_cv_lib_dl_dlopen=yes
14802else
ec6a6fbe 14803 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14804sed 's/^/| /' conftest.$ac_ext >&5
14805
7a197a62 14806 ac_cv_lib_dl_dlopen=no
ad6254c5 14807fi
7a197a62 14808
ec6a6fbe 14809rm -rf conftest.dSYM
25fbec5b 14810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14811 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
14812LIBS=$ac_check_lib_save_LIBS
14813fi
ec6a6fbe
AK
14814{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14815$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14816if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 14817
72b2cb61
AK
14818
14819cat >>confdefs.h <<\_ACEOF
14820#define HAVE_LIBDL 1
14821_ACEOF
14822
19a2c6e0
ZK
14823 DL_LIBS="-ldl"
14824 HAVE_LIBDL=yes
ad6254c5 14825else
19a2c6e0
ZK
14826
14827 DL_LIBS=
ad6254c5
AK
14828 HAVE_LIBDL=no
14829fi
14830
19a2c6e0 14831
ad6254c5
AK
14832################################################################################
14833if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
14834 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
14835 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 14836 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 14837" >&5
ec6a6fbe 14838$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
14839" >&2;}
14840 { (exit 1); exit 1; }; }
14841fi
14842
f30875db
ZK
14843################################################################################
14844if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
14845 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
14846$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
14847if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
14848 $as_echo_n "(cached) " >&6
14849else
14850 ac_check_lib_save_LIBS=$LIBS
14851LIBS="-lpthread $LIBS"
14852cat >conftest.$ac_ext <<_ACEOF
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
14858
14859/* Override any GCC internal prototype to avoid an error.
14860 Use char because int might match the return type of a GCC
14861 builtin and then its argument prototype would still apply. */
14862#ifdef __cplusplus
14863extern "C"
14864#endif
14865char pthread_mutex_lock ();
14866int
14867main ()
14868{
14869return pthread_mutex_lock ();
14870 ;
14871 return 0;
14872}
14873_ACEOF
14874rm -f conftest.$ac_objext conftest$ac_exeext
14875if { (ac_try="$ac_link"
14876case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879esac
14880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881$as_echo "$ac_try_echo") >&5
14882 (eval "$ac_link") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 } && test -s conftest$ac_exeext && {
14892 test "$cross_compiling" = yes ||
14893 $as_test_x conftest$ac_exeext
14894 }; then
14895 ac_cv_lib_pthread_pthread_mutex_lock=yes
14896else
14897 $as_echo "$as_me: failed program was:" >&5
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 ac_cv_lib_pthread_pthread_mutex_lock=no
14901fi
14902
14903rm -rf conftest.dSYM
14904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14905 conftest$ac_exeext conftest.$ac_ext
14906LIBS=$ac_check_lib_save_LIBS
14907fi
14908{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
14909$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
14910if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
14911 PTHREAD_LIBS="-lpthread"
14912else
14913 hard_bailout
14914fi
14915
14916fi
14917
d0191583 14918################################################################################
ec6a6fbe
AK
14919{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
14920$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
14921# Check whether --enable-selinux was given.
14922if test "${enable_selinux+set}" = set; then
14923 enableval=$enable_selinux; SELINUX=$enableval
14924fi
14925
ec6a6fbe
AK
14926{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
14927$as_echo "$SELINUX" >&6; }
d0191583 14928
ad6254c5
AK
14929################################################################################
14930if test x$SELINUX = xyes; then
ec6a6fbe
AK
14931 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
14932$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 14933if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 14934 $as_echo_n "(cached) " >&6
8a2fc586
AK
14935else
14936 ac_check_lib_save_LIBS=$LIBS
14937LIBS="-lsepol $LIBS"
14938cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
14944
7a197a62
AK
14945/* Override any GCC internal prototype to avoid an error.
14946 Use char because int might match the return type of a GCC
14947 builtin and then its argument prototype would still apply. */
8a2fc586
AK
14948#ifdef __cplusplus
14949extern "C"
14950#endif
8a2fc586
AK
14951char sepol_check_context ();
14952int
14953main ()
14954{
7a197a62 14955return sepol_check_context ();
8a2fc586
AK
14956 ;
14957 return 0;
14958}
14959_ACEOF
14960rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14961if { (ac_try="$ac_link"
14962case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14965esac
ec6a6fbe
AK
14966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14967$as_echo "$ac_try_echo") >&5
7a197a62 14968 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
ec6a6fbe 14973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14974 (exit $ac_status); } && {
14975 test -z "$ac_c_werror_flag" ||
14976 test ! -s conftest.err
ec6a6fbe
AK
14977 } && test -s conftest$ac_exeext && {
14978 test "$cross_compiling" = yes ||
14979 $as_test_x conftest$ac_exeext
14980 }; then
8a2fc586
AK
14981 ac_cv_lib_sepol_sepol_check_context=yes
14982else
ec6a6fbe 14983 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
7a197a62 14986 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 14987fi
7a197a62 14988
ec6a6fbe 14989rm -rf conftest.dSYM
25fbec5b 14990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
14991 conftest$ac_exeext conftest.$ac_ext
14992LIBS=$ac_check_lib_save_LIBS
14993fi
ec6a6fbe
AK
14994{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
14995$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
14996if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 14997
d0191583
JM
14998
14999cat >>confdefs.h <<\_ACEOF
15000#define HAVE_SEPOL 1
15001_ACEOF
15002
f8f6ec92
ZK
15003 SELINUX_LIBS="-lsepol"
15004fi
15005
8a2fc586 15006
ec6a6fbe
AK
15007 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15008$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 15009if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 15010 $as_echo_n "(cached) " >&6
ad6254c5
AK
15011else
15012 ac_check_lib_save_LIBS=$LIBS
15013LIBS="-lselinux $LIBS"
15014cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020
7a197a62
AK
15021/* Override any GCC internal prototype to avoid an error.
15022 Use char because int might match the return type of a GCC
15023 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15024#ifdef __cplusplus
15025extern "C"
15026#endif
ad6254c5
AK
15027char is_selinux_enabled ();
15028int
15029main ()
15030{
7a197a62 15031return is_selinux_enabled ();
ad6254c5
AK
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15037if { (ac_try="$ac_link"
15038case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041esac
ec6a6fbe
AK
15042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15043$as_echo "$ac_try_echo") >&5
7a197a62 15044 (eval "$ac_link") 2>conftest.er1
ad6254c5 15045 ac_status=$?
8a2fc586
AK
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
ec6a6fbe 15049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15050 (exit $ac_status); } && {
15051 test -z "$ac_c_werror_flag" ||
15052 test ! -s conftest.err
ec6a6fbe
AK
15053 } && test -s conftest$ac_exeext && {
15054 test "$cross_compiling" = yes ||
15055 $as_test_x conftest$ac_exeext
15056 }; then
ad6254c5
AK
15057 ac_cv_lib_selinux_is_selinux_enabled=yes
15058else
ec6a6fbe 15059 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
7a197a62 15062 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15063fi
7a197a62 15064
ec6a6fbe 15065rm -rf conftest.dSYM
25fbec5b 15066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15067 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15068LIBS=$ac_check_lib_save_LIBS
15069fi
ec6a6fbe
AK
15070{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15071$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15072if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15073
72b2cb61 15074
f8f6ec92
ZK
15075for ac_header in selinux/selinux.h
15076do
15077as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15080$as_echo_n "checking for $ac_header... " >&6; }
15081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15082 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15083fi
15084ac_res=`eval 'as_val=${'$as_ac_Header'}
15085 $as_echo "$as_val"'`
15086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15087$as_echo "$ac_res" >&6; }
66e941e8 15088else
f8f6ec92
ZK
15089 # Is the header compilable?
15090{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15091$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15092cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
f8f6ec92
ZK
15098$ac_includes_default
15099#include <$ac_header>
66e941e8 15100_ACEOF
f8f6ec92
ZK
15101rm -f conftest.$ac_objext
15102if { (ac_try="$ac_compile"
66e941e8
JM
15103case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
ec6a6fbe
AK
15107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15108$as_echo "$ac_try_echo") >&5
f8f6ec92 15109 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
ec6a6fbe 15114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15115 (exit $ac_status); } && {
15116 test -z "$ac_c_werror_flag" ||
15117 test ! -s conftest.err
f8f6ec92
ZK
15118 } && test -s conftest.$ac_objext; then
15119 ac_header_compiler=yes
15120else
15121 $as_echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_compiler=no
15125fi
15126
15127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15129$as_echo "$ac_header_compiler" >&6; }
15130
15131# Is the header present?
15132{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15133$as_echo_n "checking $ac_header presence... " >&6; }
15134cat >conftest.$ac_ext <<_ACEOF
15135/* confdefs.h. */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
15139/* end confdefs.h. */
15140#include <$ac_header>
15141_ACEOF
15142if { (ac_try="$ac_cpp conftest.$ac_ext"
15143case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146esac
15147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148$as_echo "$ac_try_echo") >&5
15149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } >/dev/null && {
15156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15157 test ! -s conftest.err
ec6a6fbe 15158 }; then
f8f6ec92 15159 ac_header_preproc=yes
66e941e8 15160else
ec6a6fbe 15161 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15162sed 's/^/| /' conftest.$ac_ext >&5
15163
f8f6ec92
ZK
15164 ac_header_preproc=no
15165fi
15166
15167rm -f conftest.err conftest.$ac_ext
15168{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15169$as_echo "$ac_header_preproc" >&6; }
15170
15171# So? What about this header?
15172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15173 yes:no: )
15174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15175$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15177$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15178 ac_header_preproc=yes
15179 ;;
15180 no:yes:* )
15181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15184$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15186$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15188$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15190$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15192$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15193
f8f6ec92
ZK
15194 ;;
15195esac
15196{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15197$as_echo_n "checking for $ac_header... " >&6; }
15198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15199 $as_echo_n "(cached) " >&6
15200else
15201 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15202fi
f8f6ec92
ZK
15203ac_res=`eval 'as_val=${'$as_ac_Header'}
15204 $as_echo "$as_val"'`
15205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15206$as_echo "$ac_res" >&6; }
66e941e8 15207
66e941e8 15208fi
f8f6ec92
ZK
15209as_val=`eval 'as_val=${'$as_ac_Header'}
15210 $as_echo "$as_val"'`
15211 if test "x$as_val" = x""yes; then
15212 cat >>confdefs.h <<_ACEOF
15213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15214_ACEOF
15215
66e941e8 15216else
f8f6ec92 15217 hard_bailout
66e941e8 15218fi
f8f6ec92
ZK
15219
15220done
15221
15222
15223cat >>confdefs.h <<\_ACEOF
15224#define HAVE_SELINUX 1
15225_ACEOF
15226
15227 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15228 SELINUX_PC="libselinux"
f8f6ec92
ZK
15229 HAVE_SELINUX=yes
15230else
15231
15232 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15233$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15234 SELINUX_LIBS=
f7f0854e 15235 SELINUX_PC=
f8f6ec92 15236 HAVE_SELINUX=no
66e941e8
JM
15237fi
15238
ad6254c5
AK
15239fi
15240
8b1a3214
AK
15241################################################################################
15242if test x$REALTIME = xyes; then
ec6a6fbe
AK
15243 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15244$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15245if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15246 $as_echo_n "(cached) " >&6
8b1a3214
AK
15247else
15248 ac_check_lib_save_LIBS=$LIBS
15249LIBS="-lrt $LIBS"
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256
7a197a62
AK
15257/* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15260#ifdef __cplusplus
15261extern "C"
15262#endif
8b1a3214
AK
15263char clock_gettime ();
15264int
15265main ()
15266{
7a197a62 15267return clock_gettime ();
8b1a3214
AK
15268 ;
15269 return 0;
15270}
15271_ACEOF
15272rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15273if { (ac_try="$ac_link"
15274case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
ec6a6fbe
AK
15278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279$as_echo "$ac_try_echo") >&5
7a197a62 15280 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
ec6a6fbe 15285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15286 (exit $ac_status); } && {
15287 test -z "$ac_c_werror_flag" ||
15288 test ! -s conftest.err
ec6a6fbe
AK
15289 } && test -s conftest$ac_exeext && {
15290 test "$cross_compiling" = yes ||
15291 $as_test_x conftest$ac_exeext
15292 }; then
8b1a3214
AK
15293 ac_cv_lib_rt_clock_gettime=yes
15294else
ec6a6fbe 15295 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
7a197a62 15298 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15299fi
7a197a62 15300
ec6a6fbe 15301rm -rf conftest.dSYM
25fbec5b 15302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15303 conftest$ac_exeext conftest.$ac_ext
15304LIBS=$ac_check_lib_save_LIBS
15305fi
ec6a6fbe
AK
15306{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15307$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15308if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15309 HAVE_REALTIME=yes
15310else
15311 HAVE_REALTIME=no
15312fi
15313
8b1a3214
AK
15314
15315 if test x$HAVE_REALTIME = xyes; then
15316
15317cat >>confdefs.h <<\_ACEOF
15318#define HAVE_REALTIME 1
15319_ACEOF
15320
15321 LIBS="-lrt $LIBS"
15322 else
ec6a6fbe
AK
15323 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15324$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15325 fi
15326fi
15327
ad6254c5
AK
15328################################################################################
15329
15330for ac_header in getopt.h
15331do
ec6a6fbe 15332as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15335$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15337 $as_echo_n "(cached) " >&6
ad6254c5 15338fi
ec6a6fbe
AK
15339ac_res=`eval 'as_val=${'$as_ac_Header'}
15340 $as_echo "$as_val"'`
15341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15342$as_echo "$ac_res" >&6; }
ad6254c5
AK
15343else
15344 # Is the header compilable?
ec6a6fbe
AK
15345{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15346$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15347cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15348/* confdefs.h. */
15349_ACEOF
15350cat confdefs.h >>conftest.$ac_ext
15351cat >>conftest.$ac_ext <<_ACEOF
15352/* end confdefs.h. */
15353$ac_includes_default
15354#include <$ac_header>
15355_ACEOF
15356rm -f conftest.$ac_objext
7a197a62
AK
15357if { (ac_try="$ac_compile"
15358case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15361esac
ec6a6fbe
AK
15362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15363$as_echo "$ac_try_echo") >&5
7a197a62 15364 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15365 ac_status=$?
8a2fc586
AK
15366 grep -v '^ *+' conftest.er1 >conftest.err
15367 rm -f conftest.er1
15368 cat conftest.err >&5
ec6a6fbe 15369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15370 (exit $ac_status); } && {
15371 test -z "$ac_c_werror_flag" ||
15372 test ! -s conftest.err
15373 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15374 ac_header_compiler=yes
15375else
ec6a6fbe 15376 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15377sed 's/^/| /' conftest.$ac_ext >&5
15378
7a197a62 15379 ac_header_compiler=no
ad6254c5 15380fi
7a197a62
AK
15381
15382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15383{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15384$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15385
15386# Is the header present?
ec6a6fbe
AK
15387{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15388$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15389cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15390/* confdefs.h. */
15391_ACEOF
15392cat confdefs.h >>conftest.$ac_ext
15393cat >>conftest.$ac_ext <<_ACEOF
15394/* end confdefs.h. */
15395#include <$ac_header>
15396_ACEOF
7a197a62
AK
15397if { (ac_try="$ac_cpp conftest.$ac_ext"
15398case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
ec6a6fbe
AK
15402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15403$as_echo "$ac_try_echo") >&5
7a197a62 15404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
ec6a6fbe 15409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15410 (exit $ac_status); } >/dev/null && {
15411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 }; then
ad6254c5
AK
15414 ac_header_preproc=yes
15415else
ec6a6fbe 15416 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 ac_header_preproc=no
15420fi
7a197a62 15421
ad6254c5 15422rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15423{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15424$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15425
15426# So? What about this header?
8a2fc586
AK
15427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15428 yes:no: )
ec6a6fbe
AK
15429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15430$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15432$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15433 ac_header_preproc=yes
ad6254c5 15434 ;;
8a2fc586 15435 no:yes:* )
ec6a6fbe
AK
15436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15437$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15439$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15441$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15443$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15445$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15447$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15448
ad6254c5
AK
15449 ;;
15450esac
ec6a6fbe
AK
15451{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15452$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15454 $as_echo_n "(cached) " >&6
ad6254c5 15455else
8a2fc586 15456 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15457fi
ec6a6fbe
AK
15458ac_res=`eval 'as_val=${'$as_ac_Header'}
15459 $as_echo "$as_val"'`
15460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15461$as_echo "$ac_res" >&6; }
ad6254c5
AK
15462
15463fi
ec6a6fbe
AK
15464as_val=`eval 'as_val=${'$as_ac_Header'}
15465 $as_echo "$as_val"'`
15466 if test "x$as_val" = x""yes; then
ad6254c5 15467 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15469_ACEOF
72b2cb61
AK
15470
15471cat >>confdefs.h <<\_ACEOF
15472#define HAVE_GETOPTLONG 1
15473_ACEOF
15474
ad6254c5
AK
15475fi
15476
15477done
15478
15479
15480################################################################################
06e459df 15481if test x$READLINE != xno; then
539f4a77
ZK
15482 lvm_saved_libs=$LIBS
15483 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15484$as_echo_n "checking for library containing tgetent... " >&6; }
15485if test "${ac_cv_search_tgetent+set}" = set; then
15486 $as_echo_n "(cached) " >&6
15487else
15488 ac_func_search_save_LIBS=$LIBS
15489cat >conftest.$ac_ext <<_ACEOF
15490/* confdefs.h. */
15491_ACEOF
15492cat confdefs.h >>conftest.$ac_ext
15493cat >>conftest.$ac_ext <<_ACEOF
15494/* end confdefs.h. */
bc1024f8 15495
539f4a77
ZK
15496/* Override any GCC internal prototype to avoid an error.
15497 Use char because int might match the return type of a GCC
15498 builtin and then its argument prototype would still apply. */
15499#ifdef __cplusplus
15500extern "C"
15501#endif
15502char tgetent ();
15503int
15504main ()
15505{
15506return tgetent ();
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511for ac_lib in '' tinfo ncurses curses termcap termlib; do
15512 if test -z "$ac_lib"; then
15513 ac_res="none required"
15514 else
15515 ac_res=-l$ac_lib
15516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15517 fi
15518 rm -f conftest.$ac_objext conftest$ac_exeext
15519if { (ac_try="$ac_link"
15520case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523esac
15524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15525$as_echo "$ac_try_echo") >&5
15526 (eval "$ac_link") 2>conftest.er1
15527 ac_status=$?
15528 grep -v '^ *+' conftest.er1 >conftest.err
15529 rm -f conftest.er1
15530 cat conftest.err >&5
15531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } && {
15533 test -z "$ac_c_werror_flag" ||
15534 test ! -s conftest.err
15535 } && test -s conftest$ac_exeext && {
15536 test "$cross_compiling" = yes ||
15537 $as_test_x conftest$ac_exeext
15538 }; then
15539 ac_cv_search_tgetent=$ac_res
15540else
15541 $as_echo "$as_me: failed program was:" >&5
15542sed 's/^/| /' conftest.$ac_ext >&5
15543
15544
15545fi
15546
15547rm -rf conftest.dSYM
15548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549 conftest$ac_exeext
15550 if test "${ac_cv_search_tgetent+set}" = set; then
15551 break
15552fi
15553done
15554if test "${ac_cv_search_tgetent+set}" = set; then
15555 :
15556else
15557 ac_cv_search_tgetent=no
15558fi
15559rm conftest.$ac_ext
15560LIBS=$ac_func_search_save_LIBS
15561fi
15562{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15563$as_echo "$ac_cv_search_tgetent" >&6; }
15564ac_res=$ac_cv_search_tgetent
15565if test "$ac_res" != no; then
15566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15567 READLINE_LIBS=$ac_cv_search_tgetent
15568else
15569
15570 if test "$READLINE" = yes; then
15571 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15572--enable-readline option (which is enabled by default). Either disable readline
15573support with --disable-readline or download and install termcap from:
15574 ftp.gnu.org/gnu/termcap
15575Note: if you are using precompiled packages you will also need the development
15576 package as well (which may be called termcap-devel or something similar).
15577Note: (n)curses also seems to work as a substitute for termcap. This was
15578 not found either - but you could try installing that as well." >&5
15579$as_echo "$as_me: error: termcap could not be found which is required for the
15580--enable-readline option (which is enabled by default). Either disable readline
15581support with --disable-readline or download and install termcap from:
15582 ftp.gnu.org/gnu/termcap
15583Note: if you are using precompiled packages you will also need the development
15584 package as well (which may be called termcap-devel or something similar).
15585Note: (n)curses also seems to work as a substitute for termcap. This was
15586 not found either - but you could try installing that as well." >&2;}
15587 { (exit 1); exit 1; }; }
15588 fi
15589fi
15590
15591 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15592$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15593if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15594 $as_echo_n "(cached) " >&6
ad6254c5
AK
15595else
15596 ac_check_lib_save_LIBS=$LIBS
15597LIBS="-lreadline $LIBS"
15598cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604
7a197a62
AK
15605/* Override any GCC internal prototype to avoid an error.
15606 Use char because int might match the return type of a GCC
15607 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15608#ifdef __cplusplus
15609extern "C"
15610#endif
ad6254c5
AK
15611char readline ();
15612int
15613main ()
15614{
7a197a62 15615return readline ();
ad6254c5
AK
15616 ;
15617 return 0;
15618}
15619_ACEOF
15620rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15621if { (ac_try="$ac_link"
15622case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625esac
ec6a6fbe
AK
15626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15627$as_echo "$ac_try_echo") >&5
7a197a62 15628 (eval "$ac_link") 2>conftest.er1
ad6254c5 15629 ac_status=$?
8a2fc586
AK
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
ec6a6fbe 15633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
ec6a6fbe
AK
15637 } && test -s conftest$ac_exeext && {
15638 test "$cross_compiling" = yes ||
15639 $as_test_x conftest$ac_exeext
15640 }; then
ad6254c5
AK
15641 ac_cv_lib_readline_readline=yes
15642else
ec6a6fbe 15643 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
7a197a62 15646 ac_cv_lib_readline_readline=no
ad6254c5 15647fi
7a197a62 15648
ec6a6fbe 15649rm -rf conftest.dSYM
25fbec5b 15650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15651 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15652LIBS=$ac_check_lib_save_LIBS
15653fi
ec6a6fbe
AK
15654{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15655$as_echo "$ac_cv_lib_readline_readline" >&6; }
15656if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15657
15658
15659cat >>confdefs.h <<\_ACEOF
15660#define READLINE_SUPPORT 1
bc1024f8
JM
15661_ACEOF
15662
539f4a77
ZK
15663 LIBS=$lvm_saved_libs
15664 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15665$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15666if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15667 $as_echo_n "(cached) " >&6
15668else
15669 ac_check_lib_save_LIBS=$LIBS
15670LIBS="-lreadline $LIBS"
15671cat >conftest.$ac_ext <<_ACEOF
15672/* confdefs.h. */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h. */
bc1024f8 15677
539f4a77
ZK
15678/* Override any GCC internal prototype to avoid an error.
15679 Use char because int might match the return type of a GCC
15680 builtin and then its argument prototype would still apply. */
15681#ifdef __cplusplus
15682extern "C"
15683#endif
15684char rl_line_buffer ();
15685int
15686main ()
15687{
15688return rl_line_buffer ();
15689 ;
15690 return 0;
15691}
15692_ACEOF
15693rm -f conftest.$ac_objext conftest$ac_exeext
15694if { (ac_try="$ac_link"
15695case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698esac
15699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15700$as_echo "$ac_try_echo") >&5
15701 (eval "$ac_link") 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && {
15708 test -z "$ac_c_werror_flag" ||
15709 test ! -s conftest.err
15710 } && test -s conftest$ac_exeext && {
15711 test "$cross_compiling" = yes ||
15712 $as_test_x conftest$ac_exeext
15713 }; then
15714 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 15715else
539f4a77
ZK
15716 $as_echo "$as_me: failed program was:" >&5
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15720fi
15721
539f4a77
ZK
15722rm -rf conftest.dSYM
15723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15724 conftest$ac_exeext conftest.$ac_ext
15725LIBS=$ac_check_lib_save_LIBS
15726fi
15727{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15728$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15729if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15730 READLINE_LIBS="-lreadline"
15731else
15732
15733 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
15734$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
15735 READLINE_LIBS="-lreadline $READLINE_LIBS"
15736
15737fi
15738
15739else
15740
15741 READLINE_LIBS=
15742 if test "$READLINE" = yes; then
15743 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15744--enable-readline option (which is enabled by default). Either disable readline
15745support with --disable-readline or download and install readline from:
15746 ftp.gnu.org/gnu/readline
15747Note: if you are using precompiled packages you will also need the development
539f4a77 15748package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 15749$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15750--enable-readline option (which is enabled by default). Either disable readline
15751support with --disable-readline or download and install readline from:
15752 ftp.gnu.org/gnu/readline
15753Note: if you are using precompiled packages you will also need the development
539f4a77 15754package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 15755 { (exit 1); exit 1; }; }
539f4a77
ZK
15756 fi
15757fi
15758
15759 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
15760
15761for ac_func in rl_completion_matches
15762do
ec6a6fbe
AK
15763as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15765$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 15766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15767 $as_echo_n "(cached) " >&6
ad6254c5
AK
15768else
15769 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
bc1024f8 15775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 15776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 15777#define $ac_func innocuous_$ac_func
8a2fc586 15778
ad6254c5 15779/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 15780 which can conflict with char $ac_func (); below.
ad6254c5
AK
15781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782 <limits.h> exists even on freestanding compilers. */
8a2fc586 15783
ad6254c5
AK
15784#ifdef __STDC__
15785# include <limits.h>
15786#else
15787# include <assert.h>
15788#endif
8a2fc586 15789
bc1024f8 15790#undef $ac_func
8a2fc586 15791
7a197a62
AK
15792/* Override any GCC internal prototype to avoid an error.
15793 Use char because int might match the return type of a GCC
15794 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15795#ifdef __cplusplus
15796extern "C"
ad6254c5 15797#endif
bc1024f8 15798char $ac_func ();
ad6254c5
AK
15799/* The GNU C library defines this for functions which it implements
15800 to always fail with ENOSYS. Some functions are actually named
15801 something starting with __ and the normal name is an alias. */
bc1024f8 15802#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 15803choke me
ad6254c5
AK
15804#endif
15805
15806int
15807main ()
15808{
bc1024f8 15809return $ac_func ();
ad6254c5
AK
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15815if { (ac_try="$ac_link"
15816case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819esac
ec6a6fbe
AK
15820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15821$as_echo "$ac_try_echo") >&5
7a197a62 15822 (eval "$ac_link") 2>conftest.er1
ad6254c5 15823 ac_status=$?
8a2fc586
AK
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
ec6a6fbe 15827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15828 (exit $ac_status); } && {
15829 test -z "$ac_c_werror_flag" ||
15830 test ! -s conftest.err
ec6a6fbe
AK
15831 } && test -s conftest$ac_exeext && {
15832 test "$cross_compiling" = yes ||
15833 $as_test_x conftest$ac_exeext
15834 }; then
bc1024f8 15835 eval "$as_ac_var=yes"
ad6254c5 15836else
ec6a6fbe 15837 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
bc1024f8 15840 eval "$as_ac_var=no"
ad6254c5 15841fi
7a197a62 15842
ec6a6fbe 15843rm -rf conftest.dSYM
25fbec5b 15844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15845 conftest$ac_exeext conftest.$ac_ext
ad6254c5 15846fi
ec6a6fbe
AK
15847ac_res=`eval 'as_val=${'$as_ac_var'}
15848 $as_echo "$as_val"'`
15849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15850$as_echo "$ac_res" >&6; }
15851as_val=`eval 'as_val=${'$as_ac_var'}
15852 $as_echo "$as_val"'`
15853 if test "x$as_val" = x""yes; then
bc1024f8 15854 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
15856_ACEOF
15857
15858fi
bc1024f8 15859done
ad6254c5 15860
539f4a77 15861 LIBS=$lvm_saved_libs
ad6254c5
AK
15862fi
15863
15864################################################################################
ec6a6fbe
AK
15865{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
15866$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 15867# Check whether --enable-nls was given.
ad6254c5 15868if test "${enable_nls+set}" = set; then
7a197a62 15869 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
15870else
15871 INTL=no
7a197a62
AK
15872fi
15873
ec6a6fbe
AK
15874{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
15875$as_echo "$INTL" >&6; }
ad6254c5
AK
15876
15877if test x$INTL = xyes; then
93bd259b 15878# FIXME - Move this - can be device-mapper too
ad6254c5
AK
15879 INTL_PACKAGE="lvm2"
15880 # Extract the first word of "msgfmt", so it can be a program name with args.
15881set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
15882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15883$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 15884if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 15885 $as_echo_n "(cached) " >&6
ad6254c5
AK
15886else
15887 case $MSGFMT in
15888 [\\/]* | ?:[\\/]*)
15889 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15890 ;;
15891 *)
15892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893for as_dir in $PATH
15894do
15895 IFS=$as_save_IFS
15896 test -z "$as_dir" && as_dir=.
15897 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 15899 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
15901 break 2
15902 fi
15903done
15904done
7a197a62 15905IFS=$as_save_IFS
ad6254c5
AK
15906
15907 ;;
15908esac
15909fi
15910MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 15911if test -n "$MSGFMT"; then
ec6a6fbe
AK
15912 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15913$as_echo "$MSGFMT" >&6; }
ad6254c5 15914else
ec6a6fbe
AK
15915 { $as_echo "$as_me:$LINENO: result: no" >&5
15916$as_echo "no" >&6; }
ad6254c5
AK
15917fi
15918
7a197a62 15919
ad6254c5 15920 if [ "x$MSGFMT" == x ];
ec6a6fbe 15921 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 15922 " >&5
ec6a6fbe 15923$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
15924 " >&2;}
15925 { (exit 1); exit 1; }; }
15926 fi;
15927
15928
7a197a62 15929# Check whether --with-localedir was given.
ad6254c5 15930if test "${with_localedir+set}" = set; then
71082be4 15931 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 15932else
71082be4 15933 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
15934fi
15935
ad6254c5
AK
15936fi
15937
15938################################################################################
15939
7a197a62 15940# Check whether --with-confdir was given.
ad6254c5 15941if test "${with_confdir+set}" = set; then
71082be4 15942 withval=$with_confdir; CONFDIR=$withval
ad6254c5 15943else
71082be4 15944 CONFDIR="/etc"
7a197a62
AK
15945fi
15946
ad6254c5
AK
15947
15948
7a197a62 15949# Check whether --with-staticdir was given.
ad6254c5 15950if test "${with_staticdir+set}" = set; then
71082be4 15951 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 15952else
71082be4 15953 STATICDIR='${exec_prefix}/sbin'
7a197a62 15954fi
ad6254c5 15955
33f732c5 15956
7a197a62 15957
68f2de6d
AK
15958# Check whether --with-usrlibdir was given.
15959if test "${with_usrlibdir+set}" = set; then
71082be4 15960 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 15961else
71082be4 15962 usrlibdir='${prefix}/lib'
68f2de6d
AK
15963fi
15964
15965
15966
15967# Check whether --with-usrsbindir was given.
15968if test "${with_usrsbindir+set}" = set; then
71082be4 15969 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 15970else
71082be4 15971 usrsbindir='${prefix}/sbin'
68f2de6d
AK
15972fi
15973
15974
a5f46f6a
AK
15975################################################################################
15976
15977# Check whether --with-udev_prefix was given.
15978if test "${with_udev_prefix+set}" = set; then
71082be4 15979 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 15980else
71082be4 15981 udev_prefix='${exec_prefix}'
a5f46f6a
AK
15982fi
15983
15984
78ce7acc
AK
15985
15986# Check whether --with-udevdir was given.
15987if test "${with_udevdir+set}" = set; then
71082be4 15988 withval=$with_udevdir; udevdir=$withval
78ce7acc 15989else
71082be4 15990 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
15991fi
15992
a5f46f6a 15993
ad6254c5
AK
15994################################################################################
15995if test x$READLINE = xyes; then
15996
15997
15998for ac_header in readline/readline.h readline/history.h
15999do
ec6a6fbe 16000as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16003$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16005 $as_echo_n "(cached) " >&6
ad6254c5 16006fi
ec6a6fbe
AK
16007ac_res=`eval 'as_val=${'$as_ac_Header'}
16008 $as_echo "$as_val"'`
16009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16010$as_echo "$ac_res" >&6; }
ad6254c5
AK
16011else
16012 # Is the header compilable?
ec6a6fbe
AK
16013{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16015cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021$ac_includes_default
16022#include <$ac_header>
16023_ACEOF
16024rm -f conftest.$ac_objext
7a197a62
AK
16025if { (ac_try="$ac_compile"
16026case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
ec6a6fbe
AK
16030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16031$as_echo "$ac_try_echo") >&5
7a197a62 16032 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16033 ac_status=$?
8a2fc586
AK
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
ec6a6fbe 16037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16042 ac_header_compiler=yes
16043else
ec6a6fbe 16044 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16045sed 's/^/| /' conftest.$ac_ext >&5
16046
7a197a62 16047 ac_header_compiler=no
ad6254c5 16048fi
7a197a62
AK
16049
16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16051{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16052$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16053
16054# Is the header present?
ec6a6fbe
AK
16055{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16056$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16057cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
16063#include <$ac_header>
16064_ACEOF
7a197a62
AK
16065if { (ac_try="$ac_cpp conftest.$ac_ext"
16066case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069esac
ec6a6fbe
AK
16070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16071$as_echo "$ac_try_echo") >&5
7a197a62 16072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
ec6a6fbe 16077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16078 (exit $ac_status); } >/dev/null && {
16079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16080 test ! -s conftest.err
16081 }; then
ad6254c5
AK
16082 ac_header_preproc=yes
16083else
ec6a6fbe 16084 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16085sed 's/^/| /' conftest.$ac_ext >&5
16086
16087 ac_header_preproc=no
16088fi
7a197a62 16089
ad6254c5 16090rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16091{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16092$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16093
16094# So? What about this header?
8a2fc586
AK
16095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16096 yes:no: )
ec6a6fbe
AK
16097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16098$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16100$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16101 ac_header_preproc=yes
ad6254c5 16102 ;;
8a2fc586 16103 no:yes:* )
ec6a6fbe
AK
16104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16105$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16107$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16109$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16111$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16113$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16115$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16116
ad6254c5
AK
16117 ;;
16118esac
ec6a6fbe
AK
16119{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16120$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16122 $as_echo_n "(cached) " >&6
ad6254c5 16123else
8a2fc586 16124 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16125fi
ec6a6fbe
AK
16126ac_res=`eval 'as_val=${'$as_ac_Header'}
16127 $as_echo "$as_val"'`
16128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16129$as_echo "$ac_res" >&6; }
ad6254c5
AK
16130
16131fi
ec6a6fbe
AK
16132as_val=`eval 'as_val=${'$as_ac_Header'}
16133 $as_echo "$as_val"'`
16134 if test "x$as_val" = x""yes; then
ad6254c5 16135 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16136#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16137_ACEOF
16138
16139else
ec6a6fbe
AK
16140 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16141$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16142 { (exit 1); exit 1; }; }
16143fi
16144
16145done
16146
16147fi
16148
5c7fc7c4 16149if test x$CLVMD != xnone; then
ad6254c5
AK
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160for 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
16161do
ec6a6fbe 16162as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16165$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16167 $as_echo_n "(cached) " >&6
ad6254c5 16168fi
ec6a6fbe
AK
16169ac_res=`eval 'as_val=${'$as_ac_Header'}
16170 $as_echo "$as_val"'`
16171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16172$as_echo "$ac_res" >&6; }
ad6254c5
AK
16173else
16174 # Is the header compilable?
ec6a6fbe
AK
16175{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16176$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16177cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16178/* confdefs.h. */
16179_ACEOF
16180cat confdefs.h >>conftest.$ac_ext
16181cat >>conftest.$ac_ext <<_ACEOF
16182/* end confdefs.h. */
16183$ac_includes_default
16184#include <$ac_header>
16185_ACEOF
16186rm -f conftest.$ac_objext
7a197a62
AK
16187if { (ac_try="$ac_compile"
16188case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191esac
ec6a6fbe
AK
16192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16193$as_echo "$ac_try_echo") >&5
7a197a62 16194 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16195 ac_status=$?
8a2fc586
AK
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
ec6a6fbe 16199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16200 (exit $ac_status); } && {
16201 test -z "$ac_c_werror_flag" ||
16202 test ! -s conftest.err
16203 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16204 ac_header_compiler=yes
16205else
ec6a6fbe 16206 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16207sed 's/^/| /' conftest.$ac_ext >&5
16208
7a197a62 16209 ac_header_compiler=no
ad6254c5 16210fi
7a197a62
AK
16211
16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16213{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16214$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16215
16216# Is the header present?
ec6a6fbe
AK
16217{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16218$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16219cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16220/* confdefs.h. */
16221_ACEOF
16222cat confdefs.h >>conftest.$ac_ext
16223cat >>conftest.$ac_ext <<_ACEOF
16224/* end confdefs.h. */
16225#include <$ac_header>
16226_ACEOF
7a197a62
AK
16227if { (ac_try="$ac_cpp conftest.$ac_ext"
16228case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
ec6a6fbe
AK
16232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16233$as_echo "$ac_try_echo") >&5
7a197a62 16234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
ec6a6fbe 16239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16240 (exit $ac_status); } >/dev/null && {
16241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16242 test ! -s conftest.err
16243 }; then
ad6254c5
AK
16244 ac_header_preproc=yes
16245else
ec6a6fbe 16246 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16247sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 ac_header_preproc=no
16250fi
7a197a62 16251
ad6254c5 16252rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16253{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16255
16256# So? What about this header?
8a2fc586
AK
16257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258 yes:no: )
ec6a6fbe
AK
16259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16263 ac_header_preproc=yes
ad6254c5 16264 ;;
8a2fc586 16265 no:yes:* )
ec6a6fbe
AK
16266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16269$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16273$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16278
ad6254c5
AK
16279 ;;
16280esac
ec6a6fbe
AK
16281{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16282$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16284 $as_echo_n "(cached) " >&6
ad6254c5 16285else
8a2fc586 16286 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16287fi
ec6a6fbe
AK
16288ac_res=`eval 'as_val=${'$as_ac_Header'}
16289 $as_echo "$as_val"'`
16290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16291$as_echo "$ac_res" >&6; }
ad6254c5
AK
16292
16293fi
ec6a6fbe
AK
16294as_val=`eval 'as_val=${'$as_ac_Header'}
16295 $as_echo "$as_val"'`
16296 if test "x$as_val" = x""yes; then
ad6254c5 16297 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16299_ACEOF
16300
16301else
ec6a6fbe
AK
16302 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16303$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16304 { (exit 1); exit 1; }; }
795ca3e5
AK
16305fi
16306
ad6254c5
AK
16307done
16308
16309
795ca3e5 16310
8106cdd5 16311
ad6254c5
AK
16312
16313
16314for ac_func in dup2 getmntent memmove select socket
16315do
ec6a6fbe
AK
16316as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16317{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16318$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16320 $as_echo_n "(cached) " >&6
795ca3e5 16321else
ad6254c5 16322 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
8a2fc586
AK
16328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16330#define $ac_func innocuous_$ac_func
16331
795ca3e5 16332/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16333 which can conflict with char $ac_func (); below.
16334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16335 <limits.h> exists even on freestanding compilers. */
8a2fc586 16336
ad6254c5
AK
16337#ifdef __STDC__
16338# include <limits.h>
16339#else
16340# include <assert.h>
16341#endif
8a2fc586
AK
16342
16343#undef $ac_func
16344
7a197a62
AK
16345/* Override any GCC internal prototype to avoid an error.
16346 Use char because int might match the return type of a GCC
16347 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16348#ifdef __cplusplus
16349extern "C"
ad6254c5 16350#endif
ad6254c5 16351char $ac_func ();
795ca3e5
AK
16352/* The GNU C library defines this for functions which it implements
16353 to always fail with ENOSYS. Some functions are actually named
16354 something starting with __ and the normal name is an alias. */
7a197a62 16355#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16356choke me
795ca3e5
AK
16357#endif
16358
ad6254c5
AK
16359int
16360main ()
16361{
7a197a62 16362return $ac_func ();
ad6254c5
AK
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16368if { (ac_try="$ac_link"
16369case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372esac
ec6a6fbe
AK
16373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16374$as_echo "$ac_try_echo") >&5
7a197a62 16375 (eval "$ac_link") 2>conftest.er1
ad6254c5 16376 ac_status=$?
8a2fc586
AK
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
ec6a6fbe 16380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16381 (exit $ac_status); } && {
16382 test -z "$ac_c_werror_flag" ||
16383 test ! -s conftest.err
ec6a6fbe
AK
16384 } && test -s conftest$ac_exeext && {
16385 test "$cross_compiling" = yes ||
16386 $as_test_x conftest$ac_exeext
16387 }; then
ad6254c5 16388 eval "$as_ac_var=yes"
795ca3e5 16389else
ec6a6fbe 16390 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
7a197a62 16393 eval "$as_ac_var=no"
80992638 16394fi
7a197a62 16395
ec6a6fbe 16396rm -rf conftest.dSYM
25fbec5b 16397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16398 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16399fi
ec6a6fbe
AK
16400ac_res=`eval 'as_val=${'$as_ac_var'}
16401 $as_echo "$as_val"'`
16402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16403$as_echo "$ac_res" >&6; }
16404as_val=`eval 'as_val=${'$as_ac_var'}
16405 $as_echo "$as_val"'`
16406 if test "x$as_val" = x""yes; then
ad6254c5 16407 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16408#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16409_ACEOF
80992638
AK
16410
16411else
ec6a6fbe
AK
16412 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16413$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16414 { (exit 1); exit 1; }; }
8106cdd5 16415fi
ad6254c5 16416done
795ca3e5 16417
25fbec5b
AK
16418 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16419# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16420{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16421$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16422if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16423 $as_echo_n "(cached) " >&6
25fbec5b
AK
16424else
16425 ac_func_search_save_LIBS=$LIBS
16426cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
80992638 16432
7a197a62
AK
16433/* Override any GCC internal prototype to avoid an error.
16434 Use char because int might match the return type of a GCC
ad6254c5 16435 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16436#ifdef __cplusplus
16437extern "C"
16438#endif
25fbec5b 16439char getmntent ();
ad6254c5
AK
16440int
16441main ()
16442{
25fbec5b 16443return getmntent ();
ad6254c5
AK
16444 ;
16445 return 0;
16446}
16447_ACEOF
25fbec5b
AK
16448for ac_lib in '' sun seq gen; do
16449 if test -z "$ac_lib"; then
16450 ac_res="none required"
16451 else
16452 ac_res=-l$ac_lib
16453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16454 fi
16455 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16456if { (ac_try="$ac_link"
16457case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16460esac
ec6a6fbe
AK
16461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16462$as_echo "$ac_try_echo") >&5
7a197a62 16463 (eval "$ac_link") 2>conftest.er1
ad6254c5 16464 ac_status=$?
8a2fc586
AK
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
ec6a6fbe 16468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
ec6a6fbe
AK
16472 } && test -s conftest$ac_exeext && {
16473 test "$cross_compiling" = yes ||
16474 $as_test_x conftest$ac_exeext
16475 }; then
25fbec5b 16476 ac_cv_search_getmntent=$ac_res
80992638 16477else
ec6a6fbe 16478 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16479sed 's/^/| /' conftest.$ac_ext >&5
16480
25fbec5b 16481
795ca3e5
AK
16482fi
16483
ec6a6fbe 16484rm -rf conftest.dSYM
25fbec5b
AK
16485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16486 conftest$ac_exeext
16487 if test "${ac_cv_search_getmntent+set}" = set; then
16488 break
795ca3e5 16489fi
25fbec5b
AK
16490done
16491if test "${ac_cv_search_getmntent+set}" = set; then
16492 :
16493else
16494 ac_cv_search_getmntent=no
16495fi
16496rm conftest.$ac_ext
16497LIBS=$ac_func_search_save_LIBS
16498fi
ec6a6fbe
AK
16499{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16500$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16501ac_res=$ac_cv_search_getmntent
16502if test "$ac_res" != no; then
16503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16504 ac_cv_func_getmntent=yes
16505
16506cat >>confdefs.h <<\_ACEOF
9c961554 16507#define HAVE_GETMNTENT 1
ad6254c5 16508_ACEOF
795ca3e5 16509
25fbec5b
AK
16510else
16511 ac_cv_func_getmntent=no
795ca3e5 16512fi
795ca3e5
AK
16513
16514
ad6254c5
AK
16515
16516
16517for ac_header in sys/select.h sys/socket.h
16518do
ec6a6fbe 16519as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16522$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16524 $as_echo_n "(cached) " >&6
ad6254c5 16525fi
ec6a6fbe
AK
16526ac_res=`eval 'as_val=${'$as_ac_Header'}
16527 $as_echo "$as_val"'`
16528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16529$as_echo "$ac_res" >&6; }
795ca3e5 16530else
ad6254c5 16531 # Is the header compilable?
ec6a6fbe
AK
16532{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16533$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16534cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540$ac_includes_default
16541#include <$ac_header>
16542_ACEOF
16543rm -f conftest.$ac_objext
7a197a62
AK
16544if { (ac_try="$ac_compile"
16545case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
ec6a6fbe
AK
16549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16550$as_echo "$ac_try_echo") >&5
7a197a62 16551 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16552 ac_status=$?
8a2fc586
AK
16553 grep -v '^ *+' conftest.er1 >conftest.err
16554 rm -f conftest.er1
16555 cat conftest.err >&5
ec6a6fbe 16556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16557 (exit $ac_status); } && {
16558 test -z "$ac_c_werror_flag" ||
16559 test ! -s conftest.err
16560 } && test -s conftest.$ac_objext; then
ad6254c5 16561 ac_header_compiler=yes
80992638 16562else
ec6a6fbe 16563 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
7a197a62 16566 ac_header_compiler=no
ad6254c5 16567fi
7a197a62
AK
16568
16569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16570{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16571$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16572
16573# Is the header present?
ec6a6fbe
AK
16574{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16575$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16576cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16577/* confdefs.h. */
16578_ACEOF
16579cat confdefs.h >>conftest.$ac_ext
16580cat >>conftest.$ac_ext <<_ACEOF
16581/* end confdefs.h. */
16582#include <$ac_header>
16583_ACEOF
7a197a62
AK
16584if { (ac_try="$ac_cpp conftest.$ac_ext"
16585case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588esac
ec6a6fbe
AK
16589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16590$as_echo "$ac_try_echo") >&5
7a197a62 16591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
ec6a6fbe 16596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16597 (exit $ac_status); } >/dev/null && {
16598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16599 test ! -s conftest.err
16600 }; then
ad6254c5
AK
16601 ac_header_preproc=yes
16602else
ec6a6fbe 16603 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16604sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ac_header_preproc=no
16607fi
7a197a62 16608
ad6254c5 16609rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16610{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16612
16613# So? What about this header?
8a2fc586
AK
16614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615 yes:no: )
ec6a6fbe
AK
16616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16620 ac_header_preproc=yes
ad6254c5 16621 ;;
8a2fc586 16622 no:yes:* )
ec6a6fbe
AK
16623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16626$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16630$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16635
ad6254c5
AK
16636 ;;
16637esac
ec6a6fbe
AK
16638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16639$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16641 $as_echo_n "(cached) " >&6
ad6254c5 16642else
8a2fc586 16643 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16644fi
ec6a6fbe
AK
16645ac_res=`eval 'as_val=${'$as_ac_Header'}
16646 $as_echo "$as_val"'`
16647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16648$as_echo "$ac_res" >&6; }
8106cdd5 16649
795ca3e5 16650fi
ec6a6fbe
AK
16651as_val=`eval 'as_val=${'$as_ac_Header'}
16652 $as_echo "$as_val"'`
16653 if test "x$as_val" = x""yes; then
ad6254c5 16654 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16656_ACEOF
16657
795ca3e5
AK
16658fi
16659
ad6254c5
AK
16660done
16661
ec6a6fbe
AK
16662{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16663$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16664if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16665 $as_echo_n "(cached) " >&6
26e7f2e0 16666else
ad6254c5 16667 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16668 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16669 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16670 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676$ac_includes_default
25fbec5b 16677#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16678# include <sys/select.h>
16679#endif
25fbec5b 16680#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16681# include <sys/socket.h>
16682#endif
16683
16684int
16685main ()
16686{
16687extern int select ($ac_arg1,
8a2fc586
AK
16688 $ac_arg234, $ac_arg234, $ac_arg234,
16689 $ac_arg5);
ad6254c5
AK
16690 ;
16691 return 0;
16692}
16693_ACEOF
16694rm -f conftest.$ac_objext
7a197a62
AK
16695if { (ac_try="$ac_compile"
16696case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
ec6a6fbe
AK
16700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16701$as_echo "$ac_try_echo") >&5
7a197a62 16702 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16703 ac_status=$?
8a2fc586
AK
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
ec6a6fbe 16707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16708 (exit $ac_status); } && {
16709 test -z "$ac_c_werror_flag" ||
16710 test ! -s conftest.err
16711 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16712 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16713else
ec6a6fbe 16714 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
7a197a62 16717
ad6254c5 16718fi
7a197a62
AK
16719
16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16721 done
16722 done
16723done
16724# Provide a safe default value.
16725: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16726
26e7f2e0 16727fi
ec6a6fbe
AK
16728{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16729$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
16730ac_save_IFS=$IFS; IFS=','
16731set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16732IFS=$ac_save_IFS
16733shift
16734
16735cat >>confdefs.h <<_ACEOF
16736#define SELECT_TYPE_ARG1 $1
16737_ACEOF
16738
16739
16740cat >>confdefs.h <<_ACEOF
16741#define SELECT_TYPE_ARG234 ($2)
16742_ACEOF
16743
16744
16745cat >>confdefs.h <<_ACEOF
16746#define SELECT_TYPE_ARG5 ($3)
16747_ACEOF
16748
80992638 16749rm -f conftest*
80992638 16750
8106cdd5 16751fi
ad6254c5 16752
ad6254c5
AK
16753if test x$CLUSTER != xnone; then
16754
16755
16756for ac_header in sys/socket.h sys/un.h
b896caa1 16757do
ec6a6fbe 16758as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16761$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16763 $as_echo_n "(cached) " >&6
ad6254c5 16764fi
ec6a6fbe
AK
16765ac_res=`eval 'as_val=${'$as_ac_Header'}
16766 $as_echo "$as_val"'`
16767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16768$as_echo "$ac_res" >&6; }
ad6254c5
AK
16769else
16770 # Is the header compilable?
ec6a6fbe
AK
16771{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16772$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16773cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
16779$ac_includes_default
16780#include <$ac_header>
16781_ACEOF
16782rm -f conftest.$ac_objext
7a197a62
AK
16783if { (ac_try="$ac_compile"
16784case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787esac
ec6a6fbe
AK
16788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16789$as_echo "$ac_try_echo") >&5
7a197a62 16790 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16791 ac_status=$?
8a2fc586
AK
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
ec6a6fbe 16795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16800 ac_header_compiler=yes
16801else
ec6a6fbe 16802 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16803sed 's/^/| /' conftest.$ac_ext >&5
16804
7a197a62 16805 ac_header_compiler=no
ad6254c5 16806fi
7a197a62
AK
16807
16808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16809{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16810$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16811
16812# Is the header present?
ec6a6fbe
AK
16813{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16814$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16815cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821#include <$ac_header>
16822_ACEOF
7a197a62
AK
16823if { (ac_try="$ac_cpp conftest.$ac_ext"
16824case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
ec6a6fbe
AK
16828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16829$as_echo "$ac_try_echo") >&5
7a197a62 16830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
ec6a6fbe 16835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16836 (exit $ac_status); } >/dev/null && {
16837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16838 test ! -s conftest.err
16839 }; then
ad6254c5
AK
16840 ac_header_preproc=yes
16841else
ec6a6fbe 16842 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845 ac_header_preproc=no
16846fi
7a197a62 16847
ad6254c5 16848rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16849{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16850$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16851
16852# So? What about this header?
8a2fc586
AK
16853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16854 yes:no: )
ec6a6fbe
AK
16855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16856$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16858$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16859 ac_header_preproc=yes
ad6254c5 16860 ;;
8a2fc586 16861 no:yes:* )
ec6a6fbe
AK
16862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16863$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16865$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16867$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16869$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16871$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16873$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16874
ad6254c5
AK
16875 ;;
16876esac
ec6a6fbe
AK
16877{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16878$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16880 $as_echo_n "(cached) " >&6
ad6254c5 16881else
8a2fc586 16882 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 16883fi
ec6a6fbe
AK
16884ac_res=`eval 'as_val=${'$as_ac_Header'}
16885 $as_echo "$as_val"'`
16886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16887$as_echo "$ac_res" >&6; }
ad6254c5
AK
16888
16889fi
ec6a6fbe
AK
16890as_val=`eval 'as_val=${'$as_ac_Header'}
16891 $as_echo "$as_val"'`
16892 if test "x$as_val" = x""yes; then
ad6254c5 16893 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16895_ACEOF
16896
80992638 16897else
ec6a6fbe
AK
16898 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16899$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16900 { (exit 1); exit 1; }; }
b896caa1 16901fi
ad6254c5 16902
b896caa1
AK
16903done
16904
16905
ad6254c5
AK
16906for ac_func in socket
16907do
ec6a6fbe
AK
16908as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16910$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16912 $as_echo_n "(cached) " >&6
795ca3e5 16913else
ad6254c5 16914 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
8a2fc586
AK
16920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16922#define $ac_func innocuous_$ac_func
16923
ad6254c5
AK
16924/* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func (); below.
16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927 <limits.h> exists even on freestanding compilers. */
8a2fc586 16928
ad6254c5
AK
16929#ifdef __STDC__
16930# include <limits.h>
16931#else
16932# include <assert.h>
16933#endif
8a2fc586
AK
16934
16935#undef $ac_func
16936
7a197a62
AK
16937/* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16940#ifdef __cplusplus
16941extern "C"
ad6254c5 16942#endif
ad6254c5
AK
16943char $ac_func ();
16944/* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
7a197a62 16947#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 16948choke me
ad6254c5
AK
16949#endif
16950
16951int
16952main ()
16953{
7a197a62 16954return $ac_func ();
ad6254c5
AK
16955 ;
16956 return 0;
16957}
16958_ACEOF
16959rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16960if { (ac_try="$ac_link"
16961case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16964esac
ec6a6fbe
AK
16965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16966$as_echo "$ac_try_echo") >&5
7a197a62 16967 (eval "$ac_link") 2>conftest.er1
ad6254c5 16968 ac_status=$?
8a2fc586
AK
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
ec6a6fbe 16972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16973 (exit $ac_status); } && {
16974 test -z "$ac_c_werror_flag" ||
16975 test ! -s conftest.err
ec6a6fbe
AK
16976 } && test -s conftest$ac_exeext && {
16977 test "$cross_compiling" = yes ||
16978 $as_test_x conftest$ac_exeext
16979 }; then
ad6254c5
AK
16980 eval "$as_ac_var=yes"
16981else
ec6a6fbe 16982 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16983sed 's/^/| /' conftest.$ac_ext >&5
16984
7a197a62 16985 eval "$as_ac_var=no"
ad6254c5 16986fi
7a197a62 16987
ec6a6fbe 16988rm -rf conftest.dSYM
25fbec5b 16989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16990 conftest$ac_exeext conftest.$ac_ext
ad6254c5 16991fi
ec6a6fbe
AK
16992ac_res=`eval 'as_val=${'$as_ac_var'}
16993 $as_echo "$as_val"'`
16994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16995$as_echo "$ac_res" >&6; }
16996as_val=`eval 'as_val=${'$as_ac_var'}
16997 $as_echo "$as_val"'`
16998 if test "x$as_val" = x""yes; then
ad6254c5 16999 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
17001_ACEOF
17002
17003else
ec6a6fbe
AK
17004 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17005$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
17006 { (exit 1); exit 1; }; }
17007fi
17008done
17009
17010fi
17011
d911ec67
AK
17012if test x$DMEVENTD = xyes; then
17013
17014for ac_header in arpa/inet.h
17015do
17016as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17019$as_echo_n "checking for $ac_header... " >&6; }
17020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17021 $as_echo_n "(cached) " >&6
17022fi
17023ac_res=`eval 'as_val=${'$as_ac_Header'}
17024 $as_echo "$as_val"'`
17025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17026$as_echo "$ac_res" >&6; }
17027else
17028 # Is the header compilable?
17029{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17030$as_echo_n "checking $ac_header usability... " >&6; }
17031cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037$ac_includes_default
17038#include <$ac_header>
17039_ACEOF
17040rm -f conftest.$ac_objext
17041if { (ac_try="$ac_compile"
17042case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045esac
17046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17047$as_echo "$ac_try_echo") >&5
17048 (eval "$ac_compile") 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && {
17055 test -z "$ac_c_werror_flag" ||
17056 test ! -s conftest.err
17057 } && test -s conftest.$ac_objext; then
17058 ac_header_compiler=yes
17059else
17060 $as_echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
17063 ac_header_compiler=no
17064fi
17065
17066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17067{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17068$as_echo "$ac_header_compiler" >&6; }
17069
17070# Is the header present?
17071{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17072$as_echo_n "checking $ac_header presence... " >&6; }
17073cat >conftest.$ac_ext <<_ACEOF
17074/* confdefs.h. */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h. */
17079#include <$ac_header>
17080_ACEOF
17081if { (ac_try="$ac_cpp conftest.$ac_ext"
17082case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17087$as_echo "$ac_try_echo") >&5
17088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } >/dev/null && {
17095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17096 test ! -s conftest.err
17097 }; then
17098 ac_header_preproc=yes
17099else
17100 $as_echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 ac_header_preproc=no
17104fi
17105
17106rm -f conftest.err conftest.$ac_ext
17107{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17108$as_echo "$ac_header_preproc" >&6; }
17109
17110# So? What about this header?
17111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17112 yes:no: )
17113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17114$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17116$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17117 ac_header_preproc=yes
17118 ;;
17119 no:yes:* )
17120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17121$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17123$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17125$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17127$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17129$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17131$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17132
17133 ;;
17134esac
17135{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17136$as_echo_n "checking for $ac_header... " >&6; }
17137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17138 $as_echo_n "(cached) " >&6
17139else
17140 eval "$as_ac_Header=\$ac_header_preproc"
17141fi
17142ac_res=`eval 'as_val=${'$as_ac_Header'}
17143 $as_echo "$as_val"'`
17144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17145$as_echo "$ac_res" >&6; }
17146
17147fi
17148as_val=`eval 'as_val=${'$as_ac_Header'}
17149 $as_echo "$as_val"'`
17150 if test "x$as_val" = x""yes; then
17151 cat >>confdefs.h <<_ACEOF
17152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17153_ACEOF
17154
17155else
17156 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17157$as_echo "$as_me: error: bailing out" >&2;}
17158 { (exit 1); exit 1; }; }
17159fi
17160
17161done
17162
17163fi
17164
ad6254c5
AK
17165if test x$HAVE_LIBDL = xyes; then
17166
17167for ac_header in dlfcn.h
17168do
ec6a6fbe 17169as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17171 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17172$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17174 $as_echo_n "(cached) " >&6
ad6254c5 17175fi
ec6a6fbe
AK
17176ac_res=`eval 'as_val=${'$as_ac_Header'}
17177 $as_echo "$as_val"'`
17178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17179$as_echo "$ac_res" >&6; }
ad6254c5
AK
17180else
17181 # Is the header compilable?
ec6a6fbe
AK
17182{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17183$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17184cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
17190$ac_includes_default
17191#include <$ac_header>
17192_ACEOF
17193rm -f conftest.$ac_objext
7a197a62
AK
17194if { (ac_try="$ac_compile"
17195case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198esac
ec6a6fbe
AK
17199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17200$as_echo "$ac_try_echo") >&5
7a197a62 17201 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17202 ac_status=$?
8a2fc586
AK
17203 grep -v '^ *+' conftest.er1 >conftest.err
17204 rm -f conftest.er1
17205 cat conftest.err >&5
ec6a6fbe 17206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17207 (exit $ac_status); } && {
17208 test -z "$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17211 ac_header_compiler=yes
17212else
ec6a6fbe 17213 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17214sed 's/^/| /' conftest.$ac_ext >&5
17215
7a197a62 17216 ac_header_compiler=no
ad6254c5 17217fi
7a197a62
AK
17218
17219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17220{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17221$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17222
17223# Is the header present?
ec6a6fbe
AK
17224{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17225$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17226cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232#include <$ac_header>
17233_ACEOF
7a197a62
AK
17234if { (ac_try="$ac_cpp conftest.$ac_ext"
17235case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238esac
ec6a6fbe
AK
17239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240$as_echo "$ac_try_echo") >&5
7a197a62 17241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
ec6a6fbe 17246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17247 (exit $ac_status); } >/dev/null && {
17248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17249 test ! -s conftest.err
17250 }; then
ad6254c5
AK
17251 ac_header_preproc=yes
17252else
ec6a6fbe 17253 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17254sed 's/^/| /' conftest.$ac_ext >&5
17255
17256 ac_header_preproc=no
17257fi
7a197a62 17258
ad6254c5 17259rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17260{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17261$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17262
17263# So? What about this header?
8a2fc586
AK
17264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17265 yes:no: )
ec6a6fbe
AK
17266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17267$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17269$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17270 ac_header_preproc=yes
ad6254c5 17271 ;;
8a2fc586 17272 no:yes:* )
ec6a6fbe
AK
17273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17274$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17276$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17278$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17280$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17282$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17284$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17285
ad6254c5
AK
17286 ;;
17287esac
ec6a6fbe
AK
17288{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17289$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17291 $as_echo_n "(cached) " >&6
ad6254c5 17292else
8a2fc586 17293 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17294fi
ec6a6fbe
AK
17295ac_res=`eval 'as_val=${'$as_ac_Header'}
17296 $as_echo "$as_val"'`
17297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17298$as_echo "$ac_res" >&6; }
80992638 17299
8106cdd5 17300fi
ec6a6fbe
AK
17301as_val=`eval 'as_val=${'$as_ac_Header'}
17302 $as_echo "$as_val"'`
17303 if test "x$as_val" = x""yes; then
ad6254c5 17304 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17306_ACEOF
795ca3e5
AK
17307
17308else
ec6a6fbe
AK
17309 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17310$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17311 { (exit 1); exit 1; }; }
795ca3e5
AK
17312fi
17313
ad6254c5 17314done
80992638 17315
ad6254c5 17316fi
80992638 17317
ad6254c5 17318if test x$INTL = xyes; then
83912faa 17319
ad6254c5
AK
17320for ac_header in libintl.h
17321do
ec6a6fbe 17322as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17325$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17327 $as_echo_n "(cached) " >&6
ad6254c5 17328fi
ec6a6fbe
AK
17329ac_res=`eval 'as_val=${'$as_ac_Header'}
17330 $as_echo "$as_val"'`
17331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17332$as_echo "$ac_res" >&6; }
83912faa 17333else
ad6254c5 17334 # Is the header compilable?
ec6a6fbe
AK
17335{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17336$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17337cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343$ac_includes_default
17344#include <$ac_header>
17345_ACEOF
17346rm -f conftest.$ac_objext
7a197a62
AK
17347if { (ac_try="$ac_compile"
17348case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
ec6a6fbe
AK
17352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17353$as_echo "$ac_try_echo") >&5
7a197a62 17354 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17355 ac_status=$?
8a2fc586
AK
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
ec6a6fbe 17359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17360 (exit $ac_status); } && {
17361 test -z "$ac_c_werror_flag" ||
17362 test ! -s conftest.err
17363 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17364 ac_header_compiler=yes
17365else
ec6a6fbe 17366 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17367sed 's/^/| /' conftest.$ac_ext >&5
17368
7a197a62 17369 ac_header_compiler=no
ad6254c5 17370fi
7a197a62
AK
17371
17372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17373{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17374$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17375
17376# Is the header present?
ec6a6fbe
AK
17377{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17378$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17379cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
17385#include <$ac_header>
17386_ACEOF
7a197a62
AK
17387if { (ac_try="$ac_cpp conftest.$ac_ext"
17388case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
ec6a6fbe
AK
17392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17393$as_echo "$ac_try_echo") >&5
7a197a62 17394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17395 ac_status=$?
17396 grep -v '^ *+' conftest.er1 >conftest.err
17397 rm -f conftest.er1
17398 cat conftest.err >&5
ec6a6fbe 17399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17400 (exit $ac_status); } >/dev/null && {
17401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17402 test ! -s conftest.err
17403 }; then
ad6254c5
AK
17404 ac_header_preproc=yes
17405else
ec6a6fbe 17406 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17407sed 's/^/| /' conftest.$ac_ext >&5
17408
17409 ac_header_preproc=no
17410fi
7a197a62 17411
ad6254c5 17412rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17413{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17414$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17415
17416# So? What about this header?
8a2fc586
AK
17417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17418 yes:no: )
ec6a6fbe
AK
17419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17420$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17422$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17423 ac_header_preproc=yes
ad6254c5 17424 ;;
8a2fc586 17425 no:yes:* )
ec6a6fbe
AK
17426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17427$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17429$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17431$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17433$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17435$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17437$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17438
ad6254c5
AK
17439 ;;
17440esac
ec6a6fbe
AK
17441{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17442$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17444 $as_echo_n "(cached) " >&6
80992638 17445else
8a2fc586 17446 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17447fi
ec6a6fbe
AK
17448ac_res=`eval 'as_val=${'$as_ac_Header'}
17449 $as_echo "$as_val"'`
17450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17451$as_echo "$ac_res" >&6; }
83912faa 17452
69792976 17453fi
ec6a6fbe
AK
17454as_val=`eval 'as_val=${'$as_ac_Header'}
17455 $as_echo "$as_val"'`
17456 if test "x$as_val" = x""yes; then
ad6254c5 17457 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17458#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17459_ACEOF
69792976 17460
69792976 17461else
ec6a6fbe
AK
17462 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17463$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17464 { (exit 1); exit 1; }; }
80992638
AK
17465fi
17466
ad6254c5 17467done
69792976 17468
ad6254c5
AK
17469fi
17470
a5f46f6a
AK
17471if test x$UDEV_SYNC = xyes; then
17472
17473
17474for ac_header in sys/ipc.h sys/sem.h
17475do
17476as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17478 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17479$as_echo_n "checking for $ac_header... " >&6; }
17480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17481 $as_echo_n "(cached) " >&6
17482fi
17483ac_res=`eval 'as_val=${'$as_ac_Header'}
17484 $as_echo "$as_val"'`
17485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17486$as_echo "$ac_res" >&6; }
17487else
17488 # Is the header compilable?
17489{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17490$as_echo_n "checking $ac_header usability... " >&6; }
17491cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497$ac_includes_default
17498#include <$ac_header>
17499_ACEOF
17500rm -f conftest.$ac_objext
17501if { (ac_try="$ac_compile"
17502case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505esac
17506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17507$as_echo "$ac_try_echo") >&5
17508 (eval "$ac_compile") 2>conftest.er1
17509 ac_status=$?
17510 grep -v '^ *+' conftest.er1 >conftest.err
17511 rm -f conftest.er1
17512 cat conftest.err >&5
17513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } && {
17515 test -z "$ac_c_werror_flag" ||
17516 test ! -s conftest.err
17517 } && test -s conftest.$ac_objext; then
17518 ac_header_compiler=yes
17519else
17520 $as_echo "$as_me: failed program was:" >&5
17521sed 's/^/| /' conftest.$ac_ext >&5
17522
17523 ac_header_compiler=no
17524fi
17525
17526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17527{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17528$as_echo "$ac_header_compiler" >&6; }
17529
17530# Is the header present?
17531{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17532$as_echo_n "checking $ac_header presence... " >&6; }
17533cat >conftest.$ac_ext <<_ACEOF
17534/* confdefs.h. */
17535_ACEOF
17536cat confdefs.h >>conftest.$ac_ext
17537cat >>conftest.$ac_ext <<_ACEOF
17538/* end confdefs.h. */
17539#include <$ac_header>
17540_ACEOF
17541if { (ac_try="$ac_cpp conftest.$ac_ext"
17542case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545esac
17546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17547$as_echo "$ac_try_echo") >&5
17548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } >/dev/null && {
17555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17556 test ! -s conftest.err
17557 }; then
17558 ac_header_preproc=yes
17559else
17560 $as_echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
17563 ac_header_preproc=no
17564fi
17565
17566rm -f conftest.err conftest.$ac_ext
17567{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17568$as_echo "$ac_header_preproc" >&6; }
17569
17570# So? What about this header?
17571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17572 yes:no: )
17573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17574$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17576$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17577 ac_header_preproc=yes
17578 ;;
17579 no:yes:* )
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17581$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17583$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17585$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17587$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17589$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17591$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17592
17593 ;;
17594esac
17595{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17596$as_echo_n "checking for $ac_header... " >&6; }
17597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17598 $as_echo_n "(cached) " >&6
17599else
17600 eval "$as_ac_Header=\$ac_header_preproc"
17601fi
17602ac_res=`eval 'as_val=${'$as_ac_Header'}
17603 $as_echo "$as_val"'`
17604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17605$as_echo "$ac_res" >&6; }
17606
17607fi
17608as_val=`eval 'as_val=${'$as_ac_Header'}
17609 $as_echo "$as_val"'`
17610 if test "x$as_val" = x""yes; then
17611 cat >>confdefs.h <<_ACEOF
17612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17613_ACEOF
17614
17615else
17616 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17617$as_echo "$as_me: error: bailing out" >&2;}
17618 { (exit 1); exit 1; }; }
17619fi
17620
17621done
17622
17623fi
17624
a653923f
AK
17625################################################################################
17626# Extract the first word of "modprobe", so it can be a program name with args.
17627set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17629$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17630if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17631 $as_echo_n "(cached) " >&6
72b2cb61
AK
17632else
17633 case $MODPROBE_CMD in
17634 [\\/]* | ?:[\\/]*)
17635 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17636 ;;
17637 *)
17638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17639for as_dir in $PATH
17640do
17641 IFS=$as_save_IFS
17642 test -z "$as_dir" && as_dir=.
17643 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17645 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17647 break 2
17648 fi
17649done
17650done
7a197a62 17651IFS=$as_save_IFS
72b2cb61
AK
17652
17653 ;;
17654esac
17655fi
17656MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17657if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17658 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17659$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17660else
ec6a6fbe
AK
17661 { $as_echo "$as_me:$LINENO: result: no" >&5
17662$as_echo "no" >&6; }
72b2cb61
AK
17663fi
17664
a653923f 17665
7a197a62 17666
a653923f 17667if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17668
17669cat >>confdefs.h <<_ACEOF
17670#define MODPROBE_CMD "$MODPROBE_CMD"
17671_ACEOF
17672
a653923f
AK
17673fi
17674
b5c2529b 17675
a9b601e2
ZK
17676lvm_exec_prefix=$exec_prefix
17677test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17678test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17679
b5c2529b 17680cat >>confdefs.h <<_ACEOF
a9b601e2 17681#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17682_ACEOF
17683
17684
17685if test "$CLVMD" != none; then
17686 clvmd_prefix=$ac_default_prefix
17687 test "$prefix" != NONE && clvmd_prefix=$prefix
17688
17689cat >>confdefs.h <<_ACEOF
17690#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17691_ACEOF
17692
17693fi
17694
80992638 17695################################################################################
93bd259b
AK
17696if test "$BUILD_DMEVENTD" = yes; then
17697
17698# Check whether --with-dmeventd-pidfile was given.
17699if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17700 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17701else
71082be4 17702 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17703fi
17704
93bd259b 17705
71082be4
ZK
17706cat >>confdefs.h <<_ACEOF
17707#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17708_ACEOF
93bd259b 17709
71082be4 17710fi
93bd259b
AK
17711
17712if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17713
17714# Check whether --with-dmeventd-path was given.
17715if test "${with_dmeventd_path+set}" = set; then
71082be4 17716 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 17717else
71082be4 17718 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17719fi
17720
93bd259b 17721
71082be4
ZK
17722cat >>confdefs.h <<_ACEOF
17723#define DMEVENTD_PATH "$DMEVENTD_PATH"
17724_ACEOF
3399ae32 17725
71082be4 17726fi
3399ae32 17727
71082be4 17728################################################################################
3399ae32
AK
17729
17730# Check whether --with-default-system-dir was given.
17731if test "${with_default_system_dir+set}" = set; then
71082be4 17732 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 17733else
71082be4 17734 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
17735fi
17736
71082be4 17737
3399ae32
AK
17738cat >>confdefs.h <<_ACEOF
17739#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
17740_ACEOF
17741
17742
17743
3399ae32
AK
17744# Check whether --with-default-archive-subdir was given.
17745if test "${with_default_archive_subdir+set}" = set; then
71082be4 17746 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 17747else
71082be4 17748 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
17749fi
17750
71082be4 17751
3399ae32
AK
17752cat >>confdefs.h <<_ACEOF
17753#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
17754_ACEOF
17755
17756
17757
3399ae32
AK
17758# Check whether --with-default-backup-subdir was given.
17759if test "${with_default_backup_subdir+set}" = set; then
71082be4 17760 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 17761else
71082be4 17762 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
17763fi
17764
71082be4 17765
3399ae32
AK
17766cat >>confdefs.h <<_ACEOF
17767#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
17768_ACEOF
17769
17770
17771
3399ae32
AK
17772# Check whether --with-default-cache-subdir was given.
17773if test "${with_default_cache_subdir+set}" = set; then
71082be4 17774 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 17775else
71082be4 17776 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
17777fi
17778
71082be4 17779
3399ae32
AK
17780cat >>confdefs.h <<_ACEOF
17781#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
17782_ACEOF
17783
17784
17785
3399ae32
AK
17786# Check whether --with-default-locking-dir was given.
17787if test "${with_default_locking_dir+set}" = set; then
71082be4 17788 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 17789else
71082be4 17790 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
17791fi
17792
71082be4 17793
3399ae32
AK
17794cat >>confdefs.h <<_ACEOF
17795#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
17796_ACEOF
17797
17798
93bd259b 17799################################################################################
ec6a6fbe
AK
17800{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
17801$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
17802
17803# Check whether --with-interface was given.
17804if test "${with_interface+set}" = set; then
71082be4 17805 withval=$with_interface; interface=$withval
93bd259b 17806else
71082be4 17807 interface=ioctl
93bd259b
AK
17808fi
17809
17810if [ "x$interface" != xioctl ];
17811then
ec6a6fbe
AK
17812 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
17813$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
17814 { (exit 1); exit 1; }; }
17815fi
ec6a6fbe
AK
17816{ $as_echo "$as_me:$LINENO: result: $interface" >&5
17817$as_echo "$interface" >&6; }
93bd259b
AK
17818
17819################################################################################
db8b5af9 17820DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
17821
17822cat >>confdefs.h <<_ACEOF
17823#define DM_LIB_VERSION $DM_LIB_VERSION
17824_ACEOF
17825
17826
db8b5af9 17827DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 17828
db8b5af9 17829LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 17830
db8b5af9 17831VER=`cat "$srcdir"/VERSION`
bf456146 17832LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
17833VER=`echo "$VER" | $AWK '{print $1}'`
17834LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
17835VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
17836LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
17837LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
17838LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
17839LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 17840
80992638 17841################################################################################
fae0c576 17842
83912faa 17843
795ca3e5
AK
17844
17845
17846
17847
17848
17849
5a52dca9 17850
8ef2b021 17851
199e490e 17852
69792976
AK
17853
17854
17855
d0191583 17856
69792976 17857
8106cdd5
AK
17858
17859
17860
17861
17862
d68a82ec 17863
036f273a 17864
7d1552c9 17865
8106cdd5 17866
0a62c911 17867
8106cdd5 17868
4a7f3eb2 17869
4922197a
AK
17870
17871
d8ac0fbc 17872
1a9ea74d 17873
8a2fc586
AK
17874
17875
d0191583 17876
93bd259b
AK
17877
17878
17879
17880
17881
d0191583
JM
17882
17883
17884
17885
17886
8a2fc586 17887
19a2c6e0 17888
f7f0854e
ZK
17889
17890
3ceb7608 17891
8ce0cbda 17892
8b1a3214 17893
ec6a6fbe
AK
17894
17895
17896
17897
e2997b73
AK
17898
17899
17900
17901
17902
17903
a946372e
AK
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
ec6a6fbe 17915
33f732c5 17916
66e941e8 17917
d3c8211f 17918
7e3fe830 17919
a5f46f6a
AK
17920
17921
17922
572fefeb 17923
90c80887 17924
3399ae32
AK
17925
17926
17927
17928
17929
90c80887 17930
bf456146 17931
e1b8a236 17932
0878503f 17933
8fea97b7 17934
68f2de6d
AK
17935
17936
80992638 17937################################################################################
8fea97b7 17938ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 17939
ad6254c5 17940cat >confcache <<\_ACEOF
795ca3e5
AK
17941# This file is a shell script that caches the results of configure
17942# tests run on this system so they can be shared between configure
ad6254c5
AK
17943# scripts and configure runs, see configure's option --config-cache.
17944# It is not useful on other systems. If it contains results you don't
17945# want to keep, you may remove or edit it.
795ca3e5 17946#
ad6254c5
AK
17947# config.status only pays attention to the cache file if you give it
17948# the --recheck option to rerun configure.
795ca3e5 17949#
ad6254c5
AK
17950# `ac_cv_env_foo' variables (set or unset) will be overridden when
17951# loading this file, other *unset* `ac_cv_foo' will be assigned the
17952# following values.
17953
17954_ACEOF
17955
795ca3e5
AK
17956# The following way of writing the cache mishandles newlines in values,
17957# but we know of no workaround that is simple, portable, and efficient.
7a197a62 17958# So, we kill variables containing newlines.
795ca3e5
AK
17959# Ultrix sh set writes to stderr and can't be redirected directly,
17960# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
17961(
17962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17963 eval ac_val=\$$ac_var
17964 case $ac_val in #(
17965 *${as_nl}*)
17966 case $ac_var in #(
ec6a6fbe
AK
17967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17968$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
17969 esac
17970 case $ac_var in #(
17971 _ | IFS | as_nl) ;; #(
ec6a6fbe 17972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
17973 *) $as_unset $ac_var ;;
17974 esac ;;
17975 esac
17976 done
17977
ad6254c5 17978 (set) 2>&1 |
7a197a62
AK
17979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17980 *${as_nl}ac_space=\ *)
ad6254c5
AK
17981 # `set' does not quote correctly, so add quotes (double-quote
17982 # substitution turns \\\\ into \\, and sed turns \\ into \).
17983 sed -n \
8a2fc586
AK
17984 "s/'/'\\\\''/g;
17985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 17986 ;; #(
ad6254c5
AK
17987 *)
17988 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 17989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 17990 ;;
7a197a62
AK
17991 esac |
17992 sort
17993) |
ad6254c5 17994 sed '
7a197a62 17995 /^ac_cv_env_/b end
ad6254c5 17996 t clear
7a197a62 17997 :clear
ad6254c5
AK
17998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17999 t end
7a197a62
AK
18000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18001 :end' >>confcache
18002if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18003 if test -w "$cache_file"; then
18004 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
18005 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18006$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 18007 cat confcache >$cache_file
795ca3e5 18008 else
ec6a6fbe
AK
18009 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18010$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
18011 fi
18012fi
18013rm -f confcache
18014
795ca3e5
AK
18015test "x$prefix" = xNONE && prefix=$ac_default_prefix
18016# Let make expand exec_prefix.
18017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18018
72b2cb61 18019DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18020
18021ac_libobjs=
18022ac_ltlibobjs=
18023for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18024 # 1. Remove the extension, and $U if already installed.
7a197a62 18025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18026 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18028 # will be set to the directory where LIBOBJS objects are built.
18029 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18030 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18031done
18032LIBOBJS=$ac_libobjs
80992638 18033
ad6254c5
AK
18034LTLIBOBJS=$ac_ltlibobjs
18035
18036
18037
18038: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18039ac_write_fail=0
ad6254c5
AK
18040ac_clean_files_save=$ac_clean_files
18041ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18042{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18043$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18044cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18045#! $SHELL
18046# Generated by $as_me.
795ca3e5 18047# Run this file to recreate the current configuration.
795ca3e5 18048# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18049# configure, is in config.log if it exists.
18050
18051debug=false
18052ac_cs_recheck=false
18053ac_cs_silent=false
18054SHELL=\${CONFIG_SHELL-$SHELL}
18055_ACEOF
18056
ec6a6fbe 18057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18058## --------------------- ##
18059## M4sh Initialization. ##
18060## --------------------- ##
18061
25fbec5b
AK
18062# Be more Bourne compatible
18063DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18064if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18065 emulate sh
18066 NULLCMD=:
ec6a6fbe 18067 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18068 # is contrary to our usage. Disable this feature.
18069 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18070 setopt NO_GLOB_SUBST
18071else
25fbec5b
AK
18072 case `(set -o) 2>/dev/null` in
18073 *posix*) set -o posix ;;
18074esac
18075
7a197a62 18076fi
25fbec5b
AK
18077
18078
7a197a62
AK
18079
18080
18081# PATH needs CR
18082# Avoid depending upon Character Ranges.
18083as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18084as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18085as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18086as_cr_digits='0123456789'
18087as_cr_alnum=$as_cr_Letters$as_cr_digits
18088
ec6a6fbe
AK
18089as_nl='
18090'
18091export as_nl
18092# Printing a long string crashes Solaris 7 /usr/bin/printf.
18093as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18094as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18096if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18097 as_echo='printf %s\n'
18098 as_echo_n='printf %s'
18099else
18100 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18101 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18102 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18103 else
ec6a6fbe
AK
18104 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18105 as_echo_n_body='eval
18106 arg=$1;
18107 case $arg in
18108 *"$as_nl"*)
18109 expr "X$arg" : "X\\(.*\\)$as_nl";
18110 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18111 esac;
18112 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18113 '
18114 export as_echo_n_body
18115 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18116 fi
ec6a6fbe
AK
18117 export as_echo_body
18118 as_echo='sh -c $as_echo_body as_echo'
18119fi
18120
18121# The user is always right.
18122if test "${PATH_SEPARATOR+set}" != set; then
18123 PATH_SEPARATOR=:
18124 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18125 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18126 PATH_SEPARATOR=';'
18127 }
ad6254c5
AK
18128fi
18129
18130# Support unset when possible.
8a2fc586 18131if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18132 as_unset=unset
18133else
18134 as_unset=false
18135fi
8106cdd5 18136
ad6254c5 18137
7a197a62
AK
18138# IFS
18139# We need space, tab and new line, in precisely that order. Quoting is
18140# there to prevent editors from complaining about space-tab.
18141# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18142# splitting by setting IFS to empty value.)
7a197a62
AK
18143IFS=" "" $as_nl"
18144
18145# Find who we are. Look in the path if we contain no directory separator.
18146case $0 in
18147 *[\\/]* ) as_myself=$0 ;;
18148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18149for as_dir in $PATH
18150do
18151 IFS=$as_save_IFS
18152 test -z "$as_dir" && as_dir=.
18153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18154done
18155IFS=$as_save_IFS
18156
18157 ;;
18158esac
18159# We did not find ourselves, most probably we were run as `sh COMMAND'
18160# in which case we are not to be found in the path.
18161if test "x$as_myself" = x; then
18162 as_myself=$0
18163fi
18164if test ! -f "$as_myself"; then
ec6a6fbe 18165 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18166 { (exit 1); exit 1; }
18167fi
18168
ad6254c5 18169# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18170for as_var in ENV MAIL MAILPATH
18171do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18172done
ad6254c5
AK
18173PS1='$ '
18174PS2='> '
18175PS4='+ '
18176
18177# NLS nuisances.
ec6a6fbe
AK
18178LC_ALL=C
18179export LC_ALL
18180LANGUAGE=C
18181export LANGUAGE
8106cdd5 18182
ad6254c5 18183# Required to use basename.
7a197a62
AK
18184if expr a : '\(a\)' >/dev/null 2>&1 &&
18185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18186 as_expr=expr
18187else
18188 as_expr=false
18189fi
8106cdd5 18190
7a197a62 18191if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18192 as_basename=basename
18193else
18194 as_basename=false
18195fi
18196
18197
18198# Name of the executable.
7a197a62 18199as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18200$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18201 X"$0" : 'X\(//\)$' \| \
7a197a62 18202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18203$as_echo X/"$0" |
7a197a62
AK
18204 sed '/^.*\/\([^/][^/]*\)\/*$/{
18205 s//\1/
18206 q
18207 }
18208 /^X\/\(\/\/\)$/{
18209 s//\1/
18210 q
18211 }
18212 /^X\/\(\/\).*/{
18213 s//\1/
18214 q
18215 }
18216 s/.*/./; q'`
ad6254c5 18217
7a197a62
AK
18218# CDPATH.
18219$as_unset CDPATH
ad6254c5
AK
18220
18221
ad6254c5 18222
ad6254c5
AK
18223 as_lineno_1=$LINENO
18224 as_lineno_2=$LINENO
ad6254c5 18225 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18226 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18227
ad6254c5
AK
18228 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18229 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18230 # line-number line after each line using $LINENO; the second 'sed'
18231 # does the real work. The second script uses 'N' to pair each
18232 # line-number line with the line containing $LINENO, and appends
18233 # trailing '-' during substitution so that $LINENO is not a special
18234 # case at line end.
ad6254c5 18235 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18236 # scripts with optimization help from Paolo Bonzini. Blame Lee
18237 # E. McMahon (1931-1989) for sed's syntax. :-)
18238 sed -n '
18239 p
18240 /[$]LINENO/=
18241 ' <$as_myself |
ad6254c5 18242 sed '
7a197a62
AK
18243 s/[$]LINENO.*/&-/
18244 t lineno
18245 b
18246 :lineno
ad6254c5 18247 N
7a197a62
AK
18248 :loop
18249 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18250 t loop
7a197a62 18251 s/-\n.*//
ad6254c5 18252 ' >$as_me.lineno &&
7a197a62 18253 chmod +x "$as_me.lineno" ||
ec6a6fbe 18254 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18255 { (exit 1); exit 1; }; }
18256
18257 # Don't try to exec as it changes $[0], causing all sort of problems
18258 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18259 # original and so on. Autoconf is especially sensitive to this).
18260 . "./$as_me.lineno"
ad6254c5
AK
18261 # Exit status is that of the last command.
18262 exit
18263}
18264
18265
7a197a62
AK
18266if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18267 as_dirname=dirname
18268else
18269 as_dirname=false
18270fi
18271
18272ECHO_C= ECHO_N= ECHO_T=
18273case `echo -n x` in
18274-n*)
18275 case `echo 'x\c'` in
18276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18277 *) ECHO_C='\c';;
18278 esac;;
18279*)
18280 ECHO_N='-n';;
ad6254c5 18281esac
7a197a62
AK
18282if expr a : '\(a\)' >/dev/null 2>&1 &&
18283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18284 as_expr=expr
18285else
18286 as_expr=false
18287fi
80992638 18288
ad6254c5 18289rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18290if test -d conf$$.dir; then
18291 rm -f conf$$.dir/conf$$.file
18292else
18293 rm -f conf$$.dir
ec6a6fbe
AK
18294 mkdir conf$$.dir 2>/dev/null
18295fi
18296if (echo >conf$$.file) 2>/dev/null; then
18297 if ln -s conf$$.file conf$$ 2>/dev/null; then
18298 as_ln_s='ln -s'
18299 # ... but there are two gotchas:
18300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18302 # In both cases, we have to default to `cp -p'.
18303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18304 as_ln_s='cp -p'
18305 elif ln conf$$.file conf$$ 2>/dev/null; then
18306 as_ln_s=ln
18307 else
ad6254c5 18308 as_ln_s='cp -p'
ec6a6fbe 18309 fi
ad6254c5
AK
18310else
18311 as_ln_s='cp -p'
18312fi
7a197a62
AK
18313rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18314rmdir conf$$.dir 2>/dev/null
8106cdd5 18315
ad6254c5
AK
18316if mkdir -p . 2>/dev/null; then
18317 as_mkdir_p=:
18318else
8a2fc586 18319 test -d ./-p && rmdir ./-p
ad6254c5
AK
18320 as_mkdir_p=false
18321fi
18322
25fbec5b
AK
18323if test -x / >/dev/null 2>&1; then
18324 as_test_x='test -x'
7a197a62 18325else
25fbec5b
AK
18326 if ls -dL / >/dev/null 2>&1; then
18327 as_ls_L_option=L
18328 else
18329 as_ls_L_option=
18330 fi
18331 as_test_x='
18332 eval sh -c '\''
18333 if test -d "$1"; then
ec6a6fbe 18334 test -d "$1/.";
25fbec5b
AK
18335 else
18336 case $1 in
ec6a6fbe 18337 -*)set "./$1";;
25fbec5b
AK
18338 esac;
18339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18340 ???[sx]*):;;*)false;;esac;fi
18341 '\'' sh
18342 '
7a197a62 18343fi
25fbec5b 18344as_executable_p=$as_test_x
ad6254c5
AK
18345
18346# Sed expression to map a string onto a valid CPP name.
8a2fc586 18347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18348
18349# Sed expression to map a string onto a valid variable name.
8a2fc586 18350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18351
18352
ad6254c5
AK
18353exec 6>&1
18354
7a197a62 18355# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18356# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18357# values after options handling.
18358ac_log="
ad6254c5 18359This file was extended by $as_me, which was
ec6a6fbe 18360generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18361
18362 CONFIG_FILES = $CONFIG_FILES
18363 CONFIG_HEADERS = $CONFIG_HEADERS
18364 CONFIG_LINKS = $CONFIG_LINKS
18365 CONFIG_COMMANDS = $CONFIG_COMMANDS
18366 $ $0 $@
18367
7a197a62
AK
18368on `(hostname || uname -n) 2>/dev/null | sed 1q`
18369"
18370
ad6254c5
AK
18371_ACEOF
18372
ec6a6fbe
AK
18373case $ac_config_files in *"
18374"*) set x $ac_config_files; shift; ac_config_files=$*;;
18375esac
18376
18377case $ac_config_headers in *"
18378"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18379esac
18380
18381
18382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18383# Files that config.status was made for.
68f2de6d
AK
18384config_files="$ac_config_files"
18385config_headers="$ac_config_headers"
ad6254c5 18386
7a197a62 18387_ACEOF
ad6254c5 18388
ec6a6fbe 18389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18390ac_cs_usage="\
18391\`$as_me' instantiates files from templates according to the
18392current configuration.
18393
ec6a6fbe 18394Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18395
18396 -h, --help print this help, then exit
25fbec5b 18397 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18398 -q, --quiet, --silent
18399 do not print progress messages
ad6254c5
AK
18400 -d, --debug don't remove temporary files
18401 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18402 --file=FILE[:TEMPLATE]
18403 instantiate the configuration file FILE
18404 --header=FILE[:TEMPLATE]
18405 instantiate the configuration header FILE
ad6254c5
AK
18406
18407Configuration files:
18408$config_files
18409
72b2cb61
AK
18410Configuration headers:
18411$config_headers
18412
ad6254c5 18413Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18414
7a197a62 18415_ACEOF
ec6a6fbe 18416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18417ac_cs_version="\\
18418config.status
ec6a6fbe
AK
18419configured by $0, generated by GNU Autoconf 2.63,
18420 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18421
ec6a6fbe 18422Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18423This config.status script is free software; the Free Software Foundation
18424gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18425
18426ac_pwd='$ac_pwd'
18427srcdir='$srcdir'
18428INSTALL='$INSTALL'
fddafd51 18429MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18430AWK='$AWK'
18431test -n "\$AWK" || AWK=awk
ad6254c5
AK
18432_ACEOF
18433
ec6a6fbe
AK
18434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18435# The default lists apply if the user does not specify any file.
ad6254c5
AK
18436ac_need_defaults=:
18437while test $# != 0
18438do
18439 case $1 in
18440 --*=*)
7a197a62
AK
18441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18443 ac_shift=:
18444 ;;
7a197a62 18445 *)
ad6254c5
AK
18446 ac_option=$1
18447 ac_optarg=$2
18448 ac_shift=shift
18449 ;;
ad6254c5
AK
18450 esac
18451
18452 case $ac_option in
18453 # Handling of the options.
ad6254c5
AK
18454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18455 ac_cs_recheck=: ;;
7a197a62 18456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18457 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18458 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18459 debug=: ;;
18460 --file | --fil | --fi | --f )
18461 $ac_shift
ec6a6fbe
AK
18462 case $ac_optarg in
18463 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18464 esac
18465 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18466 ac_need_defaults=false;;
18467 --header | --heade | --head | --hea )
18468 $ac_shift
ec6a6fbe
AK
18469 case $ac_optarg in
18470 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18471 esac
18472 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18473 ac_need_defaults=false;;
7a197a62
AK
18474 --he | --h)
18475 # Conflict between --help and --header
ec6a6fbe 18476 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18477Try \`$0 --help' for more information." >&2
18478 { (exit 1); exit 1; }; };;
18479 --help | --hel | -h )
ec6a6fbe 18480 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18483 ac_cs_silent=: ;;
18484
18485 # This is an error.
ec6a6fbe 18486 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18487Try \`$0 --help' for more information." >&2
ad6254c5
AK
18488 { (exit 1); exit 1; }; } ;;
18489
7a197a62
AK
18490 *) ac_config_targets="$ac_config_targets $1"
18491 ac_need_defaults=false ;;
ad6254c5
AK
18492
18493 esac
18494 shift
18495done
18496
18497ac_configure_extra_args=
18498
18499if $ac_cs_silent; then
18500 exec 6>/dev/null
18501 ac_configure_extra_args="$ac_configure_extra_args --silent"
18502fi
18503
18504_ACEOF
ec6a6fbe 18505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18506if \$ac_cs_recheck; then
ec6a6fbe
AK
18507 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18508 shift
18509 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18510 CONFIG_SHELL='$SHELL'
7a197a62 18511 export CONFIG_SHELL
ec6a6fbe 18512 exec "\$@"
ad6254c5
AK
18513fi
18514
18515_ACEOF
ec6a6fbe 18516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18517exec 5>>config.log
18518{
18519 echo
18520 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18521## Running $as_me. ##
18522_ASBOX
ec6a6fbe 18523 $as_echo "$ac_log"
7a197a62 18524} >&5
ad6254c5 18525
7a197a62 18526_ACEOF
ec6a6fbe 18527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18528_ACEOF
ad6254c5 18529
ec6a6fbe 18530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18531
18532# Handling of arguments.
ad6254c5
AK
18533for ac_config_target in $ac_config_targets
18534do
7a197a62
AK
18535 case $ac_config_target in
18536 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18538 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18539 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18540 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18541 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18542 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18543 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18544 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18545 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18546 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18547 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18548 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18549 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18550 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18551 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18552 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18553 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18554 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18555 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18556 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18557 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18558 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18559 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18560 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18561 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18562 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18563 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18564 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18565 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18566 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18567 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18568 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18569 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18570 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18571 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18572 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18573 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 18574
ec6a6fbe
AK
18575 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18576$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18577 { (exit 1); exit 1; }; };;
80992638 18578 esac
ad6254c5
AK
18579done
18580
7a197a62 18581
ad6254c5
AK
18582# If the user did not use the arguments to specify the items to instantiate,
18583# then the envvar interface is used. Set only those that are not.
18584# We use the long form for the default assignment because of an extremely
18585# bizarre bug on SunOS 4.1.3.
18586if $ac_need_defaults; then
18587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18589fi
18590
18591# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18592# simply because there is no reason against having it here, and in addition,
ad6254c5 18593# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18594# Hook for its removal unless debugging.
18595# Note that there is a small window in which the directory will not be cleaned:
18596# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18597$debug ||
18598{
7a197a62
AK
18599 tmp=
18600 trap 'exit_status=$?
18601 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18602' 0
ad6254c5
AK
18603 trap '{ (exit 1); exit 1; }' 1 2 13 15
18604}
ad6254c5
AK
18605# Create a (secure) tmp directory for tmp files.
18606
18607{
7a197a62 18608 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18609 test -n "$tmp" && test -d "$tmp"
18610} ||
18611{
7a197a62
AK
18612 tmp=./conf$$-$RANDOM
18613 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18614} ||
18615{
ec6a6fbe 18616 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18617 { (exit 1); exit 1; }
18618}
18619
ec6a6fbe
AK
18620# Set up the scripts for CONFIG_FILES section.
18621# No need to generate them if there are no CONFIG_FILES.
18622# This happens for instance with `./config.status config.h'.
1995c9ff 18623if test -n "$CONFIG_FILES"; then
7a197a62 18624
68f2de6d 18625
ec6a6fbe
AK
18626ac_cr='\r'
18627ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18628if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18629 ac_cs_awk_cr='\\r'
18630else
18631 ac_cs_awk_cr=$ac_cr
1995c9ff 18632fi
7a197a62 18633
ec6a6fbe 18634echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18635_ACEOF
7a197a62 18636
8106cdd5 18637
ec6a6fbe
AK
18638{
18639 echo "cat >conf$$subs.awk <<_ACEOF" &&
18640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18641 echo "_ACEOF"
18642} >conf$$subs.sh ||
18643 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18644$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18645 { (exit 1); exit 1; }; }
18646ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18647ac_delim='%!_!# '
18648for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18649 . ./conf$$subs.sh ||
18650 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18651$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18652 { (exit 1); exit 1; }; }
18653
18654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18655 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18656 break
18657 elif $ac_last_try; then
ec6a6fbe
AK
18658 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18659$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18660 { (exit 1); exit 1; }; }
18661 else
18662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18663 fi
18664done
ec6a6fbe
AK
18665rm -f conf$$subs.sh
18666
18667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18668cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18669_ACEOF
18670sed -n '
18671h
18672s/^/S["/; s/!.*/"]=/
18673p
18674g
18675s/^[^!]*!//
18676:repl
18677t repl
18678s/'"$ac_delim"'$//
18679t delim
18680:nl
18681h
18682s/\(.\{148\}\).*/\1/
18683t more1
18684s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18685p
18686n
18687b repl
18688:more1
18689s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18690p
18691g
18692s/.\{148\}//
18693t nl
18694:delim
18695h
18696s/\(.\{148\}\).*/\1/
18697t more2
18698s/["\\]/\\&/g; s/^/"/; s/$/"/
18699p
18700b
18701:more2
18702s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18703p
18704g
18705s/.\{148\}//
18706t delim
18707' <conf$$subs.awk | sed '
18708/^[^""]/{
18709 N
18710 s/\n//
18711}
18712' >>$CONFIG_STATUS || ac_write_fail=1
18713rm -f conf$$subs.awk
18714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18715_ACAWK
18716cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18717 for (key in S) S_is_set[key] = 1
18718 FS = "\a"
7a197a62 18719
ec6a6fbe
AK
18720}
18721{
18722 line = $ 0
18723 nfields = split(line, field, "@")
18724 substed = 0
18725 len = length(field[1])
18726 for (i = 2; i < nfields; i++) {
18727 key = field[i]
18728 keylen = length(key)
18729 if (S_is_set[key]) {
18730 value = S[key]
18731 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18732 len += length(value) + length(field[++i])
18733 substed = 1
18734 } else
18735 len += 1 + keylen
18736 }
18737
18738 print line
18739}
fddafd51 18740
ec6a6fbe 18741_ACAWK
1995c9ff 18742_ACEOF
ec6a6fbe
AK
18743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18744if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18745 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18746else
18747 cat
18748fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18749 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18750$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18751 { (exit 1); exit 1; }; }
7a197a62
AK
18752_ACEOF
18753
7a197a62
AK
18754# VPATH may cause trouble with some makes, so we remove $(srcdir),
18755# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18756# trailing colons and then remove the whole line if VPATH becomes empty
18757# (actually we leave an empty line to preserve line numbers).
18758if test "x$srcdir" = x.; then
18759 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18760s/:*\$(srcdir):*/:/
18761s/:*\${srcdir}:*/:/
18762s/:*@srcdir@:*/:/
18763s/^\([^=]*=[ ]*\):*/\1/
18764s/:*$//
18765s/^[^=]*=[ ]*$//
18766}'
18767fi
18768
ec6a6fbe 18769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18770fi # test -n "$CONFIG_FILES"
18771
ec6a6fbe
AK
18772# Set up the scripts for CONFIG_HEADERS section.
18773# No need to generate them if there are no CONFIG_HEADERS.
18774# This happens for instance with `./config.status Makefile'.
18775if test -n "$CONFIG_HEADERS"; then
18776cat >"$tmp/defines.awk" <<\_ACAWK ||
18777BEGIN {
18778_ACEOF
18779
18780# Transform confdefs.h into an awk script `defines.awk', embedded as
18781# here-document in config.status, that substitutes the proper values into
18782# config.h.in to produce config.h.
18783
18784# Create a delimiter string that does not exist in confdefs.h, to ease
18785# handling of long lines.
18786ac_delim='%!_!# '
18787for ac_last_try in false false :; do
18788 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18789 if test -z "$ac_t"; then
18790 break
18791 elif $ac_last_try; then
18792 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18793$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18794 { (exit 1); exit 1; }; }
18795 else
18796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18797 fi
18798done
18799
18800# For the awk script, D is an array of macro values keyed by name,
18801# likewise P contains macro parameters if any. Preserve backslash
18802# newline sequences.
18803
18804ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18805sed -n '
18806s/.\{148\}/&'"$ac_delim"'/g
18807t rset
18808:rset
18809s/^[ ]*#[ ]*define[ ][ ]*/ /
18810t def
18811d
18812:def
18813s/\\$//
18814t bsnl
18815s/["\\]/\\&/g
18816s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18817D["\1"]=" \3"/p
18818s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18819d
18820:bsnl
18821s/["\\]/\\&/g
18822s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18823D["\1"]=" \3\\\\\\n"\\/p
18824t cont
18825s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18826t cont
18827d
18828:cont
18829n
18830s/.\{148\}/&'"$ac_delim"'/g
18831t clear
18832:clear
18833s/\\$//
18834t bsnlc
18835s/["\\]/\\&/g; s/^/"/; s/$/"/p
18836d
18837:bsnlc
18838s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18839b cont
18840' <confdefs.h | sed '
18841s/'"$ac_delim"'/"\\\
18842"/g' >>$CONFIG_STATUS || ac_write_fail=1
18843
18844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18845 for (key in D) D_is_set[key] = 1
18846 FS = "\a"
18847}
18848/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18849 line = \$ 0
18850 split(line, arg, " ")
18851 if (arg[1] == "#") {
18852 defundef = arg[2]
18853 mac1 = arg[3]
18854 } else {
18855 defundef = substr(arg[1], 2)
18856 mac1 = arg[2]
18857 }
18858 split(mac1, mac2, "(") #)
18859 macro = mac2[1]
18860 prefix = substr(line, 1, index(line, defundef) - 1)
18861 if (D_is_set[macro]) {
18862 # Preserve the white space surrounding the "#".
18863 print prefix "define", macro P[macro] D[macro]
18864 next
18865 } else {
18866 # Replace #undef with comments. This is necessary, for example,
18867 # in the case of _POSIX_SOURCE, which is predefined and required
18868 # on some systems where configure will not decide to define it.
18869 if (defundef == "undef") {
18870 print "/*", prefix defundef, macro, "*/"
18871 next
18872 }
18873 }
18874}
18875{ print }
18876_ACAWK
18877_ACEOF
18878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18879 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18880$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18881 { (exit 1); exit 1; }; }
18882fi # test -n "$CONFIG_HEADERS"
18883
7a197a62 18884
ec6a6fbe
AK
18885eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18886shift
18887for ac_tag
7a197a62
AK
18888do
18889 case $ac_tag in
18890 :[FHLC]) ac_mode=$ac_tag; continue;;
18891 esac
18892 case $ac_mode$ac_tag in
18893 :[FHL]*:*);;
ec6a6fbe
AK
18894 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18895$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
18896 { (exit 1); exit 1; }; };;
18897 :[FH]-) ac_tag=-:-;;
18898 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18899 esac
18900 ac_save_IFS=$IFS
18901 IFS=:
18902 set x $ac_tag
18903 IFS=$ac_save_IFS
18904 shift
18905 ac_file=$1
18906 shift
18907
18908 case $ac_mode in
18909 :L) ac_source=$1;;
18910 :[FH])
18911 ac_file_inputs=
18912 for ac_f
18913 do
18914 case $ac_f in
18915 -) ac_f="$tmp/stdin";;
18916 *) # Look for the file first in the build tree, then in the source tree
18917 # (if the path is not absolute). The absolute path cannot be DOS-style,
18918 # because $ac_f cannot contain `:'.
18919 test -f "$ac_f" ||
18920 case $ac_f in
18921 [\\/$]*) false;;
18922 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18923 esac ||
ec6a6fbe
AK
18924 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18925$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
18926 { (exit 1); exit 1; }; };;
18927 esac
ec6a6fbe
AK
18928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18929 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
18930 done
18931
18932 # Let's still pretend it is `configure' which instantiates (i.e., don't
18933 # use $as_me), people would be surprised to read:
18934 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
18935 configure_input='Generated from '`
18936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18937 `' by configure.'
7a197a62
AK
18938 if test x"$ac_file" != x-; then
18939 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
18940 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18941$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 18942 fi
ec6a6fbe
AK
18943 # Neutralize special characters interpreted by sed in replacement strings.
18944 case $configure_input in #(
18945 *\&* | *\|* | *\\* )
18946 ac_sed_conf_input=`$as_echo "$configure_input" |
18947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18948 *) ac_sed_conf_input=$configure_input;;
18949 esac
7a197a62
AK
18950
18951 case $ac_tag in
ec6a6fbe
AK
18952 *:-:* | *:-) cat >"$tmp/stdin" \
18953 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18954$as_echo "$as_me: error: could not create $ac_file" >&2;}
18955 { (exit 1); exit 1; }; } ;;
7a197a62
AK
18956 esac
18957 ;;
80992638 18958 esac
8106cdd5 18959
7a197a62 18960 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 18961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
18962 X"$ac_file" : 'X\(//\)[^/]' \| \
18963 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 18964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18965$as_echo X"$ac_file" |
7a197a62
AK
18966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18967 s//\1/
18968 q
18969 }
18970 /^X\(\/\/\)[^/].*/{
18971 s//\1/
18972 q
18973 }
18974 /^X\(\/\/\)$/{
18975 s//\1/
18976 q
18977 }
18978 /^X\(\/\).*/{
18979 s//\1/
18980 q
18981 }
18982 s/.*/./; q'`
18983 { as_dir="$ac_dir"
18984 case $as_dir in #(
18985 -*) as_dir=./$as_dir;;
18986 esac
18987 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 18988 as_dirs=
7a197a62
AK
18989 while :; do
18990 case $as_dir in #(
ec6a6fbe 18991 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
18992 *) as_qdir=$as_dir;;
18993 esac
18994 as_dirs="'$as_qdir' $as_dirs"
18995 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 18996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
18997 X"$as_dir" : 'X\(//\)[^/]' \| \
18998 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 18999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19000$as_echo X"$as_dir" |
7a197a62
AK
19001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19002 s//\1/
19003 q
19004 }
19005 /^X\(\/\/\)[^/].*/{
19006 s//\1/
19007 q
19008 }
19009 /^X\(\/\/\)$/{
19010 s//\1/
19011 q
19012 }
19013 /^X\(\/\).*/{
19014 s//\1/
19015 q
19016 }
19017 s/.*/./; q'`
19018 test -d "$as_dir" && break
ad6254c5 19019 done
7a197a62 19020 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19021 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19022$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19023 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19024 ac_builddir=.
19025
7a197a62
AK
19026case "$ac_dir" in
19027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19028*)
ec6a6fbe 19029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19030 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19032 case $ac_top_builddir_sub in
19033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19035 esac ;;
19036esac
19037ac_abs_top_builddir=$ac_pwd
19038ac_abs_builddir=$ac_pwd$ac_dir_suffix
19039# for backward compatibility:
19040ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19041
19042case $srcdir in
7a197a62 19043 .) # We are building in place.
ad6254c5 19044 ac_srcdir=.
7a197a62
AK
19045 ac_top_srcdir=$ac_top_builddir_sub
19046 ac_abs_top_srcdir=$ac_pwd ;;
19047 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19048 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19049 ac_top_srcdir=$srcdir
19050 ac_abs_top_srcdir=$srcdir ;;
19051 *) # Relative name.
19052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19053 ac_top_srcdir=$ac_top_build_prefix$srcdir
19054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19055esac
7a197a62 19056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19057
ad6254c5 19058
7a197a62
AK
19059 case $ac_mode in
19060 :F)
19061 #
19062 # CONFIG_FILE
19063 #
ad6254c5
AK
19064
19065 case $INSTALL in
19066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19068 esac
fddafd51
ZK
19069 ac_MKDIR_P=$MKDIR_P
19070 case $MKDIR_P in
19071 [\\/$]* | ?:[\\/]* ) ;;
19072 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19073 esac
7a197a62 19074_ACEOF
795ca3e5 19075
ec6a6fbe 19076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19077# If the template does not know about datarootdir, expand it.
19078# FIXME: This hack should be removed a few years after 2.60.
19079ac_datarootdir_hack=; ac_datarootdir_seen=
19080
ec6a6fbe
AK
19081ac_sed_dataroot='
19082/datarootdir/ {
7a197a62
AK
19083 p
19084 q
19085}
19086/@datadir@/p
19087/@docdir@/p
19088/@infodir@/p
19089/@localedir@/p
19090/@mandir@/p
ec6a6fbe
AK
19091'
19092case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19093*datarootdir*) ac_datarootdir_seen=yes;;
19094*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19095 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19096$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19097_ACEOF
ec6a6fbe 19098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19099 ac_datarootdir_hack='
19100 s&@datadir@&$datadir&g
19101 s&@docdir@&$docdir&g
19102 s&@infodir@&$infodir&g
19103 s&@localedir@&$localedir&g
19104 s&@mandir@&$mandir&g
19105 s&\\\${datarootdir}&$datarootdir&g' ;;
19106esac
19107_ACEOF
19108
19109# Neutralize VPATH when `$srcdir' = `.'.
19110# Shell code in configure.ac might set extrasub.
19111# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19113ac_sed_extra="$ac_vpsub
ad6254c5
AK
19114$extrasub
19115_ACEOF
ec6a6fbe 19116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19117:t
19118/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19119s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19120s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19121s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19122s&@srcdir@&$ac_srcdir&;t t
19123s&@abs_srcdir@&$ac_abs_srcdir&;t t
19124s&@top_srcdir@&$ac_top_srcdir&;t t
19125s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19126s&@builddir@&$ac_builddir&;t t
19127s&@abs_builddir@&$ac_abs_builddir&;t t
19128s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19129s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19130s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19131$ac_datarootdir_hack
ec6a6fbe
AK
19132"
19133eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19134 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19135$as_echo "$as_me: error: could not create $ac_file" >&2;}
19136 { (exit 1); exit 1; }; }
7a197a62
AK
19137
19138test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19139 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19140 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19141 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19142which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19143$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19144which seems to be undefined. Please make sure it is defined." >&2;}
19145
19146 rm -f "$tmp/stdin"
72b2cb61 19147 case $ac_file in
ec6a6fbe
AK
19148 -) cat "$tmp/out" && rm -f "$tmp/out";;
19149 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19150 esac \
19151 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19152$as_echo "$as_me: error: could not create $ac_file" >&2;}
19153 { (exit 1); exit 1; }; }
7a197a62
AK
19154 ;;
19155 :H)
19156 #
19157 # CONFIG_HEADER
19158 #
72b2cb61 19159 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19160 {
19161 $as_echo "/* $configure_input */" \
19162 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19163 } >"$tmp/config.h" \
19164 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19165$as_echo "$as_me: error: could not create $ac_file" >&2;}
19166 { (exit 1); exit 1; }; }
19167 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19168 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19169$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19170 else
ec6a6fbe
AK
19171 rm -f "$ac_file"
19172 mv "$tmp/config.h" "$ac_file" \
19173 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19174$as_echo "$as_me: error: could not create $ac_file" >&2;}
19175 { (exit 1); exit 1; }; }
72b2cb61
AK
19176 fi
19177 else
ec6a6fbe
AK
19178 $as_echo "/* $configure_input */" \
19179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19180 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19181$as_echo "$as_me: error: could not create -" >&2;}
19182 { (exit 1); exit 1; }; }
72b2cb61 19183 fi
7a197a62
AK
19184 ;;
19185
19186
19187 esac
19188
19189done # for ac_tag
795ca3e5 19190
795ca3e5 19191
ad6254c5
AK
19192{ (exit 0); exit 0; }
19193_ACEOF
795ca3e5 19194chmod +x $CONFIG_STATUS
ad6254c5
AK
19195ac_clean_files=$ac_clean_files_save
19196
ec6a6fbe
AK
19197test $ac_write_fail = 0 ||
19198 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19199$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19200 { (exit 1); exit 1; }; }
19201
ad6254c5
AK
19202
19203# configure is writing to config.log, and then calls config.status.
19204# config.status does its own redirection, appending to config.log.
19205# Unfortunately, on DOS this fails, as config.log is still kept open
19206# by configure, so config.status won't be able to write to it; its
19207# output is simply discarded. So we exec the FD to /dev/null,
19208# effectively closing config.log, so it can be properly (re)opened and
19209# appended to by config.status. When coming back to configure, we
19210# need to make the FD available again.
19211if test "$no_create" != yes; then
19212 ac_cs_success=:
19213 ac_config_status_args=
19214 test "$silent" = yes &&
19215 ac_config_status_args="$ac_config_status_args --quiet"
19216 exec 5>/dev/null
19217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19218 exec 5>>config.log
19219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19220 # would make configure fail if this is the last instruction.
19221 $ac_cs_success || { (exit 1); exit 1; }
19222fi
ec6a6fbe
AK
19223if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19224 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19225$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19226fi
795ca3e5 19227
2dc95e1c
AK
19228
19229if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19230 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19231$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19232fi
This page took 2.353702 seconds and 5 git commands to generate.