]> sourceware.org Git - lvm2.git/blame - configure
Shorten prompt for pvchange and vgextend.
[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
e2997b73 739PKG_CONFIG
ec6a6fbe
AK
740POW_LIB
741LIBOBJS
742ALLOCA
743CSCOPE_CMD
744CFLOW_CMD
745RANLIB
746MKDIR_P
747SET_MAKE
748LN_S
749INSTALL_DATA
750INSTALL_SCRIPT
751INSTALL_PROGRAM
752EGREP
753GREP
754CPP
755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
762AWK
763SED
764target_os
765target_vendor
766target_cpu
767target
768host_os
769host_vendor
770host_cpu
771host
772build_os
773build_vendor
774build_cpu
775build
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
ad6254c5 813ac_subst_files=''
ec6a6fbe
AK
814ac_user_opts='
815enable_option_checking
816enable_static_link
817with_user
818with_group
819with_device_uid
820with_device_gid
821with_device_mode
822enable_lvm1_fallback
823with_lvm1
824with_pool
825with_cluster
826with_snapshots
827with_mirrors
8fea97b7 828with_replicators
ec6a6fbe
AK
829enable_readline
830enable_realtime
831with_clvmd
66fd4529
AK
832enable_cmirrord
833with_cmirrord_pidfile
ec6a6fbe
AK
834enable_debug
835with_optimisation
836enable_profiling
837enable_devmapper
a5f46f6a
AK
838enable_udev_sync
839enable_udev_rules
ec6a6fbe 840enable_compat
95eaa683 841enable_units_compat
ec6a6fbe
AK
842enable_ioctl
843enable_o_direct
572fefeb 844enable_applib
ec6a6fbe
AK
845enable_cmdlib
846enable_pkgconfig
23b059e7 847enable_write_install
ec6a6fbe
AK
848enable_fsadm
849enable_dmeventd
850enable_selinux
851enable_nls
852with_localedir
853with_confdir
854with_staticdir
855with_usrlibdir
856with_usrsbindir
a5f46f6a 857with_udev_prefix
78ce7acc 858with_udevdir
ec6a6fbe
AK
859with_dmeventd_pidfile
860with_dmeventd_path
3399ae32
AK
861with_default_system_dir
862with_default_archive_subdir
863with_default_backup_subdir
864with_default_cache_subdir
865with_default_locking_dir
ec6a6fbe
AK
866with_interface
867'
7a197a62
AK
868 ac_precious_vars='build_alias
869host_alias
870target_alias
871CC
872CFLAGS
873LDFLAGS
25fbec5b 874LIBS
7a197a62 875CPPFLAGS
e2997b73
AK
876CPP
877PKG_CONFIG
a946372e
AK
878PKGCONFIGINIT_CFLAGS
879PKGCONFIGINIT_LIBS
880CCS_CFLAGS
881CCS_LIBS
882GULM_CFLAGS
883GULM_LIBS
884CMAN_CFLAGS
885CMAN_LIBS
886COROSYNC_CFLAGS
887COROSYNC_LIBS
e2997b73
AK
888QUORUM_CFLAGS
889QUORUM_LIBS
a946372e
AK
890SALCK_CFLAGS
891SALCK_LIBS
e2997b73
AK
892CONFDB_CFLAGS
893CONFDB_LIBS
894CPG_CFLAGS
a946372e
AK
895CPG_LIBS
896DLM_CFLAGS
90c80887
AK
897DLM_LIBS
898SACKPT_CFLAGS
899SACKPT_LIBS'
7a197a62 900
795ca3e5
AK
901
902# Initialize some variables set by options.
ad6254c5
AK
903ac_init_help=
904ac_init_version=false
ec6a6fbe
AK
905ac_unrecognized_opts=
906ac_unrecognized_sep=
795ca3e5
AK
907# The variables have the same names as the options, with
908# dashes changed to underlines.
ad6254c5 909cache_file=/dev/null
795ca3e5 910exec_prefix=NONE
795ca3e5 911no_create=
795ca3e5
AK
912no_recursion=
913prefix=NONE
914program_prefix=NONE
915program_suffix=NONE
916program_transform_name=s,x,x,
917silent=
918site=
919srcdir=
795ca3e5
AK
920verbose=
921x_includes=NONE
922x_libraries=NONE
ad6254c5
AK
923
924# Installation directory options.
925# These are left unexpanded so users can "make install exec_prefix=/foo"
926# and all the variables that are supposed to be based on exec_prefix
927# by default will actually change.
928# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 929# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
930bindir='${exec_prefix}/bin'
931sbindir='${exec_prefix}/sbin'
932libexecdir='${exec_prefix}/libexec'
7a197a62
AK
933datarootdir='${prefix}/share'
934datadir='${datarootdir}'
795ca3e5
AK
935sysconfdir='${prefix}/etc'
936sharedstatedir='${prefix}/com'
937localstatedir='${prefix}/var'
795ca3e5
AK
938includedir='${prefix}/include'
939oldincludedir='/usr/include'
7a197a62
AK
940docdir='${datarootdir}/doc/${PACKAGE}'
941infodir='${datarootdir}/info'
942htmldir='${docdir}'
943dvidir='${docdir}'
944pdfdir='${docdir}'
945psdir='${docdir}'
946libdir='${exec_prefix}/lib'
947localedir='${datarootdir}/locale'
948mandir='${datarootdir}/man'
795ca3e5 949
795ca3e5 950ac_prev=
7a197a62 951ac_dashdash=
795ca3e5
AK
952for ac_option
953do
795ca3e5
AK
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
7a197a62 956 eval $ac_prev=\$ac_option
795ca3e5
AK
957 ac_prev=
958 continue
959 fi
960
7a197a62
AK
961 case $ac_option in
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
964 esac
795ca3e5
AK
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
7a197a62
AK
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
795ca3e5
AK
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 975 bindir=$ac_optarg ;;
795ca3e5
AK
976
977 -build | --build | --buil | --bui | --bu)
ad6254c5 978 ac_prev=build_alias ;;
795ca3e5 979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 980 build_alias=$ac_optarg ;;
795ca3e5
AK
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
795ca3e5 991
7a197a62 992 -datadir | --datadir | --datadi | --datad)
795ca3e5 993 ac_prev=datadir ;;
7a197a62 994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 995 datadir=$ac_optarg ;;
795ca3e5 996
7a197a62
AK
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
795ca3e5 1004 -disable-* | --disable-*)
ec6a6fbe 1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1006 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1009 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014"enable_$ac_useropt"
1015"*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
7a197a62
AK
1020
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1025
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
795ca3e5
AK
1030
1031 -enable-* | --enable-*)
ec6a6fbe 1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1033 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1036 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
ad6254c5 1055 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
ad6254c5
AK
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
795ca3e5
AK
1067
1068 -host | --host | --hos | --ho)
ad6254c5 1069 ac_prev=host_alias ;;
795ca3e5 1070 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1071 host_alias=$ac_optarg ;;
795ca3e5 1072
7a197a62
AK
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
795ca3e5
AK
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1084 includedir=$ac_optarg ;;
795ca3e5
AK
1085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1089 infodir=$ac_optarg ;;
795ca3e5
AK
1090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1094 libdir=$ac_optarg ;;
795ca3e5
AK
1095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1101 libexecdir=$ac_optarg ;;
795ca3e5 1102
7a197a62
AK
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
795ca3e5 1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1109 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1113 localstatedir=$ac_optarg ;;
795ca3e5
AK
1114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1118 mandir=$ac_optarg ;;
795ca3e5
AK
1119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1125 | --no-cr | --no-c | -n)
795ca3e5
AK
1126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1139 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1144 prefix=$ac_optarg ;;
795ca3e5
AK
1145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1151 program_prefix=$ac_optarg ;;
795ca3e5
AK
1152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1158 program_suffix=$ac_optarg ;;
795ca3e5
AK
1159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1175 program_transform_name=$ac_optarg ;;
795ca3e5 1176
7a197a62
AK
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
795ca3e5
AK
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
ad6254c5 1195 sbindir=$ac_optarg ;;
795ca3e5
AK
1196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
ad6254c5 1206 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
ad6254c5 1211 site=$ac_optarg ;;
795ca3e5
AK
1212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1216 srcdir=$ac_optarg ;;
795ca3e5
AK
1217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1223 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1226 ac_prev=target_alias ;;
795ca3e5 1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1228 target_alias=$ac_optarg ;;
795ca3e5
AK
1229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
ad6254c5
AK
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
795ca3e5
AK
1235
1236 -with-* | --with-*)
ec6a6fbe 1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1238 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1241 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246"with_$ac_useropt"
1247"*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1252
1253 -without-* | --without-*)
ec6a6fbe 1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1255 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1258 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"with_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
795ca3e5
AK
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1279 x_includes=$ac_optarg ;;
795ca3e5
AK
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1286 x_libraries=$ac_optarg ;;
795ca3e5 1287
ec6a6fbe 1288 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1289Try \`$0 --help' for more information." >&2
1290 { (exit 1); exit 1; }; }
795ca3e5
AK
1291 ;;
1292
ad6254c5
AK
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1297 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1298 { (exit 1); exit 1; }; }
7a197a62 1299 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1300 export $ac_envvar ;;
1301
795ca3e5 1302 *)
ad6254c5 1303 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1307 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1308 ;;
1309
1310 esac
1311done
1312
1313if test -n "$ac_prev"; then
ad6254c5 1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1315 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1316 { (exit 1); exit 1; }; }
795ca3e5 1317fi
795ca3e5 1318
ec6a6fbe
AK
1319if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
1322 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1323 { (exit 1); exit 1; }; } ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326fi
1327
1328# Check all directory arguments for consistency.
7a197a62
AK
1329for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
795ca3e5 1333do
7a197a62 1334 eval ac_val=\$$ac_var
ec6a6fbe
AK
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
ad6254c5 1342 case $ac_val in
7a197a62
AK
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1345 esac
ec6a6fbe 1346 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1347 { (exit 1); exit 1; }; }
795ca3e5
AK
1348done
1349
ad6254c5
AK
1350# There might be people who depend on the old broken behavior: `$host'
1351# used to hold the argument of --host etc.
1352# FIXME: To remove some day.
1353build=$build_alias
1354host=$host_alias
1355target=$target_alias
1356
1357# FIXME: To remove some day.
1358if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
ec6a6fbe 1361 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366fi
8106cdd5 1367
ad6254c5
AK
1368ac_tool_prefix=
1369test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371test "$silent" = yes && exec 6>/dev/null
795ca3e5 1372
795ca3e5 1373
7a197a62
AK
1374ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375ac_ls_di=`ls -di .` &&
1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1377 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1378 { (exit 1); exit 1; }; }
1379test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1380 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1381 { (exit 1); exit 1; }; }
1382
1383
795ca3e5
AK
1384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
7a197a62 1387 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393$as_echo X"$as_myself" |
7a197a62
AK
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
795ca3e5 1411 srcdir=$ac_confdir
7a197a62 1412 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
7a197a62
AK
1418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1420 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1421 { (exit 1); exit 1; }; }
795ca3e5 1422fi
7a197a62
AK
1423ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424ac_abs_confdir=`(
ec6a6fbe 1425 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1426 { (exit 1); exit 1; }; }
7a197a62
AK
1427 pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
1438for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443done
ad6254c5
AK
1444
1445#
1446# Report the --help message.
1447#
1448if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452\`configure' configures this package to adapt to many kinds of systems.
1453
1454Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459Defaults for the options are specified in brackets.
1460
1461Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
ad6254c5
AK
1472Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1474 [$ac_default_prefix]
ad6254c5 1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1476 [PREFIX]
ad6254c5
AK
1477
1478By default, \`make install' will install all the files in
1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481for instance \`--prefix=\$HOME'.
1482
1483For better control, use the options below.
1484
1485Fine tuning of the installation directories:
ec6a6fbe
AK
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1505_ACEOF
1506
1507 cat <<\_ACEOF
1508
1509System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1513_ACEOF
1514fi
1515
1516if test -n "$ac_init_help"; then
1517
1518 cat <<\_ACEOF
1519
1520Optional Features:
ec6a6fbe 1521 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1524 --enable-static_link Use this to link the tools to their libraries
1525 statically. Default is dynamic linking
ad6254c5
AK
1526 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1527 device-mapper is missing from the kernel
1b523347 1528 --disable-readline Disable readline support
89044bc0 1529 --enable-realtime Enable realtime clock support
66fd4529 1530 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1531 --enable-debug Enable debugging
5556819a 1532 --enable-profiling Gather gcov profiling data
93bd259b 1533 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1534 --enable-udev_sync Enable synchronisation with udev processing
1535 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1536 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1537 --enable-units-compat Enable output compatibility with old versions that
1538 that don't use KiB-style unit suffixes
93bd259b 1539 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1540 --disable-o_direct Disable O_DIRECT
572fefeb 1541 --enable-applib Build application library
ad6254c5 1542 --enable-cmdlib Build shared command library
93bd259b 1543 --enable-pkgconfig Install pkgconfig support
23b059e7 1544 --enable-write_install Install user writable files
c9274524 1545 --disable-fsadm Disable fsadm
15d91f5a 1546 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1547 --disable-selinux Disable selinux support
ad6254c5
AK
1548 --enable-nls Enable Native Language Support
1549
1550Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1553 --with-user=USER Set the owner of installed files [USER=]
1554 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1555 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1556 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1557 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1558 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1559 TYPE=internal
1560 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1561 TYPE=internal
1562 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1563 TYPE=internal
1564 --with-snapshots=TYPE Snapshot support: internal/shared/none
1565 TYPE=internal
1566 --with-mirrors=TYPE Mirror support: internal/shared/none
1567 TYPE=internal
8fea97b7 1568 --with-replicators=TYPE Replicator support: internal/shared/none TYPE=none
a946372e 1569 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1570 The following cluster manager combinations are valid:
a946372e
AK
1571 * cman,gulm (RHEL4 or equivalent)
1572 * cman (RHEL5 or equivalent)
1573 * cman,corosync,openais (or selection of them)
1091650a 1574 * singlenode (localhost only)
a946372e
AK
1575 * all (autodetect)
1576 * none (disable build)
a266258f 1577 TYPE=none
66fd4529 1578 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1579 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1580 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1581 --with-confdir=DIR Configuration files in DIR [/etc]
1582 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1583 --with-usrlibdir=DIR
1584 --with-usrsbindir=DIR
a5f46f6a 1585 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1586 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1587 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1588 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
3399ae32
AK
1589 --with-default-system-dir=DIR Default LVM system directory [/etc/lvm]
1590 --with-default-archive-subdir=SUBDIR Default metadata archive subdir [archive]
1591 --with-default-backup-subdir=SUBDIR Default metadata backup subdir [backup]
1592 --with-default-cache-subdir=SUBDIR Default metadata cache subdir [cache]
1593 --with-default-locking-dir=DIR Default locking directory [/var/lock/lvm]
93bd259b 1594 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1595
1596Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
25fbec5b 1601 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1602 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
ad6254c5 1604 CPP C preprocessor
e2997b73 1605 PKG_CONFIG path to pkg-config utility
a946372e
AK
1606 PKGCONFIGINIT_CFLAGS
1607 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1608 PKGCONFIGINIT_LIBS
1609 linker flags for PKGCONFIGINIT, overriding pkg-config
1610 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1611 CCS_LIBS linker flags for CCS, overriding pkg-config
1612 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1613 GULM_LIBS linker flags for GULM, overriding pkg-config
1614 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1615 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1616 COROSYNC_CFLAGS
1617 C compiler flags for COROSYNC, overriding pkg-config
1618 COROSYNC_LIBS
1619 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1620 QUORUM_CFLAGS
1621 C compiler flags for QUORUM, overriding pkg-config
1622 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1623 SALCK_CFLAGS
1624 C compiler flags for SALCK, overriding pkg-config
1625 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1626 CONFDB_CFLAGS
1627 C compiler flags for CONFDB, overriding pkg-config
1628 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1629 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1630 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1631 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1632 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1633 SACKPT_CFLAGS
1634 C compiler flags for SACKPT, overriding pkg-config
1635 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1636
1637Use these variables to override the choices made by `configure' or to help
1638it to find libraries and programs with nonstandard names/locations.
1639
1640_ACEOF
7a197a62 1641ac_status=$?
ad6254c5
AK
1642fi
1643
1644if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
ad6254c5 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
ad6254c5
AK
1650 ac_builddir=.
1651
7a197a62
AK
1652case "$ac_dir" in
1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654*)
ec6a6fbe 1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1656 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662esac
1663ac_abs_top_builddir=$ac_pwd
1664ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665# for backward compatibility:
1666ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1667
1668case $srcdir in
7a197a62 1669 .) # We are building in place.
ad6254c5 1670 ac_srcdir=.
7a197a62
AK
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1674 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1681esac
7a197a62
AK
1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1692 else
ec6a6fbe 1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1696 done
1697fi
1698
7a197a62 1699test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1700if $ac_init_version; then
1701 cat <<\_ACEOF
7a197a62 1702configure
ec6a6fbe 1703generated by GNU Autoconf 2.63
ad6254c5 1704
7a197a62 1705Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17062002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1707This configure script is free software; the Free Software Foundation
1708gives unlimited permission to copy, distribute and modify it.
1709_ACEOF
7a197a62 1710 exit
ad6254c5 1711fi
7a197a62 1712cat >config.log <<_ACEOF
ad6254c5
AK
1713This file contains any messages produced by compilers while
1714running configure, to aid debugging if configure makes a mistake.
1715
1716It was created by $as_me, which was
ec6a6fbe 1717generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1718
1719 $ $0 $@
1720
1721_ACEOF
7a197a62 1722exec 5>>config.log
ad6254c5
AK
1723{
1724cat <<_ASUNAME
1725## --------- ##
1726## Platform. ##
1727## --------- ##
1728
1729hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1737
1738/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1741/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1742/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1745
1746_ASUNAME
1747
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
ec6a6fbe 1753 $as_echo "PATH: $as_dir"
ad6254c5 1754done
7a197a62 1755IFS=$as_save_IFS
ad6254c5
AK
1756
1757} >&5
1758
1759cat >&5 <<_ACEOF
1760
1761
1762## ----------- ##
1763## Core tests. ##
1764## ----------- ##
1765
1766_ACEOF
1767
1768
1769# Keep a trace of the command line.
1770# Strip out --no-create and --no-recursion so they do not pile up.
1771# Strip out --silent because we don't want to record it for future runs.
1772# Also quote any args containing shell meta-characters.
1773# Make two passes to allow for proper duplicate-argument suppression.
1774ac_configure_args=
1775ac_configure_args0=
1776ac_configure_args1=
ad6254c5
AK
1777ac_must_keep_next=false
1778for ac_pass in 1 2
1779do
1780 for ac_arg
1781 do
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
7a197a62 1787 *\'*)
ec6a6fbe 1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1789 esac
1790 case $ac_pass in
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792 2)
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
8a2fc586 1795 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1796 else
8a2fc586
AK
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1805 ;;
1806 -* ) ac_must_keep_next=true ;;
1807 esac
ad6254c5 1808 fi
7a197a62 1809 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1810 ;;
1811 esac
1812 done
1813done
1814$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817# When interrupted or exit'd, cleanup temporary files, and complete
1818# config.log. We remove comments because anyway the quotes in there
1819# would cause problems or look ugly.
7a197a62
AK
1820# WARNING: Use '\'' to represent an apostrophe within the trap.
1821# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1822trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1824 {
1825 echo
1826
1827 cat <<\_ASBOX
1828## ---------------- ##
1829## Cache variables. ##
1830## ---------------- ##
1831_ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1834(
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
ec6a6fbe
AK
1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
ec6a6fbe 1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1846 *) $as_unset $ac_var ;;
1847 esac ;;
1848 esac
1849 done
ad6254c5 1850 (set) 2>&1 |
7a197a62
AK
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
ad6254c5 1853 sed -n \
7a197a62
AK
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856 ;; #(
ad6254c5 1857 *)
7a197a62 1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1859 ;;
7a197a62
AK
1860 esac |
1861 sort
1862)
ad6254c5
AK
1863 echo
1864
1865 cat <<\_ASBOX
1866## ----------------- ##
1867## Output variables. ##
1868## ----------------- ##
1869_ASBOX
1870 echo
1871 for ac_var in $ac_subst_vars
1872 do
7a197a62
AK
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
ec6a6fbe 1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1876 esac
ec6a6fbe 1877 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1878 done | sort
1879 echo
1880
1881 if test -n "$ac_subst_files"; then
1882 cat <<\_ASBOX
7a197a62
AK
1883## ------------------- ##
1884## File substitutions. ##
1885## ------------------- ##
ad6254c5
AK
1886_ASBOX
1887 echo
1888 for ac_var in $ac_subst_files
1889 do
7a197a62
AK
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
ec6a6fbe 1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1893 esac
ec6a6fbe 1894 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1895 done | sort
1896 echo
1897 fi
1898
1899 if test -s confdefs.h; then
1900 cat <<\_ASBOX
1901## ----------- ##
1902## confdefs.h. ##
1903## ----------- ##
1904_ASBOX
1905 echo
7a197a62 1906 cat confdefs.h
ad6254c5
AK
1907 echo
1908 fi
1909 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
ad6254c5 1912 } >&5
7a197a62
AK
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1915 exit $exit_status
7a197a62 1916' 0
ad6254c5
AK
1917for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919done
1920ac_signal=0
1921
1922# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1923rm -f -r conftest* confdefs.h
ad6254c5
AK
1924
1925# Predefined preprocessor variables.
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_NAME "$PACKAGE_NAME"
1929_ACEOF
1930
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934_ACEOF
1935
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE_VERSION "$PACKAGE_VERSION"
1939_ACEOF
8106cdd5 1940
ad6254c5
AK
1941
1942cat >>confdefs.h <<_ACEOF
1943#define PACKAGE_STRING "$PACKAGE_STRING"
1944_ACEOF
1945
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949_ACEOF
1950
1951
1952# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1953# Prefer an explicitly selected file to automatically selected ones.
1954ac_site_file1=NONE
1955ac_site_file2=NONE
7a197a62 1956if test -n "$CONFIG_SITE"; then
ec6a6fbe 1957 ac_site_file1=$CONFIG_SITE
7a197a62 1958elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1959 ac_site_file1=$prefix/share/config.site
1960 ac_site_file2=$prefix/etc/config.site
7a197a62 1961else
ec6a6fbe
AK
1962 ac_site_file1=$ac_default_prefix/share/config.site
1963 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1964fi
ec6a6fbe 1965for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1966do
ec6a6fbe 1967 test "x$ac_site_file" = xNONE && continue
795ca3e5 1968 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1971 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1972 . "$ac_site_file"
1973 fi
1974done
1975
1976if test -r "$cache_file"; then
ad6254c5
AK
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
ec6a6fbe
AK
1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1982 case $cache_file in
7a197a62
AK
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
ad6254c5
AK
1985 esac
1986 fi
795ca3e5 1987else
ec6a6fbe
AK
1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1990 >$cache_file
1991fi
1992
1993# Check that the precious variables saved in the cache have kept the same
1994# value.
1995ac_cache_corrupted=false
7a197a62 1996for ac_var in $ac_precious_vars; do
ad6254c5
AK
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2001 case $ac_old_set,$ac_new_set in
2002 set,)
ec6a6fbe
AK
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2005 ac_cache_corrupted=: ;;
2006 ,set)
ec6a6fbe
AK
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2009 ac_cache_corrupted=: ;;
2010 ,);;
2011 *)
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2013 # differences in whitespace do not lead to failure.
2014 ac_old_val_w=`echo x $ac_old_val`
2015 ac_new_val_w=`echo x $ac_new_val`
2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019 ac_cache_corrupted=:
2020 else
2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023 eval $ac_var=\$ac_old_val
2024 fi
2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2026$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2028$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2029 fi;;
2030 esac
2031 # Pass precious variables to config.status.
2032 if test "$ac_new_set" = set; then
2033 case $ac_new_val in
ec6a6fbe 2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2035 *) ac_arg=$ac_var=$ac_new_val ;;
2036 esac
2037 case " $ac_configure_args " in
2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040 esac
2041 fi
2042done
2043if $ac_cache_corrupted; then
ec6a6fbe
AK
2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2050 { (exit 1); exit 1; }; }
795ca3e5
AK
2051fi
2052
ad6254c5
AK
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
7a197a62
AK
2069ac_ext=c
2070ac_cpp='$CPP $CPPFLAGS'
2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2074
795ca3e5
AK
2075
2076
7a197a62 2077ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2078
2079
80992638 2080################################################################################
795ca3e5 2081ac_aux_dir=
7a197a62
AK
2082for ac_dir in autoconf "$srcdir"/autoconf; do
2083 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 break
7a197a62 2087 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 break
7a197a62 2091 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 break
795ca3e5
AK
2095 fi
2096done
2097if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2098 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2099$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2100 { (exit 1); exit 1; }; }
795ca3e5 2101fi
7a197a62
AK
2102
2103# These three variables are undocumented and unsupported,
2104# and are intended to be withdrawn in a future Autoconf release.
2105# They can cause serious problems if a builder's source tree is in a directory
2106# whose full name contains unusual characters.
2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2110
8ce0cbda
AK
2111
2112
ad6254c5 2113################################################################################
8ce0cbda 2114# Make sure we can run config.sub.
7a197a62 2115$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2116 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2117$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2118 { (exit 1); exit 1; }; }
2119
ec6a6fbe
AK
2120{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2121$as_echo_n "checking build system type... " >&6; }
ad6254c5 2122if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2123 $as_echo_n "(cached) " >&6
ad6254c5 2124else
7a197a62
AK
2125 ac_build_alias=$build_alias
2126test "x$ac_build_alias" = x &&
2127 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2128test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2129 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2130$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2131 { (exit 1); exit 1; }; }
7a197a62 2132ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2133 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2134$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2135 { (exit 1); exit 1; }; }
2136
2137fi
ec6a6fbe
AK
2138{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2139$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2140case $ac_cv_build in
2141*-*-*) ;;
ec6a6fbe
AK
2142*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2143$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2144 { (exit 1); exit 1; }; };;
2145esac
ad6254c5 2146build=$ac_cv_build
7a197a62
AK
2147ac_save_IFS=$IFS; IFS='-'
2148set x $ac_cv_build
2149shift
2150build_cpu=$1
2151build_vendor=$2
2152shift; shift
2153# Remember, the first character of IFS is used to create $*,
2154# except with old shells:
2155build_os=$*
2156IFS=$ac_save_IFS
2157case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2158
2159
ec6a6fbe
AK
2160{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2161$as_echo_n "checking host system type... " >&6; }
ad6254c5 2162if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2163 $as_echo_n "(cached) " >&6
ad6254c5 2164else
7a197a62
AK
2165 if test "x$host_alias" = x; then
2166 ac_cv_host=$ac_cv_build
2167else
2168 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2169 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2170$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2171 { (exit 1); exit 1; }; }
7a197a62 2172fi
ad6254c5
AK
2173
2174fi
ec6a6fbe
AK
2175{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2176$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2177case $ac_cv_host in
2178*-*-*) ;;
ec6a6fbe
AK
2179*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2180$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2181 { (exit 1); exit 1; }; };;
2182esac
ad6254c5 2183host=$ac_cv_host
7a197a62
AK
2184ac_save_IFS=$IFS; IFS='-'
2185set x $ac_cv_host
2186shift
2187host_cpu=$1
2188host_vendor=$2
2189shift; shift
2190# Remember, the first character of IFS is used to create $*,
2191# except with old shells:
2192host_os=$*
2193IFS=$ac_save_IFS
2194case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2195
2196
ec6a6fbe
AK
2197{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2198$as_echo_n "checking target system type... " >&6; }
ad6254c5 2199if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2200 $as_echo_n "(cached) " >&6
ad6254c5 2201else
7a197a62
AK
2202 if test "x$target_alias" = x; then
2203 ac_cv_target=$ac_cv_host
2204else
2205 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2206 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2207$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2208 { (exit 1); exit 1; }; }
7a197a62 2209fi
8ce0cbda 2210
ad6254c5 2211fi
ec6a6fbe
AK
2212{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2213$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2214case $ac_cv_target in
2215*-*-*) ;;
ec6a6fbe
AK
2216*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2217$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2218 { (exit 1); exit 1; }; };;
2219esac
ad6254c5 2220target=$ac_cv_target
7a197a62
AK
2221ac_save_IFS=$IFS; IFS='-'
2222set x $ac_cv_target
2223shift
2224target_cpu=$1
2225target_vendor=$2
2226shift; shift
2227# Remember, the first character of IFS is used to create $*,
2228# except with old shells:
2229target_os=$*
2230IFS=$ac_save_IFS
2231case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2232
8ce0cbda 2233
ad6254c5
AK
2234# The aliases save the names the user supplied, while $host etc.
2235# will get canonicalized.
2236test -n "$target_alias" &&
8ce0cbda
AK
2237 test "$program_prefix$program_suffix$program_transform_name" = \
2238 NONENONEs,x,x, &&
2239 program_prefix=${target_alias}-
2240
8ce0cbda
AK
2241case "$host_os" in
2242 linux*)
7f54ef36 2243 CFLAGS="$CFLAGS"
8ce0cbda
AK
2244 COPTIMISE_FLAG="-O2"
2245 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2246 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2247 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2248 LDDEPS="$LDDEPS .export.sym"
2249 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2250 LIB_SUFFIX=so
8ce0cbda
AK
2251 DEVMAPPER=yes
2252 ODIRECT=yes
d0191583 2253 DM_IOCTLS=yes
8ce0cbda
AK
2254 SELINUX=yes
2255 CLUSTER=internal
93bd259b 2256 FSADM=yes
d0191583 2257 ;;
8ce0cbda
AK
2258 darwin*)
2259 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2260 COPTIMISE_FLAG="-O2"
2261 CLDFLAGS="$CLDFLAGS"
2262 CLDWHOLEARCHIVE="-all_load"
2263 CLDNOWHOLEARCHIVE=
d0191583 2264 LIB_SUFFIX=dylib
a653923f 2265 DEVMAPPER=yes
8ce0cbda 2266 ODIRECT=no
d0191583 2267 DM_IOCTLS=no
8ce0cbda
AK
2268 SELINUX=no
2269 CLUSTER=none
d0191583
JM
2270 FSADM=no
2271 ;;
8ce0cbda
AK
2272esac
2273
80992638 2274################################################################################
ec6a6fbe
AK
2275{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2276$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2277if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2278 $as_echo_n "(cached) " >&6
5951ef33
AK
2279else
2280 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2281 for ac_i in 1 2 3 4 5 6 7; do
2282 ac_script="$ac_script$as_nl$ac_script"
2283 done
ec6a6fbe 2284 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2285 $as_unset ac_script || ac_script=
ec6a6fbe 2286 if test -z "$SED"; then
5951ef33 2287 ac_path_SED_found=false
ec6a6fbe
AK
2288 # Loop through the user's path and test for each of PROGNAME-LIST
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2290for as_dir in $PATH
2291do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_prog in sed gsed; do
ec6a6fbe
AK
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2297 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2298# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2299 # Check for GNU $ac_path_SED
2300case `"$ac_path_SED" --version 2>&1` in
2301*GNU*)
2302 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2303*)
2304 ac_count=0
ec6a6fbe 2305 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2306 while :
2307 do
2308 cat "conftest.in" "conftest.in" >"conftest.tmp"
2309 mv "conftest.tmp" "conftest.in"
2310 cp "conftest.in" "conftest.nl"
ec6a6fbe 2311 $as_echo '' >> "conftest.nl"
5951ef33
AK
2312 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2314 ac_count=`expr $ac_count + 1`
2315 if test $ac_count -gt ${ac_path_SED_max-0}; then
2316 # Best one so far, save it but keep looking for a better one
2317 ac_cv_path_SED="$ac_path_SED"
2318 ac_path_SED_max=$ac_count
2319 fi
2320 # 10*(2^10) chars as input seems more than enough
2321 test $ac_count -gt 10 && break
2322 done
2323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2324esac
2325
ec6a6fbe
AK
2326 $ac_path_SED_found && break 3
2327 done
5951ef33
AK
2328 done
2329done
5951ef33 2330IFS=$as_save_IFS
ec6a6fbe
AK
2331 if test -z "$ac_cv_path_SED"; then
2332 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2333$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2334 { (exit 1); exit 1; }; }
ec6a6fbe 2335 fi
5951ef33
AK
2336else
2337 ac_cv_path_SED=$SED
2338fi
2339
2340fi
ec6a6fbe
AK
2341{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2342$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2343 SED="$ac_cv_path_SED"
2344 rm -f conftest.sed
2345
ad6254c5 2346for ac_prog in gawk mawk nawk awk
795ca3e5 2347do
ad6254c5 2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2349set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2350{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2351$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2352if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2353 $as_echo_n "(cached) " >&6
795ca3e5
AK
2354else
2355 if test -n "$AWK"; then
2356 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2357else
ad6254c5
AK
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2365 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2367 break 2
2368 fi
2369done
2370done
7a197a62 2371IFS=$as_save_IFS
ad6254c5 2372
795ca3e5
AK
2373fi
2374fi
ad6254c5 2375AWK=$ac_cv_prog_AWK
795ca3e5 2376if test -n "$AWK"; then
ec6a6fbe
AK
2377 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2378$as_echo "$AWK" >&6; }
795ca3e5 2379else
ec6a6fbe
AK
2380 { $as_echo "$as_me:$LINENO: result: no" >&5
2381$as_echo "no" >&6; }
795ca3e5
AK
2382fi
2383
7a197a62 2384
ad6254c5
AK
2385 test -n "$AWK" && break
2386done
2387
2388ac_ext=c
2389ac_cpp='$CPP $CPPFLAGS'
2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2395set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2397$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2398if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2399 $as_echo_n "(cached) " >&6
ad6254c5
AK
2400else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403else
2404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2413 break 2
2414 fi
2415done
8106cdd5 2416done
7a197a62 2417IFS=$as_save_IFS
8106cdd5 2418
ad6254c5
AK
2419fi
2420fi
2421CC=$ac_cv_prog_CC
2422if test -n "$CC"; then
ec6a6fbe
AK
2423 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2424$as_echo "$CC" >&6; }
ad6254c5 2425else
ec6a6fbe
AK
2426 { $as_echo "$as_me:$LINENO: result: no" >&5
2427$as_echo "no" >&6; }
ad6254c5
AK
2428fi
2429
7a197a62 2430
ad6254c5
AK
2431fi
2432if test -z "$ac_cv_prog_CC"; then
2433 ac_ct_CC=$CC
2434 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2435set dummy gcc; ac_word=$2
ec6a6fbe
AK
2436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2437$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2438if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2439 $as_echo_n "(cached) " >&6
ad6254c5
AK
2440else
2441 if test -n "$ac_ct_CC"; then
2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2451 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2453 break 2
2454 fi
2455done
2456done
7a197a62 2457IFS=$as_save_IFS
ad6254c5
AK
2458
2459fi
2460fi
2461ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2463 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2464$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2465else
ec6a6fbe
AK
2466 { $as_echo "$as_me:$LINENO: result: no" >&5
2467$as_echo "no" >&6; }
ad6254c5
AK
2468fi
2469
7a197a62
AK
2470 if test "x$ac_ct_CC" = x; then
2471 CC=""
2472 else
2473 case $cross_compiling:$ac_tool_warned in
2474yes:)
ec6a6fbe
AK
2475{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2477ac_tool_warned=yes ;;
2478esac
2479 CC=$ac_ct_CC
2480 fi
ad6254c5
AK
2481else
2482 CC="$ac_cv_prog_CC"
2483fi
2484
2485if test -z "$CC"; then
7a197a62
AK
2486 if test -n "$ac_tool_prefix"; then
2487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2488set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2490$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2491if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2492 $as_echo_n "(cached) " >&6
8106cdd5
AK
2493else
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2496else
ad6254c5
AK
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2504 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2506 break 2
2507 fi
2508done
2509done
7a197a62 2510IFS=$as_save_IFS
ad6254c5 2511
8106cdd5
AK
2512fi
2513fi
ad6254c5 2514CC=$ac_cv_prog_CC
8106cdd5 2515if test -n "$CC"; then
ec6a6fbe
AK
2516 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2517$as_echo "$CC" >&6; }
ad6254c5 2518else
ec6a6fbe
AK
2519 { $as_echo "$as_me:$LINENO: result: no" >&5
2520$as_echo "no" >&6; }
ad6254c5
AK
2521fi
2522
8106cdd5 2523
7a197a62 2524 fi
ad6254c5 2525fi
795ca3e5
AK
2526if test -z "$CC"; then
2527 # Extract the first word of "cc", so it can be a program name with args.
2528set dummy cc; ac_word=$2
ec6a6fbe
AK
2529{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2531if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2532 $as_echo_n "(cached) " >&6
795ca3e5
AK
2533else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536else
795ca3e5 2537 ac_prog_rejected=no
ad6254c5
AK
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2546 ac_prog_rejected=yes
2547 continue
2548 fi
2549 ac_cv_prog_CC="cc"
ec6a6fbe 2550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2551 break 2
2552 fi
2553done
2554done
7a197a62 2555IFS=$as_save_IFS
ad6254c5 2556
795ca3e5
AK
2557if test $ac_prog_rejected = yes; then
2558 # We found a bogon in the path, so make sure we never use it.
2559 set dummy $ac_cv_prog_CC
2560 shift
ad6254c5 2561 if test $# != 0; then
795ca3e5
AK
2562 # We chose a different compiler from the bogus one.
2563 # However, it has the same basename, so the bogon will be chosen
2564 # first if we set CC to just the basename; use the full file name.
2565 shift
ad6254c5 2566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2567 fi
2568fi
2569fi
2570fi
ad6254c5 2571CC=$ac_cv_prog_CC
795ca3e5 2572if test -n "$CC"; then
ec6a6fbe
AK
2573 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2574$as_echo "$CC" >&6; }
795ca3e5 2575else
ec6a6fbe
AK
2576 { $as_echo "$as_me:$LINENO: result: no" >&5
2577$as_echo "no" >&6; }
795ca3e5
AK
2578fi
2579
7a197a62 2580
ad6254c5
AK
2581fi
2582if test -z "$CC"; then
2583 if test -n "$ac_tool_prefix"; then
7a197a62 2584 for ac_prog in cl.exe
ad6254c5
AK
2585 do
2586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2588{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2590if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2591 $as_echo_n "(cached) " >&6
795ca3e5
AK
2592else
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2595else
ad6254c5
AK
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2605 break 2
2606 fi
2607done
2608done
7a197a62 2609IFS=$as_save_IFS
ad6254c5 2610
795ca3e5
AK
2611fi
2612fi
ad6254c5 2613CC=$ac_cv_prog_CC
795ca3e5 2614if test -n "$CC"; then
ec6a6fbe
AK
2615 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2616$as_echo "$CC" >&6; }
795ca3e5 2617else
ec6a6fbe
AK
2618 { $as_echo "$as_me:$LINENO: result: no" >&5
2619$as_echo "no" >&6; }
795ca3e5 2620fi
ad6254c5 2621
7a197a62 2622
ad6254c5
AK
2623 test -n "$CC" && break
2624 done
2625fi
2626if test -z "$CC"; then
2627 ac_ct_CC=$CC
7a197a62 2628 for ac_prog in cl.exe
ad6254c5
AK
2629do
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2632{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2633$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2635 $as_echo_n "(cached) " >&6
ad6254c5
AK
2636else
2637 if test -n "$ac_ct_CC"; then
2638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2647 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2649 break 2
795ca3e5 2650 fi
ad6254c5
AK
2651done
2652done
7a197a62 2653IFS=$as_save_IFS
ad6254c5
AK
2654
2655fi
2656fi
2657ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2659 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2661else
ec6a6fbe
AK
2662 { $as_echo "$as_me:$LINENO: result: no" >&5
2663$as_echo "no" >&6; }
795ca3e5
AK
2664fi
2665
7a197a62 2666
ad6254c5
AK
2667 test -n "$ac_ct_CC" && break
2668done
795ca3e5 2669
7a197a62
AK
2670 if test "x$ac_ct_CC" = x; then
2671 CC=""
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674yes:)
ec6a6fbe
AK
2675{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2677ac_tool_warned=yes ;;
2678esac
2679 CC=$ac_ct_CC
2680 fi
ad6254c5
AK
2681fi
2682
2683fi
2684
2685
ec6a6fbe
AK
2686test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2689See \`config.log' for more details." >&5
ec6a6fbe 2690$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2691See \`config.log' for more details." >&2;}
ec6a6fbe 2692 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2693
2694# Provide some information about the compiler.
ec6a6fbe
AK
2695$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2696set X $ac_compile
2697ac_compiler=$2
7a197a62
AK
2698{ (ac_try="$ac_compiler --version >&5"
2699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
ec6a6fbe
AK
2703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704$as_echo "$ac_try_echo") >&5
7a197a62 2705 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2706 ac_status=$?
ec6a6fbe 2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2708 (exit $ac_status); }
7a197a62
AK
2709{ (ac_try="$ac_compiler -v >&5"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
ec6a6fbe
AK
2714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2715$as_echo "$ac_try_echo") >&5
7a197a62 2716 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2717 ac_status=$?
ec6a6fbe 2718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2719 (exit $ac_status); }
7a197a62
AK
2720{ (ac_try="$ac_compiler -V >&5"
2721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
ec6a6fbe
AK
2725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2726$as_echo "$ac_try_echo") >&5
7a197a62 2727 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2728 ac_status=$?
ec6a6fbe 2729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2730 (exit $ac_status); }
2731
2732cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738
2739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747ac_clean_files_save=$ac_clean_files
ec6a6fbe 2748ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2749# Try to create an executable without -o first, disregard a.out.
2750# It will help us diagnose broken compilers, and finding out an intuition
2751# of exeext.
ec6a6fbe
AK
2752{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753$as_echo_n "checking for C compiler default output file name... " >&6; }
2754ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755
2756# The possible output files:
2757ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2758
7a197a62
AK
2759ac_rmfiles=
2760for ac_file in $ac_files
2761do
2762 case $ac_file in
ec6a6fbe 2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2764 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765 esac
2766done
2767rm -f $ac_rmfiles
2768
2769if { (ac_try="$ac_link_default"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
ec6a6fbe
AK
2774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2775$as_echo "$ac_try_echo") >&5
7a197a62 2776 (eval "$ac_link_default") 2>&5
ad6254c5 2777 ac_status=$?
ec6a6fbe 2778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2779 (exit $ac_status); }; then
7a197a62
AK
2780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2781# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2782# in a Makefile. We should not override ac_cv_exeext if it was cached,
2783# so that the user can short-circuit this test for compilers unknown to
2784# Autoconf.
25fbec5b 2785for ac_file in $ac_files ''
ad6254c5
AK
2786do
2787 test -f "$ac_file" || continue
2788 case $ac_file in
ec6a6fbe 2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2790 ;;
ad6254c5 2791 [ab].out )
8a2fc586
AK
2792 # We found the default executable, but exeext='' is most
2793 # certainly right.
2794 break;;
ad6254c5 2795 *.* )
7a197a62
AK
2796 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2797 then :; else
2798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799 fi
2800 # We set ac_cv_exeext here because the later test for it is not
2801 # safe: cross compilers may not add the suffix if given an `-o'
2802 # argument, so we may need to know it at that point already.
2803 # Even if this section looks crufty: it has the advantage of
2804 # actually working.
8a2fc586 2805 break;;
ad6254c5 2806 * )
8a2fc586 2807 break;;
ad6254c5
AK
2808 esac
2809done
7a197a62
AK
2810test "$ac_cv_exeext" = no && ac_cv_exeext=
2811
ad6254c5 2812else
25fbec5b
AK
2813 ac_file=''
2814fi
2815
ec6a6fbe
AK
2816{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2817$as_echo "$ac_file" >&6; }
25fbec5b 2818if test -z "$ac_file"; then
ec6a6fbe 2819 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
ec6a6fbe
AK
2822{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2825See \`config.log' for more details." >&5
ec6a6fbe 2826$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2827See \`config.log' for more details." >&2;}
ec6a6fbe 2828 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2829fi
2830
2831ac_exeext=$ac_cv_exeext
ad6254c5 2832
7a197a62 2833# Check that the compiler produces executables we can run. If not, either
ad6254c5 2834# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2835{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2836$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2837# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2838# If not cross compiling, check that we can run a simple program.
2839if test "$cross_compiling" != yes; then
2840 if { ac_try='./$ac_file'
7a197a62
AK
2841 { (case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
ec6a6fbe
AK
2845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846$as_echo "$ac_try_echo") >&5
7a197a62 2847 (eval "$ac_try") 2>&5
ad6254c5 2848 ac_status=$?
ec6a6fbe 2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2850 (exit $ac_status); }; }; then
2851 cross_compiling=no
795ca3e5 2852 else
ad6254c5
AK
2853 if test "$cross_compiling" = maybe; then
2854 cross_compiling=yes
2855 else
ec6a6fbe
AK
2856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details." >&5
ec6a6fbe 2861$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2862If you meant to cross compile, use \`--host'.
2863See \`config.log' for more details." >&2;}
ec6a6fbe 2864 { (exit 1); exit 1; }; }; }
ad6254c5 2865 fi
795ca3e5 2866 fi
80992638 2867fi
ec6a6fbe
AK
2868{ $as_echo "$as_me:$LINENO: result: yes" >&5
2869$as_echo "yes" >&6; }
ad6254c5 2870
ec6a6fbe 2871rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2872ac_clean_files=$ac_clean_files_save
7a197a62 2873# Check that the compiler produces executables we can run. If not, either
ad6254c5 2874# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2875{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876$as_echo_n "checking whether we are cross compiling... " >&6; }
2877{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878$as_echo "$cross_compiling" >&6; }
7a197a62 2879
ec6a6fbe
AK
2880{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2882if { (ac_try="$ac_link"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
ec6a6fbe
AK
2887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2888$as_echo "$ac_try_echo") >&5
7a197a62 2889 (eval "$ac_link") 2>&5
ad6254c5 2890 ac_status=$?
ec6a6fbe 2891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895# work properly (i.e., refer to `conftest.exe'), while it won't with
2896# `rm'.
2897for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2899 case $ac_file in
ec6a6fbe 2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2902 break;;
ad6254c5
AK
2903 * ) break;;
2904 esac
2905done
80992638 2906else
ec6a6fbe
AK
2907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2910See \`config.log' for more details." >&5
ec6a6fbe 2911$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2912See \`config.log' for more details." >&2;}
ec6a6fbe 2913 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2914fi
2915
2916rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2917{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2918$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2919
2920rm -f conftest.$ac_ext
2921EXEEXT=$ac_cv_exeext
2922ac_exeext=$EXEEXT
ec6a6fbe
AK
2923{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2924$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2925if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2926 $as_echo_n "(cached) " >&6
795ca3e5 2927else
ad6254c5 2928 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934
2935int
2936main ()
2937{
2938
2939 ;
2940 return 0;
2941}
2942_ACEOF
2943rm -f conftest.o conftest.obj
7a197a62
AK
2944if { (ac_try="$ac_compile"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
ec6a6fbe
AK
2949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950$as_echo "$ac_try_echo") >&5
7a197a62 2951 (eval "$ac_compile") 2>&5
ad6254c5 2952 ac_status=$?
ec6a6fbe 2953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2954 (exit $ac_status); }; then
7a197a62
AK
2955 for ac_file in conftest.o conftest.obj conftest.*; do
2956 test -f "$ac_file" || continue;
ad6254c5 2957 case $ac_file in
ec6a6fbe 2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2960 break;;
2961 esac
2962done
2963else
ec6a6fbe 2964 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
ec6a6fbe
AK
2967{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2970See \`config.log' for more details." >&5
ec6a6fbe 2971$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2972See \`config.log' for more details." >&2;}
ec6a6fbe 2973 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2974fi
2975
2976rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977fi
ec6a6fbe
AK
2978{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2980OBJEXT=$ac_cv_objext
2981ac_objext=$OBJEXT
ec6a6fbe
AK
2982{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2984if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2985 $as_echo_n "(cached) " >&6
ad6254c5
AK
2986else
2987 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993
2994int
2995main ()
2996{
2997#ifndef __GNUC__
2998 choke me
2999#endif
80992638 3000
ad6254c5
AK
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
7a197a62
AK
3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
ec6a6fbe
AK
3011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3012$as_echo "$ac_try_echo") >&5
7a197a62 3013 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3014 ac_status=$?
8a2fc586
AK
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
ec6a6fbe 3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
ad6254c5 3023 ac_compiler_gnu=yes
80992638 3024else
ec6a6fbe 3025 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
7a197a62 3028 ac_compiler_gnu=no
8106cdd5 3029fi
7a197a62
AK
3030
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3032ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3033
ad6254c5 3034fi
ec6a6fbe
AK
3035{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3036$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3037if test $ac_compiler_gnu = yes; then
3038 GCC=yes
3039else
3040 GCC=
3041fi
ad6254c5
AK
3042ac_test_CFLAGS=${CFLAGS+set}
3043ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3044{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3046if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3047 $as_echo_n "(cached) " >&6
795ca3e5 3048else
7a197a62
AK
3049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3051 ac_cv_prog_cc_g=no
3052 CFLAGS="-g"
3053 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
7a197a62
AK
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
ec6a6fbe
AK
3074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075$as_echo "$ac_try_echo") >&5
7a197a62 3076 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3077 ac_status=$?
8a2fc586
AK
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
ec6a6fbe 3081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
7a197a62
AK
3086 ac_cv_prog_cc_g=yes
3087else
ec6a6fbe 3088 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 CFLAGS=""
3092 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098
3099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (ac_try="$ac_compile"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
ec6a6fbe
AK
3113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114$as_echo "$ac_try_echo") >&5
7a197a62 3115 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3116 ac_status=$?
7a197a62
AK
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
ec6a6fbe 3120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3121 (exit $ac_status); } && {
3122 test -z "$ac_c_werror_flag" ||
3123 test ! -s conftest.err
3124 } && test -s conftest.$ac_objext; then
7a197a62
AK
3125 :
3126else
ec6a6fbe 3127 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3131 CFLAGS="-g"
3132 cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
3138
3139int
3140main ()
3141{
3142
3143 ;
3144 return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (ac_try="$ac_compile"
3149case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
ec6a6fbe
AK
3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154$as_echo "$ac_try_echo") >&5
7a197a62 3155 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3156 ac_status=$?
7a197a62
AK
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
ec6a6fbe 3160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3165 ac_cv_prog_cc_g=yes
3166else
ec6a6fbe 3167 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3168sed 's/^/| /' conftest.$ac_ext >&5
80992638 3169
7a197a62
AK
3170
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3177fi
7a197a62
AK
3178
3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3181fi
ec6a6fbe
AK
3182{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3183$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3184if test "$ac_test_CFLAGS" = set; then
ad6254c5 3185 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3186elif test $ac_cv_prog_cc_g = yes; then
3187 if test "$GCC" = yes; then
3188 CFLAGS="-g -O2"
3189 else
3190 CFLAGS="-g"
3191 fi
3192else
3193 if test "$GCC" = yes; then
3194 CFLAGS="-O2"
3195 else
3196 CFLAGS=
3197 fi
3198fi
ec6a6fbe
AK
3199{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3200$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3201if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3202 $as_echo_n "(cached) " >&6
ad6254c5 3203else
7a197a62 3204 ac_cv_prog_cc_c89=no
ad6254c5
AK
3205ac_save_CC=$CC
3206cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212#include <stdarg.h>
3213#include <stdio.h>
3214#include <sys/types.h>
3215#include <sys/stat.h>
3216/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3217struct buf { int x; };
3218FILE * (*rcsopen) (struct buf *, struct stat *, int);
3219static char *e (p, i)
3220 char **p;
3221 int i;
3222{
3223 return p[i];
3224}
3225static char *f (char * (*g) (char **, int), char **p, ...)
3226{
3227 char *s;
3228 va_list v;
3229 va_start (v,p);
3230 s = g (p, va_arg (v,int));
3231 va_end (v);
3232 return s;
3233}
8a2fc586
AK
3234
3235/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3236 function prototypes and stuff, but not '\xHH' hex character constants.
3237 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3238 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3240 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3241 that's true only with -std. */
8a2fc586
AK
3242int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3243
7a197a62
AK
3244/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3245 inside strings and character constants. */
3246#define FOO(x) 'x'
3247int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3248
ad6254c5
AK
3249int test (int i, double x);
3250struct s1 {int (*f) (int a);};
3251struct s2 {int (*f) (double a);};
3252int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3253int argc;
3254char **argv;
3255int
3256main ()
3257{
3258return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3259 ;
3260 return 0;
3261}
3262_ACEOF
7a197a62
AK
3263for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3265do
3266 CC="$ac_save_CC $ac_arg"
3267 rm -f conftest.$ac_objext
7a197a62
AK
3268if { (ac_try="$ac_compile"
3269case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272esac
ec6a6fbe
AK
3273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274$as_echo "$ac_try_echo") >&5
7a197a62 3275 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3276 ac_status=$?
8a2fc586
AK
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
ec6a6fbe 3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
7a197a62 3285 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3286else
ec6a6fbe 3287 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
7a197a62 3290
ad6254c5 3291fi
7a197a62
AK
3292
3293rm -f core conftest.err conftest.$ac_objext
3294 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3295done
7a197a62 3296rm -f conftest.$ac_ext
ad6254c5
AK
3297CC=$ac_save_CC
3298
3299fi
7a197a62
AK
3300# AC_CACHE_VAL
3301case "x$ac_cv_prog_cc_c89" in
3302 x)
ec6a6fbe
AK
3303 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3304$as_echo "none needed" >&6; } ;;
7a197a62 3305 xno)
ec6a6fbe
AK
3306 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3307$as_echo "unsupported" >&6; } ;;
ad6254c5 3308 *)
7a197a62 3309 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3310 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3311$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3312esac
3313
ad6254c5 3314
ad6254c5
AK
3315ac_ext=c
3316ac_cpp='$CPP $CPPFLAGS'
3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3320
d0191583
JM
3321
3322
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3328{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3329$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3330# On Suns, sometimes $CPP names a directory.
3331if test -n "$CPP" && test -d "$CPP"; then
3332 CPP=
3333fi
3334if test -z "$CPP"; then
3335 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3336 $as_echo_n "(cached) " >&6
ad6254c5 3337else
d0191583
JM
3338 # Double quotes because CPP needs to be expanded
3339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3340 do
3341 ac_preproc_ok=false
3342for ac_c_preproc_warn_flag in '' yes
ad6254c5 3343do
d0191583
JM
3344 # Use a header file that comes with gcc, so configuring glibc
3345 # with a fresh cross-compiler works.
3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 # <limits.h> exists even on freestanding compilers.
3348 # On the NeXT, cc -E runs the code through the compiler's parser,
3349 # not just through cpp. "Syntax error" is here to catch this case.
3350 cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
3356#ifdef __STDC__
3357# include <limits.h>
3358#else
3359# include <assert.h>
3360#endif
3361 Syntax error
3362_ACEOF
3363if { (ac_try="$ac_cpp conftest.$ac_ext"
3364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
ad6254c5 3367esac
ec6a6fbe
AK
3368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369$as_echo "$ac_try_echo") >&5
d0191583
JM
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
ec6a6fbe 3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3376 (exit $ac_status); } >/dev/null && {
3377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 }; then
3380 :
3381else
ec6a6fbe 3382 $as_echo "$as_me: failed program was:" >&5
d0191583 3383sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3384
d0191583
JM
3385 # Broken: fails on valid input.
3386continue
795ca3e5 3387fi
795ca3e5 3388
d0191583 3389rm -f conftest.err conftest.$ac_ext
795ca3e5 3390
d0191583
JM
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
3399#include <ac_nonexistent.h>
3400_ACEOF
3401if { (ac_try="$ac_cpp conftest.$ac_ext"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
ec6a6fbe
AK
3406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3407$as_echo "$ac_try_echo") >&5
d0191583
JM
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
ec6a6fbe 3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3414 (exit $ac_status); } >/dev/null && {
3415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3416 test ! -s conftest.err
3417 }; then
3418 # Broken: success on invalid input.
3419continue
3420else
ec6a6fbe 3421 $as_echo "$as_me: failed program was:" >&5
d0191583 3422sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3423
d0191583
JM
3424 # Passes both tests.
3425ac_preproc_ok=:
3426break
3427fi
795ca3e5 3428
d0191583
JM
3429rm -f conftest.err conftest.$ac_ext
3430
3431done
3432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3433rm -f conftest.err conftest.$ac_ext
3434if $ac_preproc_ok; then
3435 break
795ca3e5
AK
3436fi
3437
d0191583
JM
3438 done
3439 ac_cv_prog_CPP=$CPP
3440
3441fi
3442 CPP=$ac_cv_prog_CPP
795ca3e5 3443else
d0191583
JM
3444 ac_cv_prog_CPP=$CPP
3445fi
ec6a6fbe
AK
3446{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3447$as_echo "$CPP" >&6; }
d0191583
JM
3448ac_preproc_ok=false
3449for ac_c_preproc_warn_flag in '' yes
3450do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
ad6254c5 3459_ACEOF
d0191583
JM
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#ifdef __STDC__
3464# include <limits.h>
3465#else
3466# include <assert.h>
3467#endif
3468 Syntax error
3469_ACEOF
3470if { (ac_try="$ac_cpp conftest.$ac_ext"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
7a197a62 3474esac
ec6a6fbe
AK
3475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3476$as_echo "$ac_try_echo") >&5
d0191583
JM
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
ec6a6fbe 3482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3483 (exit $ac_status); } >/dev/null && {
3484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3485 test ! -s conftest.err
3486 }; then
3487 :
795ca3e5 3488else
ec6a6fbe 3489 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 # Broken: fails on valid input.
3493continue
795ca3e5
AK
3494fi
3495
d0191583
JM
3496rm -f conftest.err conftest.$ac_ext
3497
3498 # OK, works on sane cases. Now check whether nonexistent headers
3499 # can be detected and how.
3500 cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
3506#include <ac_nonexistent.h>
3507_ACEOF
3508if { (ac_try="$ac_cpp conftest.$ac_ext"
3509case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512esac
ec6a6fbe
AK
3513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514$as_echo "$ac_try_echo") >&5
d0191583
JM
3515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
ec6a6fbe 3520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3521 (exit $ac_status); } >/dev/null && {
3522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3523 test ! -s conftest.err
3524 }; then
3525 # Broken: success on invalid input.
3526continue
795ca3e5 3527else
ec6a6fbe 3528 $as_echo "$as_me: failed program was:" >&5
d0191583 3529sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3530
d0191583
JM
3531 # Passes both tests.
3532ac_preproc_ok=:
3533break
795ca3e5 3534fi
d0191583
JM
3535
3536rm -f conftest.err conftest.$ac_ext
3537
3538done
3539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540rm -f conftest.err conftest.$ac_ext
3541if $ac_preproc_ok; then
3542 :
8106cdd5 3543else
ec6a6fbe
AK
3544 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3547See \`config.log' for more details." >&5
ec6a6fbe 3548$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3549See \`config.log' for more details." >&2;}
ec6a6fbe 3550 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3551fi
3552
d0191583
JM
3553ac_ext=c
3554ac_cpp='$CPP $CPPFLAGS'
3555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558
7a197a62 3559
ec6a6fbe
AK
3560{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3561$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3562if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3563 $as_echo_n "(cached) " >&6
ad6254c5 3564else
ec6a6fbe 3565 if test -z "$GREP"; then
d0191583 3566 ac_path_GREP_found=false
ec6a6fbe
AK
3567 # Loop through the user's path and test for each of PROGNAME-LIST
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3570do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
d0191583 3573 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3576 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3577# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3578 # Check for GNU $ac_path_GREP
3579case `"$ac_path_GREP" --version 2>&1` in
3580*GNU*)
3581 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3582*)
3583 ac_count=0
ec6a6fbe 3584 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3585 while :
3586 do
3587 cat "conftest.in" "conftest.in" >"conftest.tmp"
3588 mv "conftest.tmp" "conftest.in"
3589 cp "conftest.in" "conftest.nl"
ec6a6fbe 3590 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3591 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3593 ac_count=`expr $ac_count + 1`
3594 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3595 # Best one so far, save it but keep looking for a better one
3596 ac_cv_path_GREP="$ac_path_GREP"
3597 ac_path_GREP_max=$ac_count
3598 fi
3599 # 10*(2^10) chars as input seems more than enough
3600 test $ac_count -gt 10 && break
3601 done
3602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3603esac
3604
ec6a6fbe
AK
3605 $ac_path_GREP_found && break 3
3606 done
d0191583 3607 done
ad6254c5 3608done
7a197a62 3609IFS=$as_save_IFS
ec6a6fbe
AK
3610 if test -z "$ac_cv_path_GREP"; then
3611 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3612$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3613 { (exit 1); exit 1; }; }
ec6a6fbe 3614 fi
80992638 3615else
d0191583 3616 ac_cv_path_GREP=$GREP
8106cdd5 3617fi
8106cdd5 3618
80992638 3619fi
ec6a6fbe
AK
3620{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3621$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3622 GREP="$ac_cv_path_GREP"
795ca3e5 3623
d0191583 3624
ec6a6fbe
AK
3625{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3626$as_echo_n "checking for egrep... " >&6; }
d0191583 3627if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3628 $as_echo_n "(cached) " >&6
8a2fc586 3629else
d0191583
JM
3630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3631 then ac_cv_path_EGREP="$GREP -E"
3632 else
ec6a6fbe 3633 if test -z "$EGREP"; then
d0191583 3634 ac_path_EGREP_found=false
ec6a6fbe
AK
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3637for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
d0191583 3641 for ac_prog in egrep; do
ec6a6fbe
AK
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3644 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3645# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3646 # Check for GNU $ac_path_EGREP
3647case `"$ac_path_EGREP" --version 2>&1` in
3648*GNU*)
3649 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3650*)
3651 ac_count=0
ec6a6fbe 3652 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3653 while :
3654 do
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
ec6a6fbe 3658 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3659 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661 ac_count=`expr $ac_count + 1`
3662 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_EGREP="$ac_path_EGREP"
3665 ac_path_EGREP_max=$ac_count
3666 fi
3667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3669 done
3670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3671esac
8a2fc586 3672
ec6a6fbe
AK
3673 $ac_path_EGREP_found && break 3
3674 done
d0191583 3675 done
8a2fc586 3676done
7a197a62 3677IFS=$as_save_IFS
ec6a6fbe
AK
3678 if test -z "$ac_cv_path_EGREP"; then
3679 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3681 { (exit 1); exit 1; }; }
ec6a6fbe 3682 fi
d0191583
JM
3683else
3684 ac_cv_path_EGREP=$EGREP
3685fi
ad6254c5 3686
d0191583
JM
3687 fi
3688fi
ec6a6fbe
AK
3689{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3690$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3691 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3692
3693
d0191583 3694if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3695 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3696$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3697if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3698 $as_echo_n "(cached) " >&6
8106cdd5 3699else
d0191583 3700 ac_pattern="Autoconf.*'x'"
ad6254c5 3701 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */
d0191583
JM
3707#include <sgtty.h>
3708Autoconf TIOCGETP
ad6254c5 3709_ACEOF
d0191583
JM
3710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3711 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3712 ac_cv_prog_gcc_traditional=yes
8106cdd5 3713else
d0191583 3714 ac_cv_prog_gcc_traditional=no
80992638 3715fi
d0191583 3716rm -f conftest*
ad6254c5 3717
8106cdd5 3718
d0191583
JM
3719 if test $ac_cv_prog_gcc_traditional = no; then
3720 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3721/* confdefs.h. */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h. */
d0191583
JM
3726#include <termio.h>
3727Autoconf TCGETA
ad6254c5 3728_ACEOF
d0191583
JM
3729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3731 ac_cv_prog_gcc_traditional=yes
7a197a62 3732fi
d0191583 3733rm -f conftest*
795ca3e5 3734
d0191583 3735 fi
795ca3e5 3736fi
ec6a6fbe
AK
3737{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3738$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3739 if test $ac_cv_prog_gcc_traditional = yes; then
3740 CC="$CC -traditional"
3741 fi
795ca3e5
AK
3742fi
3743
d0191583
JM
3744# Find a good install program. We prefer a C program (faster),
3745# so one script is as good as another. But avoid the broken or
3746# incompatible versions:
3747# SysV /etc/install, /usr/sbin/install
3748# SunOS /usr/etc/install
3749# IRIX /sbin/install
3750# AIX /bin/install
3751# AmigaOS /C/install, which installs bootblocks on floppy discs
3752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755# OS/2's system install, which has a completely different semantic
3756# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3757# Reject install programs that cannot install multiple files.
3758{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3759$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3760if test -z "$INSTALL"; then
3761if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3762 $as_echo_n "(cached) " >&6
ad6254c5 3763else
d0191583
JM
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 # Account for people who put trailing slashes in PATH elements.
3770case $as_dir/ in
3771 ./ | .// | /cC/* | \
3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3774 /usr/ucb/* ) ;;
3775 *)
3776 # OSF1 and SCO ODT 3.0 have their own names for install.
3777 # Don't use installbsd from OSF since it installs stuff as root
3778 # by default.
3779 for ac_prog in ginstall scoinst install; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3782 if test $ac_prog = install &&
3783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784 # AIX install. It has an incompatible calling convention.
3785 :
3786 elif test $ac_prog = install &&
3787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # program-specific install script used by HP pwplus--don't use.
3789 :
3790 else
ec6a6fbe
AK
3791 rm -rf conftest.one conftest.two conftest.dir
3792 echo one > conftest.one
3793 echo two > conftest.two
3794 mkdir conftest.dir
3795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796 test -s conftest.one && test -s conftest.two &&
3797 test -s conftest.dir/conftest.one &&
3798 test -s conftest.dir/conftest.two
3799 then
3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801 break 3
3802 fi
d0191583
JM
3803 fi
3804 fi
3805 done
3806 done
3807 ;;
3808esac
ec6a6fbe 3809
d0191583
JM
3810done
3811IFS=$as_save_IFS
80992638 3812
ec6a6fbe 3813rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3814
3815fi
3816 if test "${ac_cv_path_install+set}" = set; then
3817 INSTALL=$ac_cv_path_install
7a197a62 3818 else
d0191583
JM
3819 # As a last resort, use the slow shell script. Don't cache a
3820 # value for INSTALL within a source directory, because that will
3821 # break other packages using the cache if that directory is
3822 # removed, or if the value is a relative name.
3823 INSTALL=$ac_install_sh
7a197a62 3824 fi
d0191583 3825fi
ec6a6fbe
AK
3826{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3827$as_echo "$INSTALL" >&6; }
ad6254c5 3828
d0191583
JM
3829# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830# It thinks the first close brace ends the variable substitution.
3831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3832
d0191583 3833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3834
d0191583
JM
3835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836
ec6a6fbe
AK
3837{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3838$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3839LN_S=$as_ln_s
3840if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3841 { $as_echo "$as_me:$LINENO: result: yes" >&5
3842$as_echo "yes" >&6; }
d0191583 3843else
ec6a6fbe
AK
3844 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3845$as_echo "no, using $LN_S" >&6; }
795ca3e5 3846fi
d0191583 3847
ec6a6fbe
AK
3848{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3849$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3850set x ${MAKE-make}
3851ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3852if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3853 $as_echo_n "(cached) " >&6
7a197a62 3854else
d0191583
JM
3855 cat >conftest.make <<\_ACEOF
3856SHELL = /bin/sh
3857all:
3858 @echo '@@@%%%=$(MAKE)=@@@%%%'
3859_ACEOF
3860# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861case `${MAKE-make} -f conftest.make 2>/dev/null` in
3862 *@@@%%%=?*=@@@%%%*)
3863 eval ac_cv_prog_make_${ac_make}_set=yes;;
3864 *)
3865 eval ac_cv_prog_make_${ac_make}_set=no;;
3866esac
3867rm -f conftest.make
ad6254c5 3868fi
d0191583 3869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3870 { $as_echo "$as_me:$LINENO: result: yes" >&5
3871$as_echo "yes" >&6; }
d0191583
JM
3872 SET_MAKE=
3873else
ec6a6fbe
AK
3874 { $as_echo "$as_me:$LINENO: result: no" >&5
3875$as_echo "no" >&6; }
d0191583 3876 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3877fi
8106cdd5 3878
ec6a6fbe
AK
3879{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3880$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3881if test -z "$MKDIR_P"; then
3882 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3883 $as_echo_n "(cached) " >&6
5556819a
AK
3884else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in mkdir gmkdir; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3894 'mkdir (GNU coreutils) '* | \
3895 'mkdir (coreutils) '* | \
3896 'mkdir (fileutils) '4.1*)
3897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3898 break 3;;
3899 esac
3900 done
3901 done
3902done
3903IFS=$as_save_IFS
3904
3905fi
3906
3907 if test "${ac_cv_path_mkdir+set}" = set; then
3908 MKDIR_P="$ac_cv_path_mkdir -p"
3909 else
3910 # As a last resort, use the slow shell script. Don't cache a
3911 # value for MKDIR_P within a source directory, because that will
3912 # break other packages using the cache if that directory is
3913 # removed, or if the value is a relative name.
3914 test -d ./--version && rmdir ./--version
3915 MKDIR_P="$ac_install_sh -d"
3916 fi
3917fi
ec6a6fbe
AK
3918{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3919$as_echo "$MKDIR_P" >&6; }
5556819a 3920
d0191583
JM
3921if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3924{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3926if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3927 $as_echo_n "(cached) " >&6
d0191583
JM
3928else
3929 if test -n "$RANLIB"; then
3930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3941 break 2
3942 fi
3943done
3944done
3945IFS=$as_save_IFS
8106cdd5 3946
795ca3e5 3947fi
d0191583
JM
3948fi
3949RANLIB=$ac_cv_prog_RANLIB
3950if test -n "$RANLIB"; then
ec6a6fbe
AK
3951 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3952$as_echo "$RANLIB" >&6; }
d0191583 3953else
ec6a6fbe
AK
3954 { $as_echo "$as_me:$LINENO: result: no" >&5
3955$as_echo "no" >&6; }
d0191583
JM
3956fi
3957
8106cdd5 3958
ad6254c5 3959fi
d0191583
JM
3960if test -z "$ac_cv_prog_RANLIB"; then
3961 ac_ct_RANLIB=$RANLIB
3962 # Extract the first word of "ranlib", so it can be a program name with args.
3963set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3964{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3966if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3967 $as_echo_n "(cached) " >&6
ad6254c5 3968else
d0191583
JM
3969 if test -n "$ac_ct_RANLIB"; then
3970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
8106cdd5 3974do
d0191583
JM
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3981 break 2
3982 fi
3983done
3984done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3990if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3991 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3992$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3993else
ec6a6fbe
AK
3994 { $as_echo "$as_me:$LINENO: result: no" >&5
3995$as_echo "no" >&6; }
d0191583 3996fi
ad6254c5 3997
d0191583
JM
3998 if test "x$ac_ct_RANLIB" = x; then
3999 RANLIB=":"
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
ec6a6fbe
AK
4003{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4005ac_tool_warned=yes ;;
4006esac
4007 RANLIB=$ac_ct_RANLIB
4008 fi
4009else
4010 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4011fi
7a197a62 4012
d0191583
JM
4013# Extract the first word of "cflow", so it can be a program name with args.
4014set dummy cflow; ac_word=$2
ec6a6fbe
AK
4015{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4017if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4018 $as_echo_n "(cached) " >&6
d0191583
JM
4019else
4020 case $CFLOW_CMD in
4021 [\\/]* | ?:[\\/]*)
4022 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4023 ;;
4024 *)
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4034 break 2
4035 fi
4036done
4037done
4038IFS=$as_save_IFS
ad6254c5 4039
d0191583 4040 ;;
7a197a62 4041esac
d0191583
JM
4042fi
4043CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4044if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4045 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4046$as_echo "$CFLOW_CMD" >&6; }
80992638 4047else
ec6a6fbe
AK
4048 { $as_echo "$as_me:$LINENO: result: no" >&5
4049$as_echo "no" >&6; }
795ca3e5 4050fi
7a197a62 4051
ad6254c5 4052
d0191583
JM
4053# Extract the first word of "cscope", so it can be a program name with args.
4054set dummy cscope; ac_word=$2
ec6a6fbe
AK
4055{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4057if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4058 $as_echo_n "(cached) " >&6
d0191583
JM
4059else
4060 case $CSCOPE_CMD in
4061 [\\/]* | ?:[\\/]*)
4062 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4063 ;;
4064 *)
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066for as_dir in $PATH
4067do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4074 break 2
4075 fi
795ca3e5 4076done
d0191583
JM
4077done
4078IFS=$as_save_IFS
795ca3e5 4079
d0191583
JM
4080 ;;
4081esac
ad6254c5 4082fi
d0191583
JM
4083CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4084if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4085 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4086$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4087else
ec6a6fbe
AK
4088 { $as_echo "$as_me:$LINENO: result: no" >&5
4089$as_echo "no" >&6; }
795ca3e5 4090fi
ad6254c5 4091
7a197a62 4092
ad6254c5 4093
d0191583
JM
4094################################################################################
4095
4096
4097
4098
4099
4100ac_header_dirent=no
4101for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4102 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4103{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4104$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4106 $as_echo_n "(cached) " >&6
d0191583 4107else
ad6254c5 4108 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
d0191583
JM
4114#include <sys/types.h>
4115#include <$ac_hdr>
4116
4117int
4118main ()
4119{
4120if ((DIR *) 0)
4121return 0;
4122 ;
4123 return 0;
4124}
ad6254c5 4125_ACEOF
d0191583
JM
4126rm -f conftest.$ac_objext
4127if { (ac_try="$ac_compile"
7a197a62
AK
4128case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131esac
ec6a6fbe
AK
4132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133$as_echo "$ac_try_echo") >&5
d0191583 4134 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
ec6a6fbe 4139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
25fbec5b 4142 test ! -s conftest.err
d0191583
JM
4143 } && test -s conftest.$ac_objext; then
4144 eval "$as_ac_Header=yes"
ad6254c5 4145else
ec6a6fbe 4146 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4147sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4148
d0191583 4149 eval "$as_ac_Header=no"
795ca3e5 4150fi
7a197a62 4151
d0191583 4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4153fi
ec6a6fbe
AK
4154ac_res=`eval 'as_val=${'$as_ac_Header'}
4155 $as_echo "$as_val"'`
4156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4157$as_echo "$ac_res" >&6; }
4158as_val=`eval 'as_val=${'$as_ac_Header'}
4159 $as_echo "$as_val"'`
4160 if test "x$as_val" = x""yes; then
d0191583 4161 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4162#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4163_ACEOF
795ca3e5 4164
d0191583
JM
4165ac_header_dirent=$ac_hdr; break
4166fi
ad6254c5 4167
d0191583
JM
4168done
4169# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4170if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4171 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4172$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4173if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4174 $as_echo_n "(cached) " >&6
ad6254c5 4175else
d0191583
JM
4176 ac_func_search_save_LIBS=$LIBS
4177cat >conftest.$ac_ext <<_ACEOF
4178/* confdefs.h. */
4179_ACEOF
4180cat confdefs.h >>conftest.$ac_ext
4181cat >>conftest.$ac_ext <<_ACEOF
4182/* end confdefs.h. */
ad6254c5 4183
d0191583
JM
4184/* Override any GCC internal prototype to avoid an error.
4185 Use char because int might match the return type of a GCC
4186 builtin and then its argument prototype would still apply. */
4187#ifdef __cplusplus
4188extern "C"
4189#endif
4190char opendir ();
4191int
4192main ()
4193{
4194return opendir ();
4195 ;
4196 return 0;
4197}
4198_ACEOF
4199for ac_lib in '' dir; do
4200 if test -z "$ac_lib"; then
4201 ac_res="none required"
4202 else
4203 ac_res=-l$ac_lib
4204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4205 fi
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207if { (ac_try="$ac_link"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
ec6a6fbe
AK
4212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4213$as_echo "$ac_try_echo") >&5
d0191583
JM
4214 (eval "$ac_link") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
ec6a6fbe 4219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4220 (exit $ac_status); } && {
4221 test -z "$ac_c_werror_flag" ||
4222 test ! -s conftest.err
ec6a6fbe
AK
4223 } && test -s conftest$ac_exeext && {
4224 test "$cross_compiling" = yes ||
4225 $as_test_x conftest$ac_exeext
4226 }; then
d0191583
JM
4227 ac_cv_search_opendir=$ac_res
4228else
ec6a6fbe 4229 $as_echo "$as_me: failed program was:" >&5
d0191583 4230sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4231
ad6254c5 4232
795ca3e5 4233fi
ad6254c5 4234
ec6a6fbe 4235rm -rf conftest.dSYM
d0191583
JM
4236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4237 conftest$ac_exeext
4238 if test "${ac_cv_search_opendir+set}" = set; then
4239 break
7a197a62 4240fi
d0191583
JM
4241done
4242if test "${ac_cv_search_opendir+set}" = set; then
4243 :
7a197a62 4244else
d0191583 4245 ac_cv_search_opendir=no
7a197a62 4246fi
d0191583
JM
4247rm conftest.$ac_ext
4248LIBS=$ac_func_search_save_LIBS
7a197a62 4249fi
ec6a6fbe
AK
4250{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4251$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4252ac_res=$ac_cv_search_opendir
4253if test "$ac_res" != no; then
4254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4255
d0191583 4256fi
7a197a62 4257
7a197a62 4258else
ec6a6fbe
AK
4259 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4260$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4261if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4262 $as_echo_n "(cached) " >&6
7a197a62 4263else
d0191583
JM
4264 ac_func_search_save_LIBS=$LIBS
4265cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
7a197a62 4271
d0191583
JM
4272/* Override any GCC internal prototype to avoid an error.
4273 Use char because int might match the return type of a GCC
4274 builtin and then its argument prototype would still apply. */
4275#ifdef __cplusplus
4276extern "C"
4277#endif
4278char opendir ();
4279int
4280main ()
4281{
4282return opendir ();
4283 ;
4284 return 0;
4285}
4286_ACEOF
4287for ac_lib in '' x; do
4288 if test -z "$ac_lib"; then
4289 ac_res="none required"
4290 else
4291 ac_res=-l$ac_lib
4292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4293 fi
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295if { (ac_try="$ac_link"
4296case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
ec6a6fbe
AK
4300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4301$as_echo "$ac_try_echo") >&5
d0191583
JM
4302 (eval "$ac_link") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
ec6a6fbe 4307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
ec6a6fbe
AK
4311 } && test -s conftest$ac_exeext && {
4312 test "$cross_compiling" = yes ||
4313 $as_test_x conftest$ac_exeext
4314 }; then
d0191583
JM
4315 ac_cv_search_opendir=$ac_res
4316else
ec6a6fbe 4317 $as_echo "$as_me: failed program was:" >&5
d0191583 4318sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4319
4320
4321fi
4322
ec6a6fbe 4323rm -rf conftest.dSYM
d0191583
JM
4324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4325 conftest$ac_exeext
4326 if test "${ac_cv_search_opendir+set}" = set; then
4327 break
7a197a62 4328fi
d0191583
JM
4329done
4330if test "${ac_cv_search_opendir+set}" = set; then
4331 :
7a197a62 4332else
d0191583 4333 ac_cv_search_opendir=no
7a197a62 4334fi
d0191583
JM
4335rm conftest.$ac_ext
4336LIBS=$ac_func_search_save_LIBS
4337fi
ec6a6fbe
AK
4338{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4339$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4340ac_res=$ac_cv_search_opendir
4341if test "$ac_res" != no; then
4342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4343
7a197a62 4344fi
7a197a62 4345
d0191583 4346fi
7a197a62 4347
ec6a6fbe
AK
4348{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4350if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4351 $as_echo_n "(cached) " >&6
7a197a62
AK
4352else
4353 cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h. */
4359#include <stdlib.h>
4360#include <stdarg.h>
4361#include <string.h>
4362#include <float.h>
4363
4364int
4365main ()
4366{
4367
4368 ;
4369 return 0;
4370}
4371_ACEOF
4372rm -f conftest.$ac_objext
4373if { (ac_try="$ac_compile"
4374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
ec6a6fbe
AK
4378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4379$as_echo "$ac_try_echo") >&5
7a197a62
AK
4380 (eval "$ac_compile") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
ec6a6fbe 4385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4386 (exit $ac_status); } && {
4387 test -z "$ac_c_werror_flag" ||
4388 test ! -s conftest.err
4389 } && test -s conftest.$ac_objext; then
7a197a62
AK
4390 ac_cv_header_stdc=yes
4391else
ec6a6fbe 4392 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 ac_cv_header_stdc=no
4396fi
4397
4398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399
4400if test $ac_cv_header_stdc = yes; then
4401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4402 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4403/* confdefs.h. */
4404_ACEOF
4405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
4407/* end confdefs.h. */
4408#include <string.h>
8106cdd5 4409
ad6254c5
AK
4410_ACEOF
4411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "memchr" >/dev/null 2>&1; then
4413 :
4414else
4415 ac_cv_header_stdc=no
80992638 4416fi
ad6254c5 4417rm -f conftest*
795ca3e5
AK
4418
4419fi
4420
ad6254c5
AK
4421if test $ac_cv_header_stdc = yes; then
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
80992638 4429#include <stdlib.h>
ad6254c5
AK
4430
4431_ACEOF
80992638 4432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4433 $EGREP "free" >/dev/null 2>&1; then
4434 :
795ca3e5 4435else
ad6254c5 4436 ac_cv_header_stdc=no
795ca3e5 4437fi
80992638 4438rm -f conftest*
8106cdd5 4439
795ca3e5
AK
4440fi
4441
ad6254c5
AK
4442if test $ac_cv_header_stdc = yes; then
4443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4444 if test "$cross_compiling" = yes; then
4445 :
795ca3e5 4446else
ad6254c5 4447 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4448/* confdefs.h. */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h. */
4453#include <ctype.h>
7a197a62 4454#include <stdlib.h>
ad6254c5
AK
4455#if ((' ' & 0x0FF) == 0x020)
4456# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4458#else
4459# define ISLOWER(c) \
8a2fc586
AK
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4463# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4464#endif
ad6254c5
AK
4465
4466#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4467int
4468main ()
4469{
4470 int i;
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4473 || toupper (i) != TOUPPER (i))
7a197a62
AK
4474 return 2;
4475 return 0;
ad6254c5
AK
4476}
4477_ACEOF
4478rm -f conftest$ac_exeext
7a197a62
AK
4479if { (ac_try="$ac_link"
4480case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
ec6a6fbe
AK
4484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4485$as_echo "$ac_try_echo") >&5
7a197a62 4486 (eval "$ac_link") 2>&5
ad6254c5 4487 ac_status=$?
ec6a6fbe 4488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4490 { (case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493esac
ec6a6fbe
AK
4494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4495$as_echo "$ac_try_echo") >&5
7a197a62 4496 (eval "$ac_try") 2>&5
ad6254c5 4497 ac_status=$?
ec6a6fbe 4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4499 (exit $ac_status); }; }; then
4500 :
795ca3e5 4501else
ec6a6fbe
AK
4502 $as_echo "$as_me: program exited with status $ac_status" >&5
4503$as_echo "$as_me: failed program was:" >&5
ad6254c5 4504sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4505
ad6254c5
AK
4506( exit $ac_status )
4507ac_cv_header_stdc=no
80992638 4508fi
ec6a6fbe 4509rm -rf conftest.dSYM
7a197a62 4510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4511fi
7a197a62
AK
4512
4513
ad6254c5
AK
4514fi
4515fi
ec6a6fbe
AK
4516{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4518if test $ac_cv_header_stdc = yes; then
4519
4520cat >>confdefs.h <<\_ACEOF
4521#define STDC_HEADERS 1
4522_ACEOF
795ca3e5
AK
4523
4524fi
4525
d911ec67 4526# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4527
ad6254c5 4528
7a197a62 4529
8106cdd5 4530
795ca3e5 4531
795ca3e5 4532
d911ec67
AK
4533
4534
4535
4536for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4538do
4539as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4541$as_echo_n "checking for $ac_header... " >&6; }
4542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4543 $as_echo_n "(cached) " >&6
795ca3e5 4544else
ad6254c5 4545 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4546/* confdefs.h. */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h. */
d911ec67 4551$ac_includes_default
ad6254c5 4552
d911ec67 4553#include <$ac_header>
ad6254c5
AK
4554_ACEOF
4555rm -f conftest.$ac_objext
7a197a62
AK
4556if { (ac_try="$ac_compile"
4557case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560esac
ec6a6fbe
AK
4561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562$as_echo "$ac_try_echo") >&5
7a197a62 4563 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4564 ac_status=$?
8a2fc586
AK
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
ec6a6fbe 4568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4569 (exit $ac_status); } && {
4570 test -z "$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4572 } && test -s conftest.$ac_objext; then
d911ec67 4573 eval "$as_ac_Header=yes"
795ca3e5 4574else
ec6a6fbe 4575 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
d911ec67 4578 eval "$as_ac_Header=no"
795ca3e5 4579fi
7a197a62
AK
4580
4581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4582fi
d911ec67
AK
4583ac_res=`eval 'as_val=${'$as_ac_Header'}
4584 $as_echo "$as_val"'`
4585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4586$as_echo "$ac_res" >&6; }
4587as_val=`eval 'as_val=${'$as_ac_Header'}
4588 $as_echo "$as_val"'`
4589 if test "x$as_val" = x""yes; then
4590 cat >>confdefs.h <<_ACEOF
4591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4592_ACEOF
b896caa1 4593
8106cdd5 4594fi
b896caa1 4595
d911ec67 4596done
d0191583
JM
4597
4598
d911ec67
AK
4599{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4600$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4601if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4602 $as_echo_n "(cached) " >&6
d0191583
JM
4603else
4604 cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */
d911ec67
AK
4610#include <sys/types.h>
4611int
4612main ()
4613{
4614return makedev(0, 0);
4615 ;
4616 return 0;
4617}
d0191583 4618_ACEOF
d911ec67
AK
4619rm -f conftest.$ac_objext conftest$ac_exeext
4620if { (ac_try="$ac_link"
d0191583
JM
4621case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
ec6a6fbe
AK
4625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4626$as_echo "$ac_try_echo") >&5
d911ec67 4627 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
ec6a6fbe 4632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4633 (exit $ac_status); } && {
4634 test -z "$ac_c_werror_flag" ||
4635 test ! -s conftest.err
d911ec67
AK
4636 } && test -s conftest$ac_exeext && {
4637 test "$cross_compiling" = yes ||
4638 $as_test_x conftest$ac_exeext
4639 }; then
4640 ac_cv_header_sys_types_h_makedev=yes
d0191583 4641else
ec6a6fbe 4642 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
d911ec67 4645 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4646fi
4647
d911ec67
AK
4648rm -rf conftest.dSYM
4649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4650 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4651
4652fi
d911ec67
AK
4653{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4654$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4655
d911ec67
AK
4656if test $ac_cv_header_sys_types_h_makedev = no; then
4657if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4658 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4659$as_echo_n "checking for sys/mkdev.h... " >&6; }
4660if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4661 $as_echo_n "(cached) " >&6
d0191583 4662fi
d911ec67
AK
4663{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4664$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4665else
d0191583 4666 # Is the header compilable?
d911ec67
AK
4667{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4668$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4669cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
4675$ac_includes_default
d911ec67 4676#include <sys/mkdev.h>
ad6254c5
AK
4677_ACEOF
4678rm -f conftest.$ac_objext
7a197a62
AK
4679if { (ac_try="$ac_compile"
4680case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683esac
ec6a6fbe
AK
4684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4685$as_echo "$ac_try_echo") >&5
7a197a62 4686 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4687 ac_status=$?
8a2fc586
AK
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
ec6a6fbe 4691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4692 (exit $ac_status); } && {
4693 test -z "$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4695 } && test -s conftest.$ac_objext; then
d0191583 4696 ac_header_compiler=yes
ad6254c5 4697else
ec6a6fbe 4698 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4699sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4700
d0191583 4701 ac_header_compiler=no
ad6254c5 4702fi
7a197a62
AK
4703
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4705{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4706$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4707
4708# Is the header present?
d911ec67
AK
4709{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4710$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4711cat >conftest.$ac_ext <<_ACEOF
4712/* confdefs.h. */
4713_ACEOF
4714cat confdefs.h >>conftest.$ac_ext
4715cat >>conftest.$ac_ext <<_ACEOF
4716/* end confdefs.h. */
d911ec67 4717#include <sys/mkdev.h>
d0191583
JM
4718_ACEOF
4719if { (ac_try="$ac_cpp conftest.$ac_ext"
4720case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723esac
ec6a6fbe
AK
4724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4725$as_echo "$ac_try_echo") >&5
d0191583
JM
4726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
ec6a6fbe 4731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4732 (exit $ac_status); } >/dev/null && {
4733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 }; then
4736 ac_header_preproc=yes
4737else
ec6a6fbe 4738 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 ac_header_preproc=no
4742fi
4743
4744rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4745{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4746$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4747
4748# So? What about this header?
4749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4750 yes:no: )
d911ec67
AK
4751 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4752$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4753 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4754$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4755 ac_header_preproc=yes
4756 ;;
4757 no:yes:* )
d911ec67
AK
4758 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4759$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4760 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4761$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4763$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4764 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4765$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4766 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4767$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4768 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4769$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4770
4771 ;;
4772esac
d911ec67
AK
4773{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4774$as_echo_n "checking for sys/mkdev.h... " >&6; }
4775if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4776 $as_echo_n "(cached) " >&6
d0191583 4777else
d911ec67 4778 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4779fi
d911ec67
AK
4780{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4781$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4782
4783fi
d911ec67
AK
4784if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4785
4786cat >>confdefs.h <<\_ACEOF
4787#define MAJOR_IN_MKDEV 1
ad6254c5 4788_ACEOF
a38df97f 4789
80992638
AK
4790fi
4791
80992638 4792
5a52dca9 4793
d911ec67
AK
4794 if test $ac_cv_header_sys_mkdev_h = no; then
4795 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4796 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4797$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4798if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4799 $as_echo_n "(cached) " >&6
ad6254c5 4800fi
d911ec67
AK
4801{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4802$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4803else
4804 # Is the header compilable?
d911ec67
AK
4805{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4806$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4807cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
4813$ac_includes_default
d911ec67 4814#include <sys/sysmacros.h>
ad6254c5
AK
4815_ACEOF
4816rm -f conftest.$ac_objext
7a197a62
AK
4817if { (ac_try="$ac_compile"
4818case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821esac
ec6a6fbe
AK
4822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4823$as_echo "$ac_try_echo") >&5
7a197a62 4824 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4825 ac_status=$?
8a2fc586
AK
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
ec6a6fbe 4829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest.$ac_objext; then
fc54be10
AK
4834 ac_header_compiler=yes
4835else
ec6a6fbe 4836 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4837sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 ac_header_compiler=no
4840fi
4841
4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4843{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4844$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4845
4846# Is the header present?
d911ec67
AK
4847{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4848$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4849cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4850/* confdefs.h. */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h. */
d911ec67 4855#include <sys/sysmacros.h>
ad6254c5 4856_ACEOF
7a197a62
AK
4857if { (ac_try="$ac_cpp conftest.$ac_ext"
4858case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
ec6a6fbe
AK
4862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863$as_echo "$ac_try_echo") >&5
7a197a62 4864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
ec6a6fbe 4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4870 (exit $ac_status); } >/dev/null && {
4871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 }; then
ad6254c5
AK
4874 ac_header_preproc=yes
4875else
ec6a6fbe 4876 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879 ac_header_preproc=no
4880fi
7a197a62 4881
ad6254c5 4882rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4883{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4884$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4885
4886# So? What about this header?
8a2fc586
AK
4887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4888 yes:no: )
d911ec67
AK
4889 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4890$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4891 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4892$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4893 ac_header_preproc=yes
ad6254c5 4894 ;;
8a2fc586 4895 no:yes:* )
d911ec67
AK
4896 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4897$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4898 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4899$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4900 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4901$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4902 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4903$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4904 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4905$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4906 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4907$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4908
ad6254c5
AK
4909 ;;
4910esac
d911ec67
AK
4911{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4912$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4913if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4914 $as_echo_n "(cached) " >&6
ad6254c5 4915else
d911ec67 4916 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4917fi
d911ec67
AK
4918{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4919$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4920
4921fi
d911ec67
AK
4922if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4923
4924cat >>confdefs.h <<\_ACEOF
4925#define MAJOR_IN_SYSMACROS 1
ad6254c5 4926_ACEOF
b896caa1 4927
80992638
AK
4928fi
4929
d8ac0fbc 4930
d911ec67
AK
4931 fi
4932fi
d8ac0fbc 4933
d911ec67
AK
4934{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4935$as_echo_n "checking for ANSI C header files... " >&6; }
4936if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4937 $as_echo_n "(cached) " >&6
ad6254c5 4938else
d911ec67 4939 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4940/* confdefs.h. */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h. */
d911ec67
AK
4945#include <stdlib.h>
4946#include <stdarg.h>
4947#include <string.h>
4948#include <float.h>
4949
4950int
4951main ()
4952{
4953
4954 ;
4955 return 0;
4956}
ad6254c5
AK
4957_ACEOF
4958rm -f conftest.$ac_objext
7a197a62
AK
4959if { (ac_try="$ac_compile"
4960case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963esac
ec6a6fbe
AK
4964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4965$as_echo "$ac_try_echo") >&5
7a197a62 4966 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4967 ac_status=$?
8a2fc586
AK
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
ec6a6fbe 4971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
d911ec67 4976 ac_cv_header_stdc=yes
ad6254c5 4977else
ec6a6fbe 4978 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4979sed 's/^/| /' conftest.$ac_ext >&5
4980
d911ec67 4981 ac_cv_header_stdc=no
ad6254c5 4982fi
7a197a62
AK
4983
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4985
d911ec67
AK
4986if test $ac_cv_header_stdc = yes; then
4987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4988 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
d911ec67
AK
4994#include <string.h>
4995
ad6254c5 4996_ACEOF
d911ec67
AK
4997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4998 $EGREP "memchr" >/dev/null 2>&1; then
4999 :
5000else
5001 ac_cv_header_stdc=no
5002fi
5003rm -f conftest*
5004
5005fi
5006
5007if test $ac_cv_header_stdc = yes; then
5008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015#include <stdlib.h>
5016
5017_ACEOF
5018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 $EGREP "free" >/dev/null 2>&1; then
5020 :
5021else
5022 ac_cv_header_stdc=no
5023fi
5024rm -f conftest*
5025
5026fi
5027
5028if test $ac_cv_header_stdc = yes; then
5029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5030 if test "$cross_compiling" = yes; then
5031 :
5032else
5033 cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h. */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
5039#include <ctype.h>
5040#include <stdlib.h>
5041#if ((' ' & 0x0FF) == 0x020)
5042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5044#else
5045# define ISLOWER(c) \
5046 (('a' <= (c) && (c) <= 'i') \
5047 || ('j' <= (c) && (c) <= 'r') \
5048 || ('s' <= (c) && (c) <= 'z'))
5049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5050#endif
5051
5052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5053int
5054main ()
5055{
5056 int i;
5057 for (i = 0; i < 256; i++)
5058 if (XOR (islower (i), ISLOWER (i))
5059 || toupper (i) != TOUPPER (i))
5060 return 2;
5061 return 0;
5062}
5063_ACEOF
5064rm -f conftest$ac_exeext
5065if { (ac_try="$ac_link"
7a197a62
AK
5066case "(($ac_try" in
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5069esac
ec6a6fbe
AK
5070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071$as_echo "$ac_try_echo") >&5
d911ec67
AK
5072 (eval "$ac_link") 2>&5
5073 ac_status=$?
5074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5076 { (case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079esac
5080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5081$as_echo "$ac_try_echo") >&5
5082 (eval "$ac_try") 2>&5
5083 ac_status=$?
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 :
5087else
5088 $as_echo "$as_me: program exited with status $ac_status" >&5
5089$as_echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092( exit $ac_status )
5093ac_cv_header_stdc=no
5094fi
5095rm -rf conftest.dSYM
5096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5097fi
5098
5099
5100fi
5101fi
5102{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5103$as_echo "$ac_cv_header_stdc" >&6; }
5104if test $ac_cv_header_stdc = yes; then
5105
5106cat >>confdefs.h <<\_ACEOF
5107#define STDC_HEADERS 1
5108_ACEOF
5109
5110fi
5111
5112{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5113$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5114if test "${ac_cv_header_sys_wait_h+set}" = set; then
5115 $as_echo_n "(cached) " >&6
5116else
5117 cat >conftest.$ac_ext <<_ACEOF
5118/* confdefs.h. */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h. */
5123#include <sys/types.h>
5124#include <sys/wait.h>
5125#ifndef WEXITSTATUS
5126# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5127#endif
5128#ifndef WIFEXITED
5129# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5130#endif
5131
5132int
5133main ()
5134{
5135 int s;
5136 wait (&s);
5137 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5138 ;
5139 return 0;
5140}
5141_ACEOF
5142rm -f conftest.$ac_objext
5143if { (ac_try="$ac_compile"
5144case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147esac
5148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5149$as_echo "$ac_try_echo") >&5
5150 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
ec6a6fbe 5155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
25fbec5b 5158 test ! -s conftest.err
d911ec67
AK
5159 } && test -s conftest.$ac_objext; then
5160 ac_cv_header_sys_wait_h=yes
ad6254c5 5161else
ec6a6fbe 5162 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
d911ec67 5165 ac_cv_header_sys_wait_h=no
ad6254c5 5166fi
7a197a62 5167
d911ec67
AK
5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169fi
5170{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5171$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5172if test $ac_cv_header_sys_wait_h = yes; then
5173
5174cat >>confdefs.h <<\_ACEOF
5175#define HAVE_SYS_WAIT_H 1
5176_ACEOF
5177
5178fi
5179
5180{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5181$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5182if test "${ac_cv_header_time+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5184else
5185 cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5191#include <sys/types.h>
5192#include <sys/time.h>
5193#include <time.h>
5194
5195int
5196main ()
5197{
5198if ((struct tm *) 0)
5199return 0;
5200 ;
5201 return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (ac_try="$ac_compile"
5206case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209esac
5210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5211$as_echo "$ac_try_echo") >&5
5212 (eval "$ac_compile") 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest.$ac_objext; then
5222 ac_cv_header_time=yes
5223else
5224 $as_echo "$as_me: failed program was:" >&5
5225sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 ac_cv_header_time=no
5228fi
5229
5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231fi
5232{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5233$as_echo "$ac_cv_header_time" >&6; }
5234if test $ac_cv_header_time = yes; then
5235
5236cat >>confdefs.h <<\_ACEOF
5237#define TIME_WITH_SYS_TIME 1
5238_ACEOF
5239
5240fi
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5258 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5259 sys/wait.h time.h
5260do
5261as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5264$as_echo_n "checking for $ac_header... " >&6; }
5265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5266 $as_echo_n "(cached) " >&6
5267fi
5268ac_res=`eval 'as_val=${'$as_ac_Header'}
5269 $as_echo "$as_val"'`
5270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5271$as_echo "$ac_res" >&6; }
5272else
5273 # Is the header compilable?
5274{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5275$as_echo_n "checking $ac_header usability... " >&6; }
5276cat >conftest.$ac_ext <<_ACEOF
5277/* confdefs.h. */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h. */
5282$ac_includes_default
5283#include <$ac_header>
5284_ACEOF
5285rm -f conftest.$ac_objext
5286if { (ac_try="$ac_compile"
5287case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5292$as_echo "$ac_try_echo") >&5
5293 (eval "$ac_compile") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } && {
5300 test -z "$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5302 } && test -s conftest.$ac_objext; then
5303 ac_header_compiler=yes
5304else
5305 $as_echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 ac_header_compiler=no
5309fi
5310
5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5313$as_echo "$ac_header_compiler" >&6; }
5314
5315# Is the header present?
5316{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5317$as_echo_n "checking $ac_header presence... " >&6; }
5318cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h. */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h. */
5324#include <$ac_header>
5325_ACEOF
5326if { (ac_try="$ac_cpp conftest.$ac_ext"
5327case "(($ac_try" in
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5330esac
5331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5332$as_echo "$ac_try_echo") >&5
5333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } >/dev/null && {
5340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5341 test ! -s conftest.err
5342 }; then
5343 ac_header_preproc=yes
5344else
5345 $as_echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 ac_header_preproc=no
5349fi
5350
5351rm -f conftest.err conftest.$ac_ext
5352{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5353$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5354
5355# So? What about this header?
8a2fc586
AK
5356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5357 yes:no: )
ec6a6fbe
AK
5358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5359$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5361$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5362 ac_header_preproc=yes
ad6254c5 5363 ;;
8a2fc586 5364 no:yes:* )
ec6a6fbe
AK
5365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5366$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5368$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5370$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5372$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5374$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5376$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5377
ad6254c5
AK
5378 ;;
5379esac
d911ec67
AK
5380{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5381$as_echo_n "checking for $ac_header... " >&6; }
5382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5383 $as_echo_n "(cached) " >&6
5384else
5385 eval "$as_ac_Header=\$ac_header_preproc"
5386fi
5387ac_res=`eval 'as_val=${'$as_ac_Header'}
5388 $as_echo "$as_val"'`
5389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5390$as_echo "$ac_res" >&6; }
5391
5392fi
5393as_val=`eval 'as_val=${'$as_ac_Header'}
5394 $as_echo "$as_val"'`
5395 if test "x$as_val" = x""yes; then
5396 cat >>confdefs.h <<_ACEOF
5397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5398_ACEOF
5399
5400else
5401 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5402$as_echo "$as_me: error: bailing out" >&2;}
5403 { (exit 1); exit 1; }; }
5404fi
5405
5406done
5407
5408
5409case "$host_os" in
5410 linux*)
5411
5412
5413
5414for ac_header in asm/byteorder.h linux/fs.h malloc.h
5415do
5416as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5419$as_echo_n "checking for $ac_header... " >&6; }
5420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5421 $as_echo_n "(cached) " >&6
5422fi
5423ac_res=`eval 'as_val=${'$as_ac_Header'}
5424 $as_echo "$as_val"'`
5425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5426$as_echo "$ac_res" >&6; }
5427else
5428 # Is the header compilable?
5429{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5430$as_echo_n "checking $ac_header usability... " >&6; }
5431cat >conftest.$ac_ext <<_ACEOF
5432/* confdefs.h. */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h. */
5437$ac_includes_default
5438#include <$ac_header>
5439_ACEOF
5440rm -f conftest.$ac_objext
5441if { (ac_try="$ac_compile"
5442case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445esac
5446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5447$as_echo "$ac_try_echo") >&5
5448 (eval "$ac_compile") 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest.$ac_objext; then
5458 ac_header_compiler=yes
5459else
5460 $as_echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 ac_header_compiler=no
5464fi
5465
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468$as_echo "$ac_header_compiler" >&6; }
5469
5470# Is the header present?
5471{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5472$as_echo_n "checking $ac_header presence... " >&6; }
5473cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479#include <$ac_header>
5480_ACEOF
5481if { (ac_try="$ac_cpp conftest.$ac_ext"
5482case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
5486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5487$as_echo "$ac_try_echo") >&5
5488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } >/dev/null && {
5495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5496 test ! -s conftest.err
5497 }; then
5498 ac_header_preproc=yes
5499else
5500 $as_echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_header_preproc=no
5504fi
5505
5506rm -f conftest.err conftest.$ac_ext
5507{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5508$as_echo "$ac_header_preproc" >&6; }
5509
5510# So? What about this header?
5511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5512 yes:no: )
5513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5514$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5516$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5517 ac_header_preproc=yes
5518 ;;
5519 no:yes:* )
5520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5521$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5523$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5525$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5527$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5529$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5531$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5532
5533 ;;
5534esac
5535{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5536$as_echo_n "checking for $ac_header... " >&6; }
5537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5538 $as_echo_n "(cached) " >&6
5539else
5540 eval "$as_ac_Header=\$ac_header_preproc"
5541fi
5542ac_res=`eval 'as_val=${'$as_ac_Header'}
5543 $as_echo "$as_val"'`
5544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5545$as_echo "$ac_res" >&6; }
5546
5547fi
5548as_val=`eval 'as_val=${'$as_ac_Header'}
5549 $as_echo "$as_val"'`
5550 if test "x$as_val" = x""yes; then
5551 cat >>confdefs.h <<_ACEOF
5552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553_ACEOF
5554
5555else
5556 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5557$as_echo "$as_me: error: bailing out" >&2;}
5558 { (exit 1); exit 1; }; }
5559fi
5560
5561done
5562 ;;
5563 darwin*)
5564
5565
5566for ac_header in machine/endian.h sys/disk.h
5567do
5568as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5571$as_echo_n "checking for $ac_header... " >&6; }
5572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 $as_echo_n "(cached) " >&6
5574fi
5575ac_res=`eval 'as_val=${'$as_ac_Header'}
5576 $as_echo "$as_val"'`
5577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5578$as_echo "$ac_res" >&6; }
5579else
5580 # Is the header compilable?
5581{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5582$as_echo_n "checking $ac_header usability... " >&6; }
5583cat >conftest.$ac_ext <<_ACEOF
5584/* confdefs.h. */
5585_ACEOF
5586cat confdefs.h >>conftest.$ac_ext
5587cat >>conftest.$ac_ext <<_ACEOF
5588/* end confdefs.h. */
5589$ac_includes_default
5590#include <$ac_header>
5591_ACEOF
5592rm -f conftest.$ac_objext
5593if { (ac_try="$ac_compile"
5594case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597esac
5598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5599$as_echo "$ac_try_echo") >&5
5600 (eval "$ac_compile") 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && {
5607 test -z "$ac_c_werror_flag" ||
5608 test ! -s conftest.err
5609 } && test -s conftest.$ac_objext; then
5610 ac_header_compiler=yes
5611else
5612 $as_echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ac_header_compiler=no
5616fi
5617
5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5620$as_echo "$ac_header_compiler" >&6; }
5621
5622# Is the header present?
5623{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5624$as_echo_n "checking $ac_header presence... " >&6; }
5625cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h. */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h. */
5631#include <$ac_header>
5632_ACEOF
5633if { (ac_try="$ac_cpp conftest.$ac_ext"
5634case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637esac
5638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5639$as_echo "$ac_try_echo") >&5
5640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } >/dev/null && {
5647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5648 test ! -s conftest.err
5649 }; then
5650 ac_header_preproc=yes
5651else
5652 $as_echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_header_preproc=no
5656fi
5657
5658rm -f conftest.err conftest.$ac_ext
5659{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5660$as_echo "$ac_header_preproc" >&6; }
5661
5662# So? What about this header?
5663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5664 yes:no: )
5665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5666$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5668$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5669 ac_header_preproc=yes
5670 ;;
5671 no:yes:* )
5672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5673$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5675$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5677$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5679$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5681$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5683$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5684
5685 ;;
5686esac
5687{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5688$as_echo_n "checking for $ac_header... " >&6; }
5689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5690 $as_echo_n "(cached) " >&6
5691else
5692 eval "$as_ac_Header=\$ac_header_preproc"
5693fi
5694ac_res=`eval 'as_val=${'$as_ac_Header'}
5695 $as_echo "$as_val"'`
5696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5697$as_echo "$ac_res" >&6; }
5698
5699fi
5700as_val=`eval 'as_val=${'$as_ac_Header'}
5701 $as_echo "$as_val"'`
5702 if test "x$as_val" = x""yes; then
5703 cat >>confdefs.h <<_ACEOF
5704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5705_ACEOF
5706
5707else
5708 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5709$as_echo "$as_me: error: bailing out" >&2;}
5710 { (exit 1); exit 1; }; }
5711fi
5712
5713done
5714 ;;
5715esac
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5734 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5735 sys/types.h unistd.h
5736do
5737as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5740$as_echo_n "checking for $ac_header... " >&6; }
5741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5742 $as_echo_n "(cached) " >&6
5743fi
5744ac_res=`eval 'as_val=${'$as_ac_Header'}
5745 $as_echo "$as_val"'`
5746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5747$as_echo "$ac_res" >&6; }
5748else
5749 # Is the header compilable?
5750{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5751$as_echo_n "checking $ac_header usability... " >&6; }
5752cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h. */
5758$ac_includes_default
5759#include <$ac_header>
5760_ACEOF
5761rm -f conftest.$ac_objext
5762if { (ac_try="$ac_compile"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5768$as_echo "$ac_try_echo") >&5
5769 (eval "$ac_compile") 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && {
5776 test -z "$ac_c_werror_flag" ||
5777 test ! -s conftest.err
5778 } && test -s conftest.$ac_objext; then
5779 ac_header_compiler=yes
5780else
5781 $as_echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_header_compiler=no
5785fi
5786
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5789$as_echo "$ac_header_compiler" >&6; }
5790
5791# Is the header present?
5792{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5793$as_echo_n "checking $ac_header presence... " >&6; }
5794cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h. */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h. */
5800#include <$ac_header>
5801_ACEOF
5802if { (ac_try="$ac_cpp conftest.$ac_ext"
5803case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806esac
5807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5808$as_echo "$ac_try_echo") >&5
5809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } >/dev/null && {
5816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 }; then
5819 ac_header_preproc=yes
5820else
5821 $as_echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ac_header_preproc=no
5825fi
5826
5827rm -f conftest.err conftest.$ac_ext
5828{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5829$as_echo "$ac_header_preproc" >&6; }
5830
5831# So? What about this header?
5832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5833 yes:no: )
5834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5835$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5837$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5838 ac_header_preproc=yes
5839 ;;
5840 no:yes:* )
5841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5842$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5844$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5846$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5848$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5850$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5852$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5853
5854 ;;
5855esac
5856{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5857$as_echo_n "checking for $ac_header... " >&6; }
5858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5859 $as_echo_n "(cached) " >&6
5860else
5861 eval "$as_ac_Header=\$ac_header_preproc"
5862fi
5863ac_res=`eval 'as_val=${'$as_ac_Header'}
5864 $as_echo "$as_val"'`
5865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5866$as_echo "$ac_res" >&6; }
5867
5868fi
5869as_val=`eval 'as_val=${'$as_ac_Header'}
5870 $as_echo "$as_val"'`
5871 if test "x$as_val" = x""yes; then
5872 cat >>confdefs.h <<_ACEOF
5873#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5874_ACEOF
5875
5876else
5877 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5878$as_echo "$as_me: error: bailing out" >&2;}
5879 { (exit 1); exit 1; }; }
5880fi
5881
5882done
5883
5884
5885
5886for ac_header in termios.h sys/statvfs.h
5887do
5888as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5891$as_echo_n "checking for $ac_header... " >&6; }
5892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5893 $as_echo_n "(cached) " >&6
5894fi
5895ac_res=`eval 'as_val=${'$as_ac_Header'}
5896 $as_echo "$as_val"'`
5897 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5898$as_echo "$ac_res" >&6; }
5899else
5900 # Is the header compilable?
5901{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5902$as_echo_n "checking $ac_header usability... " >&6; }
5903cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
5909$ac_includes_default
5910#include <$ac_header>
5911_ACEOF
5912rm -f conftest.$ac_objext
5913if { (ac_try="$ac_compile"
5914case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5919$as_echo "$ac_try_echo") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && {
5927 test -z "$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5929 } && test -s conftest.$ac_objext; then
5930 ac_header_compiler=yes
5931else
5932 $as_echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_header_compiler=no
5936fi
5937
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5940$as_echo "$ac_header_compiler" >&6; }
5941
5942# Is the header present?
5943{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5944$as_echo_n "checking $ac_header presence... " >&6; }
5945cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
5951#include <$ac_header>
5952_ACEOF
5953if { (ac_try="$ac_cpp conftest.$ac_ext"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959$as_echo "$ac_try_echo") >&5
5960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } >/dev/null && {
5967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 }; then
5970 ac_header_preproc=yes
5971else
5972 $as_echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_header_preproc=no
5976fi
5977
5978rm -f conftest.err conftest.$ac_ext
5979{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5980$as_echo "$ac_header_preproc" >&6; }
5981
5982# So? What about this header?
5983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5984 yes:no: )
5985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5986$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5988$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5989 ac_header_preproc=yes
5990 ;;
5991 no:yes:* )
5992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5993$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5995$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5997$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5999$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6001$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6003$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6004
6005 ;;
6006esac
6007{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6008$as_echo_n "checking for $ac_header... " >&6; }
6009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6010 $as_echo_n "(cached) " >&6
6011else
6012 eval "$as_ac_Header=\$ac_header_preproc"
6013fi
6014ac_res=`eval 'as_val=${'$as_ac_Header'}
6015 $as_echo "$as_val"'`
6016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6017$as_echo "$ac_res" >&6; }
6018
6019fi
6020as_val=`eval 'as_val=${'$as_ac_Header'}
6021 $as_echo "$as_val"'`
6022 if test "x$as_val" = x""yes; then
6023 cat >>confdefs.h <<_ACEOF
6024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6025_ACEOF
6026
6027fi
6028
6029done
6030
6031
6032################################################################################
6033{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6034$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6035if test "${ac_cv_c_const+set}" = set; then
6036 $as_echo_n "(cached) " >&6
6037else
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044
6045int
6046main ()
6047{
6048/* FIXME: Include the comments suggested by Paul. */
6049#ifndef __cplusplus
6050 /* Ultrix mips cc rejects this. */
6051 typedef int charset[2];
6052 const charset cs;
6053 /* SunOS 4.1.1 cc rejects this. */
6054 char const *const *pcpcc;
6055 char **ppc;
6056 /* NEC SVR4.0.2 mips cc rejects this. */
6057 struct point {int x, y;};
6058 static struct point const zero = {0,0};
6059 /* AIX XL C 1.02.0.0 rejects this.
6060 It does not let you subtract one const X* pointer from another in
6061 an arm of an if-expression whose if-part is not a constant
6062 expression */
6063 const char *g = "string";
6064 pcpcc = &g + (g ? g-g : 0);
6065 /* HPUX 7.0 cc rejects these. */
6066 ++pcpcc;
6067 ppc = (char**) pcpcc;
6068 pcpcc = (char const *const *) ppc;
6069 { /* SCO 3.2v4 cc rejects this. */
6070 char *t;
6071 char const *s = 0 ? (char *) 0 : (char const *) 0;
6072
6073 *t++ = 0;
6074 if (s) return 0;
6075 }
6076 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6077 int x[] = {25, 17};
6078 const int *foo = &x[0];
6079 ++foo;
6080 }
6081 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6082 typedef const int *iptr;
6083 iptr p = 0;
6084 ++p;
6085 }
6086 { /* AIX XL C 1.02.0.0 rejects this saying
6087 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6088 struct s { int j; const int *ap[3]; };
6089 struct s *b; b->j = 5;
6090 }
6091 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6092 const int foo = 10;
6093 if (!foo) return 0;
6094 }
6095 return !cs[0] && !zero.x;
6096#endif
6097
6098 ;
6099 return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext
6103if { (ac_try="$ac_compile"
6104case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107esac
6108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6109$as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_cv_c_const=yes
6121else
6122 $as_echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_cv_c_const=no
6126fi
6127
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129fi
6130{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6131$as_echo "$ac_cv_c_const" >&6; }
6132if test $ac_cv_c_const = no; then
6133
6134cat >>confdefs.h <<\_ACEOF
6135#define const /**/
6136_ACEOF
6137
6138fi
6139
6140{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6141$as_echo_n "checking for inline... " >&6; }
6142if test "${ac_cv_c_inline+set}" = set; then
6143 $as_echo_n "(cached) " >&6
6144else
6145 ac_cv_c_inline=no
6146for ac_kw in inline __inline__ __inline; do
6147 cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153#ifndef __cplusplus
6154typedef int foo_t;
6155static $ac_kw foo_t static_foo () {return 0; }
6156$ac_kw foo_t foo () {return 0; }
6157#endif
6158
6159_ACEOF
6160rm -f conftest.$ac_objext
6161if { (ac_try="$ac_compile"
6162case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165esac
6166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167$as_echo "$ac_try_echo") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 ac_cv_c_inline=$ac_kw
6179else
6180 $as_echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183
6184fi
6185
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 test "$ac_cv_c_inline" != no && break
6188done
6189
6190fi
6191{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6192$as_echo "$ac_cv_c_inline" >&6; }
6193
6194
6195case $ac_cv_c_inline in
6196 inline | yes) ;;
6197 *)
6198 case $ac_cv_c_inline in
6199 no) ac_val=;;
6200 *) ac_val=$ac_cv_c_inline;;
6201 esac
6202 cat >>confdefs.h <<_ACEOF
6203#ifndef __cplusplus
6204#define inline $ac_val
6205#endif
6206_ACEOF
6207 ;;
6208esac
6209
6210{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6211$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6212if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6213 $as_echo_n "(cached) " >&6
6214else
6215 cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
6221$ac_includes_default
6222int
6223main ()
6224{
6225static struct stat ac_aggr;
6226if (ac_aggr.st_rdev)
6227return 0;
6228 ;
6229 return 0;
6230}
6231_ACEOF
6232rm -f conftest.$ac_objext
6233if { (ac_try="$ac_compile"
6234case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
6238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239$as_echo "$ac_try_echo") >&5
6240 (eval "$ac_compile") 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && {
6247 test -z "$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
6250 ac_cv_member_struct_stat_st_rdev=yes
6251else
6252 $as_echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 cat >conftest.$ac_ext <<_ACEOF
6256/* confdefs.h. */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h. */
6261$ac_includes_default
6262int
6263main ()
6264{
6265static struct stat ac_aggr;
6266if (sizeof ac_aggr.st_rdev)
6267return 0;
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext
6273if { (ac_try="$ac_compile"
6274case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
6278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279$as_echo "$ac_try_echo") >&5
6280 (eval "$ac_compile") 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
6290 ac_cv_member_struct_stat_st_rdev=yes
6291else
6292 $as_echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 ac_cv_member_struct_stat_st_rdev=no
6296fi
6297
6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299fi
6300
6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302fi
6303{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6304$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6305if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6306
6307cat >>confdefs.h <<_ACEOF
6308#define HAVE_STRUCT_STAT_ST_RDEV 1
6309_ACEOF
6310
6311
6312fi
6313
6314{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6315$as_echo_n "checking for off_t... " >&6; }
6316if test "${ac_cv_type_off_t+set}" = set; then
6317 $as_echo_n "(cached) " >&6
6318else
6319 ac_cv_type_off_t=no
6320cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h. */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h. */
6326$ac_includes_default
6327int
6328main ()
6329{
6330if (sizeof (off_t))
6331 return 0;
6332 ;
6333 return 0;
6334}
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6343$as_echo "$ac_try_echo") >&5
6344 (eval "$ac_compile") 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.$ac_objext; then
6354 cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h. */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h. */
6360$ac_includes_default
6361int
6362main ()
6363{
6364if (sizeof ((off_t)))
6365 return 0;
6366 ;
6367 return 0;
6368}
6369_ACEOF
6370rm -f conftest.$ac_objext
6371if { (ac_try="$ac_compile"
6372case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6377$as_echo "$ac_try_echo") >&5
6378 (eval "$ac_compile") 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && {
6385 test -z "$ac_c_werror_flag" ||
6386 test ! -s conftest.err
6387 } && test -s conftest.$ac_objext; then
6388 :
6389else
6390 $as_echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ac_cv_type_off_t=yes
6394fi
6395
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397else
6398 $as_echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401
6402fi
6403
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405fi
6406{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6407$as_echo "$ac_cv_type_off_t" >&6; }
6408if test "x$ac_cv_type_off_t" = x""yes; then
6409 :
6410else
6411
6412cat >>confdefs.h <<_ACEOF
6413#define off_t long int
6414_ACEOF
6415
6416fi
6417
6418{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6419$as_echo_n "checking for pid_t... " >&6; }
6420if test "${ac_cv_type_pid_t+set}" = set; then
6421 $as_echo_n "(cached) " >&6
6422else
6423 ac_cv_type_pid_t=no
6424cat >conftest.$ac_ext <<_ACEOF
6425/* confdefs.h. */
6426_ACEOF
6427cat confdefs.h >>conftest.$ac_ext
6428cat >>conftest.$ac_ext <<_ACEOF
6429/* end confdefs.h. */
6430$ac_includes_default
6431int
6432main ()
6433{
6434if (sizeof (pid_t))
6435 return 0;
6436 ;
6437 return 0;
6438}
6439_ACEOF
6440rm -f conftest.$ac_objext
6441if { (ac_try="$ac_compile"
6442case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445esac
6446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6447$as_echo "$ac_try_echo") >&5
6448 (eval "$ac_compile") 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && {
6455 test -z "$ac_c_werror_flag" ||
6456 test ! -s conftest.err
6457 } && test -s conftest.$ac_objext; then
6458 cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
6464$ac_includes_default
6465int
6466main ()
6467{
6468if (sizeof ((pid_t)))
6469 return 0;
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474rm -f conftest.$ac_objext
6475if { (ac_try="$ac_compile"
6476case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479esac
6480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6481$as_echo "$ac_try_echo") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } && {
6489 test -z "$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 } && test -s conftest.$ac_objext; then
6492 :
6493else
6494 $as_echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 ac_cv_type_pid_t=yes
6498fi
6499
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501else
6502 $as_echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505
6506fi
6507
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509fi
6510{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6511$as_echo "$ac_cv_type_pid_t" >&6; }
6512if test "x$ac_cv_type_pid_t" = x""yes; then
6513 :
6514else
6515
6516cat >>confdefs.h <<_ACEOF
6517#define pid_t int
6518_ACEOF
6519
6520fi
6521
6522{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6523$as_echo_n "checking return type of signal handlers... " >&6; }
6524if test "${ac_cv_type_signal+set}" = set; then
6525 $as_echo_n "(cached) " >&6
6526else
6527 cat >conftest.$ac_ext <<_ACEOF
6528/* confdefs.h. */
6529_ACEOF
6530cat confdefs.h >>conftest.$ac_ext
6531cat >>conftest.$ac_ext <<_ACEOF
6532/* end confdefs.h. */
6533#include <sys/types.h>
6534#include <signal.h>
6535
6536int
6537main ()
6538{
6539return *(signal (0, 0)) (0) == 1;
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext
6545if { (ac_try="$ac_compile"
6546case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549esac
6550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551$as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_cv_type_signal=int
6563else
6564 $as_echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 ac_cv_type_signal=void
6568fi
6569
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571fi
6572{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6573$as_echo "$ac_cv_type_signal" >&6; }
6574
6575cat >>confdefs.h <<_ACEOF
6576#define RETSIGTYPE $ac_cv_type_signal
6577_ACEOF
6578
6579
6580{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6581$as_echo_n "checking for size_t... " >&6; }
6582if test "${ac_cv_type_size_t+set}" = set; then
6583 $as_echo_n "(cached) " >&6
6584else
6585 ac_cv_type_size_t=no
6586cat >conftest.$ac_ext <<_ACEOF
6587/* confdefs.h. */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h. */
6592$ac_includes_default
6593int
6594main ()
6595{
6596if (sizeof (size_t))
6597 return 0;
6598 ;
6599 return 0;
6600}
6601_ACEOF
6602rm -f conftest.$ac_objext
6603if { (ac_try="$ac_compile"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6609$as_echo "$ac_try_echo") >&5
6610 (eval "$ac_compile") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest.$ac_objext; then
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626$ac_includes_default
6627int
6628main ()
6629{
6630if (sizeof ((size_t)))
6631 return 0;
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636rm -f conftest.$ac_objext
6637if { (ac_try="$ac_compile"
6638case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641esac
6642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643$as_echo "$ac_try_echo") >&5
6644 (eval "$ac_compile") 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && {
6651 test -z "$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 } && test -s conftest.$ac_objext; then
6654 :
ad6254c5 6655else
d911ec67
AK
6656 $as_echo "$as_me: failed program was:" >&5
6657sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6658
d911ec67 6659 ac_cv_type_size_t=yes
ad6254c5 6660fi
4922197a 6661
d911ec67 6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6663else
d911ec67
AK
6664 $as_echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6666
6667
d911ec67 6668fi
d0191583 6669
d911ec67
AK
6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671fi
6672{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6673$as_echo "$ac_cv_type_size_t" >&6; }
6674if test "x$ac_cv_type_size_t" = x""yes; then
6675 :
6676else
d0191583 6677
d911ec67
AK
6678cat >>confdefs.h <<_ACEOF
6679#define size_t unsigned int
6680_ACEOF
d0191583 6681
d911ec67 6682fi
d0191583 6683
d911ec67
AK
6684{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6685$as_echo_n "checking for mode_t... " >&6; }
6686if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6687 $as_echo_n "(cached) " >&6
795ca3e5 6688else
d911ec67 6689 ac_cv_type_mode_t=no
ad6254c5 6690cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
6696$ac_includes_default
d911ec67
AK
6697int
6698main ()
6699{
6700if (sizeof (mode_t))
6701 return 0;
6702 ;
6703 return 0;
6704}
ad6254c5
AK
6705_ACEOF
6706rm -f conftest.$ac_objext
7a197a62
AK
6707if { (ac_try="$ac_compile"
6708case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
ec6a6fbe
AK
6712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6713$as_echo "$ac_try_echo") >&5
7a197a62 6714 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6715 ac_status=$?
8a2fc586
AK
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
ec6a6fbe 6719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
d911ec67 6724 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6725/* confdefs.h. */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h. */
d911ec67
AK
6730$ac_includes_default
6731int
6732main ()
6733{
6734if (sizeof ((mode_t)))
6735 return 0;
6736 ;
6737 return 0;
6738}
ad6254c5 6739_ACEOF
d911ec67
AK
6740rm -f conftest.$ac_objext
6741if { (ac_try="$ac_compile"
7a197a62
AK
6742case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745esac
ec6a6fbe
AK
6746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6747$as_echo "$ac_try_echo") >&5
d911ec67 6748 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
ec6a6fbe 6753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
25fbec5b 6756 test ! -s conftest.err
d911ec67
AK
6757 } && test -s conftest.$ac_objext; then
6758 :
ad6254c5 6759else
ec6a6fbe 6760 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6761sed 's/^/| /' conftest.$ac_ext >&5
6762
d911ec67 6763 ac_cv_type_mode_t=yes
ad6254c5 6764fi
7a197a62 6765
d911ec67
AK
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767else
6768 $as_echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6770
7a197a62 6771
80992638
AK
6772fi
6773
d911ec67 6774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6775fi
d911ec67
AK
6776{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6777$as_echo "$ac_cv_type_mode_t" >&6; }
6778if test "x$ac_cv_type_mode_t" = x""yes; then
6779 :
795ca3e5 6780else
80992638 6781
d911ec67
AK
6782cat >>confdefs.h <<_ACEOF
6783#define mode_t int
6784_ACEOF
ad6254c5 6785
d911ec67 6786fi
795ca3e5 6787
d0191583 6788
d911ec67
AK
6789 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6790$as_echo_n "checking for int8_t... " >&6; }
6791if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6792 $as_echo_n "(cached) " >&6
ad6254c5 6793else
d911ec67
AK
6794 ac_cv_c_int8_t=no
6795 for ac_type in 'int8_t' 'int' 'long int' \
6796 'long long int' 'short int' 'signed char'; do
6797 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6798/* confdefs.h. */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h. */
6803$ac_includes_default
d911ec67
AK
6804int
6805main ()
6806{
6807static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6808test_array [0] = 0
6809
6810 ;
6811 return 0;
6812}
ad6254c5
AK
6813_ACEOF
6814rm -f conftest.$ac_objext
7a197a62
AK
6815if { (ac_try="$ac_compile"
6816case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819esac
ec6a6fbe
AK
6820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6821$as_echo "$ac_try_echo") >&5
7a197a62 6822 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6823 ac_status=$?
8a2fc586
AK
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
ec6a6fbe 6827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6828 (exit $ac_status); } && {
6829 test -z "$ac_c_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest.$ac_objext; then
d911ec67 6832 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6833/* confdefs.h. */
6834_ACEOF
6835cat confdefs.h >>conftest.$ac_ext
6836cat >>conftest.$ac_ext <<_ACEOF
6837/* end confdefs.h. */
d911ec67
AK
6838$ac_includes_default
6839int
6840main ()
6841{
6842static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6843 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6844test_array [0] = 0
6845
6846 ;
6847 return 0;
6848}
ad6254c5 6849_ACEOF
d911ec67
AK
6850rm -f conftest.$ac_objext
6851if { (ac_try="$ac_compile"
7a197a62
AK
6852case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6855esac
ec6a6fbe
AK
6856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6857$as_echo "$ac_try_echo") >&5
d911ec67 6858 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
ec6a6fbe 6863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
25fbec5b 6866 test ! -s conftest.err
d911ec67
AK
6867 } && test -s conftest.$ac_objext; then
6868 :
ad6254c5 6869else
ec6a6fbe 6870 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
d911ec67
AK
6873 case $ac_type in
6874 int8_t) ac_cv_c_int8_t=yes ;;
6875 *) ac_cv_c_int8_t=$ac_type ;;
6876esac
ad6254c5 6877
d911ec67 6878fi
7a197a62 6879
d911ec67 6880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6881else
d911ec67
AK
6882 $as_echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
b896caa1 6885
ad6254c5 6886fi
ad6254c5 6887
d911ec67
AK
6888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 test "$ac_cv_c_int8_t" != no && break
6890 done
80992638 6891fi
d911ec67
AK
6892{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6893$as_echo "$ac_cv_c_int8_t" >&6; }
6894 case $ac_cv_c_int8_t in #(
6895 no|yes) ;; #(
6896 *)
80992638 6897
d911ec67
AK
6898cat >>confdefs.h <<_ACEOF
6899#define int8_t $ac_cv_c_int8_t
6900_ACEOF
6901;;
6902 esac
d0191583 6903
d3c8211f 6904
d911ec67
AK
6905 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6906$as_echo_n "checking for int16_t... " >&6; }
6907if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6908 $as_echo_n "(cached) " >&6
d3c8211f 6909else
d911ec67
AK
6910 ac_cv_c_int16_t=no
6911 for ac_type in 'int16_t' 'int' 'long int' \
6912 'long long int' 'short int' 'signed char'; do
6913 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
d911ec67 6919$ac_includes_default
ad6254c5
AK
6920int
6921main ()
6922{
d911ec67
AK
6923static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6924test_array [0] = 0
ad6254c5
AK
6925
6926 ;
6927 return 0;
6928}
6929_ACEOF
6930rm -f conftest.$ac_objext
7a197a62
AK
6931if { (ac_try="$ac_compile"
6932case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
ec6a6fbe
AK
6936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6937$as_echo "$ac_try_echo") >&5
7a197a62 6938 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6939 ac_status=$?
8a2fc586
AK
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
ec6a6fbe 6943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
ad6254c5 6948 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6949/* confdefs.h. */
6950_ACEOF
6951cat confdefs.h >>conftest.$ac_ext
6952cat >>conftest.$ac_ext <<_ACEOF
6953/* end confdefs.h. */
d911ec67
AK
6954$ac_includes_default
6955int
6956main ()
6957{
6958static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6959 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6960test_array [0] = 0
80992638 6961
d911ec67
AK
6962 ;
6963 return 0;
6964}
ad6254c5
AK
6965_ACEOF
6966rm -f conftest.$ac_objext
7a197a62
AK
6967if { (ac_try="$ac_compile"
6968case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971esac
ec6a6fbe
AK
6972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6973$as_echo "$ac_try_echo") >&5
7a197a62 6974 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6975 ac_status=$?
8a2fc586
AK
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
ec6a6fbe 6979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6980 (exit $ac_status); } && {
6981 test -z "$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest.$ac_objext; then
d911ec67 6984 :
ad6254c5 6985else
ec6a6fbe 6986 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6987sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 6988
d911ec67
AK
6989 case $ac_type in
6990 int16_t) ac_cv_c_int16_t=yes ;;
6991 *) ac_cv_c_int16_t=$ac_type ;;
6992esac
7a197a62 6993
8ce0cbda 6994fi
7a197a62
AK
6995
6996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
6997else
6998 $as_echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7000
8a2fc586 7001
d911ec67 7002fi
8a2fc586 7003
d911ec67
AK
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 test "$ac_cv_c_int16_t" != no && break
7006 done
7007fi
7008{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7009$as_echo "$ac_cv_c_int16_t" >&6; }
7010 case $ac_cv_c_int16_t in #(
7011 no|yes) ;; #(
8a2fc586 7012 *)
d911ec67
AK
7013
7014cat >>confdefs.h <<_ACEOF
7015#define int16_t $ac_cv_c_int16_t
c1c065a3 7016_ACEOF
d911ec67
AK
7017;;
7018 esac
d0191583 7019
d911ec67
AK
7020
7021 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7022$as_echo_n "checking for int32_t... " >&6; }
7023if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7024 $as_echo_n "(cached) " >&6
d0191583 7025else
d911ec67
AK
7026 ac_cv_c_int32_t=no
7027 for ac_type in 'int32_t' 'int' 'long int' \
7028 'long long int' 'short int' 'signed char'; do
7029 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035$ac_includes_default
7036int
7037main ()
7038{
d911ec67
AK
7039static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7040test_array [0] = 0
7041
d0191583
JM
7042 ;
7043 return 0;
7044}
7045_ACEOF
7046rm -f conftest.$ac_objext
7047if { (ac_try="$ac_compile"
7048case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051esac
ec6a6fbe
AK
7052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053$as_echo "$ac_try_echo") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
d911ec67 7064 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7065/* confdefs.h. */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */
7070$ac_includes_default
7071int
7072main ()
7073{
d911ec67
AK
7074static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7075 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7076test_array [0] = 0
7077
ec6a6fbe
AK
7078 ;
7079 return 0;
7080}
7081_ACEOF
7082rm -f conftest.$ac_objext
7083if { (ac_try="$ac_compile"
7084case "(($ac_try" in
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7087esac
7088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7089$as_echo "$ac_try_echo") >&5
7090 (eval "$ac_compile") 2>conftest.er1
7091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
7095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && {
7097 test -z "$ac_c_werror_flag" ||
7098 test ! -s conftest.err
7099 } && test -s conftest.$ac_objext; then
d911ec67 7100 :
ec6a6fbe
AK
7101else
7102 $as_echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
d911ec67
AK
7105 case $ac_type in
7106 int32_t) ac_cv_c_int32_t=yes ;;
7107 *) ac_cv_c_int32_t=$ac_type ;;
7108esac
7109
ec6a6fbe
AK
7110fi
7111
7112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7113else
7114 $as_echo "$as_me: failed program was:" >&5
7115sed 's/^/| /' conftest.$ac_ext >&5
7116
7117
ec6a6fbe
AK
7118fi
7119
7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7121 test "$ac_cv_c_int32_t" != no && break
7122 done
ec6a6fbe 7123fi
d911ec67
AK
7124{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7125$as_echo "$ac_cv_c_int32_t" >&6; }
7126 case $ac_cv_c_int32_t in #(
7127 no|yes) ;; #(
7128 *)
ec6a6fbe
AK
7129
7130cat >>confdefs.h <<_ACEOF
d911ec67 7131#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7132_ACEOF
d911ec67
AK
7133;;
7134 esac
ec6a6fbe
AK
7135
7136
d911ec67
AK
7137 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7138$as_echo_n "checking for int64_t... " >&6; }
7139if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7140 $as_echo_n "(cached) " >&6
7141else
d911ec67
AK
7142 ac_cv_c_int64_t=no
7143 for ac_type in 'int64_t' 'int' 'long int' \
7144 'long long int' 'short int' 'signed char'; do
7145 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7146/* confdefs.h. */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h. */
7151$ac_includes_default
7152int
7153main ()
7154{
d911ec67
AK
7155static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7156test_array [0] = 0
7157
ec6a6fbe
AK
7158 ;
7159 return 0;
7160}
7161_ACEOF
7162rm -f conftest.$ac_objext
7163if { (ac_try="$ac_compile"
7164case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167esac
7168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7169$as_echo "$ac_try_echo") >&5
7170 (eval "$ac_compile") 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
7180 cat >conftest.$ac_ext <<_ACEOF
7181/* confdefs.h. */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h. */
7186$ac_includes_default
7187int
7188main ()
7189{
d911ec67
AK
7190static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7191 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7192test_array [0] = 0
7193
ec6a6fbe
AK
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext
7199if { (ac_try="$ac_compile"
7200case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203esac
7204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7205$as_echo "$ac_try_echo") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 :
7217else
7218 $as_echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
d911ec67
AK
7221 case $ac_type in
7222 int64_t) ac_cv_c_int64_t=yes ;;
7223 *) ac_cv_c_int64_t=$ac_type ;;
7224esac
7225
ec6a6fbe
AK
7226fi
7227
7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229else
7230 $as_echo "$as_me: failed program was:" >&5
7231sed 's/^/| /' conftest.$ac_ext >&5
7232
7233
7234fi
7235
7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7237 test "$ac_cv_c_int64_t" != no && break
7238 done
ec6a6fbe 7239fi
d911ec67
AK
7240{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7241$as_echo "$ac_cv_c_int64_t" >&6; }
7242 case $ac_cv_c_int64_t in #(
7243 no|yes) ;; #(
7244 *)
ec6a6fbe
AK
7245
7246cat >>confdefs.h <<_ACEOF
d911ec67 7247#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7248_ACEOF
d911ec67
AK
7249;;
7250 esac
ec6a6fbe 7251
d911ec67
AK
7252{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7253$as_echo_n "checking for ssize_t... " >&6; }
7254if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7255 $as_echo_n "(cached) " >&6
7256else
d911ec67 7257 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7258cat >conftest.$ac_ext <<_ACEOF
7259/* confdefs.h. */
7260_ACEOF
7261cat confdefs.h >>conftest.$ac_ext
7262cat >>conftest.$ac_ext <<_ACEOF
7263/* end confdefs.h. */
7264$ac_includes_default
7265int
7266main ()
7267{
d911ec67 7268if (sizeof (ssize_t))
ec6a6fbe
AK
7269 return 0;
7270 ;
7271 return 0;
7272}
7273_ACEOF
7274rm -f conftest.$ac_objext
7275if { (ac_try="$ac_compile"
7276case "(($ac_try" in
7277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 *) ac_try_echo=$ac_try;;
7279esac
7280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7281$as_echo "$ac_try_echo") >&5
d0191583
JM
7282 (eval "$ac_compile") 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
ec6a6fbe 7287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.$ac_objext; then
ec6a6fbe 7292 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7293/* confdefs.h. */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h. */
7298$ac_includes_default
7299int
7300main ()
7301{
d911ec67 7302if (sizeof ((ssize_t)))
ec6a6fbe 7303 return 0;
d0191583
JM
7304 ;
7305 return 0;
7306}
7307_ACEOF
7308rm -f conftest.$ac_objext
7309if { (ac_try="$ac_compile"
7310case "(($ac_try" in
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7313esac
ec6a6fbe
AK
7314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315$as_echo "$ac_try_echo") >&5
d0191583
JM
7316 (eval "$ac_compile") 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
ec6a6fbe 7321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
ec6a6fbe 7326 :
d0191583 7327else
ec6a6fbe 7328 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
d911ec67 7331 ac_cv_type_ssize_t=yes
d0191583
JM
7332fi
7333
7334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7335else
7336 $as_echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339
d0191583
JM
7340fi
7341
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343fi
d911ec67
AK
7344{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7345$as_echo "$ac_cv_type_ssize_t" >&6; }
7346if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7347 :
7348else
d0191583
JM
7349
7350cat >>confdefs.h <<_ACEOF
d911ec67 7351#define ssize_t int
d0191583
JM
7352_ACEOF
7353
d0191583 7354fi
8ce0cbda 7355
d911ec67
AK
7356{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7357$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7358if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7359 $as_echo_n "(cached) " >&6
ad6254c5 7360else
b145d876
ZK
7361 cat >conftest.$ac_ext <<_ACEOF
7362/* confdefs.h. */
7363_ACEOF
7364cat confdefs.h >>conftest.$ac_ext
7365cat >>conftest.$ac_ext <<_ACEOF
7366/* end confdefs.h. */
ec6a6fbe 7367#include <sys/types.h>
ec6a6fbe 7368
ad6254c5 7369_ACEOF
d911ec67
AK
7370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7371 $EGREP "uid_t" >/dev/null 2>&1; then
7372 ac_cv_type_uid_t=yes
b145d876 7373else
d911ec67 7374 ac_cv_type_uid_t=no
ad6254c5 7375fi
d911ec67 7376rm -f conftest*
b145d876 7377
b145d876 7378fi
d911ec67
AK
7379{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7380$as_echo "$ac_cv_type_uid_t" >&6; }
7381if test $ac_cv_type_uid_t = no; then
80992638 7382
d911ec67
AK
7383cat >>confdefs.h <<\_ACEOF
7384#define uid_t int
ad6254c5 7385_ACEOF
199e490e 7386
b896caa1 7387
d911ec67
AK
7388cat >>confdefs.h <<\_ACEOF
7389#define gid_t int
7390_ACEOF
7391
7392fi
7393
7394
7395 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7396$as_echo_n "checking for uint8_t... " >&6; }
7397if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7398 $as_echo_n "(cached) " >&6
ad6254c5 7399else
d911ec67
AK
7400 ac_cv_c_uint8_t=no
7401 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7402 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7403 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7404/* confdefs.h. */
7405_ACEOF
7406cat confdefs.h >>conftest.$ac_ext
7407cat >>conftest.$ac_ext <<_ACEOF
7408/* end confdefs.h. */
7409$ac_includes_default
7410int
7411main ()
7412{
d911ec67
AK
7413static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7414test_array [0] = 0
7415
ad6254c5
AK
7416 ;
7417 return 0;
7418}
7419_ACEOF
7420rm -f conftest.$ac_objext
7a197a62
AK
7421if { (ac_try="$ac_compile"
7422case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425esac
ec6a6fbe
AK
7426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7427$as_echo "$ac_try_echo") >&5
7a197a62 7428 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7429 ac_status=$?
8a2fc586
AK
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
ec6a6fbe 7433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7434 (exit $ac_status); } && {
7435 test -z "$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest.$ac_objext; then
d911ec67
AK
7438 case $ac_type in
7439 uint8_t) ac_cv_c_uint8_t=yes ;;
7440 *) ac_cv_c_uint8_t=$ac_type ;;
7441esac
7442
7443else
7444 $as_echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
7447
7448fi
7449
7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 test "$ac_cv_c_uint8_t" != no && break
7452 done
7453fi
7454{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7455$as_echo "$ac_cv_c_uint8_t" >&6; }
7456 case $ac_cv_c_uint8_t in #(
7457 no|yes) ;; #(
7458 *)
7459
7460cat >>confdefs.h <<\_ACEOF
7461#define _UINT8_T 1
7462_ACEOF
7463
7464
7465cat >>confdefs.h <<_ACEOF
7466#define uint8_t $ac_cv_c_uint8_t
7467_ACEOF
7468;;
7469 esac
7470
7471
7472 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7473$as_echo_n "checking for uint16_t... " >&6; }
7474if test "${ac_cv_c_uint16_t+set}" = set; then
7475 $as_echo_n "(cached) " >&6
7476else
7477 ac_cv_c_uint16_t=no
7478 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7479 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7480 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7481/* confdefs.h. */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h. */
ec6a6fbe 7486$ac_includes_default
d0191583
JM
7487int
7488main ()
7489{
d911ec67
AK
7490static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7491test_array [0] = 0
7492
d0191583
JM
7493 ;
7494 return 0;
7495}
7496_ACEOF
7497rm -f conftest.$ac_objext
7498if { (ac_try="$ac_compile"
7499case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502esac
ec6a6fbe
AK
7503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504$as_echo "$ac_try_echo") >&5
d0191583
JM
7505 (eval "$ac_compile") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
ec6a6fbe 7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
d911ec67
AK
7515 case $ac_type in
7516 uint16_t) ac_cv_c_uint16_t=yes ;;
7517 *) ac_cv_c_uint16_t=$ac_type ;;
7518esac
ec6a6fbe 7519
ec6a6fbe
AK
7520else
7521 $as_echo "$as_me: failed program was:" >&5
7522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524
d0191583
JM
7525fi
7526
7527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7528 test "$ac_cv_c_uint16_t" != no && break
7529 done
d0191583 7530fi
d911ec67
AK
7531{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7532$as_echo "$ac_cv_c_uint16_t" >&6; }
7533 case $ac_cv_c_uint16_t in #(
7534 no|yes) ;; #(
7535 *)
7536
d0191583
JM
7537
7538cat >>confdefs.h <<_ACEOF
d911ec67 7539#define uint16_t $ac_cv_c_uint16_t
d0191583 7540_ACEOF
d911ec67
AK
7541;;
7542 esac
d0191583
JM
7543
7544
d911ec67
AK
7545 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7546$as_echo_n "checking for uint32_t... " >&6; }
7547if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7548 $as_echo_n "(cached) " >&6
8106cdd5 7549else
d911ec67
AK
7550 ac_cv_c_uint32_t=no
7551 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7552 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7553 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7554/* confdefs.h. */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h. */
7559$ac_includes_default
7560int
7561main ()
7562{
d911ec67
AK
7563static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7564test_array [0] = 0
7565
ad6254c5
AK
7566 ;
7567 return 0;
7568}
7569_ACEOF
7570rm -f conftest.$ac_objext
7a197a62
AK
7571if { (ac_try="$ac_compile"
7572case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575esac
ec6a6fbe
AK
7576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7577$as_echo "$ac_try_echo") >&5
7a197a62 7578 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7579 ac_status=$?
8a2fc586
AK
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
ec6a6fbe 7583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7584 (exit $ac_status); } && {
7585 test -z "$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7587 } && test -s conftest.$ac_objext; then
d911ec67
AK
7588 case $ac_type in
7589 uint32_t) ac_cv_c_uint32_t=yes ;;
7590 *) ac_cv_c_uint32_t=$ac_type ;;
7591esac
7592
7593else
7594 $as_echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597
7598fi
7599
7600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 test "$ac_cv_c_uint32_t" != no && break
7602 done
7603fi
7604{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7605$as_echo "$ac_cv_c_uint32_t" >&6; }
7606 case $ac_cv_c_uint32_t in #(
7607 no|yes) ;; #(
7608 *)
7609
7610cat >>confdefs.h <<\_ACEOF
7611#define _UINT32_T 1
7612_ACEOF
7613
7614
7615cat >>confdefs.h <<_ACEOF
7616#define uint32_t $ac_cv_c_uint32_t
7617_ACEOF
7618;;
7619 esac
7620
7621
7622 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7623$as_echo_n "checking for uint64_t... " >&6; }
7624if test "${ac_cv_c_uint64_t+set}" = set; then
7625 $as_echo_n "(cached) " >&6
7626else
7627 ac_cv_c_uint64_t=no
7628 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7629 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7630 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7631/* confdefs.h. */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h. */
7636$ac_includes_default
7637int
7638main ()
7639{
d911ec67
AK
7640static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7641test_array [0] = 0
7642
ad6254c5
AK
7643 ;
7644 return 0;
7645}
7646_ACEOF
7647rm -f conftest.$ac_objext
7a197a62
AK
7648if { (ac_try="$ac_compile"
7649case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652esac
ec6a6fbe
AK
7653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7654$as_echo "$ac_try_echo") >&5
7a197a62 7655 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7656 ac_status=$?
8a2fc586
AK
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
ec6a6fbe 7660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
d911ec67
AK
7665 case $ac_type in
7666 uint64_t) ac_cv_c_uint64_t=yes ;;
7667 *) ac_cv_c_uint64_t=$ac_type ;;
7668esac
ec6a6fbe 7669
fddafd51 7670else
ec6a6fbe 7671 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
ec6a6fbe 7674
80992638 7675fi
7a197a62
AK
7676
7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7678 test "$ac_cv_c_uint64_t" != no && break
7679 done
ad6254c5 7680fi
d911ec67
AK
7681{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7682$as_echo "$ac_cv_c_uint64_t" >&6; }
7683 case $ac_cv_c_uint64_t in #(
7684 no|yes) ;; #(
7685 *)
80992638 7686
d911ec67
AK
7687cat >>confdefs.h <<\_ACEOF
7688#define _UINT64_T 1
ad6254c5
AK
7689_ACEOF
7690
d911ec67
AK
7691
7692cat >>confdefs.h <<_ACEOF
7693#define uint64_t $ac_cv_c_uint64_t
7694_ACEOF
7695;;
7696 esac
ad6254c5 7697
ec6a6fbe
AK
7698{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7699$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7700if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7701 $as_echo_n "(cached) " >&6
ad6254c5
AK
7702else
7703 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7704/* confdefs.h. */
7705_ACEOF
7706cat confdefs.h >>conftest.$ac_ext
7707cat >>conftest.$ac_ext <<_ACEOF
7708/* end confdefs.h. */
7709$ac_includes_default
7710int
7711main ()
7712{
7713static struct stat ac_aggr;
7714if (ac_aggr.st_rdev)
7715return 0;
7716 ;
7717 return 0;
7718}
7719_ACEOF
7720rm -f conftest.$ac_objext
7a197a62
AK
7721if { (ac_try="$ac_compile"
7722case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7725esac
ec6a6fbe
AK
7726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7727$as_echo "$ac_try_echo") >&5
7a197a62 7728 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7729 ac_status=$?
8a2fc586
AK
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
ec6a6fbe 7733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7738 ac_cv_member_struct_stat_st_rdev=yes
7739else
ec6a6fbe 7740 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
7a197a62 7743 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7744/* confdefs.h. */
7745_ACEOF
7746cat confdefs.h >>conftest.$ac_ext
7747cat >>conftest.$ac_ext <<_ACEOF
7748/* end confdefs.h. */
7749$ac_includes_default
7750int
7751main ()
7752{
7753static struct stat ac_aggr;
7754if (sizeof ac_aggr.st_rdev)
7755return 0;
7756 ;
7757 return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext
7a197a62
AK
7761if { (ac_try="$ac_compile"
7762case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
ec6a6fbe
AK
7766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767$as_echo "$ac_try_echo") >&5
7a197a62 7768 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7769 ac_status=$?
8a2fc586
AK
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
ec6a6fbe 7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7778 ac_cv_member_struct_stat_st_rdev=yes
7779else
ec6a6fbe 7780 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7a197a62 7783 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7784fi
7a197a62
AK
7785
7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7787fi
7a197a62
AK
7788
7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7790fi
ec6a6fbe
AK
7791{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7792$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7793if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7794
7795cat >>confdefs.h <<_ACEOF
7796#define HAVE_STRUCT_STAT_ST_RDEV 1
7797_ACEOF
7798
7799
ad6254c5
AK
7800fi
7801
ec6a6fbe
AK
7802{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7803$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7804if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7805 $as_echo_n "(cached) " >&6
ad6254c5
AK
7806else
7807 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7808/* confdefs.h. */
7809_ACEOF
7810cat confdefs.h >>conftest.$ac_ext
7811cat >>conftest.$ac_ext <<_ACEOF
7812/* end confdefs.h. */
7813#include <sys/types.h>
7814#include <time.h>
7815
7816int
7817main ()
7818{
25fbec5b
AK
7819struct tm tm;
7820 int *p = &tm.tm_sec;
ec6a6fbe 7821 return !p;
ad6254c5
AK
7822 ;
7823 return 0;
7824}
7825_ACEOF
7826rm -f conftest.$ac_objext
7a197a62
AK
7827if { (ac_try="$ac_compile"
7828case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831esac
ec6a6fbe
AK
7832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7833$as_echo "$ac_try_echo") >&5
7a197a62 7834 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7835 ac_status=$?
8a2fc586
AK
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
ec6a6fbe 7839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
d911ec67
AK
7843 } && test -s conftest.$ac_objext; then
7844 ac_cv_struct_tm=time.h
7845else
7846 $as_echo "$as_me: failed program was:" >&5
7847sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_cv_struct_tm=sys/time.h
7850fi
7851
7852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853fi
7854{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7855$as_echo "$ac_cv_struct_tm" >&6; }
7856if test $ac_cv_struct_tm = sys/time.h; then
7857
7858cat >>confdefs.h <<\_ACEOF
7859#define TM_IN_SYS_TIME 1
7860_ACEOF
7861
7862fi
7863
7864
7865################################################################################
7866{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7867$as_echo_n "checking for library containing floor... " >&6; }
7868if test "${ac_cv_search_floor+set}" = set; then
7869 $as_echo_n "(cached) " >&6
7870else
7871 ac_func_search_save_LIBS=$LIBS
7872cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h. */
7878
7879/* Override any GCC internal prototype to avoid an error.
7880 Use char because int might match the return type of a GCC
7881 builtin and then its argument prototype would still apply. */
7882#ifdef __cplusplus
7883extern "C"
7884#endif
7885char floor ();
7886int
7887main ()
7888{
7889return floor ();
7890 ;
7891 return 0;
7892}
7893_ACEOF
7894for ac_lib in '' m; do
7895 if test -z "$ac_lib"; then
7896 ac_res="none required"
7897 else
7898 ac_res=-l$ac_lib
7899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7900 fi
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902if { (ac_try="$ac_link"
7903case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906esac
7907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7908$as_echo "$ac_try_echo") >&5
7909 (eval "$ac_link") 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && {
7916 test -z "$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 } && test -s conftest$ac_exeext && {
7919 test "$cross_compiling" = yes ||
7920 $as_test_x conftest$ac_exeext
7921 }; then
7922 ac_cv_search_floor=$ac_res
ad6254c5 7923else
ec6a6fbe 7924 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7925sed 's/^/| /' conftest.$ac_ext >&5
7926
7a197a62 7927
ad6254c5 7928fi
ad6254c5 7929
d911ec67
AK
7930rm -rf conftest.dSYM
7931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932 conftest$ac_exeext
7933 if test "${ac_cv_search_floor+set}" = set; then
7934 break
7935fi
7936done
7937if test "${ac_cv_search_floor+set}" = set; then
7938 :
7939else
7940 ac_cv_search_floor=no
7941fi
7942rm conftest.$ac_ext
7943LIBS=$ac_func_search_save_LIBS
7944fi
7945{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7946$as_echo "$ac_cv_search_floor" >&6; }
7947ac_res=$ac_cv_search_floor
7948if test "$ac_res" != no; then
7949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7950
d911ec67
AK
7951else
7952 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7953$as_echo "$as_me: error: bailing out" >&2;}
7954 { (exit 1); exit 1; }; }
ad6254c5 7955fi
809fae91 7956
795ca3e5 7957
ad6254c5
AK
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
d0191583
JM
7972
7973
7974
d911ec67
AK
7975
7976
7977
7978
7979
7980
7981
7982for ac_func in floor ftruncate gethostname getpagesize \
7983 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
7984 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
7985 strstr strtol strtoul uname
ad6254c5 7986do
ec6a6fbe
AK
7987as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7988{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7989$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7991 $as_echo_n "(cached) " >&6
795ca3e5 7992else
ad6254c5 7993 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7994/* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
8a2fc586
AK
7999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8001#define $ac_func innocuous_$ac_func
8002
ad6254c5
AK
8003/* System header to define __stub macros and hopefully few prototypes,
8004 which can conflict with char $ac_func (); below.
8005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8006 <limits.h> exists even on freestanding compilers. */
8a2fc586 8007
ad6254c5
AK
8008#ifdef __STDC__
8009# include <limits.h>
8010#else
8011# include <assert.h>
8012#endif
8a2fc586
AK
8013
8014#undef $ac_func
8015
7a197a62
AK
8016/* Override any GCC internal prototype to avoid an error.
8017 Use char because int might match the return type of a GCC
8018 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8019#ifdef __cplusplus
8020extern "C"
ad6254c5 8021#endif
ad6254c5
AK
8022char $ac_func ();
8023/* The GNU C library defines this for functions which it implements
8024 to always fail with ENOSYS. Some functions are actually named
8025 something starting with __ and the normal name is an alias. */
7a197a62 8026#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8027choke me
ad6254c5
AK
8028#endif
8029
8030int
8031main ()
8032{
7a197a62 8033return $ac_func ();
ad6254c5
AK
8034 ;
8035 return 0;
8036}
8037_ACEOF
8038rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8039if { (ac_try="$ac_link"
8040case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043esac
ec6a6fbe
AK
8044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045$as_echo "$ac_try_echo") >&5
7a197a62 8046 (eval "$ac_link") 2>conftest.er1
ad6254c5 8047 ac_status=$?
8a2fc586
AK
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
ec6a6fbe 8051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
ec6a6fbe
AK
8055 } && test -s conftest$ac_exeext && {
8056 test "$cross_compiling" = yes ||
8057 $as_test_x conftest$ac_exeext
8058 }; then
fc54be10
AK
8059 eval "$as_ac_var=yes"
8060else
ec6a6fbe 8061 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8062sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 eval "$as_ac_var=no"
8065fi
8066
ec6a6fbe 8067rm -rf conftest.dSYM
25fbec5b 8068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8069 conftest$ac_exeext conftest.$ac_ext
8070fi
ec6a6fbe
AK
8071ac_res=`eval 'as_val=${'$as_ac_var'}
8072 $as_echo "$as_val"'`
8073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8074$as_echo "$ac_res" >&6; }
8075as_val=`eval 'as_val=${'$as_ac_var'}
8076 $as_echo "$as_val"'`
8077 if test "x$as_val" = x""yes; then
ad6254c5 8078 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8080_ACEOF
8081
8082else
ec6a6fbe
AK
8083 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8084$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8085 { (exit 1); exit 1; }; }
8086fi
8087done
795ca3e5 8088
a0f9708e
AK
8089
8090for ac_func in siginterrupt
8091do
8092as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8093{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8094$as_echo_n "checking for $ac_func... " >&6; }
8095if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8096 $as_echo_n "(cached) " >&6
8097else
8098 cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8106#define $ac_func innocuous_$ac_func
8107
8108/* System header to define __stub macros and hopefully few prototypes,
8109 which can conflict with char $ac_func (); below.
8110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8111 <limits.h> exists even on freestanding compilers. */
8112
8113#ifdef __STDC__
8114# include <limits.h>
8115#else
8116# include <assert.h>
8117#endif
8118
8119#undef $ac_func
8120
8121/* Override any GCC internal prototype to avoid an error.
8122 Use char because int might match the return type of a GCC
8123 builtin and then its argument prototype would still apply. */
8124#ifdef __cplusplus
8125extern "C"
8126#endif
8127char $ac_func ();
8128/* The GNU C library defines this for functions which it implements
8129 to always fail with ENOSYS. Some functions are actually named
8130 something starting with __ and the normal name is an alias. */
8131#if defined __stub_$ac_func || defined __stub___$ac_func
8132choke me
8133#endif
8134
8135int
8136main ()
8137{
8138return $ac_func ();
8139 ;
8140 return 0;
8141}
8142_ACEOF
8143rm -f conftest.$ac_objext conftest$ac_exeext
8144if { (ac_try="$ac_link"
8145case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150$as_echo "$ac_try_echo") >&5
8151 (eval "$ac_link") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest$ac_exeext && {
8161 test "$cross_compiling" = yes ||
8162 $as_test_x conftest$ac_exeext
8163 }; then
8164 eval "$as_ac_var=yes"
8165else
8166 $as_echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 eval "$as_ac_var=no"
8170fi
8171
8172rm -rf conftest.dSYM
8173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8174 conftest$ac_exeext conftest.$ac_ext
8175fi
8176ac_res=`eval 'as_val=${'$as_ac_var'}
8177 $as_echo "$as_val"'`
8178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8179$as_echo "$ac_res" >&6; }
8180as_val=`eval 'as_val=${'$as_ac_var'}
8181 $as_echo "$as_val"'`
8182 if test "x$as_val" = x""yes; then
8183 cat >>confdefs.h <<_ACEOF
8184#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8185_ACEOF
8186
8187fi
8188done
8189
ad6254c5
AK
8190# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8191# for constant arguments. Useless!
ec6a6fbe
AK
8192{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8193$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8194if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8195 $as_echo_n "(cached) " >&6
ad6254c5
AK
8196else
8197 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */
8203#include <alloca.h>
8204int
8205main ()
8206{
8207char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8208 if (p) return 0;
ad6254c5
AK
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8214if { (ac_try="$ac_link"
8215case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
ec6a6fbe
AK
8219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8220$as_echo "$ac_try_echo") >&5
7a197a62 8221 (eval "$ac_link") 2>conftest.er1
ad6254c5 8222 ac_status=$?
8a2fc586
AK
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
ec6a6fbe 8226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
ec6a6fbe
AK
8230 } && test -s conftest$ac_exeext && {
8231 test "$cross_compiling" = yes ||
8232 $as_test_x conftest$ac_exeext
8233 }; then
ad6254c5
AK
8234 ac_cv_working_alloca_h=yes
8235else
ec6a6fbe 8236 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8237sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8238
7a197a62 8239 ac_cv_working_alloca_h=no
ad6254c5 8240fi
7a197a62 8241
ec6a6fbe 8242rm -rf conftest.dSYM
25fbec5b 8243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8244 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8245fi
ec6a6fbe
AK
8246{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8247$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8248if test $ac_cv_working_alloca_h = yes; then
8249
8250cat >>confdefs.h <<\_ACEOF
8251#define HAVE_ALLOCA_H 1
8252_ACEOF
8253
8254fi
8255
ec6a6fbe
AK
8256{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8257$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8258if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8259 $as_echo_n "(cached) " >&6
ad6254c5
AK
8260else
8261 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
8267#ifdef __GNUC__
8268# define alloca __builtin_alloca
8269#else
8270# ifdef _MSC_VER
8271# include <malloc.h>
8272# define alloca _alloca
8273# else
25fbec5b 8274# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8275# include <alloca.h>
8276# else
8277# ifdef _AIX
8278 #pragma alloca
8279# else
8280# ifndef alloca /* predefined by HP cc +Olibcalls */
8281char *alloca ();
8282# endif
8283# endif
8284# endif
8285# endif
8286#endif
8287
8288int
8289main ()
8290{
8291char *p = (char *) alloca (1);
7a197a62 8292 if (p) return 0;
ad6254c5
AK
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8298if { (ac_try="$ac_link"
8299case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
ec6a6fbe
AK
8303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8304$as_echo "$ac_try_echo") >&5
7a197a62 8305 (eval "$ac_link") 2>conftest.er1
ad6254c5 8306 ac_status=$?
8a2fc586
AK
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
ec6a6fbe 8310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
ec6a6fbe
AK
8314 } && test -s conftest$ac_exeext && {
8315 test "$cross_compiling" = yes ||
8316 $as_test_x conftest$ac_exeext
8317 }; then
ad6254c5
AK
8318 ac_cv_func_alloca_works=yes
8319else
ec6a6fbe 8320 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
7a197a62 8323 ac_cv_func_alloca_works=no
ad6254c5 8324fi
7a197a62 8325
ec6a6fbe 8326rm -rf conftest.dSYM
25fbec5b 8327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8328 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8329fi
ec6a6fbe
AK
8330{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8331$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8332
8333if test $ac_cv_func_alloca_works = yes; then
8334
8335cat >>confdefs.h <<\_ACEOF
8336#define HAVE_ALLOCA 1
8337_ACEOF
8338
8339else
8340 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8341# that cause trouble. Some versions do not even contain alloca or
8342# contain a buggy version. If you still want to use their alloca,
8343# use ar to extract alloca.o from them instead of compiling alloca.c.
8344
7a197a62 8345ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8346
8347cat >>confdefs.h <<\_ACEOF
8348#define C_ALLOCA 1
8349_ACEOF
8350
8351
ec6a6fbe
AK
8352{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8353$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8354if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8355 $as_echo_n "(cached) " >&6
ad6254c5
AK
8356else
8357 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
7a197a62 8363#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8364webecray
8365#else
8366wenotbecray
8367#endif
8368
8369_ACEOF
795ca3e5 8370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8371 $EGREP "webecray" >/dev/null 2>&1; then
8372 ac_cv_os_cray=yes
8373else
8374 ac_cv_os_cray=no
795ca3e5
AK
8375fi
8376rm -f conftest*
8377
795ca3e5 8378fi
ec6a6fbe
AK
8379{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8380$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8381if test $ac_cv_os_cray = yes; then
8382 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8384{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8385$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8387 $as_echo_n "(cached) " >&6
ad6254c5
AK
8388else
8389 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8390/* confdefs.h. */
8391_ACEOF
8392cat confdefs.h >>conftest.$ac_ext
8393cat >>conftest.$ac_ext <<_ACEOF
8394/* end confdefs.h. */
8a2fc586
AK
8395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8397#define $ac_func innocuous_$ac_func
8398
ad6254c5
AK
8399/* System header to define __stub macros and hopefully few prototypes,
8400 which can conflict with char $ac_func (); below.
8401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8402 <limits.h> exists even on freestanding compilers. */
8a2fc586 8403
ad6254c5
AK
8404#ifdef __STDC__
8405# include <limits.h>
8406#else
8407# include <assert.h>
8408#endif
8a2fc586
AK
8409
8410#undef $ac_func
8411
7a197a62
AK
8412/* Override any GCC internal prototype to avoid an error.
8413 Use char because int might match the return type of a GCC
8414 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8415#ifdef __cplusplus
8416extern "C"
ad6254c5 8417#endif
ad6254c5
AK
8418char $ac_func ();
8419/* The GNU C library defines this for functions which it implements
8420 to always fail with ENOSYS. Some functions are actually named
8421 something starting with __ and the normal name is an alias. */
7a197a62 8422#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8423choke me
ad6254c5
AK
8424#endif
8425
8426int
8427main ()
8428{
7a197a62 8429return $ac_func ();
ad6254c5
AK
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8435if { (ac_try="$ac_link"
8436case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439esac
ec6a6fbe
AK
8440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8441$as_echo "$ac_try_echo") >&5
7a197a62 8442 (eval "$ac_link") 2>conftest.er1
ad6254c5 8443 ac_status=$?
8a2fc586
AK
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
ec6a6fbe 8447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
ec6a6fbe
AK
8451 } && test -s conftest$ac_exeext && {
8452 test "$cross_compiling" = yes ||
8453 $as_test_x conftest$ac_exeext
8454 }; then
ad6254c5
AK
8455 eval "$as_ac_var=yes"
8456else
ec6a6fbe 8457 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8458sed 's/^/| /' conftest.$ac_ext >&5
8459
7a197a62 8460 eval "$as_ac_var=no"
ad6254c5 8461fi
7a197a62 8462
ec6a6fbe 8463rm -rf conftest.dSYM
25fbec5b 8464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8465 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8466fi
ec6a6fbe
AK
8467ac_res=`eval 'as_val=${'$as_ac_var'}
8468 $as_echo "$as_val"'`
8469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8470$as_echo "$ac_res" >&6; }
8471as_val=`eval 'as_val=${'$as_ac_var'}
8472 $as_echo "$as_val"'`
8473 if test "x$as_val" = x""yes; then
80992638 8474
ad6254c5
AK
8475cat >>confdefs.h <<_ACEOF
8476#define CRAY_STACKSEG_END $ac_func
8477_ACEOF
8478
8479 break
8480fi
8481
8482 done
8483fi
8484
ec6a6fbe
AK
8485{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8486$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8487if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8488 $as_echo_n "(cached) " >&6
ad6254c5
AK
8489else
8490 if test "$cross_compiling" = yes; then
8491 ac_cv_c_stack_direction=0
8492else
8493 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8494/* confdefs.h. */
8495_ACEOF
8496cat confdefs.h >>conftest.$ac_ext
8497cat >>conftest.$ac_ext <<_ACEOF
8498/* end confdefs.h. */
7a197a62 8499$ac_includes_default
ad6254c5
AK
8500int
8501find_stack_direction ()
8502{
8503 static char *addr = 0;
8504 auto char dummy;
8505 if (addr == 0)
8506 {
8507 addr = &dummy;
8508 return find_stack_direction ();
8509 }
8510 else
8511 return (&dummy > addr) ? 1 : -1;
8512}
8513
8514int
8515main ()
8516{
7a197a62 8517 return find_stack_direction () < 0;
ad6254c5
AK
8518}
8519_ACEOF
8520rm -f conftest$ac_exeext
7a197a62
AK
8521if { (ac_try="$ac_link"
8522case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525esac
ec6a6fbe
AK
8526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527$as_echo "$ac_try_echo") >&5
7a197a62 8528 (eval "$ac_link") 2>&5
ad6254c5 8529 ac_status=$?
ec6a6fbe 8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8532 { (case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535esac
ec6a6fbe
AK
8536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8537$as_echo "$ac_try_echo") >&5
7a197a62 8538 (eval "$ac_try") 2>&5
ad6254c5 8539 ac_status=$?
ec6a6fbe 8540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8541 (exit $ac_status); }; }; then
8542 ac_cv_c_stack_direction=1
8543else
ec6a6fbe
AK
8544 $as_echo "$as_me: program exited with status $ac_status" >&5
8545$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548( exit $ac_status )
8549ac_cv_c_stack_direction=-1
8550fi
ec6a6fbe 8551rm -rf conftest.dSYM
7a197a62 8552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8553fi
7a197a62
AK
8554
8555
ad6254c5 8556fi
ec6a6fbe
AK
8557{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8558$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8559
d911ec67
AK
8560cat >>confdefs.h <<_ACEOF
8561#define STACK_DIRECTION $ac_cv_c_stack_direction
8562_ACEOF
8563
8564
8565fi
8566
8567{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8568$as_echo_n "checking whether closedir returns void... " >&6; }
8569if test "${ac_cv_func_closedir_void+set}" = set; then
8570 $as_echo_n "(cached) " >&6
8571else
8572 if test "$cross_compiling" = yes; then
8573 ac_cv_func_closedir_void=yes
8574else
8575 cat >conftest.$ac_ext <<_ACEOF
8576/* confdefs.h. */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h. */
8581$ac_includes_default
8582#include <$ac_header_dirent>
8583#ifndef __cplusplus
8584int closedir ();
8585#endif
8586
8587int
8588main ()
8589{
8590return closedir (opendir (".")) != 0;
8591 ;
8592 return 0;
8593}
8594_ACEOF
8595rm -f conftest$ac_exeext
8596if { (ac_try="$ac_link"
8597case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600esac
8601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602$as_echo "$ac_try_echo") >&5
8603 (eval "$ac_link") 2>&5
8604 ac_status=$?
8605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8607 { (case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610esac
8611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8612$as_echo "$ac_try_echo") >&5
8613 (eval "$ac_try") 2>&5
8614 ac_status=$?
8615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_func_closedir_void=no
8618else
8619 $as_echo "$as_me: program exited with status $ac_status" >&5
8620$as_echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623( exit $ac_status )
8624ac_cv_func_closedir_void=yes
8625fi
8626rm -rf conftest.dSYM
8627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8628fi
8629
8630
8631fi
8632{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8633$as_echo "$ac_cv_func_closedir_void" >&6; }
8634if test $ac_cv_func_closedir_void = yes; then
8635
8636cat >>confdefs.h <<\_ACEOF
8637#define CLOSEDIR_VOID 1
8638_ACEOF
8639
8640fi
8641
8642
8643for ac_header in unistd.h
8644do
8645as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8648$as_echo_n "checking for $ac_header... " >&6; }
8649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8650 $as_echo_n "(cached) " >&6
8651fi
8652ac_res=`eval 'as_val=${'$as_ac_Header'}
8653 $as_echo "$as_val"'`
8654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8655$as_echo "$ac_res" >&6; }
8656else
8657 # Is the header compilable?
8658{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659$as_echo_n "checking $ac_header usability... " >&6; }
8660cat >conftest.$ac_ext <<_ACEOF
8661/* confdefs.h. */
8662_ACEOF
8663cat confdefs.h >>conftest.$ac_ext
8664cat >>conftest.$ac_ext <<_ACEOF
8665/* end confdefs.h. */
8666$ac_includes_default
8667#include <$ac_header>
8668_ACEOF
8669rm -f conftest.$ac_objext
8670if { (ac_try="$ac_compile"
8671case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674esac
8675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676$as_echo "$ac_try_echo") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest.$ac_objext; then
8687 ac_header_compiler=yes
8688else
8689 $as_echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ac_header_compiler=no
8693fi
8694
8695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8697$as_echo "$ac_header_compiler" >&6; }
8698
8699# Is the header present?
8700{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8701$as_echo_n "checking $ac_header presence... " >&6; }
8702cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h. */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h. */
8708#include <$ac_header>
8709_ACEOF
8710if { (ac_try="$ac_cpp conftest.$ac_ext"
8711case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714esac
8715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8716$as_echo "$ac_try_echo") >&5
8717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } >/dev/null && {
8724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 }; then
8727 ac_header_preproc=yes
8728else
8729 $as_echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_header_preproc=no
8733fi
8734
8735rm -f conftest.err conftest.$ac_ext
8736{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8737$as_echo "$ac_header_preproc" >&6; }
8738
8739# So? What about this header?
8740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8741 yes:no: )
8742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8743$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8745$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8746 ac_header_preproc=yes
8747 ;;
8748 no:yes:* )
8749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8750$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8752$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8754$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8756$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8758$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8760$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8761
8762 ;;
8763esac
8764{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8765$as_echo_n "checking for $ac_header... " >&6; }
8766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8767 $as_echo_n "(cached) " >&6
8768else
8769 eval "$as_ac_Header=\$ac_header_preproc"
8770fi
8771ac_res=`eval 'as_val=${'$as_ac_Header'}
8772 $as_echo "$as_val"'`
8773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8774$as_echo "$ac_res" >&6; }
8775
8776fi
8777as_val=`eval 'as_val=${'$as_ac_Header'}
8778 $as_echo "$as_val"'`
8779 if test "x$as_val" = x""yes; then
8780 cat >>confdefs.h <<_ACEOF
8781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8782_ACEOF
8783
ad6254c5
AK
8784fi
8785
d911ec67
AK
8786done
8787
8788{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8789$as_echo_n "checking for working chown... " >&6; }
8790if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8791 $as_echo_n "(cached) " >&6
ad6254c5
AK
8792else
8793 if test "$cross_compiling" = yes; then
d911ec67 8794 ac_cv_func_chown_works=no
ad6254c5
AK
8795else
8796 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802$ac_includes_default
d911ec67 8803#include <fcntl.h>
ad6254c5
AK
8804
8805int
8806main ()
8807{
d911ec67
AK
8808 char *f = "conftest.chown";
8809 struct stat before, after;
8810
8811 if (creat (f, 0600) < 0)
8812 return 1;
8813 if (stat (f, &before) < 0)
8814 return 1;
8815 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8816 return 1;
8817 if (stat (f, &after) < 0)
8818 return 1;
8819 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8820
ad6254c5
AK
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825rm -f conftest$ac_exeext
7a197a62
AK
8826if { (ac_try="$ac_link"
8827case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830esac
ec6a6fbe
AK
8831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8832$as_echo "$ac_try_echo") >&5
7a197a62 8833 (eval "$ac_link") 2>&5
ad6254c5 8834 ac_status=$?
ec6a6fbe 8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8837 { (case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840esac
ec6a6fbe
AK
8841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8842$as_echo "$ac_try_echo") >&5
7a197a62 8843 (eval "$ac_try") 2>&5
ad6254c5 8844 ac_status=$?
ec6a6fbe 8845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8846 (exit $ac_status); }; }; then
d911ec67 8847 ac_cv_func_chown_works=yes
ad6254c5 8848else
ec6a6fbe
AK
8849 $as_echo "$as_me: program exited with status $ac_status" >&5
8850$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853( exit $ac_status )
d911ec67 8854ac_cv_func_chown_works=no
ad6254c5 8855fi
ec6a6fbe 8856rm -rf conftest.dSYM
7a197a62 8857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8858fi
7a197a62
AK
8859
8860
d911ec67
AK
8861rm -f conftest.chown
8862
ad6254c5 8863fi
d911ec67
AK
8864{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8865$as_echo "$ac_cv_func_chown_works" >&6; }
8866if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8867
8868cat >>confdefs.h <<\_ACEOF
d911ec67 8869#define HAVE_CHOWN 1
ad6254c5
AK
8870_ACEOF
8871
8872fi
8873
8874
7a197a62 8875for ac_header in vfork.h
ad6254c5 8876do
ec6a6fbe 8877as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8880$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8882 $as_echo_n "(cached) " >&6
ad6254c5 8883fi
ec6a6fbe
AK
8884ac_res=`eval 'as_val=${'$as_ac_Header'}
8885 $as_echo "$as_val"'`
8886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8887$as_echo "$ac_res" >&6; }
ad6254c5
AK
8888else
8889 # Is the header compilable?
ec6a6fbe
AK
8890{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8891$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8892cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8893/* confdefs.h. */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h. */
8898$ac_includes_default
8899#include <$ac_header>
8900_ACEOF
8901rm -f conftest.$ac_objext
7a197a62
AK
8902if { (ac_try="$ac_compile"
8903case "(($ac_try" in
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8906esac
ec6a6fbe
AK
8907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8908$as_echo "$ac_try_echo") >&5
7a197a62 8909 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8910 ac_status=$?
8a2fc586
AK
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
ec6a6fbe 8914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8919 ac_header_compiler=yes
8920else
ec6a6fbe 8921 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
7a197a62 8924 ac_header_compiler=no
ad6254c5 8925fi
7a197a62
AK
8926
8927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8928{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8929$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8930
8931# Is the header present?
ec6a6fbe
AK
8932{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8933$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8934cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8935/* confdefs.h. */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h. */
8940#include <$ac_header>
8941_ACEOF
7a197a62
AK
8942if { (ac_try="$ac_cpp conftest.$ac_ext"
8943case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946esac
ec6a6fbe
AK
8947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8948$as_echo "$ac_try_echo") >&5
7a197a62 8949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
ec6a6fbe 8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8955 (exit $ac_status); } >/dev/null && {
8956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 }; then
ad6254c5
AK
8959 ac_header_preproc=yes
8960else
ec6a6fbe 8961 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8962sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 ac_header_preproc=no
8965fi
7a197a62 8966
ad6254c5 8967rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8968{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8969$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8970
8971# So? What about this header?
8a2fc586
AK
8972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8973 yes:no: )
ec6a6fbe
AK
8974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8975$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8977$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8978 ac_header_preproc=yes
ad6254c5 8979 ;;
8a2fc586 8980 no:yes:* )
ec6a6fbe
AK
8981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8982$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8984$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8986$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8988$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8990$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8992$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8993
ad6254c5
AK
8994 ;;
8995esac
ec6a6fbe
AK
8996{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8997$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8999 $as_echo_n "(cached) " >&6
ad6254c5 9000else
8a2fc586 9001 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9002fi
ec6a6fbe
AK
9003ac_res=`eval 'as_val=${'$as_ac_Header'}
9004 $as_echo "$as_val"'`
9005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9006$as_echo "$ac_res" >&6; }
ad6254c5 9007
795ca3e5 9008fi
ec6a6fbe
AK
9009as_val=`eval 'as_val=${'$as_ac_Header'}
9010 $as_echo "$as_val"'`
9011 if test "x$as_val" = x""yes; then
ad6254c5 9012 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9013#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9014_ACEOF
9015
9016fi
9017
9018done
795ca3e5 9019
ad6254c5
AK
9020
9021
9022for ac_func in fork vfork
9023do
ec6a6fbe
AK
9024as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9025{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9026$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9027if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9028 $as_echo_n "(cached) " >&6
795ca3e5 9029else
ad6254c5 9030 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9031/* confdefs.h. */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
9035/* end confdefs.h. */
8a2fc586
AK
9036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9038#define $ac_func innocuous_$ac_func
9039
ad6254c5
AK
9040/* System header to define __stub macros and hopefully few prototypes,
9041 which can conflict with char $ac_func (); below.
9042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9043 <limits.h> exists even on freestanding compilers. */
8a2fc586 9044
ad6254c5
AK
9045#ifdef __STDC__
9046# include <limits.h>
9047#else
9048# include <assert.h>
795ca3e5 9049#endif
8a2fc586
AK
9050
9051#undef $ac_func
9052
7a197a62
AK
9053/* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
795ca3e5 9056#ifdef __cplusplus
ad6254c5 9057extern "C"
ad6254c5 9058#endif
ad6254c5
AK
9059char $ac_func ();
9060/* The GNU C library defines this for functions which it implements
9061 to always fail with ENOSYS. Some functions are actually named
9062 something starting with __ and the normal name is an alias. */
7a197a62 9063#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9064choke me
795ca3e5
AK
9065#endif
9066
ad6254c5
AK
9067int
9068main ()
9069{
7a197a62 9070return $ac_func ();
ad6254c5
AK
9071 ;
9072 return 0;
9073}
9074_ACEOF
9075rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9076if { (ac_try="$ac_link"
9077case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9080esac
ec6a6fbe
AK
9081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9082$as_echo "$ac_try_echo") >&5
7a197a62 9083 (eval "$ac_link") 2>conftest.er1
ad6254c5 9084 ac_status=$?
8a2fc586
AK
9085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
ec6a6fbe 9088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9089 (exit $ac_status); } && {
9090 test -z "$ac_c_werror_flag" ||
9091 test ! -s conftest.err
ec6a6fbe
AK
9092 } && test -s conftest$ac_exeext && {
9093 test "$cross_compiling" = yes ||
9094 $as_test_x conftest$ac_exeext
9095 }; then
ad6254c5 9096 eval "$as_ac_var=yes"
795ca3e5 9097else
ec6a6fbe 9098 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9099sed 's/^/| /' conftest.$ac_ext >&5
9100
7a197a62 9101 eval "$as_ac_var=no"
795ca3e5 9102fi
7a197a62 9103
ec6a6fbe 9104rm -rf conftest.dSYM
25fbec5b 9105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9106 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9107fi
ec6a6fbe
AK
9108ac_res=`eval 'as_val=${'$as_ac_var'}
9109 $as_echo "$as_val"'`
9110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9111$as_echo "$ac_res" >&6; }
9112as_val=`eval 'as_val=${'$as_ac_var'}
9113 $as_echo "$as_val"'`
9114 if test "x$as_val" = x""yes; then
ad6254c5 9115 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9116#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9117_ACEOF
9118
9119fi
9120done
9121
9122if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9123 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9124$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9125if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9126 $as_echo_n "(cached) " >&6
ad6254c5
AK
9127else
9128 if test "$cross_compiling" = yes; then
9129 ac_cv_func_fork_works=cross
9130else
9131 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9132/* confdefs.h. */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h. */
9137$ac_includes_default
9138int
9139main ()
9140{
9141
9142 /* By Ruediger Kuhlmann. */
9143 return fork () < 0;
9144
9145 ;
9146 return 0;
9147}
ad6254c5
AK
9148_ACEOF
9149rm -f conftest$ac_exeext
7a197a62
AK
9150if { (ac_try="$ac_link"
9151case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154esac
ec6a6fbe
AK
9155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9156$as_echo "$ac_try_echo") >&5
7a197a62 9157 (eval "$ac_link") 2>&5
ad6254c5 9158 ac_status=$?
ec6a6fbe 9159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
ec6a6fbe
AK
9165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9166$as_echo "$ac_try_echo") >&5
7a197a62 9167 (eval "$ac_try") 2>&5
ad6254c5 9168 ac_status=$?
ec6a6fbe 9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9170 (exit $ac_status); }; }; then
9171 ac_cv_func_fork_works=yes
9172else
ec6a6fbe
AK
9173 $as_echo "$as_me: program exited with status $ac_status" >&5
9174$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9175sed 's/^/| /' conftest.$ac_ext >&5
9176
9177( exit $ac_status )
9178ac_cv_func_fork_works=no
9179fi
ec6a6fbe 9180rm -rf conftest.dSYM
7a197a62 9181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9182fi
7a197a62
AK
9183
9184
ad6254c5 9185fi
ec6a6fbe
AK
9186{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9187$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9188
9189else
9190 ac_cv_func_fork_works=$ac_cv_func_fork
9191fi
9192if test "x$ac_cv_func_fork_works" = xcross; then
9193 case $host in
9194 *-*-amigaos* | *-*-msdosdjgpp*)
9195 # Override, as these systems have only a dummy fork() stub
9196 ac_cv_func_fork_works=no
9197 ;;
9198 *)
9199 ac_cv_func_fork_works=yes
9200 ;;
9201 esac
ec6a6fbe
AK
9202 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9203$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9204fi
9205ac_cv_func_vfork_works=$ac_cv_func_vfork
9206if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9207 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9208$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9209if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9210 $as_echo_n "(cached) " >&6
ad6254c5
AK
9211else
9212 if test "$cross_compiling" = yes; then
9213 ac_cv_func_vfork_works=cross
9214else
9215 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221/* Thanks to Paul Eggert for this test. */
7a197a62 9222$ac_includes_default
ad6254c5 9223#include <sys/wait.h>
25fbec5b 9224#ifdef HAVE_VFORK_H
ad6254c5
AK
9225# include <vfork.h>
9226#endif
9227/* On some sparc systems, changes by the child to local and incoming
9228 argument registers are propagated back to the parent. The compiler
9229 is told about this with #include <vfork.h>, but some compilers
9230 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9231 static variable whose address is put into a register that is
9232 clobbered by the vfork. */
9233static void
9234#ifdef __cplusplus
9235sparc_address_test (int arg)
9236# else
9237sparc_address_test (arg) int arg;
9238#endif
9239{
9240 static pid_t child;
9241 if (!child) {
9242 child = vfork ();
9243 if (child < 0) {
9244 perror ("vfork");
9245 _exit(2);
9246 }
9247 if (!child) {
9248 arg = getpid();
9249 write(-1, "", 0);
9250 _exit (arg);
9251 }
9252 }
9253}
9254
9255int
9256main ()
9257{
9258 pid_t parent = getpid ();
9259 pid_t child;
9260
9261 sparc_address_test (0);
9262
9263 child = vfork ();
9264
9265 if (child == 0) {
9266 /* Here is another test for sparc vfork register problems. This
9267 test uses lots of local variables, at least as many local
9268 variables as main has allocated so far including compiler
9269 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9270 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9271 reuse the register of parent for one of the local variables,
9272 since it will think that parent can't possibly be used any more
9273 in this routine. Assigning to the local variable will thus
9274 munge parent in the parent process. */
9275 pid_t
9276 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9277 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9278 /* Convince the compiler that p..p7 are live; otherwise, it might
9279 use the same hardware register for all 8 local variables. */
9280 if (p != p1 || p != p2 || p != p3 || p != p4
9281 || p != p5 || p != p6 || p != p7)
9282 _exit(1);
9283
9284 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9285 from child file descriptors. If the child closes a descriptor
9286 before it execs or exits, this munges the parent's descriptor
9287 as well. Test for this by closing stdout in the child. */
9288 _exit(close(fileno(stdout)) != 0);
9289 } else {
9290 int status;
9291 struct stat st;
9292
9293 while (wait(&status) != child)
9294 ;
7a197a62 9295 return (
ad6254c5
AK
9296 /* Was there some problem with vforking? */
9297 child < 0
9298
9299 /* Did the child fail? (This shouldn't happen.) */
9300 || status
9301
9302 /* Did the vfork/compiler bug occur? */
9303 || parent != getpid()
9304
9305 /* Did the file descriptor bug occur? */
9306 || fstat(fileno(stdout), &st) != 0
9307 );
9308 }
9309}
9310_ACEOF
9311rm -f conftest$ac_exeext
7a197a62
AK
9312if { (ac_try="$ac_link"
9313case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316esac
ec6a6fbe
AK
9317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9318$as_echo "$ac_try_echo") >&5
7a197a62 9319 (eval "$ac_link") 2>&5
ad6254c5 9320 ac_status=$?
ec6a6fbe 9321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9323 { (case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326esac
ec6a6fbe
AK
9327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9328$as_echo "$ac_try_echo") >&5
7a197a62 9329 (eval "$ac_try") 2>&5
ad6254c5 9330 ac_status=$?
ec6a6fbe 9331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9332 (exit $ac_status); }; }; then
9333 ac_cv_func_vfork_works=yes
9334else
ec6a6fbe
AK
9335 $as_echo "$as_me: program exited with status $ac_status" >&5
9336$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9337sed 's/^/| /' conftest.$ac_ext >&5
9338
9339( exit $ac_status )
9340ac_cv_func_vfork_works=no
9341fi
ec6a6fbe 9342rm -rf conftest.dSYM
7a197a62 9343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9344fi
7a197a62
AK
9345
9346
ad6254c5 9347fi
ec6a6fbe
AK
9348{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9349$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9350
9351fi;
9352if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9353 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9354 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9355$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9356fi
9357
9358if test "x$ac_cv_func_vfork_works" = xyes; then
9359
9360cat >>confdefs.h <<\_ACEOF
9361#define HAVE_WORKING_VFORK 1
9362_ACEOF
9363
9364else
9365
9366cat >>confdefs.h <<\_ACEOF
9367#define vfork fork
9368_ACEOF
9369
9370fi
9371if test "x$ac_cv_func_fork_works" = xyes; then
9372
9373cat >>confdefs.h <<\_ACEOF
9374#define HAVE_WORKING_FORK 1
9375_ACEOF
9376
9377fi
9378
ec6a6fbe
AK
9379{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9380$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9381if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9382 $as_echo_n "(cached) " >&6
ad6254c5
AK
9383else
9384 rm -f conftest.sym conftest.file
9385echo >conftest.file
9386if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9387 if test "$cross_compiling" = yes; then
9388 ac_cv_func_lstat_dereferences_slashed_symlink=no
9389else
9390 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9391/* confdefs.h. */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h. */
9396$ac_includes_default
9397int
9398main ()
9399{
9400struct stat sbuf;
9401 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9402 That is better in the sense that it means we will not
9403 have to compile and use the lstat wrapper. */
7a197a62 9404 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9405 ;
9406 return 0;
9407}
9408_ACEOF
9409rm -f conftest$ac_exeext
7a197a62
AK
9410if { (ac_try="$ac_link"
9411case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9414esac
ec6a6fbe
AK
9415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9416$as_echo "$ac_try_echo") >&5
7a197a62 9417 (eval "$ac_link") 2>&5
ad6254c5 9418 ac_status=$?
ec6a6fbe 9419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9421 { (case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424esac
ec6a6fbe
AK
9425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9426$as_echo "$ac_try_echo") >&5
7a197a62 9427 (eval "$ac_try") 2>&5
ad6254c5 9428 ac_status=$?
ec6a6fbe 9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9430 (exit $ac_status); }; }; then
9431 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9432else
ec6a6fbe
AK
9433 $as_echo "$as_me: program exited with status $ac_status" >&5
9434$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9435sed 's/^/| /' conftest.$ac_ext >&5
9436
9437( exit $ac_status )
9438ac_cv_func_lstat_dereferences_slashed_symlink=no
9439fi
ec6a6fbe 9440rm -rf conftest.dSYM
7a197a62 9441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9442fi
7a197a62
AK
9443
9444
ad6254c5
AK
9445else
9446 # If the `ln -s' command failed, then we probably don't even
9447 # have an lstat function.
9448 ac_cv_func_lstat_dereferences_slashed_symlink=no
9449fi
9450rm -f conftest.sym conftest.file
9451
9452fi
ec6a6fbe
AK
9453{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9454$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9455
9456test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9457
9458cat >>confdefs.h <<_ACEOF
9459#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9460_ACEOF
9461
9462
9463if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9464 case " $LIBOBJS " in
8a2fc586 9465 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9466 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9467 ;;
8a2fc586
AK
9468esac
9469
ad6254c5
AK
9470fi
9471
ec6a6fbe
AK
9472{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9473$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9474if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9475 $as_echo_n "(cached) " >&6
ad6254c5
AK
9476else
9477 if test "$cross_compiling" = yes; then
9478 ac_cv_func_lstat_empty_string_bug=yes
9479else
9480 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9481/* confdefs.h. */
9482_ACEOF
9483cat confdefs.h >>conftest.$ac_ext
9484cat >>conftest.$ac_ext <<_ACEOF
9485/* end confdefs.h. */
9486$ac_includes_default
9487int
9488main ()
9489{
9490struct stat sbuf;
7a197a62 9491 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496rm -f conftest$ac_exeext
7a197a62
AK
9497if { (ac_try="$ac_link"
9498case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501esac
ec6a6fbe
AK
9502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9503$as_echo "$ac_try_echo") >&5
7a197a62 9504 (eval "$ac_link") 2>&5
ad6254c5 9505 ac_status=$?
ec6a6fbe 9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9508 { (case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511esac
ec6a6fbe
AK
9512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9513$as_echo "$ac_try_echo") >&5
7a197a62 9514 (eval "$ac_try") 2>&5
ad6254c5 9515 ac_status=$?
ec6a6fbe 9516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9517 (exit $ac_status); }; }; then
7a197a62 9518 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9519else
ec6a6fbe
AK
9520 $as_echo "$as_me: program exited with status $ac_status" >&5
9521$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524( exit $ac_status )
7a197a62 9525ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9526fi
ec6a6fbe 9527rm -rf conftest.dSYM
7a197a62 9528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9529fi
7a197a62
AK
9530
9531
ad6254c5 9532fi
ec6a6fbe
AK
9533{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9534$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9535if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9536 case " $LIBOBJS " in
8a2fc586 9537 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9538 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9539 ;;
8a2fc586
AK
9540esac
9541
ad6254c5
AK
9542
9543cat >>confdefs.h <<_ACEOF
9544#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9545_ACEOF
9546
9547fi
9548
9549
9550for ac_header in stdlib.h
9551do
ec6a6fbe 9552as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9554 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9555$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9557 $as_echo_n "(cached) " >&6
ad6254c5 9558fi
ec6a6fbe
AK
9559ac_res=`eval 'as_val=${'$as_ac_Header'}
9560 $as_echo "$as_val"'`
9561 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9562$as_echo "$ac_res" >&6; }
ad6254c5
AK
9563else
9564 # Is the header compilable?
ec6a6fbe
AK
9565{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9566$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9567cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9568/* confdefs.h. */
9569_ACEOF
9570cat confdefs.h >>conftest.$ac_ext
9571cat >>conftest.$ac_ext <<_ACEOF
9572/* end confdefs.h. */
9573$ac_includes_default
9574#include <$ac_header>
9575_ACEOF
9576rm -f conftest.$ac_objext
7a197a62
AK
9577if { (ac_try="$ac_compile"
9578case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581esac
ec6a6fbe
AK
9582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583$as_echo "$ac_try_echo") >&5
7a197a62 9584 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9585 ac_status=$?
8a2fc586
AK
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
ec6a6fbe 9589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9594 ac_header_compiler=yes
9595else
ec6a6fbe 9596 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9597sed 's/^/| /' conftest.$ac_ext >&5
9598
7a197a62 9599 ac_header_compiler=no
ad6254c5 9600fi
7a197a62
AK
9601
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9603{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9604$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9605
9606# Is the header present?
ec6a6fbe
AK
9607{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9608$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9609cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615#include <$ac_header>
9616_ACEOF
7a197a62
AK
9617if { (ac_try="$ac_cpp conftest.$ac_ext"
9618case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
ec6a6fbe
AK
9622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9623$as_echo "$ac_try_echo") >&5
7a197a62 9624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
ec6a6fbe 9629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9630 (exit $ac_status); } >/dev/null && {
9631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 }; then
ad6254c5
AK
9634 ac_header_preproc=yes
9635else
ec6a6fbe 9636 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 ac_header_preproc=no
9640fi
7a197a62 9641
ad6254c5 9642rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9643{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9644$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9645
9646# So? What about this header?
8a2fc586
AK
9647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9648 yes:no: )
ec6a6fbe
AK
9649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9650$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9652$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9653 ac_header_preproc=yes
ad6254c5 9654 ;;
8a2fc586 9655 no:yes:* )
ec6a6fbe
AK
9656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9657$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9659$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9661$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9663$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9665$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9667$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9668
ad6254c5
AK
9669 ;;
9670esac
ec6a6fbe
AK
9671{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9672$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9674 $as_echo_n "(cached) " >&6
ad6254c5 9675else
8a2fc586 9676 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9677fi
ec6a6fbe
AK
9678ac_res=`eval 'as_val=${'$as_ac_Header'}
9679 $as_echo "$as_val"'`
9680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9681$as_echo "$ac_res" >&6; }
ad6254c5
AK
9682
9683fi
ec6a6fbe
AK
9684as_val=`eval 'as_val=${'$as_ac_Header'}
9685 $as_echo "$as_val"'`
9686 if test "x$as_val" = x""yes; then
ad6254c5 9687 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9689_ACEOF
9690
9691fi
9692
9693done
9694
ec6a6fbe
AK
9695{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9696$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9697if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9698 $as_echo_n "(cached) " >&6
ad6254c5
AK
9699else
9700 if test "$cross_compiling" = yes; then
9701 ac_cv_func_malloc_0_nonnull=no
9702else
9703 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9704/* confdefs.h. */
9705_ACEOF
9706cat confdefs.h >>conftest.$ac_ext
9707cat >>conftest.$ac_ext <<_ACEOF
9708/* end confdefs.h. */
25fbec5b 9709#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9710# include <stdlib.h>
9711#else
9712char *malloc ();
9713#endif
9714
9715int
9716main ()
9717{
7a197a62 9718return ! malloc (0);
ad6254c5
AK
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723rm -f conftest$ac_exeext
7a197a62
AK
9724if { (ac_try="$ac_link"
9725case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728esac
ec6a6fbe
AK
9729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730$as_echo "$ac_try_echo") >&5
7a197a62 9731 (eval "$ac_link") 2>&5
ad6254c5 9732 ac_status=$?
ec6a6fbe 9733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
ec6a6fbe
AK
9739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9740$as_echo "$ac_try_echo") >&5
7a197a62 9741 (eval "$ac_try") 2>&5
ad6254c5 9742 ac_status=$?
ec6a6fbe 9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9744 (exit $ac_status); }; }; then
9745 ac_cv_func_malloc_0_nonnull=yes
9746else
ec6a6fbe
AK
9747 $as_echo "$as_me: program exited with status $ac_status" >&5
9748$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
9751( exit $ac_status )
9752ac_cv_func_malloc_0_nonnull=no
9753fi
ec6a6fbe 9754rm -rf conftest.dSYM
7a197a62 9755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9756fi
7a197a62
AK
9757
9758
ad6254c5 9759fi
ec6a6fbe
AK
9760{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9761$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9762if test $ac_cv_func_malloc_0_nonnull = yes; then
9763
9764cat >>confdefs.h <<\_ACEOF
9765#define HAVE_MALLOC 1
9766_ACEOF
9767
9768else
9769 cat >>confdefs.h <<\_ACEOF
9770#define HAVE_MALLOC 0
9771_ACEOF
9772
7a197a62 9773 case " $LIBOBJS " in
8a2fc586 9774 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9775 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9776 ;;
8a2fc586
AK
9777esac
9778
ad6254c5
AK
9779
9780cat >>confdefs.h <<\_ACEOF
9781#define malloc rpl_malloc
9782_ACEOF
9783
9784fi
9785
9786
9787
ec6a6fbe
AK
9788{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9789$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9790if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9791 $as_echo_n "(cached) " >&6
ad6254c5
AK
9792else
9793 if test "$cross_compiling" = yes; then
9794 ac_cv_func_memcmp_working=no
9795else
9796 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
9801/* end confdefs.h. */
8a2fc586 9802$ac_includes_default
ad6254c5
AK
9803int
9804main ()
9805{
9806
9807 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9808 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9809 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9810 return 1;
ad6254c5
AK
9811
9812 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9813 or more and with at least one buffer not starting on a 4-byte boundary.
9814 William Lewis provided this test program. */
9815 {
9816 char foo[21];
9817 char bar[21];
9818 int i;
9819 for (i = 0; i < 4; i++)
9820 {
8a2fc586
AK
9821 char *a = foo + i;
9822 char *b = bar + i;
9823 strcpy (a, "--------01111111");
9824 strcpy (b, "--------10000000");
9825 if (memcmp (a, b, 16) >= 0)
7a197a62 9826 return 1;
ad6254c5 9827 }
7a197a62 9828 return 0;
ad6254c5
AK
9829 }
9830
9831 ;
9832 return 0;
9833}
9834_ACEOF
9835rm -f conftest$ac_exeext
7a197a62
AK
9836if { (ac_try="$ac_link"
9837case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
ec6a6fbe
AK
9841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842$as_echo "$ac_try_echo") >&5
7a197a62 9843 (eval "$ac_link") 2>&5
ad6254c5 9844 ac_status=$?
ec6a6fbe 9845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9847 { (case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9850esac
ec6a6fbe
AK
9851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9852$as_echo "$ac_try_echo") >&5
7a197a62 9853 (eval "$ac_try") 2>&5
ad6254c5 9854 ac_status=$?
ec6a6fbe 9855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9856 (exit $ac_status); }; }; then
9857 ac_cv_func_memcmp_working=yes
9858else
ec6a6fbe
AK
9859 $as_echo "$as_me: program exited with status $ac_status" >&5
9860$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
9863( exit $ac_status )
9864ac_cv_func_memcmp_working=no
9865fi
ec6a6fbe 9866rm -rf conftest.dSYM
7a197a62 9867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9868fi
7a197a62
AK
9869
9870
ad6254c5 9871fi
ec6a6fbe
AK
9872{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9873$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9874test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9875 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9876 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9877 ;;
8a2fc586
AK
9878esac
9879
ad6254c5
AK
9880
9881
9882
9883for ac_header in stdlib.h unistd.h
9884do
ec6a6fbe 9885as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9888$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9890 $as_echo_n "(cached) " >&6
ad6254c5 9891fi
ec6a6fbe
AK
9892ac_res=`eval 'as_val=${'$as_ac_Header'}
9893 $as_echo "$as_val"'`
9894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9895$as_echo "$ac_res" >&6; }
ad6254c5
AK
9896else
9897 # Is the header compilable?
ec6a6fbe
AK
9898{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9899$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9900cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
9906$ac_includes_default
9907#include <$ac_header>
9908_ACEOF
9909rm -f conftest.$ac_objext
7a197a62
AK
9910if { (ac_try="$ac_compile"
9911case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9914esac
ec6a6fbe
AK
9915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9916$as_echo "$ac_try_echo") >&5
7a197a62 9917 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9918 ac_status=$?
8a2fc586
AK
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
ec6a6fbe 9922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9923 (exit $ac_status); } && {
9924 test -z "$ac_c_werror_flag" ||
9925 test ! -s conftest.err
9926 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9927 ac_header_compiler=yes
9928else
ec6a6fbe 9929 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
7a197a62 9932 ac_header_compiler=no
ad6254c5 9933fi
7a197a62
AK
9934
9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9936{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9937$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9938
9939# Is the header present?
ec6a6fbe
AK
9940{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9941$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9942cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
9948#include <$ac_header>
9949_ACEOF
7a197a62
AK
9950if { (ac_try="$ac_cpp conftest.$ac_ext"
9951case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954esac
ec6a6fbe
AK
9955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9956$as_echo "$ac_try_echo") >&5
7a197a62 9957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
ec6a6fbe 9962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9963 (exit $ac_status); } >/dev/null && {
9964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 }; then
ad6254c5
AK
9967 ac_header_preproc=yes
9968else
ec6a6fbe 9969 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_header_preproc=no
9973fi
7a197a62 9974
ad6254c5 9975rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9976{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9977$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9978
9979# So? What about this header?
8a2fc586
AK
9980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9981 yes:no: )
ec6a6fbe
AK
9982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9983$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9985$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9986 ac_header_preproc=yes
ad6254c5 9987 ;;
8a2fc586 9988 no:yes:* )
ec6a6fbe
AK
9989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9990$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9992$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9994$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9996$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9998$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10000$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10001
ad6254c5
AK
10002 ;;
10003esac
ec6a6fbe
AK
10004{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10005$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10007 $as_echo_n "(cached) " >&6
ad6254c5 10008else
8a2fc586 10009 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10010fi
ec6a6fbe
AK
10011ac_res=`eval 'as_val=${'$as_ac_Header'}
10012 $as_echo "$as_val"'`
10013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10014$as_echo "$ac_res" >&6; }
ad6254c5
AK
10015
10016fi
ec6a6fbe
AK
10017as_val=`eval 'as_val=${'$as_ac_Header'}
10018 $as_echo "$as_val"'`
10019 if test "x$as_val" = x""yes; then
ad6254c5 10020 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10022_ACEOF
10023
10024fi
10025
10026done
10027
10028
10029for ac_func in getpagesize
10030do
ec6a6fbe
AK
10031as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10032{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10033$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10035 $as_echo_n "(cached) " >&6
ad6254c5
AK
10036else
10037 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10038/* confdefs.h. */
10039_ACEOF
10040cat confdefs.h >>conftest.$ac_ext
10041cat >>conftest.$ac_ext <<_ACEOF
10042/* end confdefs.h. */
8a2fc586
AK
10043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10045#define $ac_func innocuous_$ac_func
10046
ad6254c5
AK
10047/* System header to define __stub macros and hopefully few prototypes,
10048 which can conflict with char $ac_func (); below.
10049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10050 <limits.h> exists even on freestanding compilers. */
8a2fc586 10051
ad6254c5
AK
10052#ifdef __STDC__
10053# include <limits.h>
10054#else
10055# include <assert.h>
10056#endif
8a2fc586
AK
10057
10058#undef $ac_func
10059
7a197a62
AK
10060/* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10063#ifdef __cplusplus
10064extern "C"
ad6254c5 10065#endif
ad6254c5
AK
10066char $ac_func ();
10067/* The GNU C library defines this for functions which it implements
10068 to always fail with ENOSYS. Some functions are actually named
10069 something starting with __ and the normal name is an alias. */
7a197a62 10070#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10071choke me
ad6254c5
AK
10072#endif
10073
10074int
10075main ()
10076{
7a197a62 10077return $ac_func ();
ad6254c5
AK
10078 ;
10079 return 0;
10080}
10081_ACEOF
10082rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10083if { (ac_try="$ac_link"
10084case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10087esac
ec6a6fbe
AK
10088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10089$as_echo "$ac_try_echo") >&5
7a197a62 10090 (eval "$ac_link") 2>conftest.er1
ad6254c5 10091 ac_status=$?
8a2fc586
AK
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
ec6a6fbe 10095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10096 (exit $ac_status); } && {
10097 test -z "$ac_c_werror_flag" ||
10098 test ! -s conftest.err
ec6a6fbe
AK
10099 } && test -s conftest$ac_exeext && {
10100 test "$cross_compiling" = yes ||
10101 $as_test_x conftest$ac_exeext
10102 }; then
ad6254c5
AK
10103 eval "$as_ac_var=yes"
10104else
ec6a6fbe 10105 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
7a197a62 10108 eval "$as_ac_var=no"
ad6254c5 10109fi
7a197a62 10110
ec6a6fbe 10111rm -rf conftest.dSYM
25fbec5b 10112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10113 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10114fi
ec6a6fbe
AK
10115ac_res=`eval 'as_val=${'$as_ac_var'}
10116 $as_echo "$as_val"'`
10117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10118$as_echo "$ac_res" >&6; }
10119as_val=`eval 'as_val=${'$as_ac_var'}
10120 $as_echo "$as_val"'`
10121 if test "x$as_val" = x""yes; then
ad6254c5 10122 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10123#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10124_ACEOF
10125
10126fi
10127done
10128
ec6a6fbe
AK
10129{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10130$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10131if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10132 $as_echo_n "(cached) " >&6
ad6254c5
AK
10133else
10134 if test "$cross_compiling" = yes; then
10135 ac_cv_func_mmap_fixed_mapped=no
10136else
10137 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10138/* confdefs.h. */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
10142/* end confdefs.h. */
10143$ac_includes_default
10144/* malloc might have been renamed as rpl_malloc. */
10145#undef malloc
10146
10147/* Thanks to Mike Haertel and Jim Avera for this test.
10148 Here is a matrix of mmap possibilities:
10149 mmap private not fixed
10150 mmap private fixed at somewhere currently unmapped
10151 mmap private fixed at somewhere already mapped
10152 mmap shared not fixed
10153 mmap shared fixed at somewhere currently unmapped
10154 mmap shared fixed at somewhere already mapped
10155 For private mappings, we should verify that changes cannot be read()
10156 back from the file, nor mmap's back from the file at a different
10157 address. (There have been systems where private was not correctly
10158 implemented like the infamous i386 svr4.0, and systems where the
10159 VM page cache was not coherent with the file system buffer cache
10160 like early versions of FreeBSD and possibly contemporary NetBSD.)
10161 For shared mappings, we should conversely verify that changes get
10162 propagated back to all the places they're supposed to be.
10163
10164 Grep wants private fixed already mapped.
10165 The main things grep needs to know about mmap are:
10166 * does it exist and is it safe to write into the mmap'd area
10167 * how to use it (BSD variants) */
10168
10169#include <fcntl.h>
10170#include <sys/mman.h>
10171
25fbec5b 10172#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10173char *malloc ();
10174#endif
10175
10176/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10177#ifndef HAVE_GETPAGESIZE
ad6254c5 10178/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10179# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10180# define HAVE_SYS_PARAM_H 1
10181# endif
10182
10183# ifdef _SC_PAGESIZE
10184# define getpagesize() sysconf(_SC_PAGESIZE)
10185# else /* no _SC_PAGESIZE */
25fbec5b 10186# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10187# include <sys/param.h>
10188# ifdef EXEC_PAGESIZE
10189# define getpagesize() EXEC_PAGESIZE
10190# else /* no EXEC_PAGESIZE */
10191# ifdef NBPG
10192# define getpagesize() NBPG * CLSIZE
10193# ifndef CLSIZE
10194# define CLSIZE 1
10195# endif /* no CLSIZE */
10196# else /* no NBPG */
10197# ifdef NBPC
10198# define getpagesize() NBPC
10199# else /* no NBPC */
10200# ifdef PAGESIZE
10201# define getpagesize() PAGESIZE
10202# endif /* PAGESIZE */
10203# endif /* no NBPC */
10204# endif /* no NBPG */
10205# endif /* no EXEC_PAGESIZE */
10206# else /* no HAVE_SYS_PARAM_H */
10207# define getpagesize() 8192 /* punt totally */
10208# endif /* no HAVE_SYS_PARAM_H */
10209# endif /* no _SC_PAGESIZE */
10210
10211#endif /* no HAVE_GETPAGESIZE */
10212
10213int
10214main ()
10215{
10216 char *data, *data2, *data3;
10217 int i, pagesize;
10218 int fd;
10219
10220 pagesize = getpagesize ();
10221
10222 /* First, make a file with some known garbage in it. */
10223 data = (char *) malloc (pagesize);
10224 if (!data)
7a197a62 10225 return 1;
ad6254c5
AK
10226 for (i = 0; i < pagesize; ++i)
10227 *(data + i) = rand ();
10228 umask (0);
10229 fd = creat ("conftest.mmap", 0600);
10230 if (fd < 0)
7a197a62 10231 return 1;
ad6254c5 10232 if (write (fd, data, pagesize) != pagesize)
7a197a62 10233 return 1;
ad6254c5
AK
10234 close (fd);
10235
10236 /* Next, try to mmap the file at a fixed address which already has
10237 something else allocated at it. If we can, also make sure that
10238 we see the same garbage. */
10239 fd = open ("conftest.mmap", O_RDWR);
10240 if (fd < 0)
7a197a62 10241 return 1;
ad6254c5
AK
10242 data2 = (char *) malloc (2 * pagesize);
10243 if (!data2)
7a197a62
AK
10244 return 1;
10245 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10246 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10247 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10248 return 1;
ad6254c5
AK
10249 for (i = 0; i < pagesize; ++i)
10250 if (*(data + i) != *(data2 + i))
7a197a62 10251 return 1;
ad6254c5 10252
d911ec67
AK
10253 /* Finally, make sure that changes to the mapped area do not
10254 percolate back to the file as seen by read(). (This is a bug on
10255 some variants of i386 svr4.0.) */
10256 for (i = 0; i < pagesize; ++i)
10257 *(data2 + i) = *(data2 + i) + 1;
10258 data3 = (char *) malloc (pagesize);
10259 if (!data3)
10260 return 1;
10261 if (read (fd, data3, pagesize) != pagesize)
10262 return 1;
10263 for (i = 0; i < pagesize; ++i)
10264 if (*(data + i) != *(data3 + i))
10265 return 1;
10266 close (fd);
10267 return 0;
10268}
10269_ACEOF
10270rm -f conftest$ac_exeext
10271if { (ac_try="$ac_link"
10272case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10277$as_echo "$ac_try_echo") >&5
10278 (eval "$ac_link") 2>&5
10279 ac_status=$?
10280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10287$as_echo "$ac_try_echo") >&5
10288 (eval "$ac_try") 2>&5
10289 ac_status=$?
10290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_func_mmap_fixed_mapped=yes
10293else
10294 $as_echo "$as_me: program exited with status $ac_status" >&5
10295$as_echo "$as_me: failed program was:" >&5
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
10298( exit $ac_status )
10299ac_cv_func_mmap_fixed_mapped=no
10300fi
10301rm -rf conftest.dSYM
10302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10303fi
10304
10305
10306fi
10307{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10308$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10309if test $ac_cv_func_mmap_fixed_mapped = yes; then
10310
10311cat >>confdefs.h <<\_ACEOF
10312#define HAVE_MMAP 1
10313_ACEOF
10314
10315fi
10316rm -f conftest.mmap
10317
10318
10319for ac_header in stdlib.h
10320do
10321as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10324$as_echo_n "checking for $ac_header... " >&6; }
10325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10326 $as_echo_n "(cached) " >&6
10327fi
10328ac_res=`eval 'as_val=${'$as_ac_Header'}
10329 $as_echo "$as_val"'`
10330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10331$as_echo "$ac_res" >&6; }
10332else
10333 # Is the header compilable?
10334{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10335$as_echo_n "checking $ac_header usability... " >&6; }
10336cat >conftest.$ac_ext <<_ACEOF
10337/* confdefs.h. */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h. */
10342$ac_includes_default
10343#include <$ac_header>
10344_ACEOF
10345rm -f conftest.$ac_objext
10346if { (ac_try="$ac_compile"
10347case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350esac
10351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10352$as_echo "$ac_try_echo") >&5
10353 (eval "$ac_compile") 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest.$ac_objext; then
10363 ac_header_compiler=yes
10364else
10365 $as_echo "$as_me: failed program was:" >&5
10366sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 ac_header_compiler=no
10369fi
10370
10371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10373$as_echo "$ac_header_compiler" >&6; }
10374
10375# Is the header present?
10376{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10377$as_echo_n "checking $ac_header presence... " >&6; }
10378cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h. */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h. */
10384#include <$ac_header>
10385_ACEOF
10386if { (ac_try="$ac_cpp conftest.$ac_ext"
10387case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390esac
10391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392$as_echo "$ac_try_echo") >&5
10393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } >/dev/null && {
10400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 }; then
10403 ac_header_preproc=yes
10404else
10405 $as_echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 ac_header_preproc=no
10409fi
10410
10411rm -f conftest.err conftest.$ac_ext
10412{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10413$as_echo "$ac_header_preproc" >&6; }
10414
10415# So? What about this header?
10416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10417 yes:no: )
10418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10419$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10421$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10422 ac_header_preproc=yes
10423 ;;
10424 no:yes:* )
10425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10426$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10428$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10430$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10432$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10434$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10436$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10437
10438 ;;
10439esac
10440{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10441$as_echo_n "checking for $ac_header... " >&6; }
10442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10443 $as_echo_n "(cached) " >&6
10444else
10445 eval "$as_ac_Header=\$ac_header_preproc"
10446fi
10447ac_res=`eval 'as_val=${'$as_ac_Header'}
10448 $as_echo "$as_val"'`
10449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10450$as_echo "$ac_res" >&6; }
10451
10452fi
10453as_val=`eval 'as_val=${'$as_ac_Header'}
10454 $as_echo "$as_val"'`
10455 if test "x$as_val" = x""yes; then
10456 cat >>confdefs.h <<_ACEOF
10457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10458_ACEOF
10459
10460fi
10461
10462done
10463
10464{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10465$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10466if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10467 $as_echo_n "(cached) " >&6
10468else
10469 if test "$cross_compiling" = yes; then
10470 ac_cv_func_realloc_0_nonnull=no
10471else
10472 cat >conftest.$ac_ext <<_ACEOF
10473/* confdefs.h. */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h. */
10478#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10479# include <stdlib.h>
10480#else
10481char *realloc ();
10482#endif
10483
10484int
10485main ()
10486{
10487return ! realloc (0, 0);
10488 ;
7a197a62 10489 return 0;
ad6254c5
AK
10490}
10491_ACEOF
10492rm -f conftest$ac_exeext
7a197a62
AK
10493if { (ac_try="$ac_link"
10494case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497esac
ec6a6fbe
AK
10498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10499$as_echo "$ac_try_echo") >&5
7a197a62 10500 (eval "$ac_link") 2>&5
ad6254c5 10501 ac_status=$?
ec6a6fbe 10502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10504 { (case "(($ac_try" in
10505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506 *) ac_try_echo=$ac_try;;
10507esac
ec6a6fbe
AK
10508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10509$as_echo "$ac_try_echo") >&5
7a197a62 10510 (eval "$ac_try") 2>&5
ad6254c5 10511 ac_status=$?
ec6a6fbe 10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10513 (exit $ac_status); }; }; then
d911ec67 10514 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10515else
ec6a6fbe
AK
10516 $as_echo "$as_me: program exited with status $ac_status" >&5
10517$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520( exit $ac_status )
d911ec67 10521ac_cv_func_realloc_0_nonnull=no
ad6254c5 10522fi
ec6a6fbe 10523rm -rf conftest.dSYM
7a197a62 10524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10525fi
7a197a62
AK
10526
10527
ad6254c5 10528fi
d911ec67
AK
10529{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10530$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10531if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10532
10533cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10534#define HAVE_REALLOC 1
10535_ACEOF
10536
10537else
10538 cat >>confdefs.h <<\_ACEOF
10539#define HAVE_REALLOC 0
10540_ACEOF
10541
10542 case " $LIBOBJS " in
10543 *" realloc.$ac_objext "* ) ;;
10544 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10545 ;;
10546esac
10547
10548
10549cat >>confdefs.h <<\_ACEOF
10550#define realloc rpl_realloc
ad6254c5
AK
10551_ACEOF
10552
10553fi
d911ec67
AK
10554
10555
ad6254c5 10556
ec6a6fbe
AK
10557{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10558$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10559if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10560 $as_echo_n "(cached) " >&6
ad6254c5
AK
10561else
10562 if test "$cross_compiling" = yes; then
10563 ac_cv_func_stat_empty_string_bug=yes
10564else
10565 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571$ac_includes_default
10572int
10573main ()
10574{
10575struct stat sbuf;
7a197a62 10576 return stat ("", &sbuf) == 0;
ad6254c5
AK
10577 ;
10578 return 0;
10579}
10580_ACEOF
10581rm -f conftest$ac_exeext
7a197a62
AK
10582if { (ac_try="$ac_link"
10583case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
ec6a6fbe
AK
10587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588$as_echo "$ac_try_echo") >&5
7a197a62 10589 (eval "$ac_link") 2>&5
ad6254c5 10590 ac_status=$?
ec6a6fbe 10591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596esac
ec6a6fbe
AK
10597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10598$as_echo "$ac_try_echo") >&5
7a197a62 10599 (eval "$ac_try") 2>&5
ad6254c5 10600 ac_status=$?
ec6a6fbe 10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10602 (exit $ac_status); }; }; then
7a197a62 10603 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10604else
ec6a6fbe
AK
10605 $as_echo "$as_me: program exited with status $ac_status" >&5
10606$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609( exit $ac_status )
7a197a62 10610ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10611fi
ec6a6fbe 10612rm -rf conftest.dSYM
7a197a62 10613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10614fi
7a197a62
AK
10615
10616
ad6254c5 10617fi
ec6a6fbe
AK
10618{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10619$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10620if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10621 case " $LIBOBJS " in
8a2fc586 10622 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10623 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10624 ;;
8a2fc586
AK
10625esac
10626
ad6254c5
AK
10627
10628cat >>confdefs.h <<_ACEOF
10629#define HAVE_STAT_EMPTY_STRING_BUG 1
10630_ACEOF
10631
10632fi
10633
ec6a6fbe
AK
10634{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10635$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10636if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10637 $as_echo_n "(cached) " >&6
ad6254c5
AK
10638else
10639 if test "$cross_compiling" = yes; then
10640 ac_cv_func_strtod=no
10641else
10642 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648
7a197a62
AK
10649$ac_includes_default
10650#ifndef strtod
ad6254c5 10651double strtod ();
7a197a62 10652#endif
ad6254c5
AK
10653int
10654main()
10655{
10656 {
10657 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10658 char *string = " +69";
10659 char *term;
10660 double value;
10661 value = strtod (string, &term);
10662 if (value != 69 || term != (string + 4))
7a197a62 10663 return 1;
ad6254c5
AK
10664 }
10665
10666 {
10667 /* Under Solaris 2.4, strtod returns the wrong value for the
10668 terminating character under some conditions. */
10669 char *string = "NaN";
10670 char *term;
10671 strtod (string, &term);
10672 if (term != string && *(term - 1) == 0)
7a197a62 10673 return 1;
ad6254c5 10674 }
7a197a62 10675 return 0;
ad6254c5
AK
10676}
10677
10678_ACEOF
10679rm -f conftest$ac_exeext
7a197a62
AK
10680if { (ac_try="$ac_link"
10681case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684esac
ec6a6fbe
AK
10685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10686$as_echo "$ac_try_echo") >&5
7a197a62 10687 (eval "$ac_link") 2>&5
ad6254c5 10688 ac_status=$?
ec6a6fbe 10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694esac
ec6a6fbe
AK
10695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696$as_echo "$ac_try_echo") >&5
7a197a62 10697 (eval "$ac_try") 2>&5
ad6254c5 10698 ac_status=$?
ec6a6fbe 10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10700 (exit $ac_status); }; }; then
10701 ac_cv_func_strtod=yes
10702else
ec6a6fbe
AK
10703 $as_echo "$as_me: program exited with status $ac_status" >&5
10704$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707( exit $ac_status )
10708ac_cv_func_strtod=no
10709fi
ec6a6fbe 10710rm -rf conftest.dSYM
7a197a62 10711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10712fi
7a197a62
AK
10713
10714
ad6254c5 10715fi
ec6a6fbe
AK
10716{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10717$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10718if test $ac_cv_func_strtod = no; then
7a197a62 10719 case " $LIBOBJS " in
8a2fc586 10720 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10721 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10722 ;;
8a2fc586
AK
10723esac
10724
ec6a6fbe
AK
10725{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10726$as_echo_n "checking for pow... " >&6; }
ad6254c5 10727if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10728 $as_echo_n "(cached) " >&6
ad6254c5
AK
10729else
10730 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h. */
8a2fc586
AK
10736/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10738#define pow innocuous_pow
10739
ad6254c5
AK
10740/* System header to define __stub macros and hopefully few prototypes,
10741 which can conflict with char pow (); below.
10742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10743 <limits.h> exists even on freestanding compilers. */
8a2fc586 10744
ad6254c5
AK
10745#ifdef __STDC__
10746# include <limits.h>
10747#else
10748# include <assert.h>
10749#endif
8a2fc586
AK
10750
10751#undef pow
10752
7a197a62
AK
10753/* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10756#ifdef __cplusplus
10757extern "C"
ad6254c5 10758#endif
ad6254c5
AK
10759char pow ();
10760/* The GNU C library defines this for functions which it implements
10761 to always fail with ENOSYS. Some functions are actually named
10762 something starting with __ and the normal name is an alias. */
7a197a62 10763#if defined __stub_pow || defined __stub___pow
ad6254c5 10764choke me
ad6254c5
AK
10765#endif
10766
10767int
10768main ()
10769{
7a197a62 10770return pow ();
ad6254c5
AK
10771 ;
10772 return 0;
10773}
10774_ACEOF
10775rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10776if { (ac_try="$ac_link"
10777case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
ec6a6fbe
AK
10781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782$as_echo "$ac_try_echo") >&5
7a197a62 10783 (eval "$ac_link") 2>conftest.er1
ad6254c5 10784 ac_status=$?
8a2fc586
AK
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
ec6a6fbe 10788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
ec6a6fbe
AK
10792 } && test -s conftest$ac_exeext && {
10793 test "$cross_compiling" = yes ||
10794 $as_test_x conftest$ac_exeext
10795 }; then
ad6254c5
AK
10796 ac_cv_func_pow=yes
10797else
ec6a6fbe 10798 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
7a197a62 10801 ac_cv_func_pow=no
ad6254c5 10802fi
7a197a62 10803
ec6a6fbe 10804rm -rf conftest.dSYM
25fbec5b 10805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10806 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10807fi
ec6a6fbe
AK
10808{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10809$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10810
10811if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10812 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10813$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10814if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10815 $as_echo_n "(cached) " >&6
ad6254c5
AK
10816else
10817 ac_check_lib_save_LIBS=$LIBS
10818LIBS="-lm $LIBS"
10819cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10820/* confdefs.h. */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h. */
10825
7a197a62
AK
10826/* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10829#ifdef __cplusplus
10830extern "C"
10831#endif
ad6254c5
AK
10832char pow ();
10833int
10834main ()
10835{
7a197a62 10836return pow ();
ad6254c5
AK
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10842if { (ac_try="$ac_link"
10843case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846esac
ec6a6fbe
AK
10847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10848$as_echo "$ac_try_echo") >&5
7a197a62 10849 (eval "$ac_link") 2>conftest.er1
ad6254c5 10850 ac_status=$?
8a2fc586
AK
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
ec6a6fbe 10854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
ec6a6fbe
AK
10858 } && test -s conftest$ac_exeext && {
10859 test "$cross_compiling" = yes ||
10860 $as_test_x conftest$ac_exeext
10861 }; then
ad6254c5
AK
10862 ac_cv_lib_m_pow=yes
10863else
ec6a6fbe 10864 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10865sed 's/^/| /' conftest.$ac_ext >&5
10866
7a197a62 10867 ac_cv_lib_m_pow=no
ad6254c5 10868fi
7a197a62 10869
ec6a6fbe 10870rm -rf conftest.dSYM
25fbec5b 10871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10872 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10873LIBS=$ac_check_lib_save_LIBS
d0191583 10874fi
ec6a6fbe
AK
10875{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10876$as_echo "$ac_cv_lib_m_pow" >&6; }
10877if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10878 POW_LIB=-lm
10879else
ec6a6fbe
AK
10880 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10881$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10882fi
72b2cb61 10883
d0191583 10884fi
72b2cb61 10885
ad6254c5
AK
10886fi
10887
ad6254c5 10888
d0191583
JM
10889for ac_func in vprintf
10890do
ec6a6fbe
AK
10891as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10892{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10893$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10895 $as_echo_n "(cached) " >&6
ad6254c5 10896else
d0191583
JM
10897 cat >conftest.$ac_ext <<_ACEOF
10898/* confdefs.h. */
10899_ACEOF
10900cat confdefs.h >>conftest.$ac_ext
10901cat >>conftest.$ac_ext <<_ACEOF
10902/* end confdefs.h. */
10903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10905#define $ac_func innocuous_$ac_func
7a197a62 10906
d0191583
JM
10907/* System header to define __stub macros and hopefully few prototypes,
10908 which can conflict with char $ac_func (); below.
10909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 <limits.h> exists even on freestanding compilers. */
ad6254c5 10911
d0191583
JM
10912#ifdef __STDC__
10913# include <limits.h>
10914#else
10915# include <assert.h>
10916#endif
ad6254c5 10917
d0191583 10918#undef $ac_func
72b2cb61 10919
d0191583
JM
10920/* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923#ifdef __cplusplus
10924extern "C"
10925#endif
10926char $ac_func ();
10927/* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930#if defined __stub_$ac_func || defined __stub___$ac_func
10931choke me
10932#endif
10933
10934int
10935main ()
10936{
10937return $ac_func ();
10938 ;
10939 return 0;
10940}
72b2cb61 10941_ACEOF
d0191583
JM
10942rm -f conftest.$ac_objext conftest$ac_exeext
10943if { (ac_try="$ac_link"
10944case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947esac
ec6a6fbe
AK
10948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10949$as_echo "$ac_try_echo") >&5
d0191583
JM
10950 (eval "$ac_link") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
ec6a6fbe 10955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
ec6a6fbe
AK
10959 } && test -s conftest$ac_exeext && {
10960 test "$cross_compiling" = yes ||
10961 $as_test_x conftest$ac_exeext
10962 }; then
d0191583
JM
10963 eval "$as_ac_var=yes"
10964else
ec6a6fbe 10965 $as_echo "$as_me: failed program was:" >&5
d0191583 10966sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10967
d0191583 10968 eval "$as_ac_var=no"
ad6254c5
AK
10969fi
10970
ec6a6fbe 10971rm -rf conftest.dSYM
d0191583
JM
10972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973 conftest$ac_exeext conftest.$ac_ext
7a197a62 10974fi
ec6a6fbe
AK
10975ac_res=`eval 'as_val=${'$as_ac_var'}
10976 $as_echo "$as_val"'`
10977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10978$as_echo "$ac_res" >&6; }
10979as_val=`eval 'as_val=${'$as_ac_var'}
10980 $as_echo "$as_val"'`
10981 if test "x$as_val" = x""yes; then
d0191583 10982 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 10984_ACEOF
7a197a62 10985
ec6a6fbe
AK
10986{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10987$as_echo_n "checking for _doprnt... " >&6; }
d0191583 10988if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 10989 $as_echo_n "(cached) " >&6
ad6254c5 10990else
d0191583
JM
10991 cat >conftest.$ac_ext <<_ACEOF
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
10997/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999#define _doprnt innocuous__doprnt
7a197a62 11000
d0191583
JM
11001/* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char _doprnt (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
ad6254c5 11005
d0191583
JM
11006#ifdef __STDC__
11007# include <limits.h>
11008#else
11009# include <assert.h>
11010#endif
72b2cb61 11011
d0191583
JM
11012#undef _doprnt
11013
11014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017#ifdef __cplusplus
11018extern "C"
11019#endif
11020char _doprnt ();
11021/* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024#if defined __stub__doprnt || defined __stub____doprnt
11025choke me
11026#endif
11027
11028int
11029main ()
11030{
11031return _doprnt ();
11032 ;
11033 return 0;
11034}
72b2cb61 11035_ACEOF
d0191583
JM
11036rm -f conftest.$ac_objext conftest$ac_exeext
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
ec6a6fbe
AK
11042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043$as_echo "$ac_try_echo") >&5
d0191583
JM
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
ec6a6fbe 11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
ec6a6fbe
AK
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11056 }; then
d0191583
JM
11057 ac_cv_func__doprnt=yes
11058else
ec6a6fbe 11059 $as_echo "$as_me: failed program was:" >&5
d0191583 11060sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11061
d0191583 11062 ac_cv_func__doprnt=no
ad6254c5
AK
11063fi
11064
ec6a6fbe 11065rm -rf conftest.dSYM
d0191583
JM
11066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
7a197a62 11068fi
ec6a6fbe
AK
11069{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11070$as_echo "$ac_cv_func__doprnt" >&6; }
11071if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11072
d0191583
JM
11073cat >>confdefs.h <<\_ACEOF
11074#define HAVE_DOPRNT 1
11075_ACEOF
ad6254c5 11076
7a197a62
AK
11077fi
11078
d0191583
JM
11079fi
11080done
8b1a3214 11081
ad6254c5 11082
7a197a62 11083
9c961554 11084################################################################################
ec6a6fbe
AK
11085{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11086$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11087# Check whether --enable-static_link was given.
11088if test "${enable_static_link+set}" = set; then
11089 enableval=$enable_static_link; STATIC_LINK=$enableval
11090else
11091 STATIC_LINK=no
11092fi
11093
ec6a6fbe
AK
11094{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11095$as_echo "$STATIC_LINK" >&6; }
9c961554 11096
d0191583 11097################################################################################
ad6254c5 11098
ad6254c5
AK
11099
11100################################################################################
ec6a6fbe
AK
11101{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11102$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11103
11104# Check whether --with-user was given.
11105if test "${with_user+set}" = set; then
11106 withval=$with_user; OWNER="$withval"
7a197a62
AK
11107fi
11108
ec6a6fbe
AK
11109{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11110$as_echo "$OWNER" >&6; }
ad6254c5 11111
d0191583 11112if test x$OWNER != x; then
23b059e7 11113 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11114fi
11115
11116################################################################################
ec6a6fbe
AK
11117{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11118$as_echo_n "checking group owner... " >&6; }
ad6254c5 11119
d0191583
JM
11120# Check whether --with-group was given.
11121if test "${with_group+set}" = set; then
11122 withval=$with_group; GROUP="$withval"
7a197a62
AK
11123fi
11124
ec6a6fbe
AK
11125{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11126$as_echo "$GROUP" >&6; }
d0191583
JM
11127
11128if test x$GROUP != x; then
23b059e7 11129 INSTALL="$INSTALL -g $GROUP"
d0191583 11130fi
ad6254c5 11131
24bbc4d7 11132################################################################################
ec6a6fbe
AK
11133{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11134$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11135
11136
11137# Check whether --with-device-uid was given.
11138if test "${with_device_uid+set}" = set; then
11139 withval=$with_device_uid; DM_DEVICE_UID="$withval"
11140else
11141 DM_DEVICE_UID="0"
11142fi
11143
ec6a6fbe
AK
11144{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11145$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11146
11147################################################################################
ec6a6fbe
AK
11148{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11149$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11150
11151
11152# Check whether --with-device-gid was given.
11153if test "${with_device_gid+set}" = set; then
11154 withval=$with_device_gid; DM_DEVICE_GID="$withval"
11155else
11156 DM_DEVICE_GID="0"
11157fi
11158
ec6a6fbe
AK
11159{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11160$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11161
93bd259b 11162################################################################################
ec6a6fbe
AK
11163{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11164$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11165
11166
11167# Check whether --with-device-mode was given.
11168if test "${with_device_mode+set}" = set; then
11169 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
11170else
11171 DM_DEVICE_MODE="0600"
11172fi
11173
ec6a6fbe
AK
11174{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11175$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11176
ad6254c5 11177################################################################################
ec6a6fbe
AK
11178{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11179$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11180# Check whether --enable-lvm1_fallback was given.
11181if test "${enable_lvm1_fallback+set}" = set; then
11182 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11183else
11184 LVM1_FALLBACK=no
7a197a62
AK
11185fi
11186
ec6a6fbe
AK
11187{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11188$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11189
d0191583 11190if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11191
11192cat >>confdefs.h <<\_ACEOF
d0191583 11193#define LVM1_FALLBACK 1
72b2cb61
AK
11194_ACEOF
11195
ad6254c5
AK
11196fi
11197
11198################################################################################
ec6a6fbe
AK
11199{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11200$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11201
11202# Check whether --with-lvm1 was given.
11203if test "${with_lvm1+set}" = set; then
11204 withval=$with_lvm1; LVM1="$withval"
11205else
11206 LVM1="internal"
7a197a62
AK
11207fi
11208
ec6a6fbe
AK
11209{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11210$as_echo "$LVM1" >&6; }
ad6254c5 11211
d0191583 11212if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11213 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11214" >&5
ec6a6fbe 11215$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11216" >&2;}
11217 { (exit 1); exit 1; }; }
11218fi;
11219
11220if test x$LVM1 = xinternal; then
72b2cb61
AK
11221
11222cat >>confdefs.h <<\_ACEOF
d0191583 11223#define LVM1_INTERNAL 1
72b2cb61
AK
11224_ACEOF
11225
ad6254c5
AK
11226fi
11227
11228################################################################################
ec6a6fbe
AK
11229{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11230$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11231
11232# Check whether --with-pool was given.
11233if test "${with_pool+set}" = set; then
11234 withval=$with_pool; POOL="$withval"
ad6254c5 11235else
d0191583 11236 POOL="internal"
7a197a62
AK
11237fi
11238
ec6a6fbe
AK
11239{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11240$as_echo "$POOL" >&6; }
ad6254c5 11241
d0191583 11242if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11243 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11244" >&5
ec6a6fbe 11245$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11246" >&2;}
11247 { (exit 1); exit 1; }; }
11248fi;
7a197a62 11249
d0191583
JM
11250if test x$POOL = xinternal; then
11251
11252cat >>confdefs.h <<\_ACEOF
11253#define POOL_INTERNAL 1
11254_ACEOF
11255
11256fi
ad6254c5 11257
06f62ad1 11258################################################################################
ec6a6fbe
AK
11259{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11260$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11261
11262# Check whether --with-cluster was given.
11263if test "${with_cluster+set}" = set; then
11264 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
11265fi
11266
ec6a6fbe
AK
11267{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11268$as_echo "$CLUSTER" >&6; }
06f62ad1 11269
d0191583 11270if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11271 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11272" >&5
ec6a6fbe 11273$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11274" >&2;}
11275 { (exit 1); exit 1; }; }
d0191583 11276fi;
06f62ad1 11277
d0191583 11278if test x$CLUSTER = xinternal; then
72b2cb61
AK
11279
11280cat >>confdefs.h <<\_ACEOF
d0191583 11281#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11282_ACEOF
11283
15d91f5a 11284fi
ad6254c5
AK
11285
11286################################################################################
ec6a6fbe
AK
11287{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11288$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11289
d0191583
JM
11290# Check whether --with-snapshots was given.
11291if test "${with_snapshots+set}" = set; then
11292 withval=$with_snapshots; SNAPSHOTS="$withval"
11293else
11294 SNAPSHOTS="internal"
ad6254c5
AK
11295fi
11296
ec6a6fbe
AK
11297{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11298$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11299
d0191583 11300if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11301 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11302" >&5
ec6a6fbe 11303$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11304" >&2;}
11305 { (exit 1); exit 1; }; }
11306fi;
11307
11308if test x$SNAPSHOTS = xinternal; then
11309
11310cat >>confdefs.h <<\_ACEOF
11311#define SNAPSHOT_INTERNAL 1
11312_ACEOF
ad6254c5 11313
ad6254c5 11314fi
7a197a62 11315
d0191583 11316################################################################################
ec6a6fbe
AK
11317{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11318$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11319
11320# Check whether --with-mirrors was given.
11321if test "${with_mirrors+set}" = set; then
11322 withval=$with_mirrors; MIRRORS="$withval"
11323else
11324 MIRRORS="internal"
ad6254c5 11325fi
ad6254c5 11326
ec6a6fbe
AK
11327{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11328$as_echo "$MIRRORS" >&6; }
ad6254c5 11329
d0191583 11330if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11331 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11332" >&5
ec6a6fbe 11333$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11334" >&2;}
11335 { (exit 1); exit 1; }; }
11336fi;
ad6254c5 11337
d0191583 11338if test x$MIRRORS = xinternal; then
ad6254c5 11339
d0191583
JM
11340cat >>confdefs.h <<\_ACEOF
11341#define MIRRORED_INTERNAL 1
ad6254c5 11342_ACEOF
8a2fc586 11343
d0191583 11344fi
8a2fc586 11345
8fea97b7
ZK
11346################################################################################
11347{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11348$as_echo_n "checking whether to include replicators... " >&6; }
11349
11350# Check whether --with-replicators was given.
11351if test "${with_replicators+set}" = set; then
11352 withval=$with_replicators; REPLICATORS=$withval
11353else
11354 REPLICATORS="none"
11355fi
11356
11357{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11358$as_echo "$REPLICATORS" >&6; }
11359
11360case "$REPLICATORS" in
11361 none|shared) ;;
11362 internal)
11363cat >>confdefs.h <<\_ACEOF
11364#define REPLICATOR_INTERNAL 1
11365_ACEOF
11366 ;;
11367 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11368$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11369 { (exit 1); exit 1; }; } ;;
11370esac
11371
d0191583 11372################################################################################
ec6a6fbe
AK
11373{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11374$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11375# Check whether --enable-readline was given.
11376if test "${enable_readline+set}" = set; then
11377 enableval=$enable_readline; READLINE=$enableval
11378else
06e459df 11379 READLINE=maybe
d0191583 11380fi
8a2fc586 11381
ec6a6fbe
AK
11382{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11383$as_echo "$READLINE" >&6; }
8a2fc586 11384
d0191583 11385################################################################################
ec6a6fbe
AK
11386{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11387$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11388# Check whether --enable-realtime was given.
11389if test "${enable_realtime+set}" = set; then
11390 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11391fi
ad6254c5 11392
ec6a6fbe
AK
11393{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11394$as_echo "$REALTIME" >&6; }
d0191583
JM
11395
11396################################################################################
90c80887 11397pkg_config_init() {
e2997b73
AK
11398
11399
11400if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11401 if test -n "$ac_tool_prefix"; then
11402 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11403set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11405$as_echo_n "checking for $ac_word... " >&6; }
11406if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11407 $as_echo_n "(cached) " >&6
11408else
11409 case $PKG_CONFIG in
11410 [\\/]* | ?:[\\/]*)
11411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11412 ;;
11413 *)
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415for as_dir in $PATH
11416do
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 break 2
11424 fi
11425done
11426done
11427IFS=$as_save_IFS
11428
11429 ;;
11430esac
11431fi
11432PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11433if test -n "$PKG_CONFIG"; then
11434 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11435$as_echo "$PKG_CONFIG" >&6; }
11436else
11437 { $as_echo "$as_me:$LINENO: result: no" >&5
11438$as_echo "no" >&6; }
11439fi
11440
11441
11442fi
11443if test -z "$ac_cv_path_PKG_CONFIG"; then
11444 ac_pt_PKG_CONFIG=$PKG_CONFIG
11445 # Extract the first word of "pkg-config", so it can be a program name with args.
11446set dummy pkg-config; ac_word=$2
11447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11448$as_echo_n "checking for $ac_word... " >&6; }
11449if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11450 $as_echo_n "(cached) " >&6
11451else
11452 case $ac_pt_PKG_CONFIG in
11453 [\\/]* | ?:[\\/]*)
11454 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11455 ;;
11456 *)
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11467 fi
11468done
11469done
11470IFS=$as_save_IFS
11471
11472 ;;
11473esac
11474fi
11475ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11476if test -n "$ac_pt_PKG_CONFIG"; then
11477 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11478$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11479else
11480 { $as_echo "$as_me:$LINENO: result: no" >&5
11481$as_echo "no" >&6; }
11482fi
11483
11484 if test "x$ac_pt_PKG_CONFIG" = x; then
11485 PKG_CONFIG=""
11486 else
11487 case $cross_compiling:$ac_tool_warned in
11488yes:)
11489{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11491ac_tool_warned=yes ;;
11492esac
11493 PKG_CONFIG=$ac_pt_PKG_CONFIG
11494 fi
11495else
11496 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11497fi
11498
11499fi
11500if test -n "$PKG_CONFIG"; then
11501 _pkg_min_version=0.9.0
11502 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11503$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11504 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11505 { $as_echo "$as_me:$LINENO: result: yes" >&5
11506$as_echo "yes" >&6; }
11507 else
11508 { $as_echo "$as_me:$LINENO: result: no" >&5
11509$as_echo "no" >&6; }
11510 PKG_CONFIG=""
11511 fi
d911ec67 11512
e2997b73
AK
11513fi
11514
11515pkg_failed=no
a946372e
AK
11516{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11517$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11518
a946372e
AK
11519if test -n "$PKGCONFIGINIT_CFLAGS"; then
11520 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11521 elif test -n "$PKG_CONFIG"; then
11522 if test -n "$PKG_CONFIG" && \
a946372e
AK
11523 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11524 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11525 ac_status=$?
11526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; then
a946372e 11528 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11529else
11530 pkg_failed=yes
11531fi
11532 else
11533 pkg_failed=untried
11534fi
a946372e
AK
11535if test -n "$PKGCONFIGINIT_LIBS"; then
11536 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11537 elif test -n "$PKG_CONFIG"; then
11538 if test -n "$PKG_CONFIG" && \
a946372e
AK
11539 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11540 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11541 ac_status=$?
11542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; then
a946372e 11544 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11545else
11546 pkg_failed=yes
11547fi
11548 else
11549 pkg_failed=untried
11550fi
11551
11552
11553
11554if test $pkg_failed = yes; then
11555
11556if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11557 _pkg_short_errors_supported=yes
11558else
11559 _pkg_short_errors_supported=no
11560fi
11561 if test $_pkg_short_errors_supported = yes; then
a946372e 11562 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11563 else
a946372e 11564 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11565 fi
11566 # Put the nasty error message in config.log where it belongs
a946372e 11567 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11568
d911ec67
AK
11569 { $as_echo "$as_me:$LINENO: result: no" >&5
11570$as_echo "no" >&6; }
11571 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11572$as_echo "pkg-config initialized" >&6; }
e2997b73 11573elif test $pkg_failed = untried; then
a946372e
AK
11574 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11575$as_echo "pkg-config initialized" >&6; }
e2997b73 11576else
a946372e
AK
11577 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11578 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11579 { $as_echo "$as_me:$LINENO: result: yes" >&5
11580$as_echo "yes" >&6; }
d911ec67 11581 :
e2997b73 11582fi
90c80887
AK
11583 PKGCONFIG_INIT=1
11584}
11585
11586################################################################################
11587{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11588$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11589
11590# Check whether --with-clvmd was given.
11591if test "${with_clvmd+set}" = set; then
11592 withval=$with_clvmd; CLVMD="$withval"
11593else
11594 CLVMD="none"
11595fi
11596
11597if test x$CLVMD = xyes; then
11598 CLVMD=all
11599fi
11600{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11601$as_echo "$CLVMD" >&6; }
11602
11603if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11604 CLUSTER=internal
11605fi
11606
11607if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11608 pkg_config_init
11609fi
11610
11611
11612if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11613 BUILDGULM=yes
11614fi
11615if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11616 BUILDCOROSYNC=yes
11617fi
11618if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11619 BUILDOPENAIS=yes
11620fi
11621if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11622 BUILDCMAN=yes
11623fi
11624
11625if test x$BUILDGULM = xyes; then
11626 if test x$BUILDCOROSYNC = xyes || \
11627 test x$BUILDOPENAIS = xyes; then
11628 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11629$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11630 { (exit 1); exit 1; }; }
11631 fi
a946372e 11632fi
e2997b73 11633
a946372e
AK
11634soft_bailout() {
11635 NOTFOUND=1
11636}
e2997b73 11637
a946372e
AK
11638hard_bailout() {
11639 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11640$as_echo "$as_me: error: bailing out" >&2;}
11641 { (exit 1); exit 1; }; }
11642}
11643
11644if test x$CLVMD = xall; then
11645 bailout=soft_bailout
11646 BUILDGULM=yes
11647 BUILDCMAN=yes
11648 BUILDCOROSYNC=yes
11649 BUILDOPENAIS=yes
e2997b73 11650else
a946372e 11651 bailout=hard_bailout
e2997b73 11652fi
a946372e
AK
11653
11654check_lib_no_libs() {
11655 lib_no_libs_arg1=$1
11656 shift
11657 lib_no_libs_arg2=$1
11658 shift
11659 lib_no_libs_args=$@
11660
11661as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11662{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11663$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11664if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11665 $as_echo_n "(cached) " >&6
11666else
11667 ac_check_lib_save_LIBS=$LIBS
11668LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11669cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675
11676/* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11679#ifdef __cplusplus
11680extern "C"
11681#endif
11682char $lib_no_libs_arg2 ();
11683int
11684main ()
11685{
11686return $lib_no_libs_arg2 ();
11687 ;
11688 return 0;
11689}
11690_ACEOF
11691rm -f conftest.$ac_objext conftest$ac_exeext
11692if { (ac_try="$ac_link"
11693case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696esac
11697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11698$as_echo "$ac_try_echo") >&5
11699 (eval "$ac_link") 2>conftest.er1
e2997b73 11700 ac_status=$?
a946372e
AK
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
e2997b73 11704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11705 (exit $ac_status); } && {
11706 test -z "$ac_c_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext && {
11709 test "$cross_compiling" = yes ||
11710 $as_test_x conftest$ac_exeext
11711 }; then
11712 eval "$as_ac_Lib=yes"
e2997b73 11713else
a946372e
AK
11714 $as_echo "$as_me: failed program was:" >&5
11715sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11716
a946372e
AK
11717 eval "$as_ac_Lib=no"
11718fi
e2997b73 11719
a946372e
AK
11720rm -rf conftest.dSYM
11721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11722 conftest$ac_exeext conftest.$ac_ext
11723LIBS=$ac_check_lib_save_LIBS
11724fi
11725ac_res=`eval 'as_val=${'$as_ac_Lib'}
11726 $as_echo "$as_val"'`
11727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11728$as_echo "$ac_res" >&6; }
11729as_val=`eval 'as_val=${'$as_ac_Lib'}
11730 $as_echo "$as_val"'`
11731 if test "x$as_val" = x""yes; then
11732 cat >>confdefs.h <<_ACEOF
11733#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11734_ACEOF
e2997b73 11735
a946372e 11736 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11737
e2997b73 11738else
a946372e 11739 $bailout
e2997b73 11740fi
e2997b73 11741
a946372e
AK
11742 LIBS=$ac_check_lib_save_LIBS
11743}
11744
11745if test x$BUILDGULM = xyes; then
e2997b73
AK
11746
11747pkg_failed=no
a946372e
AK
11748{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11749$as_echo_n "checking for CCS... " >&6; }
e2997b73 11750
a946372e
AK
11751if test -n "$CCS_CFLAGS"; then
11752 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11753 elif test -n "$PKG_CONFIG"; then
11754 if test -n "$PKG_CONFIG" && \
a946372e
AK
11755 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11756 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11757 ac_status=$?
11758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; then
a946372e 11760 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11761else
11762 pkg_failed=yes
11763fi
11764 else
11765 pkg_failed=untried
11766fi
a946372e
AK
11767if test -n "$CCS_LIBS"; then
11768 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11769 elif test -n "$PKG_CONFIG"; then
11770 if test -n "$PKG_CONFIG" && \
a946372e
AK
11771 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11772 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11773 ac_status=$?
11774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; then
a946372e 11776 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11777else
11778 pkg_failed=yes
11779fi
11780 else
11781 pkg_failed=untried
11782fi
11783
11784
11785
11786if test $pkg_failed = yes; then
11787
11788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11789 _pkg_short_errors_supported=yes
11790else
11791 _pkg_short_errors_supported=no
11792fi
11793 if test $_pkg_short_errors_supported = yes; then
a946372e 11794 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11795 else
a946372e 11796 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11797 fi
11798 # Put the nasty error message in config.log where it belongs
a946372e 11799 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11800
d911ec67
AK
11801 { $as_echo "$as_me:$LINENO: result: no" >&5
11802$as_echo "no" >&6; }
11803 NOTFOUND=0
e2997b73 11804
a946372e
AK
11805for ac_header in ccs.h
11806do
11807as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11809 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11810$as_echo_n "checking for $ac_header... " >&6; }
11811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812 $as_echo_n "(cached) " >&6
d0191583 11813fi
a946372e
AK
11814ac_res=`eval 'as_val=${'$as_ac_Header'}
11815 $as_echo "$as_val"'`
11816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11817$as_echo "$ac_res" >&6; }
fc54be10 11818else
a946372e
AK
11819 # Is the header compilable?
11820{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11821$as_echo_n "checking $ac_header usability... " >&6; }
11822cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828$ac_includes_default
11829#include <$ac_header>
11830_ACEOF
11831rm -f conftest.$ac_objext
11832if { (ac_try="$ac_compile"
11833case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
11837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11838$as_echo "$ac_try_echo") >&5
11839 (eval "$ac_compile") 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest.$ac_objext; then
11849 ac_header_compiler=yes
11850else
11851 $as_echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11853
a946372e 11854 ac_header_compiler=no
d0191583
JM
11855fi
11856
a946372e
AK
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11859$as_echo "$ac_header_compiler" >&6; }
fddafd51 11860
a946372e
AK
11861# Is the header present?
11862{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11863$as_echo_n "checking $ac_header presence... " >&6; }
11864cat >conftest.$ac_ext <<_ACEOF
11865/* confdefs.h. */
11866_ACEOF
11867cat confdefs.h >>conftest.$ac_ext
11868cat >>conftest.$ac_ext <<_ACEOF
11869/* end confdefs.h. */
11870#include <$ac_header>
11871_ACEOF
11872if { (ac_try="$ac_cpp conftest.$ac_ext"
11873case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11878$as_echo "$ac_try_echo") >&5
11879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } >/dev/null && {
11886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11887 test ! -s conftest.err
11888 }; then
11889 ac_header_preproc=yes
11890else
11891 $as_echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 ac_header_preproc=no
11895fi
11896
11897rm -f conftest.err conftest.$ac_ext
11898{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11899$as_echo "$ac_header_preproc" >&6; }
11900
11901# So? What about this header?
11902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11903 yes:no: )
11904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11905$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11907$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11908 ac_header_preproc=yes
11909 ;;
11910 no:yes:* )
11911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11916$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11918$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11920$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11922$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11923
11924 ;;
11925esac
11926{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11927$as_echo_n "checking for $ac_header... " >&6; }
11928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11929 $as_echo_n "(cached) " >&6
11930else
11931 eval "$as_ac_Header=\$ac_header_preproc"
11932fi
11933ac_res=`eval 'as_val=${'$as_ac_Header'}
11934 $as_echo "$as_val"'`
11935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11936$as_echo "$ac_res" >&6; }
11937
11938fi
11939as_val=`eval 'as_val=${'$as_ac_Header'}
11940 $as_echo "$as_val"'`
11941 if test "x$as_val" = x""yes; then
11942 cat >>confdefs.h <<_ACEOF
11943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11944_ACEOF
11945
11946else
11947 $bailout
11948fi
11949
11950done
11951
11952 check_lib_no_libs ccs ccs_connect
11953 if test $NOTFOUND = 0; then
11954 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11955$as_echo "no pkg for libccs, using -lccs" >&6; }
11956 CCS_LIBS="-lccs"
11957 HAVE_CCS=yes
11958 fi
11959elif test $pkg_failed = untried; then
11960 NOTFOUND=0
11961
11962for ac_header in ccs.h
11963do
11964as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11967$as_echo_n "checking for $ac_header... " >&6; }
11968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11969 $as_echo_n "(cached) " >&6
11970fi
11971ac_res=`eval 'as_val=${'$as_ac_Header'}
11972 $as_echo "$as_val"'`
11973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11974$as_echo "$ac_res" >&6; }
11975else
11976 # Is the header compilable?
11977{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11978$as_echo_n "checking $ac_header usability... " >&6; }
11979cat >conftest.$ac_ext <<_ACEOF
11980/* confdefs.h. */
11981_ACEOF
11982cat confdefs.h >>conftest.$ac_ext
11983cat >>conftest.$ac_ext <<_ACEOF
11984/* end confdefs.h. */
11985$ac_includes_default
11986#include <$ac_header>
11987_ACEOF
11988rm -f conftest.$ac_objext
11989if { (ac_try="$ac_compile"
11990case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993esac
11994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11995$as_echo "$ac_try_echo") >&5
11996 (eval "$ac_compile") 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } && {
12003 test -z "$ac_c_werror_flag" ||
12004 test ! -s conftest.err
12005 } && test -s conftest.$ac_objext; then
12006 ac_header_compiler=yes
12007else
12008 $as_echo "$as_me: failed program was:" >&5
12009sed 's/^/| /' conftest.$ac_ext >&5
12010
12011 ac_header_compiler=no
12012fi
12013
12014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12016$as_echo "$ac_header_compiler" >&6; }
12017
12018# Is the header present?
12019{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12020$as_echo_n "checking $ac_header presence... " >&6; }
12021cat >conftest.$ac_ext <<_ACEOF
12022/* confdefs.h. */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h. */
12027#include <$ac_header>
12028_ACEOF
12029if { (ac_try="$ac_cpp conftest.$ac_ext"
12030case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12035$as_echo "$ac_try_echo") >&5
12036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } >/dev/null && {
12043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 }; then
12046 ac_header_preproc=yes
12047else
12048 $as_echo "$as_me: failed program was:" >&5
12049sed 's/^/| /' conftest.$ac_ext >&5
12050
12051 ac_header_preproc=no
12052fi
12053
12054rm -f conftest.err conftest.$ac_ext
12055{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12056$as_echo "$ac_header_preproc" >&6; }
12057
12058# So? What about this header?
12059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12060 yes:no: )
12061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12062$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12064$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12065 ac_header_preproc=yes
12066 ;;
12067 no:yes:* )
12068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12069$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12071$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12073$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12075$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12077$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12079$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12080
12081 ;;
12082esac
12083{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12084$as_echo_n "checking for $ac_header... " >&6; }
12085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12086 $as_echo_n "(cached) " >&6
12087else
12088 eval "$as_ac_Header=\$ac_header_preproc"
12089fi
12090ac_res=`eval 'as_val=${'$as_ac_Header'}
12091 $as_echo "$as_val"'`
12092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12093$as_echo "$ac_res" >&6; }
12094
12095fi
12096as_val=`eval 'as_val=${'$as_ac_Header'}
12097 $as_echo "$as_val"'`
12098 if test "x$as_val" = x""yes; then
12099 cat >>confdefs.h <<_ACEOF
12100#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12101_ACEOF
12102
12103else
12104 $bailout
12105fi
12106
12107done
12108
12109 check_lib_no_libs ccs ccs_connect
12110 if test $NOTFOUND = 0; then
12111 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12112$as_echo "no pkg for libccs, using -lccs" >&6; }
12113 CCS_LIBS="-lccs"
12114 HAVE_CCS=yes
12115 fi
12116else
12117 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12118 CCS_LIBS=$pkg_cv_CCS_LIBS
12119 { $as_echo "$as_me:$LINENO: result: yes" >&5
12120$as_echo "yes" >&6; }
12121 HAVE_CCS=yes
12122fi
12123
12124pkg_failed=no
12125{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12126$as_echo_n "checking for GULM... " >&6; }
12127
12128if test -n "$GULM_CFLAGS"; then
12129 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12130 elif test -n "$PKG_CONFIG"; then
12131 if test -n "$PKG_CONFIG" && \
12132 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12133 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12134 ac_status=$?
12135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; then
12137 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12138else
12139 pkg_failed=yes
12140fi
12141 else
12142 pkg_failed=untried
12143fi
12144if test -n "$GULM_LIBS"; then
12145 pkg_cv_GULM_LIBS="$GULM_LIBS"
12146 elif test -n "$PKG_CONFIG"; then
12147 if test -n "$PKG_CONFIG" && \
12148 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12149 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12150 ac_status=$?
12151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; then
12153 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12154else
12155 pkg_failed=yes
12156fi
12157 else
12158 pkg_failed=untried
12159fi
12160
12161
12162
12163if test $pkg_failed = yes; then
12164
12165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12166 _pkg_short_errors_supported=yes
12167else
12168 _pkg_short_errors_supported=no
12169fi
12170 if test $_pkg_short_errors_supported = yes; then
12171 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12172 else
12173 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12174 fi
12175 # Put the nasty error message in config.log where it belongs
12176 echo "$GULM_PKG_ERRORS" >&5
12177
d911ec67
AK
12178 { $as_echo "$as_me:$LINENO: result: no" >&5
12179$as_echo "no" >&6; }
12180 NOTFOUND=0
a946372e
AK
12181
12182for ac_header in libgulm.h
12183do
12184as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12187$as_echo_n "checking for $ac_header... " >&6; }
12188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 $as_echo_n "(cached) " >&6
12190fi
12191ac_res=`eval 'as_val=${'$as_ac_Header'}
12192 $as_echo "$as_val"'`
12193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12194$as_echo "$ac_res" >&6; }
12195else
12196 # Is the header compilable?
12197{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12198$as_echo_n "checking $ac_header usability... " >&6; }
12199cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h. */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h. */
12205$ac_includes_default
12206#include <$ac_header>
12207_ACEOF
12208rm -f conftest.$ac_objext
12209if { (ac_try="$ac_compile"
12210case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213esac
12214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215$as_echo "$ac_try_echo") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_header_compiler=yes
12227else
12228 $as_echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_header_compiler=no
12232fi
12233
12234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236$as_echo "$ac_header_compiler" >&6; }
12237
12238# Is the header present?
12239{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240$as_echo_n "checking $ac_header presence... " >&6; }
12241cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247#include <$ac_header>
12248_ACEOF
12249if { (ac_try="$ac_cpp conftest.$ac_ext"
12250case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253esac
12254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255$as_echo "$ac_try_echo") >&5
12256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } >/dev/null && {
12263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 }; then
12266 ac_header_preproc=yes
12267else
12268 $as_echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_header_preproc=no
12272fi
12273
12274rm -f conftest.err conftest.$ac_ext
12275{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276$as_echo "$ac_header_preproc" >&6; }
12277
12278# So? What about this header?
12279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 yes:no: )
12281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12286 ;;
12287 no:yes:* )
12288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300
12301 ;;
12302esac
12303{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12304$as_echo_n "checking for $ac_header... " >&6; }
12305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306 $as_echo_n "(cached) " >&6
12307else
12308 eval "$as_ac_Header=\$ac_header_preproc"
12309fi
12310ac_res=`eval 'as_val=${'$as_ac_Header'}
12311 $as_echo "$as_val"'`
12312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12313$as_echo "$ac_res" >&6; }
12314
12315fi
12316as_val=`eval 'as_val=${'$as_ac_Header'}
12317 $as_echo "$as_val"'`
12318 if test "x$as_val" = x""yes; then
12319 cat >>confdefs.h <<_ACEOF
12320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12321_ACEOF
12322
12323else
12324 $bailout
12325fi
12326
12327done
12328
12329 check_lib_no_libs gulm lg_core_login
12330 if test $NOTFOUND = 0; then
12331 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12332$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12333 GULM_LIBS="-lgulm"
12334 HAVE_GULM=yes
12335 fi
12336elif test $pkg_failed = untried; then
12337 NOTFOUND=0
12338
12339for ac_header in libgulm.h
12340do
12341as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12344$as_echo_n "checking for $ac_header... " >&6; }
12345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12346 $as_echo_n "(cached) " >&6
12347fi
12348ac_res=`eval 'as_val=${'$as_ac_Header'}
12349 $as_echo "$as_val"'`
12350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12351$as_echo "$ac_res" >&6; }
12352else
12353 # Is the header compilable?
12354{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12355$as_echo_n "checking $ac_header usability... " >&6; }
12356cat >conftest.$ac_ext <<_ACEOF
12357/* confdefs.h. */
12358_ACEOF
12359cat confdefs.h >>conftest.$ac_ext
12360cat >>conftest.$ac_ext <<_ACEOF
12361/* end confdefs.h. */
12362$ac_includes_default
12363#include <$ac_header>
12364_ACEOF
12365rm -f conftest.$ac_objext
12366if { (ac_try="$ac_compile"
12367case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12372$as_echo "$ac_try_echo") >&5
12373 (eval "$ac_compile") 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest.$ac_objext; then
12383 ac_header_compiler=yes
12384else
12385 $as_echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_header_compiler=no
12389fi
12390
12391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12393$as_echo "$ac_header_compiler" >&6; }
12394
12395# Is the header present?
12396{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12397$as_echo_n "checking $ac_header presence... " >&6; }
12398cat >conftest.$ac_ext <<_ACEOF
12399/* confdefs.h. */
12400_ACEOF
12401cat confdefs.h >>conftest.$ac_ext
12402cat >>conftest.$ac_ext <<_ACEOF
12403/* end confdefs.h. */
12404#include <$ac_header>
12405_ACEOF
12406if { (ac_try="$ac_cpp conftest.$ac_ext"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412$as_echo "$ac_try_echo") >&5
12413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev/null && {
12420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 }; then
12423 ac_header_preproc=yes
12424else
12425 $as_echo "$as_me: failed program was:" >&5
12426sed 's/^/| /' conftest.$ac_ext >&5
12427
12428 ac_header_preproc=no
12429fi
12430
12431rm -f conftest.err conftest.$ac_ext
12432{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12433$as_echo "$ac_header_preproc" >&6; }
12434
12435# So? What about this header?
12436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12437 yes:no: )
12438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12439$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12441$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12442 ac_header_preproc=yes
12443 ;;
12444 no:yes:* )
12445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12446$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12448$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12450$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12452$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12454$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12456$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12457
12458 ;;
12459esac
12460{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12461$as_echo_n "checking for $ac_header... " >&6; }
12462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12463 $as_echo_n "(cached) " >&6
12464else
12465 eval "$as_ac_Header=\$ac_header_preproc"
12466fi
12467ac_res=`eval 'as_val=${'$as_ac_Header'}
12468 $as_echo "$as_val"'`
12469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12470$as_echo "$ac_res" >&6; }
12471
12472fi
12473as_val=`eval 'as_val=${'$as_ac_Header'}
12474 $as_echo "$as_val"'`
12475 if test "x$as_val" = x""yes; then
12476 cat >>confdefs.h <<_ACEOF
12477#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12478_ACEOF
12479
12480else
12481 $bailout
12482fi
12483
12484done
12485
12486 check_lib_no_libs gulm lg_core_login
12487 if test $NOTFOUND = 0; then
12488 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12489$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12490 GULM_LIBS="-lgulm"
12491 HAVE_GULM=yes
12492 fi
12493else
12494 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12495 GULM_LIBS=$pkg_cv_GULM_LIBS
12496 { $as_echo "$as_me:$LINENO: result: yes" >&5
12497$as_echo "yes" >&6; }
12498 HAVE_GULM=yes
12499fi
12500fi
12501
12502if test x$BUILDCMAN = xyes; then
12503
12504pkg_failed=no
12505{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12506$as_echo_n "checking for CMAN... " >&6; }
12507
12508if test -n "$CMAN_CFLAGS"; then
12509 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12510 elif test -n "$PKG_CONFIG"; then
12511 if test -n "$PKG_CONFIG" && \
12512 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12513 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12514 ac_status=$?
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; then
12517 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12518else
12519 pkg_failed=yes
12520fi
12521 else
12522 pkg_failed=untried
12523fi
12524if test -n "$CMAN_LIBS"; then
12525 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12526 elif test -n "$PKG_CONFIG"; then
12527 if test -n "$PKG_CONFIG" && \
12528 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12529 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12530 ac_status=$?
12531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; then
12533 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12534else
12535 pkg_failed=yes
12536fi
12537 else
12538 pkg_failed=untried
12539fi
12540
12541
12542
12543if test $pkg_failed = yes; then
12544
12545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12546 _pkg_short_errors_supported=yes
12547else
12548 _pkg_short_errors_supported=no
12549fi
12550 if test $_pkg_short_errors_supported = yes; then
12551 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12552 else
12553 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12554 fi
12555 # Put the nasty error message in config.log where it belongs
12556 echo "$CMAN_PKG_ERRORS" >&5
12557
d911ec67
AK
12558 { $as_echo "$as_me:$LINENO: result: no" >&5
12559$as_echo "no" >&6; }
12560 NOTFOUND=0
a946372e
AK
12561
12562for ac_header in libcman.h
12563do
12564as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12567$as_echo_n "checking for $ac_header... " >&6; }
12568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12569 $as_echo_n "(cached) " >&6
12570fi
12571ac_res=`eval 'as_val=${'$as_ac_Header'}
12572 $as_echo "$as_val"'`
12573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12574$as_echo "$ac_res" >&6; }
12575else
12576 # Is the header compilable?
12577{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12578$as_echo_n "checking $ac_header usability... " >&6; }
12579cat >conftest.$ac_ext <<_ACEOF
12580/* confdefs.h. */
12581_ACEOF
12582cat confdefs.h >>conftest.$ac_ext
12583cat >>conftest.$ac_ext <<_ACEOF
12584/* end confdefs.h. */
12585$ac_includes_default
12586#include <$ac_header>
12587_ACEOF
12588rm -f conftest.$ac_objext
12589if { (ac_try="$ac_compile"
12590case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12595$as_echo "$ac_try_echo") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_header_compiler=yes
12607else
12608 $as_echo "$as_me: failed program was:" >&5
12609sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_header_compiler=no
12612fi
12613
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12616$as_echo "$ac_header_compiler" >&6; }
12617
12618# Is the header present?
12619{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12620$as_echo_n "checking $ac_header presence... " >&6; }
12621cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627#include <$ac_header>
12628_ACEOF
12629if { (ac_try="$ac_cpp conftest.$ac_ext"
12630case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633esac
12634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12635$as_echo "$ac_try_echo") >&5
12636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev/null && {
12643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 }; then
12646 ac_header_preproc=yes
12647else
12648 $as_echo "$as_me: failed program was:" >&5
12649sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ac_header_preproc=no
12652fi
12653
12654rm -f conftest.err conftest.$ac_ext
12655{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12656$as_echo "$ac_header_preproc" >&6; }
12657
12658# So? What about this header?
12659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12660 yes:no: )
12661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12662$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12664$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12665 ac_header_preproc=yes
12666 ;;
12667 no:yes:* )
12668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12669$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12671$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12673$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12675$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12677$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12679$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12680
12681 ;;
12682esac
12683{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12684$as_echo_n "checking for $ac_header... " >&6; }
12685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12686 $as_echo_n "(cached) " >&6
12687else
12688 eval "$as_ac_Header=\$ac_header_preproc"
12689fi
12690ac_res=`eval 'as_val=${'$as_ac_Header'}
12691 $as_echo "$as_val"'`
12692 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12693$as_echo "$ac_res" >&6; }
12694
12695fi
12696as_val=`eval 'as_val=${'$as_ac_Header'}
12697 $as_echo "$as_val"'`
12698 if test "x$as_val" = x""yes; then
12699 cat >>confdefs.h <<_ACEOF
12700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12701_ACEOF
12702
12703else
12704 $bailout
12705fi
12706
12707done
12708
12709 check_lib_no_libs cman cman_init
12710 if test $NOTFOUND = 0; then
12711 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12712$as_echo "no pkg for libcman, using -lcman" >&6; }
12713 CMAN_LIBS="-lcman"
12714 HAVE_CMAN=yes
12715 fi
12716elif test $pkg_failed = untried; then
12717 NOTFOUND=0
12718
12719for ac_header in libcman.h
12720do
12721as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12724$as_echo_n "checking for $ac_header... " >&6; }
12725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12726 $as_echo_n "(cached) " >&6
12727fi
12728ac_res=`eval 'as_val=${'$as_ac_Header'}
12729 $as_echo "$as_val"'`
12730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12731$as_echo "$ac_res" >&6; }
12732else
12733 # Is the header compilable?
12734{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12735$as_echo_n "checking $ac_header usability... " >&6; }
12736cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742$ac_includes_default
12743#include <$ac_header>
12744_ACEOF
12745rm -f conftest.$ac_objext
12746if { (ac_try="$ac_compile"
12747case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750esac
12751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752$as_echo "$ac_try_echo") >&5
12753 (eval "$ac_compile") 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest.$ac_objext; then
12763 ac_header_compiler=yes
12764else
12765 $as_echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768 ac_header_compiler=no
12769fi
12770
12771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773$as_echo "$ac_header_compiler" >&6; }
12774
12775# Is the header present?
12776{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12777$as_echo_n "checking $ac_header presence... " >&6; }
12778cat >conftest.$ac_ext <<_ACEOF
12779/* confdefs.h. */
12780_ACEOF
12781cat confdefs.h >>conftest.$ac_ext
12782cat >>conftest.$ac_ext <<_ACEOF
12783/* end confdefs.h. */
12784#include <$ac_header>
12785_ACEOF
12786if { (ac_try="$ac_cpp conftest.$ac_ext"
12787case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12792$as_echo "$ac_try_echo") >&5
12793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } >/dev/null && {
12800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12802 }; then
12803 ac_header_preproc=yes
12804else
12805 $as_echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 ac_header_preproc=no
12809fi
12810
12811rm -f conftest.err conftest.$ac_ext
12812{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813$as_echo "$ac_header_preproc" >&6; }
12814
12815# So? What about this header?
12816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12817 yes:no: )
12818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12819$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12821$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12822 ac_header_preproc=yes
12823 ;;
12824 no:yes:* )
12825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12826$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12828$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12830$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12832$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12834$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12836$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12837
12838 ;;
12839esac
12840{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12841$as_echo_n "checking for $ac_header... " >&6; }
12842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12843 $as_echo_n "(cached) " >&6
12844else
12845 eval "$as_ac_Header=\$ac_header_preproc"
12846fi
12847ac_res=`eval 'as_val=${'$as_ac_Header'}
12848 $as_echo "$as_val"'`
12849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12850$as_echo "$ac_res" >&6; }
12851
12852fi
12853as_val=`eval 'as_val=${'$as_ac_Header'}
12854 $as_echo "$as_val"'`
12855 if test "x$as_val" = x""yes; then
12856 cat >>confdefs.h <<_ACEOF
12857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12858_ACEOF
12859
12860else
12861 $bailout
12862fi
12863
12864done
12865
12866 check_lib_no_libs cman cman_init
12867 if test $NOTFOUND = 0; then
12868 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12869$as_echo "no pkg for libcman, using -lcman" >&6; }
12870 CMAN_LIBS="-lcman"
12871 HAVE_CMAN=yes
12872 fi
12873else
12874 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12875 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12876 { $as_echo "$as_me:$LINENO: result: yes" >&5
12877$as_echo "yes" >&6; }
12878 HAVE_CMAN=yes
12879fi
12880 CHECKCONFDB=yes
12881 CHECKDLM=yes
12882fi
12883
12884if test x$BUILDCOROSYNC = xyes || \
12885 test x$BUILDOPENAIS = xyes; then
12886
12887pkg_failed=no
12888{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12889$as_echo_n "checking for COROSYNC... " >&6; }
12890
12891if test -n "$COROSYNC_CFLAGS"; then
12892 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12893 elif test -n "$PKG_CONFIG"; then
12894 if test -n "$PKG_CONFIG" && \
12895 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12896 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12897 ac_status=$?
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; then
12900 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12901else
12902 pkg_failed=yes
12903fi
12904 else
12905 pkg_failed=untried
12906fi
12907if test -n "$COROSYNC_LIBS"; then
12908 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12909 elif test -n "$PKG_CONFIG"; then
12910 if test -n "$PKG_CONFIG" && \
12911 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12912 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12913 ac_status=$?
12914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; then
12916 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12917else
12918 pkg_failed=yes
12919fi
12920 else
12921 pkg_failed=untried
12922fi
12923
12924
12925
12926if test $pkg_failed = yes; then
12927
12928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12929 _pkg_short_errors_supported=yes
12930else
12931 _pkg_short_errors_supported=no
12932fi
12933 if test $_pkg_short_errors_supported = yes; then
12934 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12935 else
12936 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12937 fi
12938 # Put the nasty error message in config.log where it belongs
12939 echo "$COROSYNC_PKG_ERRORS" >&5
12940
d911ec67 12941 { $as_echo "$as_me:$LINENO: result: no" >&5
b5c2529b 12942$as_echo "no" >&6; }
d911ec67
AK
12943 $bailout
12944elif test $pkg_failed = untried; then
a946372e
AK
12945 $bailout
12946else
12947 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12948 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12949 { $as_echo "$as_me:$LINENO: result: yes" >&5
12950$as_echo "yes" >&6; }
12951 HAVE_COROSYNC=yes
12952fi
12953 CHECKCONFDB=yes
12954fi
12955
12956if test x$BUILDCOROSYNC = xyes; then
12957
12958pkg_failed=no
12959{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12960$as_echo_n "checking for QUORUM... " >&6; }
12961
12962if test -n "$QUORUM_CFLAGS"; then
12963 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12964 elif test -n "$PKG_CONFIG"; then
12965 if test -n "$PKG_CONFIG" && \
12966 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12967 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12968 ac_status=$?
12969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; then
12971 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12972else
12973 pkg_failed=yes
12974fi
12975 else
12976 pkg_failed=untried
12977fi
12978if test -n "$QUORUM_LIBS"; then
12979 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
12980 elif test -n "$PKG_CONFIG"; then
12981 if test -n "$PKG_CONFIG" && \
12982 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12983 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12984 ac_status=$?
12985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; then
12987 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
12988else
12989 pkg_failed=yes
12990fi
12991 else
12992 pkg_failed=untried
12993fi
12994
12995
12996
12997if test $pkg_failed = yes; then
12998
12999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13000 _pkg_short_errors_supported=yes
13001else
13002 _pkg_short_errors_supported=no
13003fi
13004 if test $_pkg_short_errors_supported = yes; then
13005 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13006 else
13007 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13008 fi
13009 # Put the nasty error message in config.log where it belongs
13010 echo "$QUORUM_PKG_ERRORS" >&5
13011
d911ec67 13012 { $as_echo "$as_me:$LINENO: result: no" >&5
b5c2529b 13013$as_echo "no" >&6; }
d911ec67
AK
13014 $bailout
13015elif test $pkg_failed = untried; then
a946372e
AK
13016 $bailout
13017else
13018 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13019 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13020 { $as_echo "$as_me:$LINENO: result: yes" >&5
13021$as_echo "yes" >&6; }
13022 HAVE_QUORUM=yes
13023fi
13024 CHECKCPG=yes
13025 CHECKDLM=yes
13026fi
13027
13028if test x$BUILDOPENAIS = xyes; then
13029
13030pkg_failed=no
13031{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13032$as_echo_n "checking for SALCK... " >&6; }
13033
13034if test -n "$SALCK_CFLAGS"; then
13035 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13036 elif test -n "$PKG_CONFIG"; then
13037 if test -n "$PKG_CONFIG" && \
13038 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13039 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13040 ac_status=$?
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; then
13043 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13044else
13045 pkg_failed=yes
13046fi
13047 else
13048 pkg_failed=untried
13049fi
13050if test -n "$SALCK_LIBS"; then
13051 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13052 elif test -n "$PKG_CONFIG"; then
13053 if test -n "$PKG_CONFIG" && \
13054 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13055 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13056 ac_status=$?
13057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; then
13059 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13060else
13061 pkg_failed=yes
13062fi
13063 else
13064 pkg_failed=untried
13065fi
13066
13067
13068
13069if test $pkg_failed = yes; then
13070
13071if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13072 _pkg_short_errors_supported=yes
13073else
13074 _pkg_short_errors_supported=no
13075fi
13076 if test $_pkg_short_errors_supported = yes; then
13077 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13078 else
13079 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13080 fi
13081 # Put the nasty error message in config.log where it belongs
13082 echo "$SALCK_PKG_ERRORS" >&5
13083
d911ec67 13084 { $as_echo "$as_me:$LINENO: result: no" >&5
b5c2529b 13085$as_echo "no" >&6; }
d911ec67
AK
13086 $bailout
13087elif test $pkg_failed = untried; then
a946372e
AK
13088 $bailout
13089else
13090 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13091 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13092 { $as_echo "$as_me:$LINENO: result: yes" >&5
13093$as_echo "yes" >&6; }
13094 HAVE_SALCK=yes
13095fi
13096 CHECKCPG=yes
13097fi
13098
13099
13100
13101if test x$CHECKCONFDB = xyes; then
13102
13103pkg_failed=no
13104{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13105$as_echo_n "checking for CONFDB... " >&6; }
13106
13107if test -n "$CONFDB_CFLAGS"; then
13108 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13109 elif test -n "$PKG_CONFIG"; then
13110 if test -n "$PKG_CONFIG" && \
13111 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13112 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13113 ac_status=$?
13114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; then
13116 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13117else
13118 pkg_failed=yes
13119fi
13120 else
13121 pkg_failed=untried
13122fi
13123if test -n "$CONFDB_LIBS"; then
13124 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13125 elif test -n "$PKG_CONFIG"; then
13126 if test -n "$PKG_CONFIG" && \
13127 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13128 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13129 ac_status=$?
13130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; then
13132 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13133else
13134 pkg_failed=yes
13135fi
13136 else
13137 pkg_failed=untried
13138fi
13139
13140
13141
13142if test $pkg_failed = yes; then
13143
13144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13145 _pkg_short_errors_supported=yes
13146else
13147 _pkg_short_errors_supported=no
13148fi
13149 if test $_pkg_short_errors_supported = yes; then
13150 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13151 else
13152 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13153 fi
13154 # Put the nasty error message in config.log where it belongs
13155 echo "$CONFDB_PKG_ERRORS" >&5
13156
d911ec67 13157 { $as_echo "$as_me:$LINENO: result: no" >&5
b5c2529b 13158$as_echo "no" >&6; }
d911ec67
AK
13159 HAVE_CONFDB=no
13160elif test $pkg_failed = untried; then
a946372e
AK
13161 HAVE_CONFDB=no
13162else
13163 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13164 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13165 { $as_echo "$as_me:$LINENO: result: yes" >&5
13166$as_echo "yes" >&6; }
13167 HAVE_CONFDB=yes
13168fi
13169
13170
13171for ac_header in corosync/confdb.h
13172do
13173as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13176$as_echo_n "checking for $ac_header... " >&6; }
13177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13178 $as_echo_n "(cached) " >&6
13179fi
13180ac_res=`eval 'as_val=${'$as_ac_Header'}
13181 $as_echo "$as_val"'`
13182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13183$as_echo "$ac_res" >&6; }
13184else
13185 # Is the header compilable?
13186{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13187$as_echo_n "checking $ac_header usability... " >&6; }
13188cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h. */
13194$ac_includes_default
13195#include <$ac_header>
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (ac_try="$ac_compile"
13199case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13204$as_echo "$ac_try_echo") >&5
13205 (eval "$ac_compile") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest.$ac_objext; then
13215 ac_header_compiler=yes
13216else
13217 $as_echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 ac_header_compiler=no
13221fi
13222
13223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13225$as_echo "$ac_header_compiler" >&6; }
13226
13227# Is the header present?
13228{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13229$as_echo_n "checking $ac_header presence... " >&6; }
13230cat >conftest.$ac_ext <<_ACEOF
13231/* confdefs.h. */
13232_ACEOF
13233cat confdefs.h >>conftest.$ac_ext
13234cat >>conftest.$ac_ext <<_ACEOF
13235/* end confdefs.h. */
13236#include <$ac_header>
13237_ACEOF
13238if { (ac_try="$ac_cpp conftest.$ac_ext"
13239case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242esac
13243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244$as_echo "$ac_try_echo") >&5
13245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } >/dev/null && {
13252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 }; then
13255 ac_header_preproc=yes
13256else
13257 $as_echo "$as_me: failed program was:" >&5
13258sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ac_header_preproc=no
13261fi
13262
13263rm -f conftest.err conftest.$ac_ext
13264{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13265$as_echo "$ac_header_preproc" >&6; }
13266
13267# So? What about this header?
13268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13269 yes:no: )
13270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13271$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13273$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13274 ac_header_preproc=yes
13275 ;;
13276 no:yes:* )
13277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13278$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13280$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13282$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13284$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13286$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13288$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13289
13290 ;;
13291esac
13292{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13293$as_echo_n "checking for $ac_header... " >&6; }
13294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13295 $as_echo_n "(cached) " >&6
13296else
13297 eval "$as_ac_Header=\$ac_header_preproc"
13298fi
13299ac_res=`eval 'as_val=${'$as_ac_Header'}
13300 $as_echo "$as_val"'`
13301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13302$as_echo "$ac_res" >&6; }
13303
13304fi
13305as_val=`eval 'as_val=${'$as_ac_Header'}
13306 $as_echo "$as_val"'`
13307 if test "x$as_val" = x""yes; then
13308 cat >>confdefs.h <<_ACEOF
13309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13310_ACEOF
13311 HAVE_CONFDB_H=yes
13312else
13313 HAVE_CONFDB_H=no
13314fi
13315
13316done
13317
13318
13319 if test x$HAVE_CONFDB != xyes && \
13320 test x$HAVE_CONFDB_H = xyes; then
13321 check_lib_no_libs confdb confdb_initialize
13322 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13323$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13324 CONFDB_LIBS="-lconfdb"
13325 HAVE_CONFDB=yes
13326 fi
13327
13328 if test x$BUILDCOROSYNC = xyes && \
13329 test x$HAVE_CONFDB != xyes &&
13330 test x$CLVMD != xall; then
13331 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13332$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13333 { (exit 1); exit 1; }; }
13334 fi
13335fi
13336
13337if test x$CHECKCPG = xyes; then
13338
13339pkg_failed=no
13340{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13341$as_echo_n "checking for CPG... " >&6; }
13342
13343if test -n "$CPG_CFLAGS"; then
13344 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13345 elif test -n "$PKG_CONFIG"; then
13346 if test -n "$PKG_CONFIG" && \
13347 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13348 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13349 ac_status=$?
13350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; then
13352 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13353else
13354 pkg_failed=yes
13355fi
13356 else
13357 pkg_failed=untried
13358fi
13359if test -n "$CPG_LIBS"; then
13360 pkg_cv_CPG_LIBS="$CPG_LIBS"
13361 elif test -n "$PKG_CONFIG"; then
13362 if test -n "$PKG_CONFIG" && \
13363 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13364 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13365 ac_status=$?
13366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; then
13368 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13369else
13370 pkg_failed=yes
13371fi
13372 else
13373 pkg_failed=untried
13374fi
13375
13376
13377
13378if test $pkg_failed = yes; then
13379
13380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13381 _pkg_short_errors_supported=yes
13382else
13383 _pkg_short_errors_supported=no
13384fi
13385 if test $_pkg_short_errors_supported = yes; then
13386 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13387 else
13388 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13389 fi
13390 # Put the nasty error message in config.log where it belongs
13391 echo "$CPG_PKG_ERRORS" >&5
13392
d911ec67 13393 { $as_echo "$as_me:$LINENO: result: no" >&5
b5c2529b 13394$as_echo "no" >&6; }
d911ec67
AK
13395 $bailout
13396elif test $pkg_failed = untried; then
a946372e
AK
13397 $bailout
13398else
13399 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13400 CPG_LIBS=$pkg_cv_CPG_LIBS
13401 { $as_echo "$as_me:$LINENO: result: yes" >&5
13402$as_echo "yes" >&6; }
13403 HAVE_CPG=yes
13404fi
13405fi
13406
13407if test x$CHECKDLM = xyes; then
13408
13409pkg_failed=no
13410{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13411$as_echo_n "checking for DLM... " >&6; }
13412
13413if test -n "$DLM_CFLAGS"; then
13414 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13415 elif test -n "$PKG_CONFIG"; then
13416 if test -n "$PKG_CONFIG" && \
13417 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13418 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13419 ac_status=$?
13420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; then
13422 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13423else
13424 pkg_failed=yes
13425fi
13426 else
13427 pkg_failed=untried
13428fi
13429if test -n "$DLM_LIBS"; then
13430 pkg_cv_DLM_LIBS="$DLM_LIBS"
13431 elif test -n "$PKG_CONFIG"; then
13432 if test -n "$PKG_CONFIG" && \
13433 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13434 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13435 ac_status=$?
13436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; then
13438 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13439else
13440 pkg_failed=yes
13441fi
13442 else
13443 pkg_failed=untried
13444fi
13445
13446
13447
13448if test $pkg_failed = yes; then
13449
13450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13451 _pkg_short_errors_supported=yes
13452else
13453 _pkg_short_errors_supported=no
13454fi
13455 if test $_pkg_short_errors_supported = yes; then
13456 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13457 else
13458 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13459 fi
13460 # Put the nasty error message in config.log where it belongs
13461 echo "$DLM_PKG_ERRORS" >&5
13462
d911ec67
AK
13463 { $as_echo "$as_me:$LINENO: result: no" >&5
13464$as_echo "no" >&6; }
13465 NOTFOUND=0
a946372e
AK
13466
13467for ac_header in libdlm.h
13468do
13469as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13472$as_echo_n "checking for $ac_header... " >&6; }
13473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13474 $as_echo_n "(cached) " >&6
13475fi
13476ac_res=`eval 'as_val=${'$as_ac_Header'}
13477 $as_echo "$as_val"'`
13478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13479$as_echo "$ac_res" >&6; }
13480else
13481 # Is the header compilable?
13482{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13483$as_echo_n "checking $ac_header usability... " >&6; }
13484cat >conftest.$ac_ext <<_ACEOF
13485/* confdefs.h. */
13486_ACEOF
13487cat confdefs.h >>conftest.$ac_ext
13488cat >>conftest.$ac_ext <<_ACEOF
13489/* end confdefs.h. */
13490$ac_includes_default
13491#include <$ac_header>
13492_ACEOF
13493rm -f conftest.$ac_objext
13494if { (ac_try="$ac_compile"
13495case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13498esac
13499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13500$as_echo "$ac_try_echo") >&5
13501 (eval "$ac_compile") 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest.$ac_objext; then
13511 ac_header_compiler=yes
13512else
13513 $as_echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_header_compiler=no
13517fi
13518
13519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13521$as_echo "$ac_header_compiler" >&6; }
13522
13523# Is the header present?
13524{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13525$as_echo_n "checking $ac_header presence... " >&6; }
13526cat >conftest.$ac_ext <<_ACEOF
13527/* confdefs.h. */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
13531/* end confdefs.h. */
13532#include <$ac_header>
13533_ACEOF
13534if { (ac_try="$ac_cpp conftest.$ac_ext"
13535case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13538esac
13539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13540$as_echo "$ac_try_echo") >&5
13541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } >/dev/null && {
13548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13549 test ! -s conftest.err
13550 }; then
13551 ac_header_preproc=yes
13552else
13553 $as_echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_header_preproc=no
13557fi
13558
13559rm -f conftest.err conftest.$ac_ext
13560{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13561$as_echo "$ac_header_preproc" >&6; }
13562
13563# So? What about this header?
13564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13565 yes:no: )
13566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13567$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13569$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13570 ac_header_preproc=yes
13571 ;;
13572 no:yes:* )
13573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13574$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13576$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13578$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13580$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13582$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13584$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13585
13586 ;;
13587esac
13588{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13589$as_echo_n "checking for $ac_header... " >&6; }
13590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13591 $as_echo_n "(cached) " >&6
13592else
13593 eval "$as_ac_Header=\$ac_header_preproc"
13594fi
13595ac_res=`eval 'as_val=${'$as_ac_Header'}
13596 $as_echo "$as_val"'`
13597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13598$as_echo "$ac_res" >&6; }
13599
13600fi
13601as_val=`eval 'as_val=${'$as_ac_Header'}
13602 $as_echo "$as_val"'`
13603 if test "x$as_val" = x""yes; then
13604 cat >>confdefs.h <<_ACEOF
13605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13606_ACEOF
13607
13608else
13609 $bailout
13610fi
13611
13612done
13613
13614 check_lib_no_libs dlm dlm_lock -lpthread
13615 if test $NOTFOUND = 0; then
13616 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13617$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13618 DLM_LIBS="-ldlm -lpthread"
13619 HAVE_DLM=yes
13620 fi
13621elif test $pkg_failed = untried; then
13622 NOTFOUND=0
13623
13624for ac_header in libdlm.h
13625do
13626as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13629$as_echo_n "checking for $ac_header... " >&6; }
13630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13631 $as_echo_n "(cached) " >&6
13632fi
13633ac_res=`eval 'as_val=${'$as_ac_Header'}
13634 $as_echo "$as_val"'`
13635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13636$as_echo "$ac_res" >&6; }
13637else
13638 # Is the header compilable?
13639{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13640$as_echo_n "checking $ac_header usability... " >&6; }
13641cat >conftest.$ac_ext <<_ACEOF
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
13647$ac_includes_default
13648#include <$ac_header>
13649_ACEOF
13650rm -f conftest.$ac_objext
13651if { (ac_try="$ac_compile"
13652case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13655esac
13656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13657$as_echo "$ac_try_echo") >&5
13658 (eval "$ac_compile") 2>conftest.er1
13659 ac_status=$?
13660 grep -v '^ *+' conftest.er1 >conftest.err
13661 rm -f conftest.er1
13662 cat conftest.err >&5
13663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } && {
13665 test -z "$ac_c_werror_flag" ||
13666 test ! -s conftest.err
13667 } && test -s conftest.$ac_objext; then
13668 ac_header_compiler=yes
13669else
13670 $as_echo "$as_me: failed program was:" >&5
13671sed 's/^/| /' conftest.$ac_ext >&5
13672
13673 ac_header_compiler=no
13674fi
13675
13676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13678$as_echo "$ac_header_compiler" >&6; }
13679
13680# Is the header present?
13681{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13682$as_echo_n "checking $ac_header presence... " >&6; }
13683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689#include <$ac_header>
13690_ACEOF
13691if { (ac_try="$ac_cpp conftest.$ac_ext"
13692case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13697$as_echo "$ac_try_echo") >&5
13698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } >/dev/null && {
13705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 }; then
13708 ac_header_preproc=yes
13709else
13710 $as_echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 ac_header_preproc=no
13714fi
13715
13716rm -f conftest.err conftest.$ac_ext
13717{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13718$as_echo "$ac_header_preproc" >&6; }
13719
13720# So? What about this header?
13721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13722 yes:no: )
13723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13724$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13726$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13727 ac_header_preproc=yes
13728 ;;
13729 no:yes:* )
13730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13731$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13733$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13735$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13737$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13739$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13741$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13742
13743 ;;
13744esac
13745{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13746$as_echo_n "checking for $ac_header... " >&6; }
13747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13748 $as_echo_n "(cached) " >&6
13749else
13750 eval "$as_ac_Header=\$ac_header_preproc"
13751fi
13752ac_res=`eval 'as_val=${'$as_ac_Header'}
13753 $as_echo "$as_val"'`
13754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13755$as_echo "$ac_res" >&6; }
13756
13757fi
13758as_val=`eval 'as_val=${'$as_ac_Header'}
13759 $as_echo "$as_val"'`
13760 if test "x$as_val" = x""yes; then
13761 cat >>confdefs.h <<_ACEOF
13762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13763_ACEOF
13764
13765else
13766 $bailout
13767fi
13768
13769done
13770
13771 check_lib_no_libs dlm dlm_lock -lpthread
13772 if test $NOTFOUND = 0; then
13773 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13774$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13775 DLM_LIBS="-ldlm -lpthread"
13776 HAVE_DLM=yes
13777 fi
13778else
13779 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13780 DLM_LIBS=$pkg_cv_DLM_LIBS
13781 { $as_echo "$as_me:$LINENO: result: yes" >&5
13782$as_echo "yes" >&6; }
13783 HAVE_DLM=yes
13784fi
13785fi
13786
13787if test x$CLVMD = xall; then
8c222979 13788 CLVMD=none
a946372e
AK
13789 if test x$HAVE_CCS = xyes && \
13790 test x$HAVE_GULM = xyes; then
8c222979
FDN
13791 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13792$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13793 CLVMD="$CLVMD,gulm"
a946372e
AK
13794 fi
13795 if test x$HAVE_CMAN = xyes && \
13796 test x$HAVE_DLM = xyes; then
8c222979
FDN
13797 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13798$as_echo "Enabling clvmd cman cluster manager" >&6; }
13799 CLVMD="$CLVMD,cman"
a946372e
AK
13800 fi
13801 if test x$HAVE_COROSYNC = xyes && \
13802 test x$HAVE_QUORUM = xyes && \
13803 test x$HAVE_CPG = xyes && \
13804 test x$HAVE_DLM = xyes && \
13805 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13806 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13807$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13808 CLVMD="$CLVMD,corosync"
a946372e
AK
13809 fi
13810 if test x$HAVE_COROSYNC = xyes && \
13811 test x$HAVE_CPG = xyes && \
13812 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13813 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13814$as_echo "Enabling clvmd openais cluster manager" >&6; }
13815 CLVMD="$CLVMD,openais"
13816 fi
13817 if test x$CLVMD = xnone; then
13818 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13819$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13820 fi
a946372e
AK
13821fi
13822
13823################################################################################
66fd4529
AK
13824{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13825$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13826# Check whether --enable-cmirrord was given.
13827if test "${enable_cmirrord+set}" = set; then
13828 enableval=$enable_cmirrord; CMIRRORD=$enableval
13829else
13830 CMIRRORD=no
13831fi
13832
13833{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13834$as_echo "$CMIRRORD" >&6; }
13835
13836BUILD_CMIRRORD=$CMIRRORD
13837
13838################################################################################
13839
13840
13841if test "x$BUILD_CMIRRORD" = xyes; then
13842
13843# Check whether --with-cmirrord-pidfile was given.
13844if test "${with_cmirrord_pidfile+set}" = set; then
13845 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
13846#define CMIRRORD_PIDFILE "$withval"
13847_ACEOF
13848
13849else
13850 cat >>confdefs.h <<_ACEOF
13851#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
13852_ACEOF
13853
a946372e
AK
13854fi
13855
66fd4529 13856fi
a946372e 13857
66fd4529
AK
13858################################################################################
13859if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13860 if test x$PKGCONFIG_INIT != x1; then
13861 pkg_config_init
13862 fi
13863
13864pkg_failed=no
13865{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13866$as_echo_n "checking for SACKPT... " >&6; }
13867
13868if test -n "$SACKPT_CFLAGS"; then
13869 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13870 elif test -n "$PKG_CONFIG"; then
13871 if test -n "$PKG_CONFIG" && \
13872 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13873 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13874 ac_status=$?
13875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; then
13877 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13878else
13879 pkg_failed=yes
13880fi
13881 else
13882 pkg_failed=untried
13883fi
13884if test -n "$SACKPT_LIBS"; then
13885 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13886 elif test -n "$PKG_CONFIG"; then
13887 if test -n "$PKG_CONFIG" && \
13888 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13889 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13890 ac_status=$?
13891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; then
13893 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13894else
13895 pkg_failed=yes
13896fi
13897 else
13898 pkg_failed=untried
13899fi
13900
13901
13902
13903if test $pkg_failed = yes; then
13904
13905if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13906 _pkg_short_errors_supported=yes
13907else
13908 _pkg_short_errors_supported=no
13909fi
13910 if test $_pkg_short_errors_supported = yes; then
13911 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13912 else
13913 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13914 fi
13915 # Put the nasty error message in config.log where it belongs
13916 echo "$SACKPT_PKG_ERRORS" >&5
13917
13918 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13919
13920$SACKPT_PKG_ERRORS
13921
13922Consider adjusting the PKG_CONFIG_PATH environment variable if you
13923installed software in a non-standard prefix.
13924
13925Alternatively, you may set the environment variables SACKPT_CFLAGS
13926and SACKPT_LIBS to avoid the need to call pkg-config.
d911ec67
AK
13927See the pkg-config man page for more details.
13928" >&5
90c80887
AK
13929$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13930
13931$SACKPT_PKG_ERRORS
13932
13933Consider adjusting the PKG_CONFIG_PATH environment variable if you
13934installed software in a non-standard prefix.
13935
13936Alternatively, you may set the environment variables SACKPT_CFLAGS
13937and SACKPT_LIBS to avoid the need to call pkg-config.
d911ec67
AK
13938See the pkg-config man page for more details.
13939" >&2;}
90c80887
AK
13940 { (exit 1); exit 1; }; }
13941elif test $pkg_failed = untried; then
13942 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13944{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13945is in your PATH or set the PKG_CONFIG environment variable to the full
13946path to pkg-config.
13947
13948Alternatively, you may set the environment variables SACKPT_CFLAGS
13949and SACKPT_LIBS to avoid the need to call pkg-config.
13950See the pkg-config man page for more details.
13951
13952To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13953See \`config.log' for more details." >&5
13954$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13955is in your PATH or set the PKG_CONFIG environment variable to the full
13956path to pkg-config.
13957
13958Alternatively, you may set the environment variables SACKPT_CFLAGS
13959and SACKPT_LIBS to avoid the need to call pkg-config.
13960See the pkg-config man page for more details.
13961
13962To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13963See \`config.log' for more details." >&2;}
13964 { (exit 1); exit 1; }; }; }
13965else
13966 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
13967 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
13968 { $as_echo "$as_me:$LINENO: result: yes" >&5
13969$as_echo "yes" >&6; }
d911ec67 13970 :
90c80887
AK
13971fi
13972 if test x$HAVE_CPG != xyes; then
a946372e
AK
13973
13974pkg_failed=no
13975{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13976$as_echo_n "checking for CPG... " >&6; }
13977
13978if test -n "$CPG_CFLAGS"; then
13979 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13980 elif test -n "$PKG_CONFIG"; then
13981 if test -n "$PKG_CONFIG" && \
13982 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13983 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13984 ac_status=$?
13985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; then
13987 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13988else
13989 pkg_failed=yes
13990fi
13991 else
13992 pkg_failed=untried
13993fi
13994if test -n "$CPG_LIBS"; then
13995 pkg_cv_CPG_LIBS="$CPG_LIBS"
13996 elif test -n "$PKG_CONFIG"; then
13997 if test -n "$PKG_CONFIG" && \
13998 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13999 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14000 ac_status=$?
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; then
14003 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14004else
14005 pkg_failed=yes
14006fi
14007 else
14008 pkg_failed=untried
14009fi
14010
14011
14012
14013if test $pkg_failed = yes; then
14014
14015if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14016 _pkg_short_errors_supported=yes
14017else
14018 _pkg_short_errors_supported=no
14019fi
14020 if test $_pkg_short_errors_supported = yes; then
14021 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14022 else
14023 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14024 fi
14025 # Put the nasty error message in config.log where it belongs
14026 echo "$CPG_PKG_ERRORS" >&5
14027
90c80887
AK
14028 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14029
14030$CPG_PKG_ERRORS
14031
14032Consider adjusting the PKG_CONFIG_PATH environment variable if you
14033installed software in a non-standard prefix.
14034
14035Alternatively, you may set the environment variables CPG_CFLAGS
14036and CPG_LIBS to avoid the need to call pkg-config.
d911ec67
AK
14037See the pkg-config man page for more details.
14038" >&5
90c80887
AK
14039$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14040
14041$CPG_PKG_ERRORS
14042
14043Consider adjusting the PKG_CONFIG_PATH environment variable if you
14044installed software in a non-standard prefix.
14045
14046Alternatively, you may set the environment variables CPG_CFLAGS
14047and CPG_LIBS to avoid the need to call pkg-config.
d911ec67
AK
14048See the pkg-config man page for more details.
14049" >&2;}
90c80887 14050 { (exit 1); exit 1; }; }
a946372e 14051elif test $pkg_failed = untried; then
90c80887
AK
14052 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14054{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14055is in your PATH or set the PKG_CONFIG environment variable to the full
14056path to pkg-config.
14057
14058Alternatively, you may set the environment variables CPG_CFLAGS
14059and CPG_LIBS to avoid the need to call pkg-config.
14060See the pkg-config man page for more details.
14061
14062To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14063See \`config.log' for more details." >&5
14064$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14065is in your PATH or set the PKG_CONFIG environment variable to the full
14066path to pkg-config.
14067
14068Alternatively, you may set the environment variables CPG_CFLAGS
14069and CPG_LIBS to avoid the need to call pkg-config.
14070See the pkg-config man page for more details.
14071
14072To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14073See \`config.log' for more details." >&2;}
14074 { (exit 1); exit 1; }; }; }
a946372e
AK
14075else
14076 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14077 CPG_LIBS=$pkg_cv_CPG_LIBS
14078 { $as_echo "$as_me:$LINENO: result: yes" >&5
14079$as_echo "yes" >&6; }
d911ec67 14080 :
a946372e 14081fi
90c80887 14082 fi
a946372e
AK
14083fi
14084
14085################################################################################
14086{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14087$as_echo_n "checking whether to enable debugging... " >&6; }
14088# Check whether --enable-debug was given.
14089if test "${enable_debug+set}" = set; then
14090 enableval=$enable_debug; DEBUG=$enableval
14091else
14092 DEBUG=no
14093fi
14094
14095{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14096$as_echo "$DEBUG" >&6; }
14097
14098if test x$DEBUG = xyes; then
14099 COPTIMISE_FLAG=
14100else
14101 CSCOPE_CMD=
14102fi
14103
14104################################################################################
14105{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14106$as_echo_n "checking for C optimisation flag... " >&6; }
14107
14108# Check whether --with-optimisation was given.
14109if test "${with_optimisation+set}" = set; then
14110 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
14111fi
14112
14113{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14114$as_echo "$COPTIMISE_FLAG" >&6; }
14115
14116################################################################################
14117{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14118$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14119# Check whether --enable-profiling was given.
14120if test "${enable_profiling+set}" = set; then
5556819a 14121 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14122else
5556819a 14123 PROFILING=no
fddafd51
ZK
14124fi
14125
ec6a6fbe
AK
14126{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14127$as_echo "$PROFILING" >&6; }
5556819a
AK
14128
14129if test "x$PROFILING" = xyes; then
14130 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14131 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14132set dummy lcov; ac_word=$2
ec6a6fbe
AK
14133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14134$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14135if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14136 $as_echo_n "(cached) " >&6
fddafd51
ZK
14137else
14138 case $LCOV in
14139 [\\/]* | ?:[\\/]*)
14140 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14141 ;;
14142 *)
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144for as_dir in $PATH
14145do
14146 IFS=$as_save_IFS
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14152 break 2
14153 fi
14154done
14155done
14156IFS=$as_save_IFS
14157
14158 ;;
14159esac
14160fi
14161LCOV=$ac_cv_path_LCOV
14162if test -n "$LCOV"; then
ec6a6fbe
AK
14163 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14164$as_echo "$LCOV" >&6; }
fddafd51 14165else
ec6a6fbe
AK
14166 { $as_echo "$as_me:$LINENO: result: no" >&5
14167$as_echo "no" >&6; }
fddafd51
ZK
14168fi
14169
14170
5556819a 14171 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14172set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14174$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14175if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14176 $as_echo_n "(cached) " >&6
fddafd51
ZK
14177else
14178 case $GENHTML in
14179 [\\/]* | ?:[\\/]*)
14180 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14181 ;;
14182 *)
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184for as_dir in $PATH
14185do
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14190 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14191 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14192 break 2
14193 fi
14194done
14195done
14196IFS=$as_save_IFS
14197
14198 ;;
14199esac
14200fi
14201GENHTML=$ac_cv_path_GENHTML
14202if test -n "$GENHTML"; then
ec6a6fbe
AK
14203 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14204$as_echo "$GENHTML" >&6; }
fddafd51 14205else
ec6a6fbe
AK
14206 { $as_echo "$as_me:$LINENO: result: no" >&5
14207$as_echo "no" >&6; }
fddafd51
ZK
14208fi
14209
14210
fd4728e1 14211 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14212 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14213$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14214 { (exit 1); exit 1; }; }
14215 fi
fd4728e1
ZK
14216 # Extract the first word of "genpng", so it can be a program name with args.
14217set dummy genpng; ac_word=$2
14218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14219$as_echo_n "checking for $ac_word... " >&6; }
14220if test "${ac_cv_path_GENPNG+set}" = set; then
14221 $as_echo_n "(cached) " >&6
14222else
14223 case $GENPNG in
14224 [\\/]* | ?:[\\/]*)
14225 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14226 ;;
14227 *)
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229for as_dir in $PATH
14230do
14231 IFS=$as_save_IFS
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14235 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14237 break 2
14238 fi
14239done
14240done
14241IFS=$as_save_IFS
14242
14243 ;;
14244esac
14245fi
14246GENPNG=$ac_cv_path_GENPNG
14247if test -n "$GENPNG"; then
14248 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14249$as_echo "$GENPNG" >&6; }
14250else
14251 { $as_echo "$as_me:$LINENO: result: no" >&5
14252$as_echo "no" >&6; }
14253fi
14254
14255
14256 if test -n "$GENPNG"; then
14257 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14258$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14259 if $GENPNG --help > /dev/null 2>&1 ; then
14260 { $as_echo "$as_me:$LINENO: result: ok" >&5
14261$as_echo "ok" >&6; }
14262 GENHTML="$GENHTML --frames"
14263 else
14264 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14265$as_echo "not supported" >&6; }
14266 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14267$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14268 GENPNG=
14269 fi
14270 fi
5556819a 14271fi
d0191583
JM
14272
14273################################################################################
ec6a6fbe
AK
14274{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14275$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14276# Check whether --enable-devmapper was given.
14277if test "${enable_devmapper+set}" = set; then
14278 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14279fi
14280
ec6a6fbe
AK
14281{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14282$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14283
14284if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14285
14286cat >>confdefs.h <<\_ACEOF
d0191583 14287#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14288_ACEOF
14289
14290fi
14291
a5f46f6a
AK
14292################################################################################
14293{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14294$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14295# Check whether --enable-udev_sync was given.
14296if test "${enable_udev_sync+set}" = set; then
14297 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14298else
14299 UDEV_SYNC=no
14300fi
14301
14302{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14303$as_echo "$UDEV_SYNC" >&6; }
14304
90c80887
AK
14305if test x$UDEV_SYNC = xyes; then
14306 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14307$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14308if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14309 $as_echo_n "(cached) " >&6
14310else
14311 ac_check_lib_save_LIBS=$LIBS
14312LIBS="-ludev $LIBS"
14313cat >conftest.$ac_ext <<_ACEOF
14314/* confdefs.h. */
14315_ACEOF
14316cat confdefs.h >>conftest.$ac_ext
14317cat >>conftest.$ac_ext <<_ACEOF
14318/* end confdefs.h. */
14319
14320/* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14323#ifdef __cplusplus
14324extern "C"
14325#endif
14326char udev_queue_get_udev_is_active ();
14327int
14328main ()
14329{
14330return udev_queue_get_udev_is_active ();
14331 ;
14332 return 0;
14333}
14334_ACEOF
14335rm -f conftest.$ac_objext conftest$ac_exeext
14336if { (ac_try="$ac_link"
14337case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340esac
14341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14342$as_echo "$ac_try_echo") >&5
14343 (eval "$ac_link") 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest$ac_exeext && {
14353 test "$cross_compiling" = yes ||
14354 $as_test_x conftest$ac_exeext
14355 }; then
14356 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14357else
14358 $as_echo "$as_me: failed program was:" >&5
14359sed 's/^/| /' conftest.$ac_ext >&5
14360
14361 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14362fi
14363
14364rm -rf conftest.dSYM
14365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366 conftest$ac_exeext conftest.$ac_ext
14367LIBS=$ac_check_lib_save_LIBS
14368fi
14369{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14370$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14371if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14372 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14373else
5161ecb9
PR
14374 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14375$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14376 { (exit 1); exit 1; }; }
90c80887
AK
14377fi
14378
14379
90c80887 14380cat >>confdefs.h <<\_ACEOF
5161ecb9 14381#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14382_ACEOF
14383
90c80887
AK
14384fi
14385
5161ecb9
PR
14386{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14387$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14388# Check whether --enable-udev_rules was given.
14389if test "${enable_udev_rules+set}" = set; then
14390 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14391else
14392 UDEV_RULES=$UDEV_SYNC
14393fi
14394
14395{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14396$as_echo "$UDEV_RULES" >&6; }
14397
93bd259b
AK
14398################################################################################
14399# Check whether --enable-compat was given.
14400if test "${enable_compat+set}" = set; then
14401 enableval=$enable_compat; DM_COMPAT=$enableval
14402else
14403 DM_COMPAT=no
14404fi
14405
14406
95eaa683
AK
14407################################################################################
14408# Check whether --enable-units-compat was given.
14409if test "${enable_units_compat+set}" = set; then
14410 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14411else
14412 UNITS_COMPAT=no
14413fi
14414
14415
14416if test x$UNITS_COMPAT = xyes; then
14417
14418cat >>confdefs.h <<\_ACEOF
14419#define DEFAULT_SI_UNIT_CONSISTENCY 0
14420_ACEOF
14421
14422fi
14423
93bd259b
AK
14424################################################################################
14425# Check whether --enable-ioctl was given.
14426if test "${enable_ioctl+set}" = set; then
14427 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14428fi
14429
14430
d0191583 14431################################################################################
ec6a6fbe
AK
14432{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14433$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14434# Check whether --enable-o_direct was given.
14435if test "${enable_o_direct+set}" = set; then
14436 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14437fi
ad6254c5 14438
ec6a6fbe
AK
14439{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14440$as_echo "$ODIRECT" >&6; }
ad6254c5 14441
d0191583 14442if test x$ODIRECT = xyes; then
ad6254c5 14443
d0191583
JM
14444cat >>confdefs.h <<\_ACEOF
14445#define O_DIRECT_SUPPORT 1
14446_ACEOF
ad6254c5 14447
d0191583 14448fi
ad6254c5 14449
572fefeb
AK
14450################################################################################
14451{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14452$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14453# Check whether --enable-applib was given.
14454if test "${enable_applib+set}" = set; then
14455 enableval=$enable_applib; APPLIB=$enableval
14456else
14457 APPLIB=no
14458fi
14459
14460{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14461$as_echo "$APPLIB" >&6; }
14462
14463test x$APPLIB = xyes \
14464 && LVM2APP_LIB=-llvm2app \
14465 || LVM2APP_LIB=
14466
d0191583 14467################################################################################
ec6a6fbe
AK
14468{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14469$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14470# Check whether --enable-cmdlib was given.
14471if test "${enable_cmdlib+set}" = set; then
14472 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14473else
d0191583
JM
14474 CMDLIB=no
14475fi
8a2fc586 14476
ec6a6fbe
AK
14477{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14478$as_echo "$CMDLIB" >&6; }
8a2fc586 14479
2a9a80c9 14480test x$CMDLIB = xyes \
d179cc7a
JM
14481 && LVM2CMD_LIB=-llvm2cmd \
14482 || LVM2CMD_LIB=
14483
93bd259b
AK
14484################################################################################
14485# Check whether --enable-pkgconfig was given.
14486if test "${enable_pkgconfig+set}" = set; then
14487 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14488else
14489 PKGCONFIG=no
14490fi
14491
2a9a80c9 14492
23b059e7
ZK
14493################################################################################
14494# Check whether --enable-write_install was given.
14495if test "${enable_write_install+set}" = set; then
14496 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14497else
14498 WRITE_INSTALL=no
14499fi
14500
14501
d0191583 14502################################################################################
ec6a6fbe
AK
14503{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14504$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14505# Check whether --enable-fsadm was given.
14506if test "${enable_fsadm+set}" = set; then
14507 enableval=$enable_fsadm; FSADM=$enableval
14508fi
8a2fc586 14509
ec6a6fbe
AK
14510{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14511$as_echo "$FSADM" >&6; }
8a2fc586 14512
d0191583 14513################################################################################
ec6a6fbe
AK
14514{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14515$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14516# Check whether --enable-dmeventd was given.
14517if test "${enable_dmeventd+set}" = set; then
14518 enableval=$enable_dmeventd; DMEVENTD=$enableval
14519fi
ad6254c5 14520
ec6a6fbe
AK
14521{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14522$as_echo "$DMEVENTD" >&6; }
ad6254c5 14523
93bd259b
AK
14524BUILD_DMEVENTD=$DMEVENTD
14525
2a9a80c9
PR
14526if test x$DMEVENTD = xyes; then
14527 if test x$MIRRORS != xinternal; then
ec6a6fbe 14528 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14529 " >&5
ec6a6fbe 14530$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14531 " >&2;}
d0191583 14532 { (exit 1); exit 1; }; }
2a9a80c9
PR
14533 fi
14534 if test x$CMDLIB = xno; then
ec6a6fbe 14535 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14536 " >&5
ec6a6fbe 14537$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14538 " >&2;}
14539 { (exit 1); exit 1; }; }
14540 fi
ad6254c5 14541fi
7a197a62 14542
d0191583
JM
14543if test x$DMEVENTD = xyes; then
14544
14545cat >>confdefs.h <<\_ACEOF
14546#define DMEVENTD 1
ad6254c5
AK
14547_ACEOF
14548
ad6254c5 14549fi
93bd259b
AK
14550
14551################################################################################
14552
ec6a6fbe
AK
14553{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14554$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14555if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14556 $as_echo_n "(cached) " >&6
93bd259b
AK
14557else
14558 ac_check_lib_save_LIBS=$LIBS
14559LIBS="-lc $LIBS"
14560cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566
14567/* Override any GCC internal prototype to avoid an error.
14568 Use char because int might match the return type of a GCC
14569 builtin and then its argument prototype would still apply. */
14570#ifdef __cplusplus
14571extern "C"
14572#endif
14573char getline ();
14574int
14575main ()
14576{
14577return getline ();
14578 ;
14579 return 0;
14580}
14581_ACEOF
14582rm -f conftest.$ac_objext conftest$ac_exeext
14583if { (ac_try="$ac_link"
14584case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587esac
ec6a6fbe
AK
14588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14589$as_echo "$ac_try_echo") >&5
93bd259b
AK
14590 (eval "$ac_link") 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
ec6a6fbe 14595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14596 (exit $ac_status); } && {
14597 test -z "$ac_c_werror_flag" ||
14598 test ! -s conftest.err
ec6a6fbe
AK
14599 } && test -s conftest$ac_exeext && {
14600 test "$cross_compiling" = yes ||
14601 $as_test_x conftest$ac_exeext
14602 }; then
93bd259b
AK
14603 ac_cv_lib_c_getline=yes
14604else
ec6a6fbe 14605 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14606sed 's/^/| /' conftest.$ac_ext >&5
14607
14608 ac_cv_lib_c_getline=no
14609fi
14610
ec6a6fbe 14611rm -rf conftest.dSYM
93bd259b
AK
14612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14613 conftest$ac_exeext conftest.$ac_ext
14614LIBS=$ac_check_lib_save_LIBS
14615fi
ec6a6fbe
AK
14616{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14617$as_echo "$ac_cv_lib_c_getline" >&6; }
14618if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14619
14620cat >>confdefs.h <<\_ACEOF
14621#define HAVE_GETLINE 1
14622_ACEOF
14623
14624fi
14625
14626
14627################################################################################
14628
ec6a6fbe
AK
14629{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14630$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14631if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14632 $as_echo_n "(cached) " >&6
93bd259b
AK
14633else
14634 ac_check_lib_save_LIBS=$LIBS
14635LIBS="-lc $LIBS"
14636cat >conftest.$ac_ext <<_ACEOF
14637/* confdefs.h. */
14638_ACEOF
14639cat confdefs.h >>conftest.$ac_ext
14640cat >>conftest.$ac_ext <<_ACEOF
14641/* end confdefs.h. */
14642
14643/* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14646#ifdef __cplusplus
14647extern "C"
14648#endif
14649char canonicalize_file_name ();
14650int
14651main ()
14652{
14653return canonicalize_file_name ();
14654 ;
14655 return 0;
14656}
14657_ACEOF
14658rm -f conftest.$ac_objext conftest$ac_exeext
14659if { (ac_try="$ac_link"
14660case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663esac
ec6a6fbe
AK
14664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14665$as_echo "$ac_try_echo") >&5
93bd259b
AK
14666 (eval "$ac_link") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
ec6a6fbe 14671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
ec6a6fbe
AK
14675 } && test -s conftest$ac_exeext && {
14676 test "$cross_compiling" = yes ||
14677 $as_test_x conftest$ac_exeext
14678 }; then
93bd259b
AK
14679 ac_cv_lib_c_canonicalize_file_name=yes
14680else
ec6a6fbe 14681 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 ac_cv_lib_c_canonicalize_file_name=no
14685fi
14686
ec6a6fbe 14687rm -rf conftest.dSYM
93bd259b
AK
14688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14689 conftest$ac_exeext conftest.$ac_ext
14690LIBS=$ac_check_lib_save_LIBS
14691fi
ec6a6fbe
AK
14692{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14693$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14694if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
14695
14696cat >>confdefs.h <<\_ACEOF
14697#define HAVE_CANONICALIZE_FILE_NAME 1
14698_ACEOF
14699
14700fi
14701
14702
d0191583
JM
14703################################################################################
14704if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14705 then exec_prefix="";
14706fi;
ad6254c5 14707
ad6254c5 14708################################################################################
ec6a6fbe
AK
14709{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14710$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 14711if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 14712 $as_echo_n "(cached) " >&6
ad6254c5
AK
14713else
14714 ac_check_lib_save_LIBS=$LIBS
14715LIBS="-ldl $LIBS"
14716cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14717/* confdefs.h. */
14718_ACEOF
14719cat confdefs.h >>conftest.$ac_ext
14720cat >>conftest.$ac_ext <<_ACEOF
14721/* end confdefs.h. */
14722
7a197a62
AK
14723/* Override any GCC internal prototype to avoid an error.
14724 Use char because int might match the return type of a GCC
14725 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14726#ifdef __cplusplus
14727extern "C"
14728#endif
ad6254c5
AK
14729char dlopen ();
14730int
14731main ()
14732{
7a197a62 14733return dlopen ();
ad6254c5
AK
14734 ;
14735 return 0;
14736}
14737_ACEOF
14738rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14739if { (ac_try="$ac_link"
14740case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743esac
ec6a6fbe
AK
14744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14745$as_echo "$ac_try_echo") >&5
7a197a62 14746 (eval "$ac_link") 2>conftest.er1
ad6254c5 14747 ac_status=$?
8a2fc586
AK
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
ec6a6fbe 14751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14752 (exit $ac_status); } && {
14753 test -z "$ac_c_werror_flag" ||
14754 test ! -s conftest.err
ec6a6fbe
AK
14755 } && test -s conftest$ac_exeext && {
14756 test "$cross_compiling" = yes ||
14757 $as_test_x conftest$ac_exeext
14758 }; then
ad6254c5
AK
14759 ac_cv_lib_dl_dlopen=yes
14760else
ec6a6fbe 14761 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
7a197a62 14764 ac_cv_lib_dl_dlopen=no
ad6254c5 14765fi
7a197a62 14766
ec6a6fbe 14767rm -rf conftest.dSYM
25fbec5b 14768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14769 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
14770LIBS=$ac_check_lib_save_LIBS
14771fi
ec6a6fbe
AK
14772{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14773$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14774if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 14775
72b2cb61
AK
14776
14777cat >>confdefs.h <<\_ACEOF
14778#define HAVE_LIBDL 1
14779_ACEOF
14780
19a2c6e0
ZK
14781 DL_LIBS="-ldl"
14782 HAVE_LIBDL=yes
ad6254c5 14783else
19a2c6e0
ZK
14784
14785 DL_LIBS=
ad6254c5
AK
14786 HAVE_LIBDL=no
14787fi
14788
19a2c6e0 14789
ad6254c5
AK
14790################################################################################
14791if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
14792 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
14793 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 14794 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 14795" >&5
ec6a6fbe 14796$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
14797" >&2;}
14798 { (exit 1); exit 1; }; }
14799fi
14800
f30875db
ZK
14801################################################################################
14802if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
14803 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
14804$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
14805if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
14806 $as_echo_n "(cached) " >&6
14807else
14808 ac_check_lib_save_LIBS=$LIBS
14809LIBS="-lpthread $LIBS"
14810cat >conftest.$ac_ext <<_ACEOF
14811/* confdefs.h. */
14812_ACEOF
14813cat confdefs.h >>conftest.$ac_ext
14814cat >>conftest.$ac_ext <<_ACEOF
14815/* end confdefs.h. */
14816
14817/* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14820#ifdef __cplusplus
14821extern "C"
14822#endif
14823char pthread_mutex_lock ();
14824int
14825main ()
14826{
14827return pthread_mutex_lock ();
14828 ;
14829 return 0;
14830}
14831_ACEOF
14832rm -f conftest.$ac_objext conftest$ac_exeext
14833if { (ac_try="$ac_link"
14834case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837esac
14838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14839$as_echo "$ac_try_echo") >&5
14840 (eval "$ac_link") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest$ac_exeext && {
14850 test "$cross_compiling" = yes ||
14851 $as_test_x conftest$ac_exeext
14852 }; then
14853 ac_cv_lib_pthread_pthread_mutex_lock=yes
14854else
14855 $as_echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 ac_cv_lib_pthread_pthread_mutex_lock=no
14859fi
14860
14861rm -rf conftest.dSYM
14862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14863 conftest$ac_exeext conftest.$ac_ext
14864LIBS=$ac_check_lib_save_LIBS
14865fi
14866{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
14867$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
14868if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
14869 PTHREAD_LIBS="-lpthread"
14870else
14871 hard_bailout
14872fi
14873
14874fi
14875
d0191583 14876################################################################################
ec6a6fbe
AK
14877{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
14878$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
14879# Check whether --enable-selinux was given.
14880if test "${enable_selinux+set}" = set; then
14881 enableval=$enable_selinux; SELINUX=$enableval
14882fi
14883
ec6a6fbe
AK
14884{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
14885$as_echo "$SELINUX" >&6; }
d0191583 14886
ad6254c5
AK
14887################################################################################
14888if test x$SELINUX = xyes; then
ec6a6fbe
AK
14889 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
14890$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 14891if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 14892 $as_echo_n "(cached) " >&6
8a2fc586
AK
14893else
14894 ac_check_lib_save_LIBS=$LIBS
14895LIBS="-lsepol $LIBS"
14896cat >conftest.$ac_ext <<_ACEOF
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902
7a197a62
AK
14903/* Override any GCC internal prototype to avoid an error.
14904 Use char because int might match the return type of a GCC
14905 builtin and then its argument prototype would still apply. */
8a2fc586
AK
14906#ifdef __cplusplus
14907extern "C"
14908#endif
8a2fc586
AK
14909char sepol_check_context ();
14910int
14911main ()
14912{
7a197a62 14913return sepol_check_context ();
8a2fc586
AK
14914 ;
14915 return 0;
14916}
14917_ACEOF
14918rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14919if { (ac_try="$ac_link"
14920case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923esac
ec6a6fbe
AK
14924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14925$as_echo "$ac_try_echo") >&5
7a197a62 14926 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
ec6a6fbe 14931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14932 (exit $ac_status); } && {
14933 test -z "$ac_c_werror_flag" ||
14934 test ! -s conftest.err
ec6a6fbe
AK
14935 } && test -s conftest$ac_exeext && {
14936 test "$cross_compiling" = yes ||
14937 $as_test_x conftest$ac_exeext
14938 }; then
8a2fc586
AK
14939 ac_cv_lib_sepol_sepol_check_context=yes
14940else
ec6a6fbe 14941 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
14942sed 's/^/| /' conftest.$ac_ext >&5
14943
7a197a62 14944 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 14945fi
7a197a62 14946
ec6a6fbe 14947rm -rf conftest.dSYM
25fbec5b 14948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
14949 conftest$ac_exeext conftest.$ac_ext
14950LIBS=$ac_check_lib_save_LIBS
14951fi
ec6a6fbe
AK
14952{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
14953$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
14954if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 14955
d0191583
JM
14956
14957cat >>confdefs.h <<\_ACEOF
14958#define HAVE_SEPOL 1
14959_ACEOF
14960
f8f6ec92
ZK
14961 SELINUX_LIBS="-lsepol"
14962fi
14963
8a2fc586 14964
ec6a6fbe
AK
14965 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
14966$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 14967if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 14968 $as_echo_n "(cached) " >&6
ad6254c5
AK
14969else
14970 ac_check_lib_save_LIBS=$LIBS
14971LIBS="-lselinux $LIBS"
14972cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978
7a197a62
AK
14979/* Override any GCC internal prototype to avoid an error.
14980 Use char because int might match the return type of a GCC
14981 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14982#ifdef __cplusplus
14983extern "C"
14984#endif
ad6254c5
AK
14985char is_selinux_enabled ();
14986int
14987main ()
14988{
7a197a62 14989return is_selinux_enabled ();
ad6254c5
AK
14990 ;
14991 return 0;
14992}
14993_ACEOF
14994rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14995if { (ac_try="$ac_link"
14996case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
14999esac
ec6a6fbe
AK
15000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15001$as_echo "$ac_try_echo") >&5
7a197a62 15002 (eval "$ac_link") 2>conftest.er1
ad6254c5 15003 ac_status=$?
8a2fc586
AK
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
ec6a6fbe 15007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
ec6a6fbe
AK
15011 } && test -s conftest$ac_exeext && {
15012 test "$cross_compiling" = yes ||
15013 $as_test_x conftest$ac_exeext
15014 }; then
ad6254c5
AK
15015 ac_cv_lib_selinux_is_selinux_enabled=yes
15016else
ec6a6fbe 15017 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15018sed 's/^/| /' conftest.$ac_ext >&5
15019
7a197a62 15020 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15021fi
7a197a62 15022
ec6a6fbe 15023rm -rf conftest.dSYM
25fbec5b 15024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15025 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15026LIBS=$ac_check_lib_save_LIBS
15027fi
ec6a6fbe
AK
15028{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15029$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15030if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15031
72b2cb61 15032
f8f6ec92
ZK
15033for ac_header in selinux/selinux.h
15034do
15035as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15038$as_echo_n "checking for $ac_header... " >&6; }
15039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15040 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15041fi
15042ac_res=`eval 'as_val=${'$as_ac_Header'}
15043 $as_echo "$as_val"'`
15044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15045$as_echo "$ac_res" >&6; }
66e941e8 15046else
f8f6ec92
ZK
15047 # Is the header compilable?
15048{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15049$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15050cat >conftest.$ac_ext <<_ACEOF
15051/* confdefs.h. */
15052_ACEOF
15053cat confdefs.h >>conftest.$ac_ext
15054cat >>conftest.$ac_ext <<_ACEOF
15055/* end confdefs.h. */
f8f6ec92
ZK
15056$ac_includes_default
15057#include <$ac_header>
66e941e8 15058_ACEOF
f8f6ec92
ZK
15059rm -f conftest.$ac_objext
15060if { (ac_try="$ac_compile"
66e941e8
JM
15061case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064esac
ec6a6fbe
AK
15065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15066$as_echo "$ac_try_echo") >&5
f8f6ec92 15067 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15068 ac_status=$?
15069 grep -v '^ *+' conftest.er1 >conftest.err
15070 rm -f conftest.er1
15071 cat conftest.err >&5
ec6a6fbe 15072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15073 (exit $ac_status); } && {
15074 test -z "$ac_c_werror_flag" ||
15075 test ! -s conftest.err
f8f6ec92
ZK
15076 } && test -s conftest.$ac_objext; then
15077 ac_header_compiler=yes
15078else
15079 $as_echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 ac_header_compiler=no
15083fi
15084
15085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15087$as_echo "$ac_header_compiler" >&6; }
15088
15089# Is the header present?
15090{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15091$as_echo_n "checking $ac_header presence... " >&6; }
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. */
15098#include <$ac_header>
15099_ACEOF
15100if { (ac_try="$ac_cpp conftest.$ac_ext"
15101case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15106$as_echo "$ac_try_echo") >&5
15107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } >/dev/null && {
15114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15115 test ! -s conftest.err
ec6a6fbe 15116 }; then
f8f6ec92 15117 ac_header_preproc=yes
66e941e8 15118else
ec6a6fbe 15119 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
f8f6ec92
ZK
15122 ac_header_preproc=no
15123fi
15124
15125rm -f conftest.err conftest.$ac_ext
15126{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127$as_echo "$ac_header_preproc" >&6; }
15128
15129# So? What about this header?
15130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15131 yes:no: )
15132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136 ac_header_preproc=yes
15137 ;;
15138 no:yes:* )
15139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15142$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15146$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15151
f8f6ec92
ZK
15152 ;;
15153esac
15154{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15155$as_echo_n "checking for $ac_header... " >&6; }
15156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15157 $as_echo_n "(cached) " >&6
15158else
15159 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15160fi
f8f6ec92
ZK
15161ac_res=`eval 'as_val=${'$as_ac_Header'}
15162 $as_echo "$as_val"'`
15163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15164$as_echo "$ac_res" >&6; }
66e941e8 15165
66e941e8 15166fi
f8f6ec92
ZK
15167as_val=`eval 'as_val=${'$as_ac_Header'}
15168 $as_echo "$as_val"'`
15169 if test "x$as_val" = x""yes; then
15170 cat >>confdefs.h <<_ACEOF
15171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15172_ACEOF
15173
66e941e8 15174else
f8f6ec92 15175 hard_bailout
66e941e8 15176fi
f8f6ec92
ZK
15177
15178done
15179
15180
15181cat >>confdefs.h <<\_ACEOF
15182#define HAVE_SELINUX 1
15183_ACEOF
15184
15185 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15186 SELINUX_PC="libselinux"
f8f6ec92
ZK
15187 HAVE_SELINUX=yes
15188else
15189
15190 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15191$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15192 SELINUX_LIBS=
f7f0854e 15193 SELINUX_PC=
f8f6ec92 15194 HAVE_SELINUX=no
66e941e8
JM
15195fi
15196
ad6254c5
AK
15197fi
15198
8b1a3214
AK
15199################################################################################
15200if test x$REALTIME = xyes; then
ec6a6fbe
AK
15201 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15202$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15203if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15204 $as_echo_n "(cached) " >&6
8b1a3214
AK
15205else
15206 ac_check_lib_save_LIBS=$LIBS
15207LIBS="-lrt $LIBS"
15208cat >conftest.$ac_ext <<_ACEOF
15209/* confdefs.h. */
15210_ACEOF
15211cat confdefs.h >>conftest.$ac_ext
15212cat >>conftest.$ac_ext <<_ACEOF
15213/* end confdefs.h. */
15214
7a197a62
AK
15215/* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15218#ifdef __cplusplus
15219extern "C"
15220#endif
8b1a3214
AK
15221char clock_gettime ();
15222int
15223main ()
15224{
7a197a62 15225return clock_gettime ();
8b1a3214
AK
15226 ;
15227 return 0;
15228}
15229_ACEOF
15230rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15231if { (ac_try="$ac_link"
15232case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
ec6a6fbe
AK
15236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15237$as_echo "$ac_try_echo") >&5
7a197a62 15238 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
ec6a6fbe 15243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
ec6a6fbe
AK
15247 } && test -s conftest$ac_exeext && {
15248 test "$cross_compiling" = yes ||
15249 $as_test_x conftest$ac_exeext
15250 }; then
8b1a3214
AK
15251 ac_cv_lib_rt_clock_gettime=yes
15252else
ec6a6fbe 15253 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15254sed 's/^/| /' conftest.$ac_ext >&5
15255
7a197a62 15256 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15257fi
7a197a62 15258
ec6a6fbe 15259rm -rf conftest.dSYM
25fbec5b 15260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15261 conftest$ac_exeext conftest.$ac_ext
15262LIBS=$ac_check_lib_save_LIBS
15263fi
ec6a6fbe
AK
15264{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15265$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15266if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15267 HAVE_REALTIME=yes
15268else
15269 HAVE_REALTIME=no
15270fi
15271
8b1a3214
AK
15272
15273 if test x$HAVE_REALTIME = xyes; then
15274
15275cat >>confdefs.h <<\_ACEOF
15276#define HAVE_REALTIME 1
15277_ACEOF
15278
15279 LIBS="-lrt $LIBS"
15280 else
ec6a6fbe
AK
15281 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15282$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15283 fi
15284fi
15285
ad6254c5
AK
15286################################################################################
15287
15288for ac_header in getopt.h
15289do
ec6a6fbe 15290as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15293$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15295 $as_echo_n "(cached) " >&6
ad6254c5 15296fi
ec6a6fbe
AK
15297ac_res=`eval 'as_val=${'$as_ac_Header'}
15298 $as_echo "$as_val"'`
15299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15300$as_echo "$ac_res" >&6; }
ad6254c5
AK
15301else
15302 # Is the header compilable?
ec6a6fbe
AK
15303{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15304$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15305cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
15311$ac_includes_default
15312#include <$ac_header>
15313_ACEOF
15314rm -f conftest.$ac_objext
7a197a62
AK
15315if { (ac_try="$ac_compile"
15316case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15319esac
ec6a6fbe
AK
15320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15321$as_echo "$ac_try_echo") >&5
7a197a62 15322 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15323 ac_status=$?
8a2fc586
AK
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
ec6a6fbe 15327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15328 (exit $ac_status); } && {
15329 test -z "$ac_c_werror_flag" ||
15330 test ! -s conftest.err
15331 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15332 ac_header_compiler=yes
15333else
ec6a6fbe 15334 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15335sed 's/^/| /' conftest.$ac_ext >&5
15336
7a197a62 15337 ac_header_compiler=no
ad6254c5 15338fi
7a197a62
AK
15339
15340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15341{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15342$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15343
15344# Is the header present?
ec6a6fbe
AK
15345{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15346$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
15354_ACEOF
7a197a62
AK
15355if { (ac_try="$ac_cpp conftest.$ac_ext"
15356case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15359esac
ec6a6fbe
AK
15360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15361$as_echo "$ac_try_echo") >&5
7a197a62 15362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
ec6a6fbe 15367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15368 (exit $ac_status); } >/dev/null && {
15369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15370 test ! -s conftest.err
15371 }; then
ad6254c5
AK
15372 ac_header_preproc=yes
15373else
ec6a6fbe 15374 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ac_header_preproc=no
15378fi
7a197a62 15379
ad6254c5 15380rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15381{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15382$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15383
15384# So? What about this header?
8a2fc586
AK
15385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15386 yes:no: )
ec6a6fbe
AK
15387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15388$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15390$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15391 ac_header_preproc=yes
ad6254c5 15392 ;;
8a2fc586 15393 no:yes:* )
ec6a6fbe
AK
15394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15395$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15397$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15399$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15401$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15403$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15405$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15406
ad6254c5
AK
15407 ;;
15408esac
ec6a6fbe
AK
15409{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15410$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15412 $as_echo_n "(cached) " >&6
ad6254c5 15413else
8a2fc586 15414 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15415fi
ec6a6fbe
AK
15416ac_res=`eval 'as_val=${'$as_ac_Header'}
15417 $as_echo "$as_val"'`
15418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15419$as_echo "$ac_res" >&6; }
ad6254c5
AK
15420
15421fi
ec6a6fbe
AK
15422as_val=`eval 'as_val=${'$as_ac_Header'}
15423 $as_echo "$as_val"'`
15424 if test "x$as_val" = x""yes; then
ad6254c5 15425 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15427_ACEOF
72b2cb61
AK
15428
15429cat >>confdefs.h <<\_ACEOF
15430#define HAVE_GETOPTLONG 1
15431_ACEOF
15432
ad6254c5
AK
15433fi
15434
15435done
15436
15437
15438################################################################################
06e459df 15439if test x$READLINE != xno; then
539f4a77
ZK
15440 lvm_saved_libs=$LIBS
15441 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15442$as_echo_n "checking for library containing tgetent... " >&6; }
15443if test "${ac_cv_search_tgetent+set}" = set; then
15444 $as_echo_n "(cached) " >&6
15445else
15446 ac_func_search_save_LIBS=$LIBS
15447cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */
bc1024f8 15453
539f4a77
ZK
15454/* Override any GCC internal prototype to avoid an error.
15455 Use char because int might match the return type of a GCC
15456 builtin and then its argument prototype would still apply. */
15457#ifdef __cplusplus
15458extern "C"
15459#endif
15460char tgetent ();
15461int
15462main ()
15463{
15464return tgetent ();
15465 ;
15466 return 0;
15467}
15468_ACEOF
15469for ac_lib in '' tinfo ncurses curses termcap termlib; do
15470 if test -z "$ac_lib"; then
15471 ac_res="none required"
15472 else
15473 ac_res=-l$ac_lib
15474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15475 fi
15476 rm -f conftest.$ac_objext conftest$ac_exeext
15477if { (ac_try="$ac_link"
15478case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15481esac
15482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15483$as_echo "$ac_try_echo") >&5
15484 (eval "$ac_link") 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } && {
15491 test -z "$ac_c_werror_flag" ||
15492 test ! -s conftest.err
15493 } && test -s conftest$ac_exeext && {
15494 test "$cross_compiling" = yes ||
15495 $as_test_x conftest$ac_exeext
15496 }; then
15497 ac_cv_search_tgetent=$ac_res
15498else
15499 $as_echo "$as_me: failed program was:" >&5
15500sed 's/^/| /' conftest.$ac_ext >&5
15501
15502
15503fi
15504
15505rm -rf conftest.dSYM
15506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15507 conftest$ac_exeext
15508 if test "${ac_cv_search_tgetent+set}" = set; then
15509 break
15510fi
15511done
15512if test "${ac_cv_search_tgetent+set}" = set; then
15513 :
15514else
15515 ac_cv_search_tgetent=no
15516fi
15517rm conftest.$ac_ext
15518LIBS=$ac_func_search_save_LIBS
15519fi
15520{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15521$as_echo "$ac_cv_search_tgetent" >&6; }
15522ac_res=$ac_cv_search_tgetent
15523if test "$ac_res" != no; then
15524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15525 READLINE_LIBS=$ac_cv_search_tgetent
15526else
15527
15528 if test "$READLINE" = yes; then
15529 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15530--enable-readline option (which is enabled by default). Either disable readline
15531support with --disable-readline or download and install termcap from:
15532 ftp.gnu.org/gnu/termcap
15533Note: if you are using precompiled packages you will also need the development
15534 package as well (which may be called termcap-devel or something similar).
15535Note: (n)curses also seems to work as a substitute for termcap. This was
15536 not found either - but you could try installing that as well." >&5
15537$as_echo "$as_me: error: termcap could not be found which is required for the
15538--enable-readline option (which is enabled by default). Either disable readline
15539support with --disable-readline or download and install termcap from:
15540 ftp.gnu.org/gnu/termcap
15541Note: if you are using precompiled packages you will also need the development
15542 package as well (which may be called termcap-devel or something similar).
15543Note: (n)curses also seems to work as a substitute for termcap. This was
15544 not found either - but you could try installing that as well." >&2;}
15545 { (exit 1); exit 1; }; }
15546 fi
15547fi
15548
15549 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15550$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15551if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15552 $as_echo_n "(cached) " >&6
ad6254c5
AK
15553else
15554 ac_check_lib_save_LIBS=$LIBS
15555LIBS="-lreadline $LIBS"
15556cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15557/* confdefs.h. */
15558_ACEOF
15559cat confdefs.h >>conftest.$ac_ext
15560cat >>conftest.$ac_ext <<_ACEOF
15561/* end confdefs.h. */
15562
7a197a62
AK
15563/* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15566#ifdef __cplusplus
15567extern "C"
15568#endif
ad6254c5
AK
15569char readline ();
15570int
15571main ()
15572{
7a197a62 15573return readline ();
ad6254c5
AK
15574 ;
15575 return 0;
15576}
15577_ACEOF
15578rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15579if { (ac_try="$ac_link"
15580case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583esac
ec6a6fbe
AK
15584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15585$as_echo "$ac_try_echo") >&5
7a197a62 15586 (eval "$ac_link") 2>conftest.er1
ad6254c5 15587 ac_status=$?
8a2fc586
AK
15588 grep -v '^ *+' conftest.er1 >conftest.err
15589 rm -f conftest.er1
15590 cat conftest.err >&5
ec6a6fbe 15591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15592 (exit $ac_status); } && {
15593 test -z "$ac_c_werror_flag" ||
15594 test ! -s conftest.err
ec6a6fbe
AK
15595 } && test -s conftest$ac_exeext && {
15596 test "$cross_compiling" = yes ||
15597 $as_test_x conftest$ac_exeext
15598 }; then
ad6254c5
AK
15599 ac_cv_lib_readline_readline=yes
15600else
ec6a6fbe 15601 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
7a197a62 15604 ac_cv_lib_readline_readline=no
ad6254c5 15605fi
7a197a62 15606
ec6a6fbe 15607rm -rf conftest.dSYM
25fbec5b 15608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15609 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15610LIBS=$ac_check_lib_save_LIBS
15611fi
ec6a6fbe
AK
15612{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15613$as_echo "$ac_cv_lib_readline_readline" >&6; }
15614if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15615
15616
15617cat >>confdefs.h <<\_ACEOF
15618#define READLINE_SUPPORT 1
bc1024f8
JM
15619_ACEOF
15620
539f4a77
ZK
15621 LIBS=$lvm_saved_libs
15622 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15623$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15624if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15625 $as_echo_n "(cached) " >&6
15626else
15627 ac_check_lib_save_LIBS=$LIBS
15628LIBS="-lreadline $LIBS"
15629cat >conftest.$ac_ext <<_ACEOF
15630/* confdefs.h. */
15631_ACEOF
15632cat confdefs.h >>conftest.$ac_ext
15633cat >>conftest.$ac_ext <<_ACEOF
15634/* end confdefs.h. */
bc1024f8 15635
539f4a77
ZK
15636/* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15639#ifdef __cplusplus
15640extern "C"
15641#endif
15642char rl_line_buffer ();
15643int
15644main ()
15645{
15646return rl_line_buffer ();
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651rm -f conftest.$ac_objext conftest$ac_exeext
15652if { (ac_try="$ac_link"
15653case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656esac
15657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15658$as_echo "$ac_try_echo") >&5
15659 (eval "$ac_link") 2>conftest.er1
15660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest$ac_exeext && {
15669 test "$cross_compiling" = yes ||
15670 $as_test_x conftest$ac_exeext
15671 }; then
15672 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 15673else
539f4a77
ZK
15674 $as_echo "$as_me: failed program was:" >&5
15675sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15678fi
15679
539f4a77
ZK
15680rm -rf conftest.dSYM
15681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15682 conftest$ac_exeext conftest.$ac_ext
15683LIBS=$ac_check_lib_save_LIBS
15684fi
15685{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15686$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15687if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15688 READLINE_LIBS="-lreadline"
15689else
15690
15691 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
15692$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
15693 READLINE_LIBS="-lreadline $READLINE_LIBS"
15694
15695fi
15696
15697else
15698
15699 READLINE_LIBS=
15700 if test "$READLINE" = yes; then
15701 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15702--enable-readline option (which is enabled by default). Either disable readline
15703support with --disable-readline or download and install readline from:
15704 ftp.gnu.org/gnu/readline
15705Note: if you are using precompiled packages you will also need the development
539f4a77 15706package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 15707$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15708--enable-readline option (which is enabled by default). Either disable readline
15709support with --disable-readline or download and install readline from:
15710 ftp.gnu.org/gnu/readline
15711Note: if you are using precompiled packages you will also need the development
539f4a77 15712package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 15713 { (exit 1); exit 1; }; }
539f4a77
ZK
15714 fi
15715fi
15716
15717 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
15718
15719for ac_func in rl_completion_matches
15720do
ec6a6fbe
AK
15721as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15722{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15723$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 15724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15725 $as_echo_n "(cached) " >&6
ad6254c5
AK
15726else
15727 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
bc1024f8 15733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 15734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 15735#define $ac_func innocuous_$ac_func
8a2fc586 15736
ad6254c5 15737/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 15738 which can conflict with char $ac_func (); below.
ad6254c5
AK
15739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15740 <limits.h> exists even on freestanding compilers. */
8a2fc586 15741
ad6254c5
AK
15742#ifdef __STDC__
15743# include <limits.h>
15744#else
15745# include <assert.h>
15746#endif
8a2fc586 15747
bc1024f8 15748#undef $ac_func
8a2fc586 15749
7a197a62
AK
15750/* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15753#ifdef __cplusplus
15754extern "C"
ad6254c5 15755#endif
bc1024f8 15756char $ac_func ();
ad6254c5
AK
15757/* The GNU C library defines this for functions which it implements
15758 to always fail with ENOSYS. Some functions are actually named
15759 something starting with __ and the normal name is an alias. */
bc1024f8 15760#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 15761choke me
ad6254c5
AK
15762#endif
15763
15764int
15765main ()
15766{
bc1024f8 15767return $ac_func ();
ad6254c5
AK
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15773if { (ac_try="$ac_link"
15774case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
ec6a6fbe
AK
15778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15779$as_echo "$ac_try_echo") >&5
7a197a62 15780 (eval "$ac_link") 2>conftest.er1
ad6254c5 15781 ac_status=$?
8a2fc586
AK
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
ec6a6fbe 15785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15786 (exit $ac_status); } && {
15787 test -z "$ac_c_werror_flag" ||
15788 test ! -s conftest.err
ec6a6fbe
AK
15789 } && test -s conftest$ac_exeext && {
15790 test "$cross_compiling" = yes ||
15791 $as_test_x conftest$ac_exeext
15792 }; then
bc1024f8 15793 eval "$as_ac_var=yes"
ad6254c5 15794else
ec6a6fbe 15795 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
bc1024f8 15798 eval "$as_ac_var=no"
ad6254c5 15799fi
7a197a62 15800
ec6a6fbe 15801rm -rf conftest.dSYM
25fbec5b 15802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15803 conftest$ac_exeext conftest.$ac_ext
ad6254c5 15804fi
ec6a6fbe
AK
15805ac_res=`eval 'as_val=${'$as_ac_var'}
15806 $as_echo "$as_val"'`
15807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15808$as_echo "$ac_res" >&6; }
15809as_val=`eval 'as_val=${'$as_ac_var'}
15810 $as_echo "$as_val"'`
15811 if test "x$as_val" = x""yes; then
bc1024f8 15812 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15813#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
15814_ACEOF
15815
15816fi
bc1024f8 15817done
ad6254c5 15818
539f4a77 15819 LIBS=$lvm_saved_libs
ad6254c5
AK
15820fi
15821
15822################################################################################
ec6a6fbe
AK
15823{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
15824$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 15825# Check whether --enable-nls was given.
ad6254c5 15826if test "${enable_nls+set}" = set; then
7a197a62 15827 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
15828else
15829 INTL=no
7a197a62
AK
15830fi
15831
ec6a6fbe
AK
15832{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
15833$as_echo "$INTL" >&6; }
ad6254c5
AK
15834
15835if test x$INTL = xyes; then
93bd259b 15836# FIXME - Move this - can be device-mapper too
ad6254c5
AK
15837 INTL_PACKAGE="lvm2"
15838 # Extract the first word of "msgfmt", so it can be a program name with args.
15839set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
15840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15841$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 15842if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 15843 $as_echo_n "(cached) " >&6
ad6254c5
AK
15844else
15845 case $MSGFMT in
15846 [\\/]* | ?:[\\/]*)
15847 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15848 ;;
15849 *)
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851for as_dir in $PATH
15852do
15853 IFS=$as_save_IFS
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 15857 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15858 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
15859 break 2
15860 fi
15861done
15862done
7a197a62 15863IFS=$as_save_IFS
ad6254c5
AK
15864
15865 ;;
15866esac
15867fi
15868MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 15869if test -n "$MSGFMT"; then
ec6a6fbe
AK
15870 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15871$as_echo "$MSGFMT" >&6; }
ad6254c5 15872else
ec6a6fbe
AK
15873 { $as_echo "$as_me:$LINENO: result: no" >&5
15874$as_echo "no" >&6; }
ad6254c5
AK
15875fi
15876
7a197a62 15877
ad6254c5 15878 if [ "x$MSGFMT" == x ];
ec6a6fbe 15879 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 15880 " >&5
ec6a6fbe 15881$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
15882 " >&2;}
15883 { (exit 1); exit 1; }; }
15884 fi;
15885
15886
7a197a62 15887# Check whether --with-localedir was given.
ad6254c5 15888if test "${with_localedir+set}" = set; then
7a197a62 15889 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
15890else
15891 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
15892fi
15893
ad6254c5
AK
15894fi
15895
15896################################################################################
15897
7a197a62 15898# Check whether --with-confdir was given.
ad6254c5 15899if test "${with_confdir+set}" = set; then
7a197a62 15900 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
15901else
15902 CONFDIR='/etc'
7a197a62
AK
15903fi
15904
ad6254c5
AK
15905
15906
7a197a62 15907# Check whether --with-staticdir was given.
ad6254c5 15908if test "${with_staticdir+set}" = set; then
7a197a62 15909 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
15910else
15911 STATICDIR='${exec_prefix}/sbin'
7a197a62 15912fi
ad6254c5 15913
33f732c5 15914
7a197a62 15915
68f2de6d
AK
15916# Check whether --with-usrlibdir was given.
15917if test "${with_usrlibdir+set}" = set; then
15918 withval=$with_usrlibdir; usrlibdir="$withval"
15919else
15920 usrlibdir='${prefix}/lib'
15921fi
15922
15923
15924
15925# Check whether --with-usrsbindir was given.
15926if test "${with_usrsbindir+set}" = set; then
15927 withval=$with_usrsbindir; usrsbindir="$withval"
15928else
15929 usrsbindir='${prefix}/sbin'
15930fi
15931
15932
a5f46f6a
AK
15933################################################################################
15934
15935# Check whether --with-udev_prefix was given.
15936if test "${with_udev_prefix+set}" = set; then
15937 withval=$with_udev_prefix; udev_prefix="$withval"
15938else
15939 udev_prefix='${exec_prefix}'
15940fi
15941
15942
78ce7acc
AK
15943
15944# Check whether --with-udevdir was given.
15945if test "${with_udevdir+set}" = set; then
15946 withval=$with_udevdir; udevdir="$withval"
15947else
15948 udevdir='${udev_prefix}/lib/udev/rules.d'
15949fi
15950
a5f46f6a 15951
ad6254c5
AK
15952################################################################################
15953if test x$READLINE = xyes; then
15954
15955
15956for ac_header in readline/readline.h readline/history.h
15957do
ec6a6fbe 15958as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15961$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15963 $as_echo_n "(cached) " >&6
ad6254c5 15964fi
ec6a6fbe
AK
15965ac_res=`eval 'as_val=${'$as_ac_Header'}
15966 $as_echo "$as_val"'`
15967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15968$as_echo "$ac_res" >&6; }
ad6254c5
AK
15969else
15970 # Is the header compilable?
ec6a6fbe
AK
15971{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15972$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15973cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
15979$ac_includes_default
15980#include <$ac_header>
15981_ACEOF
15982rm -f conftest.$ac_objext
7a197a62
AK
15983if { (ac_try="$ac_compile"
15984case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15987esac
ec6a6fbe
AK
15988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15989$as_echo "$ac_try_echo") >&5
7a197a62 15990 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15991 ac_status=$?
8a2fc586
AK
15992 grep -v '^ *+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
ec6a6fbe 15995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15996 (exit $ac_status); } && {
15997 test -z "$ac_c_werror_flag" ||
15998 test ! -s conftest.err
15999 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16000 ac_header_compiler=yes
16001else
ec6a6fbe 16002 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16003sed 's/^/| /' conftest.$ac_ext >&5
16004
7a197a62 16005 ac_header_compiler=no
ad6254c5 16006fi
7a197a62
AK
16007
16008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16009{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16010$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16011
16012# Is the header present?
ec6a6fbe
AK
16013{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16014$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
16022_ACEOF
7a197a62
AK
16023if { (ac_try="$ac_cpp conftest.$ac_ext"
16024case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027esac
ec6a6fbe
AK
16028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16029$as_echo "$ac_try_echo") >&5
7a197a62 16030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
ec6a6fbe 16035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16036 (exit $ac_status); } >/dev/null && {
16037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 }; then
ad6254c5
AK
16040 ac_header_preproc=yes
16041else
ec6a6fbe 16042 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 ac_header_preproc=no
16046fi
7a197a62 16047
ad6254c5 16048rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16049{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16051
16052# So? What about this header?
8a2fc586
AK
16053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16054 yes:no: )
ec6a6fbe
AK
16055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16056$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16058$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16059 ac_header_preproc=yes
ad6254c5 16060 ;;
8a2fc586 16061 no:yes:* )
ec6a6fbe
AK
16062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16063$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16065$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16067$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16069$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16071$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16073$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16074
ad6254c5
AK
16075 ;;
16076esac
ec6a6fbe
AK
16077{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16078$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16080 $as_echo_n "(cached) " >&6
ad6254c5 16081else
8a2fc586 16082 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16083fi
ec6a6fbe
AK
16084ac_res=`eval 'as_val=${'$as_ac_Header'}
16085 $as_echo "$as_val"'`
16086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16087$as_echo "$ac_res" >&6; }
ad6254c5
AK
16088
16089fi
ec6a6fbe
AK
16090as_val=`eval 'as_val=${'$as_ac_Header'}
16091 $as_echo "$as_val"'`
16092 if test "x$as_val" = x""yes; then
ad6254c5 16093 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16094#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16095_ACEOF
16096
16097else
ec6a6fbe
AK
16098 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16099$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16100 { (exit 1); exit 1; }; }
16101fi
16102
16103done
16104
16105fi
16106
5c7fc7c4 16107if test x$CLVMD != xnone; then
ad6254c5
AK
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118for 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
16119do
ec6a6fbe 16120as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16123$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16125 $as_echo_n "(cached) " >&6
ad6254c5 16126fi
ec6a6fbe
AK
16127ac_res=`eval 'as_val=${'$as_ac_Header'}
16128 $as_echo "$as_val"'`
16129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16130$as_echo "$ac_res" >&6; }
ad6254c5
AK
16131else
16132 # Is the header compilable?
ec6a6fbe
AK
16133{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16134$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16135cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
16141$ac_includes_default
16142#include <$ac_header>
16143_ACEOF
16144rm -f conftest.$ac_objext
7a197a62
AK
16145if { (ac_try="$ac_compile"
16146case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149esac
ec6a6fbe
AK
16150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16151$as_echo "$ac_try_echo") >&5
7a197a62 16152 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16153 ac_status=$?
8a2fc586
AK
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
ec6a6fbe 16157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16158 (exit $ac_status); } && {
16159 test -z "$ac_c_werror_flag" ||
16160 test ! -s conftest.err
16161 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16162 ac_header_compiler=yes
16163else
ec6a6fbe 16164 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
7a197a62 16167 ac_header_compiler=no
ad6254c5 16168fi
7a197a62
AK
16169
16170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16171{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16172$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16173
16174# Is the header present?
ec6a6fbe
AK
16175{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16176$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
16184_ACEOF
7a197a62
AK
16185if { (ac_try="$ac_cpp conftest.$ac_ext"
16186case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189esac
ec6a6fbe
AK
16190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16191$as_echo "$ac_try_echo") >&5
7a197a62 16192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16193 ac_status=$?
16194 grep -v '^ *+' conftest.er1 >conftest.err
16195 rm -f conftest.er1
16196 cat conftest.err >&5
ec6a6fbe 16197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16198 (exit $ac_status); } >/dev/null && {
16199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16200 test ! -s conftest.err
16201 }; then
ad6254c5
AK
16202 ac_header_preproc=yes
16203else
ec6a6fbe 16204 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207 ac_header_preproc=no
16208fi
7a197a62 16209
ad6254c5 16210rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16211{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16212$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16213
16214# So? What about this header?
8a2fc586
AK
16215case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16216 yes:no: )
ec6a6fbe
AK
16217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16218$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16220$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16221 ac_header_preproc=yes
ad6254c5 16222 ;;
8a2fc586 16223 no:yes:* )
ec6a6fbe
AK
16224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16225$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16227$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16229$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16231$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16233$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16235$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16236
ad6254c5
AK
16237 ;;
16238esac
ec6a6fbe
AK
16239{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16240$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16242 $as_echo_n "(cached) " >&6
ad6254c5 16243else
8a2fc586 16244 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16245fi
ec6a6fbe
AK
16246ac_res=`eval 'as_val=${'$as_ac_Header'}
16247 $as_echo "$as_val"'`
16248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16249$as_echo "$ac_res" >&6; }
ad6254c5
AK
16250
16251fi
ec6a6fbe
AK
16252as_val=`eval 'as_val=${'$as_ac_Header'}
16253 $as_echo "$as_val"'`
16254 if test "x$as_val" = x""yes; then
ad6254c5 16255 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16256#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16257_ACEOF
16258
16259else
ec6a6fbe
AK
16260 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16261$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16262 { (exit 1); exit 1; }; }
795ca3e5
AK
16263fi
16264
ad6254c5
AK
16265done
16266
16267
795ca3e5 16268
8106cdd5 16269
ad6254c5
AK
16270
16271
16272for ac_func in dup2 getmntent memmove select socket
16273do
ec6a6fbe
AK
16274as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16275{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16276$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16278 $as_echo_n "(cached) " >&6
795ca3e5 16279else
ad6254c5 16280 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h. */
8a2fc586
AK
16286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16288#define $ac_func innocuous_$ac_func
16289
795ca3e5 16290/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16291 which can conflict with char $ac_func (); below.
16292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16293 <limits.h> exists even on freestanding compilers. */
8a2fc586 16294
ad6254c5
AK
16295#ifdef __STDC__
16296# include <limits.h>
16297#else
16298# include <assert.h>
16299#endif
8a2fc586
AK
16300
16301#undef $ac_func
16302
7a197a62
AK
16303/* Override any GCC internal prototype to avoid an error.
16304 Use char because int might match the return type of a GCC
16305 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16306#ifdef __cplusplus
16307extern "C"
ad6254c5 16308#endif
ad6254c5 16309char $ac_func ();
795ca3e5
AK
16310/* The GNU C library defines this for functions which it implements
16311 to always fail with ENOSYS. Some functions are actually named
16312 something starting with __ and the normal name is an alias. */
7a197a62 16313#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16314choke me
795ca3e5
AK
16315#endif
16316
ad6254c5
AK
16317int
16318main ()
16319{
7a197a62 16320return $ac_func ();
ad6254c5
AK
16321 ;
16322 return 0;
16323}
16324_ACEOF
16325rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16326if { (ac_try="$ac_link"
16327case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16330esac
ec6a6fbe
AK
16331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16332$as_echo "$ac_try_echo") >&5
7a197a62 16333 (eval "$ac_link") 2>conftest.er1
ad6254c5 16334 ac_status=$?
8a2fc586
AK
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
ec6a6fbe 16338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
ec6a6fbe
AK
16342 } && test -s conftest$ac_exeext && {
16343 test "$cross_compiling" = yes ||
16344 $as_test_x conftest$ac_exeext
16345 }; then
ad6254c5 16346 eval "$as_ac_var=yes"
795ca3e5 16347else
ec6a6fbe 16348 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16349sed 's/^/| /' conftest.$ac_ext >&5
16350
7a197a62 16351 eval "$as_ac_var=no"
80992638 16352fi
7a197a62 16353
ec6a6fbe 16354rm -rf conftest.dSYM
25fbec5b 16355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16356 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16357fi
ec6a6fbe
AK
16358ac_res=`eval 'as_val=${'$as_ac_var'}
16359 $as_echo "$as_val"'`
16360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16361$as_echo "$ac_res" >&6; }
16362as_val=`eval 'as_val=${'$as_ac_var'}
16363 $as_echo "$as_val"'`
16364 if test "x$as_val" = x""yes; then
ad6254c5 16365 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16366#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16367_ACEOF
80992638
AK
16368
16369else
ec6a6fbe
AK
16370 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16371$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16372 { (exit 1); exit 1; }; }
8106cdd5 16373fi
ad6254c5 16374done
795ca3e5 16375
25fbec5b
AK
16376 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16377# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16378{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16379$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16380if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16381 $as_echo_n "(cached) " >&6
25fbec5b
AK
16382else
16383 ac_func_search_save_LIBS=$LIBS
16384cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
80992638 16390
7a197a62
AK
16391/* Override any GCC internal prototype to avoid an error.
16392 Use char because int might match the return type of a GCC
ad6254c5 16393 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16394#ifdef __cplusplus
16395extern "C"
16396#endif
25fbec5b 16397char getmntent ();
ad6254c5
AK
16398int
16399main ()
16400{
25fbec5b 16401return getmntent ();
ad6254c5
AK
16402 ;
16403 return 0;
16404}
16405_ACEOF
25fbec5b
AK
16406for ac_lib in '' sun seq gen; do
16407 if test -z "$ac_lib"; then
16408 ac_res="none required"
16409 else
16410 ac_res=-l$ac_lib
16411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16412 fi
16413 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16414if { (ac_try="$ac_link"
16415case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418esac
ec6a6fbe
AK
16419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16420$as_echo "$ac_try_echo") >&5
7a197a62 16421 (eval "$ac_link") 2>conftest.er1
ad6254c5 16422 ac_status=$?
8a2fc586
AK
16423 grep -v '^ *+' conftest.er1 >conftest.err
16424 rm -f conftest.er1
16425 cat conftest.err >&5
ec6a6fbe 16426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16427 (exit $ac_status); } && {
16428 test -z "$ac_c_werror_flag" ||
16429 test ! -s conftest.err
ec6a6fbe
AK
16430 } && test -s conftest$ac_exeext && {
16431 test "$cross_compiling" = yes ||
16432 $as_test_x conftest$ac_exeext
16433 }; then
25fbec5b 16434 ac_cv_search_getmntent=$ac_res
80992638 16435else
ec6a6fbe 16436 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16437sed 's/^/| /' conftest.$ac_ext >&5
16438
25fbec5b 16439
795ca3e5
AK
16440fi
16441
ec6a6fbe 16442rm -rf conftest.dSYM
25fbec5b
AK
16443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444 conftest$ac_exeext
16445 if test "${ac_cv_search_getmntent+set}" = set; then
16446 break
795ca3e5 16447fi
25fbec5b
AK
16448done
16449if test "${ac_cv_search_getmntent+set}" = set; then
16450 :
16451else
16452 ac_cv_search_getmntent=no
16453fi
16454rm conftest.$ac_ext
16455LIBS=$ac_func_search_save_LIBS
16456fi
ec6a6fbe
AK
16457{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16458$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16459ac_res=$ac_cv_search_getmntent
16460if test "$ac_res" != no; then
16461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16462 ac_cv_func_getmntent=yes
16463
16464cat >>confdefs.h <<\_ACEOF
9c961554 16465#define HAVE_GETMNTENT 1
ad6254c5 16466_ACEOF
795ca3e5 16467
25fbec5b
AK
16468else
16469 ac_cv_func_getmntent=no
795ca3e5 16470fi
795ca3e5
AK
16471
16472
ad6254c5
AK
16473
16474
16475for ac_header in sys/select.h sys/socket.h
16476do
ec6a6fbe 16477as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16480$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16482 $as_echo_n "(cached) " >&6
ad6254c5 16483fi
ec6a6fbe
AK
16484ac_res=`eval 'as_val=${'$as_ac_Header'}
16485 $as_echo "$as_val"'`
16486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16487$as_echo "$ac_res" >&6; }
795ca3e5 16488else
ad6254c5 16489 # Is the header compilable?
ec6a6fbe
AK
16490{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16491$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16492cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16493/* confdefs.h. */
16494_ACEOF
16495cat confdefs.h >>conftest.$ac_ext
16496cat >>conftest.$ac_ext <<_ACEOF
16497/* end confdefs.h. */
16498$ac_includes_default
16499#include <$ac_header>
16500_ACEOF
16501rm -f conftest.$ac_objext
7a197a62
AK
16502if { (ac_try="$ac_compile"
16503case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16506esac
ec6a6fbe
AK
16507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16508$as_echo "$ac_try_echo") >&5
7a197a62 16509 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16510 ac_status=$?
8a2fc586
AK
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
ec6a6fbe 16514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16515 (exit $ac_status); } && {
16516 test -z "$ac_c_werror_flag" ||
16517 test ! -s conftest.err
16518 } && test -s conftest.$ac_objext; then
ad6254c5 16519 ac_header_compiler=yes
80992638 16520else
ec6a6fbe 16521 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
7a197a62 16524 ac_header_compiler=no
ad6254c5 16525fi
7a197a62
AK
16526
16527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16528{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16529$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16530
16531# Is the header present?
ec6a6fbe
AK
16532{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16533$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
16541_ACEOF
7a197a62
AK
16542if { (ac_try="$ac_cpp conftest.$ac_ext"
16543case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16546esac
ec6a6fbe
AK
16547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548$as_echo "$ac_try_echo") >&5
7a197a62 16549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
ec6a6fbe 16554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16555 (exit $ac_status); } >/dev/null && {
16556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16557 test ! -s conftest.err
16558 }; then
ad6254c5
AK
16559 ac_header_preproc=yes
16560else
ec6a6fbe 16561 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16562sed 's/^/| /' conftest.$ac_ext >&5
16563
16564 ac_header_preproc=no
16565fi
7a197a62 16566
ad6254c5 16567rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16568{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16569$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16570
16571# So? What about this header?
8a2fc586
AK
16572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16573 yes:no: )
ec6a6fbe
AK
16574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16575$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16577$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16578 ac_header_preproc=yes
ad6254c5 16579 ;;
8a2fc586 16580 no:yes:* )
ec6a6fbe
AK
16581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16582$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16584$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16586$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16588$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16590$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16592$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16593
ad6254c5
AK
16594 ;;
16595esac
ec6a6fbe
AK
16596{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16597$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16599 $as_echo_n "(cached) " >&6
ad6254c5 16600else
8a2fc586 16601 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16602fi
ec6a6fbe
AK
16603ac_res=`eval 'as_val=${'$as_ac_Header'}
16604 $as_echo "$as_val"'`
16605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16606$as_echo "$ac_res" >&6; }
8106cdd5 16607
795ca3e5 16608fi
ec6a6fbe
AK
16609as_val=`eval 'as_val=${'$as_ac_Header'}
16610 $as_echo "$as_val"'`
16611 if test "x$as_val" = x""yes; then
ad6254c5 16612 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16614_ACEOF
16615
795ca3e5
AK
16616fi
16617
ad6254c5
AK
16618done
16619
ec6a6fbe
AK
16620{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16621$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16622if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16623 $as_echo_n "(cached) " >&6
26e7f2e0 16624else
ad6254c5 16625 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16626 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16627 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16628 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
16634$ac_includes_default
25fbec5b 16635#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16636# include <sys/select.h>
16637#endif
25fbec5b 16638#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16639# include <sys/socket.h>
16640#endif
16641
16642int
16643main ()
16644{
16645extern int select ($ac_arg1,
8a2fc586
AK
16646 $ac_arg234, $ac_arg234, $ac_arg234,
16647 $ac_arg5);
ad6254c5
AK
16648 ;
16649 return 0;
16650}
16651_ACEOF
16652rm -f conftest.$ac_objext
7a197a62
AK
16653if { (ac_try="$ac_compile"
16654case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657esac
ec6a6fbe
AK
16658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16659$as_echo "$ac_try_echo") >&5
7a197a62 16660 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16661 ac_status=$?
8a2fc586
AK
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
ec6a6fbe 16665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16666 (exit $ac_status); } && {
16667 test -z "$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16669 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16670 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16671else
ec6a6fbe 16672 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16673sed 's/^/| /' conftest.$ac_ext >&5
16674
7a197a62 16675
ad6254c5 16676fi
7a197a62
AK
16677
16678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16679 done
16680 done
16681done
16682# Provide a safe default value.
16683: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16684
26e7f2e0 16685fi
ec6a6fbe
AK
16686{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16687$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
16688ac_save_IFS=$IFS; IFS=','
16689set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16690IFS=$ac_save_IFS
16691shift
16692
16693cat >>confdefs.h <<_ACEOF
16694#define SELECT_TYPE_ARG1 $1
16695_ACEOF
16696
16697
16698cat >>confdefs.h <<_ACEOF
16699#define SELECT_TYPE_ARG234 ($2)
16700_ACEOF
16701
16702
16703cat >>confdefs.h <<_ACEOF
16704#define SELECT_TYPE_ARG5 ($3)
16705_ACEOF
16706
80992638 16707rm -f conftest*
80992638 16708
8106cdd5 16709fi
ad6254c5 16710
ad6254c5
AK
16711if test x$CLUSTER != xnone; then
16712
16713
16714for ac_header in sys/socket.h sys/un.h
b896caa1 16715do
ec6a6fbe 16716as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16718 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16719$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16721 $as_echo_n "(cached) " >&6
ad6254c5 16722fi
ec6a6fbe
AK
16723ac_res=`eval 'as_val=${'$as_ac_Header'}
16724 $as_echo "$as_val"'`
16725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16726$as_echo "$ac_res" >&6; }
ad6254c5
AK
16727else
16728 # Is the header compilable?
ec6a6fbe
AK
16729{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16730$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16731cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737$ac_includes_default
16738#include <$ac_header>
16739_ACEOF
16740rm -f conftest.$ac_objext
7a197a62
AK
16741if { (ac_try="$ac_compile"
16742case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
ec6a6fbe
AK
16746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16747$as_echo "$ac_try_echo") >&5
7a197a62 16748 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16749 ac_status=$?
8a2fc586
AK
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
ec6a6fbe 16753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16754 (exit $ac_status); } && {
16755 test -z "$ac_c_werror_flag" ||
16756 test ! -s conftest.err
16757 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16758 ac_header_compiler=yes
16759else
ec6a6fbe 16760 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16761sed 's/^/| /' conftest.$ac_ext >&5
16762
7a197a62 16763 ac_header_compiler=no
ad6254c5 16764fi
7a197a62
AK
16765
16766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16767{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16768$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16769
16770# Is the header present?
ec6a6fbe
AK
16771{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16772$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
16780_ACEOF
7a197a62
AK
16781if { (ac_try="$ac_cpp conftest.$ac_ext"
16782case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
ec6a6fbe
AK
16786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16787$as_echo "$ac_try_echo") >&5
7a197a62 16788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
ec6a6fbe 16793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16794 (exit $ac_status); } >/dev/null && {
16795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16796 test ! -s conftest.err
16797 }; then
ad6254c5
AK
16798 ac_header_preproc=yes
16799else
ec6a6fbe 16800 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16801sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_header_preproc=no
16804fi
7a197a62 16805
ad6254c5 16806rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16807{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16808$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16809
16810# So? What about this header?
8a2fc586
AK
16811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16812 yes:no: )
ec6a6fbe
AK
16813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16814$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16816$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16817 ac_header_preproc=yes
ad6254c5 16818 ;;
8a2fc586 16819 no:yes:* )
ec6a6fbe
AK
16820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16821$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16823$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16825$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16827$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16829$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16831$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16832
ad6254c5
AK
16833 ;;
16834esac
ec6a6fbe
AK
16835{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16836$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16838 $as_echo_n "(cached) " >&6
ad6254c5 16839else
8a2fc586 16840 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 16841fi
ec6a6fbe
AK
16842ac_res=`eval 'as_val=${'$as_ac_Header'}
16843 $as_echo "$as_val"'`
16844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16845$as_echo "$ac_res" >&6; }
ad6254c5
AK
16846
16847fi
ec6a6fbe
AK
16848as_val=`eval 'as_val=${'$as_ac_Header'}
16849 $as_echo "$as_val"'`
16850 if test "x$as_val" = x""yes; then
ad6254c5 16851 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16853_ACEOF
16854
80992638 16855else
ec6a6fbe
AK
16856 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16857$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16858 { (exit 1); exit 1; }; }
b896caa1 16859fi
ad6254c5 16860
b896caa1
AK
16861done
16862
16863
ad6254c5
AK
16864for ac_func in socket
16865do
ec6a6fbe
AK
16866as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16867{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16868$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16870 $as_echo_n "(cached) " >&6
795ca3e5 16871else
ad6254c5 16872 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
8a2fc586
AK
16878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16880#define $ac_func innocuous_$ac_func
16881
ad6254c5
AK
16882/* System header to define __stub macros and hopefully few prototypes,
16883 which can conflict with char $ac_func (); below.
16884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16885 <limits.h> exists even on freestanding compilers. */
8a2fc586 16886
ad6254c5
AK
16887#ifdef __STDC__
16888# include <limits.h>
16889#else
16890# include <assert.h>
16891#endif
8a2fc586
AK
16892
16893#undef $ac_func
16894
7a197a62
AK
16895/* Override any GCC internal prototype to avoid an error.
16896 Use char because int might match the return type of a GCC
16897 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16898#ifdef __cplusplus
16899extern "C"
ad6254c5 16900#endif
ad6254c5
AK
16901char $ac_func ();
16902/* The GNU C library defines this for functions which it implements
16903 to always fail with ENOSYS. Some functions are actually named
16904 something starting with __ and the normal name is an alias. */
7a197a62 16905#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 16906choke me
ad6254c5
AK
16907#endif
16908
16909int
16910main ()
16911{
7a197a62 16912return $ac_func ();
ad6254c5
AK
16913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16918if { (ac_try="$ac_link"
16919case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922esac
ec6a6fbe
AK
16923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16924$as_echo "$ac_try_echo") >&5
7a197a62 16925 (eval "$ac_link") 2>conftest.er1
ad6254c5 16926 ac_status=$?
8a2fc586
AK
16927 grep -v '^ *+' conftest.er1 >conftest.err
16928 rm -f conftest.er1
16929 cat conftest.err >&5
ec6a6fbe 16930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16931 (exit $ac_status); } && {
16932 test -z "$ac_c_werror_flag" ||
16933 test ! -s conftest.err
ec6a6fbe
AK
16934 } && test -s conftest$ac_exeext && {
16935 test "$cross_compiling" = yes ||
16936 $as_test_x conftest$ac_exeext
16937 }; then
ad6254c5
AK
16938 eval "$as_ac_var=yes"
16939else
ec6a6fbe 16940 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16941sed 's/^/| /' conftest.$ac_ext >&5
16942
7a197a62 16943 eval "$as_ac_var=no"
ad6254c5 16944fi
7a197a62 16945
ec6a6fbe 16946rm -rf conftest.dSYM
25fbec5b 16947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16948 conftest$ac_exeext conftest.$ac_ext
ad6254c5 16949fi
ec6a6fbe
AK
16950ac_res=`eval 'as_val=${'$as_ac_var'}
16951 $as_echo "$as_val"'`
16952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16953$as_echo "$ac_res" >&6; }
16954as_val=`eval 'as_val=${'$as_ac_var'}
16955 $as_echo "$as_val"'`
16956 if test "x$as_val" = x""yes; then
ad6254c5 16957 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
16959_ACEOF
16960
16961else
ec6a6fbe
AK
16962 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16963$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16964 { (exit 1); exit 1; }; }
16965fi
16966done
16967
16968fi
16969
d911ec67
AK
16970if test x$DMEVENTD = xyes; then
16971
16972for ac_header in arpa/inet.h
16973do
16974as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16977$as_echo_n "checking for $ac_header... " >&6; }
16978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979 $as_echo_n "(cached) " >&6
16980fi
16981ac_res=`eval 'as_val=${'$as_ac_Header'}
16982 $as_echo "$as_val"'`
16983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16984$as_echo "$ac_res" >&6; }
16985else
16986 # Is the header compilable?
16987{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16988$as_echo_n "checking $ac_header usability... " >&6; }
16989cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995$ac_includes_default
16996#include <$ac_header>
16997_ACEOF
16998rm -f conftest.$ac_objext
16999if { (ac_try="$ac_compile"
17000case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17005$as_echo "$ac_try_echo") >&5
17006 (eval "$ac_compile") 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } && {
17013 test -z "$ac_c_werror_flag" ||
17014 test ! -s conftest.err
17015 } && test -s conftest.$ac_objext; then
17016 ac_header_compiler=yes
17017else
17018 $as_echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 ac_header_compiler=no
17022fi
17023
17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17026$as_echo "$ac_header_compiler" >&6; }
17027
17028# Is the header present?
17029{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17030$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
17038_ACEOF
17039if { (ac_try="$ac_cpp conftest.$ac_ext"
17040case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043esac
17044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17045$as_echo "$ac_try_echo") >&5
17046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } >/dev/null && {
17053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 }; then
17056 ac_header_preproc=yes
17057else
17058 $as_echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 ac_header_preproc=no
17062fi
17063
17064rm -f conftest.err conftest.$ac_ext
17065{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17066$as_echo "$ac_header_preproc" >&6; }
17067
17068# So? What about this header?
17069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17070 yes:no: )
17071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17072$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17074$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17075 ac_header_preproc=yes
17076 ;;
17077 no:yes:* )
17078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17079$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17081$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17083$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17085$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17087$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17089$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17090
17091 ;;
17092esac
17093{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17094$as_echo_n "checking for $ac_header... " >&6; }
17095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17096 $as_echo_n "(cached) " >&6
17097else
17098 eval "$as_ac_Header=\$ac_header_preproc"
17099fi
17100ac_res=`eval 'as_val=${'$as_ac_Header'}
17101 $as_echo "$as_val"'`
17102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17103$as_echo "$ac_res" >&6; }
17104
17105fi
17106as_val=`eval 'as_val=${'$as_ac_Header'}
17107 $as_echo "$as_val"'`
17108 if test "x$as_val" = x""yes; then
17109 cat >>confdefs.h <<_ACEOF
17110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17111_ACEOF
17112
17113else
17114 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17115$as_echo "$as_me: error: bailing out" >&2;}
17116 { (exit 1); exit 1; }; }
17117fi
17118
17119done
17120
17121fi
17122
ad6254c5
AK
17123if test x$HAVE_LIBDL = xyes; then
17124
17125for ac_header in dlfcn.h
17126do
ec6a6fbe 17127as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17130$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17132 $as_echo_n "(cached) " >&6
ad6254c5 17133fi
ec6a6fbe
AK
17134ac_res=`eval 'as_val=${'$as_ac_Header'}
17135 $as_echo "$as_val"'`
17136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17137$as_echo "$ac_res" >&6; }
ad6254c5
AK
17138else
17139 # Is the header compilable?
ec6a6fbe
AK
17140{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17141$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17142cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17143/* confdefs.h. */
17144_ACEOF
17145cat confdefs.h >>conftest.$ac_ext
17146cat >>conftest.$ac_ext <<_ACEOF
17147/* end confdefs.h. */
17148$ac_includes_default
17149#include <$ac_header>
17150_ACEOF
17151rm -f conftest.$ac_objext
7a197a62
AK
17152if { (ac_try="$ac_compile"
17153case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156esac
ec6a6fbe
AK
17157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17158$as_echo "$ac_try_echo") >&5
7a197a62 17159 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17160 ac_status=$?
8a2fc586
AK
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
ec6a6fbe 17164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17169 ac_header_compiler=yes
17170else
ec6a6fbe 17171 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
7a197a62 17174 ac_header_compiler=no
ad6254c5 17175fi
7a197a62
AK
17176
17177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17178{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17179$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17180
17181# Is the header present?
ec6a6fbe
AK
17182{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17183$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
17191_ACEOF
7a197a62
AK
17192if { (ac_try="$ac_cpp conftest.$ac_ext"
17193case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
ec6a6fbe
AK
17197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198$as_echo "$ac_try_echo") >&5
7a197a62 17199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
ec6a6fbe 17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17205 (exit $ac_status); } >/dev/null && {
17206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 }; then
ad6254c5
AK
17209 ac_header_preproc=yes
17210else
ec6a6fbe 17211 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 ac_header_preproc=no
17215fi
7a197a62 17216
ad6254c5 17217rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17218{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17219$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17220
17221# So? What about this header?
8a2fc586
AK
17222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17223 yes:no: )
ec6a6fbe
AK
17224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17225$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17227$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17228 ac_header_preproc=yes
ad6254c5 17229 ;;
8a2fc586 17230 no:yes:* )
ec6a6fbe
AK
17231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17232$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17234$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17236$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17238$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17240$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17242$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17243
ad6254c5
AK
17244 ;;
17245esac
ec6a6fbe
AK
17246{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17247$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17249 $as_echo_n "(cached) " >&6
ad6254c5 17250else
8a2fc586 17251 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17252fi
ec6a6fbe
AK
17253ac_res=`eval 'as_val=${'$as_ac_Header'}
17254 $as_echo "$as_val"'`
17255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17256$as_echo "$ac_res" >&6; }
80992638 17257
8106cdd5 17258fi
ec6a6fbe
AK
17259as_val=`eval 'as_val=${'$as_ac_Header'}
17260 $as_echo "$as_val"'`
17261 if test "x$as_val" = x""yes; then
ad6254c5 17262 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17264_ACEOF
795ca3e5
AK
17265
17266else
ec6a6fbe
AK
17267 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17268$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17269 { (exit 1); exit 1; }; }
795ca3e5
AK
17270fi
17271
ad6254c5 17272done
80992638 17273
ad6254c5 17274fi
80992638 17275
ad6254c5 17276if test x$INTL = xyes; then
83912faa 17277
ad6254c5
AK
17278for ac_header in libintl.h
17279do
ec6a6fbe 17280as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17283$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17285 $as_echo_n "(cached) " >&6
ad6254c5 17286fi
ec6a6fbe
AK
17287ac_res=`eval 'as_val=${'$as_ac_Header'}
17288 $as_echo "$as_val"'`
17289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17290$as_echo "$ac_res" >&6; }
83912faa 17291else
ad6254c5 17292 # Is the header compilable?
ec6a6fbe
AK
17293{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17294$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17295cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17296/* confdefs.h. */
17297_ACEOF
17298cat confdefs.h >>conftest.$ac_ext
17299cat >>conftest.$ac_ext <<_ACEOF
17300/* end confdefs.h. */
17301$ac_includes_default
17302#include <$ac_header>
17303_ACEOF
17304rm -f conftest.$ac_objext
7a197a62
AK
17305if { (ac_try="$ac_compile"
17306case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
ec6a6fbe
AK
17310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17311$as_echo "$ac_try_echo") >&5
7a197a62 17312 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17313 ac_status=$?
8a2fc586
AK
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
ec6a6fbe 17317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17322 ac_header_compiler=yes
17323else
ec6a6fbe 17324 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
7a197a62 17327 ac_header_compiler=no
ad6254c5 17328fi
7a197a62
AK
17329
17330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17331{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17332$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17333
17334# Is the header present?
ec6a6fbe
AK
17335{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17336$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
17344_ACEOF
7a197a62
AK
17345if { (ac_try="$ac_cpp conftest.$ac_ext"
17346case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349esac
ec6a6fbe
AK
17350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17351$as_echo "$ac_try_echo") >&5
7a197a62 17352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
ec6a6fbe 17357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17358 (exit $ac_status); } >/dev/null && {
17359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 }; then
ad6254c5
AK
17362 ac_header_preproc=yes
17363else
ec6a6fbe 17364 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 ac_header_preproc=no
17368fi
7a197a62 17369
ad6254c5 17370rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17371{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17372$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17373
17374# So? What about this header?
8a2fc586
AK
17375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17376 yes:no: )
ec6a6fbe
AK
17377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17378$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17380$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17381 ac_header_preproc=yes
ad6254c5 17382 ;;
8a2fc586 17383 no:yes:* )
ec6a6fbe
AK
17384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17385$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17387$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17389$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17391$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17393$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17395$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17396
ad6254c5
AK
17397 ;;
17398esac
ec6a6fbe
AK
17399{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17400$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17402 $as_echo_n "(cached) " >&6
80992638 17403else
8a2fc586 17404 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17405fi
ec6a6fbe
AK
17406ac_res=`eval 'as_val=${'$as_ac_Header'}
17407 $as_echo "$as_val"'`
17408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17409$as_echo "$ac_res" >&6; }
83912faa 17410
69792976 17411fi
ec6a6fbe
AK
17412as_val=`eval 'as_val=${'$as_ac_Header'}
17413 $as_echo "$as_val"'`
17414 if test "x$as_val" = x""yes; then
ad6254c5 17415 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17417_ACEOF
69792976 17418
69792976 17419else
ec6a6fbe
AK
17420 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17421$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17422 { (exit 1); exit 1; }; }
80992638
AK
17423fi
17424
ad6254c5 17425done
69792976 17426
ad6254c5
AK
17427fi
17428
a5f46f6a
AK
17429if test x$UDEV_SYNC = xyes; then
17430
17431
17432for ac_header in sys/ipc.h sys/sem.h
17433do
17434as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17437$as_echo_n "checking for $ac_header... " >&6; }
17438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17439 $as_echo_n "(cached) " >&6
17440fi
17441ac_res=`eval 'as_val=${'$as_ac_Header'}
17442 $as_echo "$as_val"'`
17443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17444$as_echo "$ac_res" >&6; }
17445else
17446 # Is the header compilable?
17447{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17448$as_echo_n "checking $ac_header usability... " >&6; }
17449cat >conftest.$ac_ext <<_ACEOF
17450/* confdefs.h. */
17451_ACEOF
17452cat confdefs.h >>conftest.$ac_ext
17453cat >>conftest.$ac_ext <<_ACEOF
17454/* end confdefs.h. */
17455$ac_includes_default
17456#include <$ac_header>
17457_ACEOF
17458rm -f conftest.$ac_objext
17459if { (ac_try="$ac_compile"
17460case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463esac
17464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17465$as_echo "$ac_try_echo") >&5
17466 (eval "$ac_compile") 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest.$ac_objext; then
17476 ac_header_compiler=yes
17477else
17478 $as_echo "$as_me: failed program was:" >&5
17479sed 's/^/| /' conftest.$ac_ext >&5
17480
17481 ac_header_compiler=no
17482fi
17483
17484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17486$as_echo "$ac_header_compiler" >&6; }
17487
17488# Is the header present?
17489{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17490$as_echo_n "checking $ac_header presence... " >&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#include <$ac_header>
17498_ACEOF
17499if { (ac_try="$ac_cpp conftest.$ac_ext"
17500case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503esac
17504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17505$as_echo "$ac_try_echo") >&5
17506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17507 ac_status=$?
17508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
17511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } >/dev/null && {
17513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17514 test ! -s conftest.err
17515 }; then
17516 ac_header_preproc=yes
17517else
17518 $as_echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
17520
17521 ac_header_preproc=no
17522fi
17523
17524rm -f conftest.err conftest.$ac_ext
17525{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17526$as_echo "$ac_header_preproc" >&6; }
17527
17528# So? What about this header?
17529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17530 yes:no: )
17531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17532$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17534$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17535 ac_header_preproc=yes
17536 ;;
17537 no:yes:* )
17538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17539$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17541$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17543$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17545$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17547$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17549$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17550
17551 ;;
17552esac
17553{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17554$as_echo_n "checking for $ac_header... " >&6; }
17555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17556 $as_echo_n "(cached) " >&6
17557else
17558 eval "$as_ac_Header=\$ac_header_preproc"
17559fi
17560ac_res=`eval 'as_val=${'$as_ac_Header'}
17561 $as_echo "$as_val"'`
17562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17563$as_echo "$ac_res" >&6; }
17564
17565fi
17566as_val=`eval 'as_val=${'$as_ac_Header'}
17567 $as_echo "$as_val"'`
17568 if test "x$as_val" = x""yes; then
17569 cat >>confdefs.h <<_ACEOF
17570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17571_ACEOF
17572
17573else
17574 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17575$as_echo "$as_me: error: bailing out" >&2;}
17576 { (exit 1); exit 1; }; }
17577fi
17578
17579done
17580
17581fi
17582
a653923f
AK
17583################################################################################
17584# Extract the first word of "modprobe", so it can be a program name with args.
17585set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17586{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17587$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17588if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17589 $as_echo_n "(cached) " >&6
72b2cb61
AK
17590else
17591 case $MODPROBE_CMD in
17592 [\\/]* | ?:[\\/]*)
17593 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17594 ;;
17595 *)
17596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597for as_dir in $PATH
17598do
17599 IFS=$as_save_IFS
17600 test -z "$as_dir" && as_dir=.
17601 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17603 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17605 break 2
17606 fi
17607done
17608done
7a197a62 17609IFS=$as_save_IFS
72b2cb61
AK
17610
17611 ;;
17612esac
17613fi
17614MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17615if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17616 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17617$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17618else
ec6a6fbe
AK
17619 { $as_echo "$as_me:$LINENO: result: no" >&5
17620$as_echo "no" >&6; }
72b2cb61
AK
17621fi
17622
a653923f 17623
7a197a62 17624
a653923f 17625if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17626
17627cat >>confdefs.h <<_ACEOF
17628#define MODPROBE_CMD "$MODPROBE_CMD"
17629_ACEOF
17630
a653923f
AK
17631fi
17632
b5c2529b 17633
a9b601e2
ZK
17634lvm_exec_prefix=$exec_prefix
17635test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17636test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17637
b5c2529b 17638cat >>confdefs.h <<_ACEOF
a9b601e2 17639#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17640_ACEOF
17641
17642
17643if test "$CLVMD" != none; then
17644 clvmd_prefix=$ac_default_prefix
17645 test "$prefix" != NONE && clvmd_prefix=$prefix
17646
17647cat >>confdefs.h <<_ACEOF
17648#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17649_ACEOF
17650
17651fi
17652
80992638 17653################################################################################
93bd259b
AK
17654
17655
17656if test "$BUILD_DMEVENTD" = yes; then
17657
17658# Check whether --with-dmeventd-pidfile was given.
17659if test "${with_dmeventd_pidfile+set}" = set; then
17660 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
17661#define DMEVENTD_PIDFILE "$withval"
17662_ACEOF
17663
17664else
17665 cat >>confdefs.h <<_ACEOF
17666#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
17667_ACEOF
17668
17669fi
17670
17671fi
17672
17673
17674
17675if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17676
17677# Check whether --with-dmeventd-path was given.
17678if test "${with_dmeventd_path+set}" = set; then
17679 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
17680#define DMEVENTD_PATH "$withval"
17681_ACEOF
17682
17683else
17684 cat >>confdefs.h <<_ACEOF
a9b601e2 17685#define DMEVENTD_PATH "$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17686_ACEOF
17687
17688fi
17689
17690fi
17691
3399ae32
AK
17692################################################################################
17693
17694
17695
17696# Check whether --with-default-system-dir was given.
17697if test "${with_default_system_dir+set}" = set; then
17698 withval=$with_default_system_dir; DEFAULT_SYS_DIR="$withval"
17699else
17700 DEFAULT_SYS_DIR="/etc/lvm"
17701fi
17702
17703cat >>confdefs.h <<_ACEOF
17704#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
17705_ACEOF
17706
17707
17708
17709
17710
17711# Check whether --with-default-archive-subdir was given.
17712if test "${with_default_archive_subdir+set}" = set; then
17713 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR="$withval"
17714else
17715 DEFAULT_ARCHIVE_SUBDIR="archive"
17716fi
17717
17718cat >>confdefs.h <<_ACEOF
17719#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
17720_ACEOF
17721
17722
17723
17724
17725
17726# Check whether --with-default-backup-subdir was given.
17727if test "${with_default_backup_subdir+set}" = set; then
17728 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR="$withval"
17729else
17730 DEFAULT_BACKUP_SUBDIR="backup"
17731fi
17732
17733cat >>confdefs.h <<_ACEOF
17734#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
17735_ACEOF
17736
17737
17738
17739
17740
17741# Check whether --with-default-cache-subdir was given.
17742if test "${with_default_cache_subdir+set}" = set; then
17743 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR="$withval"
17744else
17745 DEFAULT_CACHE_SUBDIR="cache"
17746fi
17747
17748cat >>confdefs.h <<_ACEOF
17749#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
17750_ACEOF
17751
17752
17753
17754
17755
17756# Check whether --with-default-locking-dir was given.
17757if test "${with_default_locking_dir+set}" = set; then
17758 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR="$withval"
17759else
17760 DEFAULT_LOCK_DIR="/var/lock/lvm"
17761fi
17762
17763cat >>confdefs.h <<_ACEOF
17764#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
17765_ACEOF
17766
17767
93bd259b 17768################################################################################
ec6a6fbe
AK
17769{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
17770$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
17771
17772# Check whether --with-interface was given.
17773if test "${with_interface+set}" = set; then
17774 withval=$with_interface; interface="$withval"
17775else
17776 interface=ioctl
17777fi
17778
17779if [ "x$interface" != xioctl ];
17780then
ec6a6fbe
AK
17781 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
17782$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
17783 { (exit 1); exit 1; }; }
17784fi
ec6a6fbe
AK
17785{ $as_echo "$as_me:$LINENO: result: $interface" >&5
17786$as_echo "$interface" >&6; }
93bd259b
AK
17787
17788################################################################################
db8b5af9 17789DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
17790
17791cat >>confdefs.h <<_ACEOF
17792#define DM_LIB_VERSION $DM_LIB_VERSION
17793_ACEOF
17794
17795
db8b5af9 17796DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 17797
db8b5af9 17798LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 17799
db8b5af9 17800VER=`cat "$srcdir"/VERSION`
bf456146 17801LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
17802VER=`echo "$VER" | $AWK '{print $1}'`
17803LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
17804VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
17805LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
17806LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
17807LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
17808LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 17809
80992638 17810################################################################################
fae0c576 17811
83912faa 17812
795ca3e5
AK
17813
17814
17815
17816
17817
17818
5a52dca9 17819
8ef2b021 17820
199e490e 17821
69792976
AK
17822
17823
17824
d0191583 17825
69792976 17826
8106cdd5
AK
17827
17828
17829
17830
17831
d68a82ec 17832
036f273a 17833
7d1552c9 17834
8106cdd5 17835
0a62c911 17836
8106cdd5 17837
4a7f3eb2 17838
4922197a
AK
17839
17840
d8ac0fbc 17841
1a9ea74d 17842
8a2fc586
AK
17843
17844
d0191583 17845
93bd259b
AK
17846
17847
17848
17849
17850
d0191583
JM
17851
17852
17853
17854
17855
8a2fc586 17856
19a2c6e0 17857
f7f0854e
ZK
17858
17859
3ceb7608 17860
8ce0cbda 17861
8b1a3214 17862
ec6a6fbe
AK
17863
17864
17865
17866
e2997b73
AK
17867
17868
17869
17870
17871
17872
a946372e
AK
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
ec6a6fbe 17884
33f732c5 17885
66e941e8 17886
d3c8211f 17887
7e3fe830 17888
a5f46f6a
AK
17889
17890
17891
572fefeb 17892
90c80887 17893
3399ae32
AK
17894
17895
17896
17897
17898
90c80887 17899
bf456146 17900
e1b8a236 17901
0878503f 17902
8fea97b7 17903
68f2de6d
AK
17904
17905
80992638 17906################################################################################
8fea97b7 17907ac_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 17908
ad6254c5 17909cat >confcache <<\_ACEOF
795ca3e5
AK
17910# This file is a shell script that caches the results of configure
17911# tests run on this system so they can be shared between configure
ad6254c5
AK
17912# scripts and configure runs, see configure's option --config-cache.
17913# It is not useful on other systems. If it contains results you don't
17914# want to keep, you may remove or edit it.
795ca3e5 17915#
ad6254c5
AK
17916# config.status only pays attention to the cache file if you give it
17917# the --recheck option to rerun configure.
795ca3e5 17918#
ad6254c5
AK
17919# `ac_cv_env_foo' variables (set or unset) will be overridden when
17920# loading this file, other *unset* `ac_cv_foo' will be assigned the
17921# following values.
17922
17923_ACEOF
17924
795ca3e5
AK
17925# The following way of writing the cache mishandles newlines in values,
17926# but we know of no workaround that is simple, portable, and efficient.
7a197a62 17927# So, we kill variables containing newlines.
795ca3e5
AK
17928# Ultrix sh set writes to stderr and can't be redirected directly,
17929# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
17930(
17931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17932 eval ac_val=\$$ac_var
17933 case $ac_val in #(
17934 *${as_nl}*)
17935 case $ac_var in #(
ec6a6fbe
AK
17936 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
17938 esac
17939 case $ac_var in #(
17940 _ | IFS | as_nl) ;; #(
ec6a6fbe 17941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
17942 *) $as_unset $ac_var ;;
17943 esac ;;
17944 esac
17945 done
17946
ad6254c5 17947 (set) 2>&1 |
7a197a62
AK
17948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17949 *${as_nl}ac_space=\ *)
ad6254c5
AK
17950 # `set' does not quote correctly, so add quotes (double-quote
17951 # substitution turns \\\\ into \\, and sed turns \\ into \).
17952 sed -n \
8a2fc586
AK
17953 "s/'/'\\\\''/g;
17954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 17955 ;; #(
ad6254c5
AK
17956 *)
17957 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 17958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 17959 ;;
7a197a62
AK
17960 esac |
17961 sort
17962) |
ad6254c5 17963 sed '
7a197a62 17964 /^ac_cv_env_/b end
ad6254c5 17965 t clear
7a197a62 17966 :clear
ad6254c5
AK
17967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17968 t end
7a197a62
AK
17969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17970 :end' >>confcache
17971if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17972 if test -w "$cache_file"; then
17973 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
17974 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17975$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 17976 cat confcache >$cache_file
795ca3e5 17977 else
ec6a6fbe
AK
17978 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17979$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
17980 fi
17981fi
17982rm -f confcache
17983
795ca3e5
AK
17984test "x$prefix" = xNONE && prefix=$ac_default_prefix
17985# Let make expand exec_prefix.
17986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17987
72b2cb61 17988DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
17989
17990ac_libobjs=
17991ac_ltlibobjs=
17992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17993 # 1. Remove the extension, and $U if already installed.
7a197a62 17994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 17995 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
17996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17997 # will be set to the directory where LIBOBJS objects are built.
17998 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17999 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18000done
18001LIBOBJS=$ac_libobjs
80992638 18002
ad6254c5
AK
18003LTLIBOBJS=$ac_ltlibobjs
18004
18005
18006
18007: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18008ac_write_fail=0
ad6254c5
AK
18009ac_clean_files_save=$ac_clean_files
18010ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18011{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18012$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18013cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18014#! $SHELL
18015# Generated by $as_me.
795ca3e5 18016# Run this file to recreate the current configuration.
795ca3e5 18017# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18018# configure, is in config.log if it exists.
18019
18020debug=false
18021ac_cs_recheck=false
18022ac_cs_silent=false
18023SHELL=\${CONFIG_SHELL-$SHELL}
18024_ACEOF
18025
ec6a6fbe 18026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18027## --------------------- ##
18028## M4sh Initialization. ##
18029## --------------------- ##
18030
25fbec5b
AK
18031# Be more Bourne compatible
18032DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18033if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18034 emulate sh
18035 NULLCMD=:
ec6a6fbe 18036 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18037 # is contrary to our usage. Disable this feature.
18038 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18039 setopt NO_GLOB_SUBST
18040else
25fbec5b
AK
18041 case `(set -o) 2>/dev/null` in
18042 *posix*) set -o posix ;;
18043esac
18044
7a197a62 18045fi
25fbec5b
AK
18046
18047
7a197a62
AK
18048
18049
18050# PATH needs CR
18051# Avoid depending upon Character Ranges.
18052as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18053as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18054as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18055as_cr_digits='0123456789'
18056as_cr_alnum=$as_cr_Letters$as_cr_digits
18057
ec6a6fbe
AK
18058as_nl='
18059'
18060export as_nl
18061# Printing a long string crashes Solaris 7 /usr/bin/printf.
18062as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18063as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18064as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18065if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18066 as_echo='printf %s\n'
18067 as_echo_n='printf %s'
18068else
18069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18071 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18072 else
ec6a6fbe
AK
18073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18074 as_echo_n_body='eval
18075 arg=$1;
18076 case $arg in
18077 *"$as_nl"*)
18078 expr "X$arg" : "X\\(.*\\)$as_nl";
18079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18080 esac;
18081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18082 '
18083 export as_echo_n_body
18084 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18085 fi
ec6a6fbe
AK
18086 export as_echo_body
18087 as_echo='sh -c $as_echo_body as_echo'
18088fi
18089
18090# The user is always right.
18091if test "${PATH_SEPARATOR+set}" != set; then
18092 PATH_SEPARATOR=:
18093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18095 PATH_SEPARATOR=';'
18096 }
ad6254c5
AK
18097fi
18098
18099# Support unset when possible.
8a2fc586 18100if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18101 as_unset=unset
18102else
18103 as_unset=false
18104fi
8106cdd5 18105
ad6254c5 18106
7a197a62
AK
18107# IFS
18108# We need space, tab and new line, in precisely that order. Quoting is
18109# there to prevent editors from complaining about space-tab.
18110# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18111# splitting by setting IFS to empty value.)
7a197a62
AK
18112IFS=" "" $as_nl"
18113
18114# Find who we are. Look in the path if we contain no directory separator.
18115case $0 in
18116 *[\\/]* ) as_myself=$0 ;;
18117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18118for as_dir in $PATH
18119do
18120 IFS=$as_save_IFS
18121 test -z "$as_dir" && as_dir=.
18122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18123done
18124IFS=$as_save_IFS
18125
18126 ;;
18127esac
18128# We did not find ourselves, most probably we were run as `sh COMMAND'
18129# in which case we are not to be found in the path.
18130if test "x$as_myself" = x; then
18131 as_myself=$0
18132fi
18133if test ! -f "$as_myself"; then
ec6a6fbe 18134 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18135 { (exit 1); exit 1; }
18136fi
18137
ad6254c5 18138# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18139for as_var in ENV MAIL MAILPATH
18140do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18141done
ad6254c5
AK
18142PS1='$ '
18143PS2='> '
18144PS4='+ '
18145
18146# NLS nuisances.
ec6a6fbe
AK
18147LC_ALL=C
18148export LC_ALL
18149LANGUAGE=C
18150export LANGUAGE
8106cdd5 18151
ad6254c5 18152# Required to use basename.
7a197a62
AK
18153if expr a : '\(a\)' >/dev/null 2>&1 &&
18154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18155 as_expr=expr
18156else
18157 as_expr=false
18158fi
8106cdd5 18159
7a197a62 18160if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18161 as_basename=basename
18162else
18163 as_basename=false
18164fi
18165
18166
18167# Name of the executable.
7a197a62 18168as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18169$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18170 X"$0" : 'X\(//\)$' \| \
7a197a62 18171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18172$as_echo X/"$0" |
7a197a62
AK
18173 sed '/^.*\/\([^/][^/]*\)\/*$/{
18174 s//\1/
18175 q
18176 }
18177 /^X\/\(\/\/\)$/{
18178 s//\1/
18179 q
18180 }
18181 /^X\/\(\/\).*/{
18182 s//\1/
18183 q
18184 }
18185 s/.*/./; q'`
ad6254c5 18186
7a197a62
AK
18187# CDPATH.
18188$as_unset CDPATH
ad6254c5
AK
18189
18190
ad6254c5 18191
ad6254c5
AK
18192 as_lineno_1=$LINENO
18193 as_lineno_2=$LINENO
ad6254c5 18194 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18195 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18196
ad6254c5
AK
18197 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18198 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18199 # line-number line after each line using $LINENO; the second 'sed'
18200 # does the real work. The second script uses 'N' to pair each
18201 # line-number line with the line containing $LINENO, and appends
18202 # trailing '-' during substitution so that $LINENO is not a special
18203 # case at line end.
ad6254c5 18204 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18205 # scripts with optimization help from Paolo Bonzini. Blame Lee
18206 # E. McMahon (1931-1989) for sed's syntax. :-)
18207 sed -n '
18208 p
18209 /[$]LINENO/=
18210 ' <$as_myself |
ad6254c5 18211 sed '
7a197a62
AK
18212 s/[$]LINENO.*/&-/
18213 t lineno
18214 b
18215 :lineno
ad6254c5 18216 N
7a197a62
AK
18217 :loop
18218 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18219 t loop
7a197a62 18220 s/-\n.*//
ad6254c5 18221 ' >$as_me.lineno &&
7a197a62 18222 chmod +x "$as_me.lineno" ||
ec6a6fbe 18223 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18224 { (exit 1); exit 1; }; }
18225
18226 # Don't try to exec as it changes $[0], causing all sort of problems
18227 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18228 # original and so on. Autoconf is especially sensitive to this).
18229 . "./$as_me.lineno"
ad6254c5
AK
18230 # Exit status is that of the last command.
18231 exit
18232}
18233
18234
7a197a62
AK
18235if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18236 as_dirname=dirname
18237else
18238 as_dirname=false
18239fi
18240
18241ECHO_C= ECHO_N= ECHO_T=
18242case `echo -n x` in
18243-n*)
18244 case `echo 'x\c'` in
18245 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18246 *) ECHO_C='\c';;
18247 esac;;
18248*)
18249 ECHO_N='-n';;
ad6254c5 18250esac
7a197a62
AK
18251if expr a : '\(a\)' >/dev/null 2>&1 &&
18252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18253 as_expr=expr
18254else
18255 as_expr=false
18256fi
80992638 18257
ad6254c5 18258rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18259if test -d conf$$.dir; then
18260 rm -f conf$$.dir/conf$$.file
18261else
18262 rm -f conf$$.dir
ec6a6fbe
AK
18263 mkdir conf$$.dir 2>/dev/null
18264fi
18265if (echo >conf$$.file) 2>/dev/null; then
18266 if ln -s conf$$.file conf$$ 2>/dev/null; then
18267 as_ln_s='ln -s'
18268 # ... but there are two gotchas:
18269 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18270 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18271 # In both cases, we have to default to `cp -p'.
18272 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18273 as_ln_s='cp -p'
18274 elif ln conf$$.file conf$$ 2>/dev/null; then
18275 as_ln_s=ln
18276 else
ad6254c5 18277 as_ln_s='cp -p'
ec6a6fbe 18278 fi
ad6254c5
AK
18279else
18280 as_ln_s='cp -p'
18281fi
7a197a62
AK
18282rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18283rmdir conf$$.dir 2>/dev/null
8106cdd5 18284
ad6254c5
AK
18285if mkdir -p . 2>/dev/null; then
18286 as_mkdir_p=:
18287else
8a2fc586 18288 test -d ./-p && rmdir ./-p
ad6254c5
AK
18289 as_mkdir_p=false
18290fi
18291
25fbec5b
AK
18292if test -x / >/dev/null 2>&1; then
18293 as_test_x='test -x'
7a197a62 18294else
25fbec5b
AK
18295 if ls -dL / >/dev/null 2>&1; then
18296 as_ls_L_option=L
18297 else
18298 as_ls_L_option=
18299 fi
18300 as_test_x='
18301 eval sh -c '\''
18302 if test -d "$1"; then
ec6a6fbe 18303 test -d "$1/.";
25fbec5b
AK
18304 else
18305 case $1 in
ec6a6fbe 18306 -*)set "./$1";;
25fbec5b
AK
18307 esac;
18308 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18309 ???[sx]*):;;*)false;;esac;fi
18310 '\'' sh
18311 '
7a197a62 18312fi
25fbec5b 18313as_executable_p=$as_test_x
ad6254c5
AK
18314
18315# Sed expression to map a string onto a valid CPP name.
8a2fc586 18316as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18317
18318# Sed expression to map a string onto a valid variable name.
8a2fc586 18319as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18320
18321
ad6254c5
AK
18322exec 6>&1
18323
7a197a62 18324# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18325# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18326# values after options handling.
18327ac_log="
ad6254c5 18328This file was extended by $as_me, which was
ec6a6fbe 18329generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18330
18331 CONFIG_FILES = $CONFIG_FILES
18332 CONFIG_HEADERS = $CONFIG_HEADERS
18333 CONFIG_LINKS = $CONFIG_LINKS
18334 CONFIG_COMMANDS = $CONFIG_COMMANDS
18335 $ $0 $@
18336
7a197a62
AK
18337on `(hostname || uname -n) 2>/dev/null | sed 1q`
18338"
18339
ad6254c5
AK
18340_ACEOF
18341
ec6a6fbe
AK
18342case $ac_config_files in *"
18343"*) set x $ac_config_files; shift; ac_config_files=$*;;
18344esac
18345
18346case $ac_config_headers in *"
18347"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18348esac
18349
18350
18351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18352# Files that config.status was made for.
68f2de6d
AK
18353config_files="$ac_config_files"
18354config_headers="$ac_config_headers"
ad6254c5 18355
7a197a62 18356_ACEOF
ad6254c5 18357
ec6a6fbe 18358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18359ac_cs_usage="\
18360\`$as_me' instantiates files from templates according to the
18361current configuration.
18362
ec6a6fbe 18363Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18364
18365 -h, --help print this help, then exit
25fbec5b 18366 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18367 -q, --quiet, --silent
18368 do not print progress messages
ad6254c5
AK
18369 -d, --debug don't remove temporary files
18370 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18371 --file=FILE[:TEMPLATE]
18372 instantiate the configuration file FILE
18373 --header=FILE[:TEMPLATE]
18374 instantiate the configuration header FILE
ad6254c5
AK
18375
18376Configuration files:
18377$config_files
18378
72b2cb61
AK
18379Configuration headers:
18380$config_headers
18381
ad6254c5 18382Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18383
7a197a62 18384_ACEOF
ec6a6fbe 18385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18386ac_cs_version="\\
18387config.status
ec6a6fbe
AK
18388configured by $0, generated by GNU Autoconf 2.63,
18389 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18390
ec6a6fbe 18391Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18392This config.status script is free software; the Free Software Foundation
18393gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18394
18395ac_pwd='$ac_pwd'
18396srcdir='$srcdir'
18397INSTALL='$INSTALL'
fddafd51 18398MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18399AWK='$AWK'
18400test -n "\$AWK" || AWK=awk
ad6254c5
AK
18401_ACEOF
18402
ec6a6fbe
AK
18403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18404# The default lists apply if the user does not specify any file.
ad6254c5
AK
18405ac_need_defaults=:
18406while test $# != 0
18407do
18408 case $1 in
18409 --*=*)
7a197a62
AK
18410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18412 ac_shift=:
18413 ;;
7a197a62 18414 *)
ad6254c5
AK
18415 ac_option=$1
18416 ac_optarg=$2
18417 ac_shift=shift
18418 ;;
ad6254c5
AK
18419 esac
18420
18421 case $ac_option in
18422 # Handling of the options.
ad6254c5
AK
18423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18424 ac_cs_recheck=: ;;
7a197a62 18425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18426 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18427 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18428 debug=: ;;
18429 --file | --fil | --fi | --f )
18430 $ac_shift
ec6a6fbe
AK
18431 case $ac_optarg in
18432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18433 esac
18434 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18435 ac_need_defaults=false;;
18436 --header | --heade | --head | --hea )
18437 $ac_shift
ec6a6fbe
AK
18438 case $ac_optarg in
18439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18440 esac
18441 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18442 ac_need_defaults=false;;
7a197a62
AK
18443 --he | --h)
18444 # Conflict between --help and --header
ec6a6fbe 18445 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18446Try \`$0 --help' for more information." >&2
18447 { (exit 1); exit 1; }; };;
18448 --help | --hel | -h )
ec6a6fbe 18449 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18452 ac_cs_silent=: ;;
18453
18454 # This is an error.
ec6a6fbe 18455 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18456Try \`$0 --help' for more information." >&2
ad6254c5
AK
18457 { (exit 1); exit 1; }; } ;;
18458
7a197a62
AK
18459 *) ac_config_targets="$ac_config_targets $1"
18460 ac_need_defaults=false ;;
ad6254c5
AK
18461
18462 esac
18463 shift
18464done
18465
18466ac_configure_extra_args=
18467
18468if $ac_cs_silent; then
18469 exec 6>/dev/null
18470 ac_configure_extra_args="$ac_configure_extra_args --silent"
18471fi
18472
18473_ACEOF
ec6a6fbe 18474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18475if \$ac_cs_recheck; then
ec6a6fbe
AK
18476 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18477 shift
18478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18479 CONFIG_SHELL='$SHELL'
7a197a62 18480 export CONFIG_SHELL
ec6a6fbe 18481 exec "\$@"
ad6254c5
AK
18482fi
18483
18484_ACEOF
ec6a6fbe 18485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18486exec 5>>config.log
18487{
18488 echo
18489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18490## Running $as_me. ##
18491_ASBOX
ec6a6fbe 18492 $as_echo "$ac_log"
7a197a62 18493} >&5
ad6254c5 18494
7a197a62 18495_ACEOF
ec6a6fbe 18496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18497_ACEOF
ad6254c5 18498
ec6a6fbe 18499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18500
18501# Handling of arguments.
ad6254c5
AK
18502for ac_config_target in $ac_config_targets
18503do
7a197a62
AK
18504 case $ac_config_target in
18505 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18506 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18507 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18508 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18509 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18510 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18511 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18512 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18513 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18514 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18515 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18516 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18517 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18518 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18519 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18520 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18521 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18522 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18523 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18524 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18525 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18526 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18527 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18528 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18529 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18530 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18531 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18532 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18533 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18534 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18535 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18536 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18537 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18538 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18539 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18540 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18541 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18542 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 18543
ec6a6fbe
AK
18544 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18545$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18546 { (exit 1); exit 1; }; };;
80992638 18547 esac
ad6254c5
AK
18548done
18549
7a197a62 18550
ad6254c5
AK
18551# If the user did not use the arguments to specify the items to instantiate,
18552# then the envvar interface is used. Set only those that are not.
18553# We use the long form for the default assignment because of an extremely
18554# bizarre bug on SunOS 4.1.3.
18555if $ac_need_defaults; then
18556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18558fi
18559
18560# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18561# simply because there is no reason against having it here, and in addition,
ad6254c5 18562# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18563# Hook for its removal unless debugging.
18564# Note that there is a small window in which the directory will not be cleaned:
18565# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18566$debug ||
18567{
7a197a62
AK
18568 tmp=
18569 trap 'exit_status=$?
18570 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18571' 0
ad6254c5
AK
18572 trap '{ (exit 1); exit 1; }' 1 2 13 15
18573}
ad6254c5
AK
18574# Create a (secure) tmp directory for tmp files.
18575
18576{
7a197a62 18577 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18578 test -n "$tmp" && test -d "$tmp"
18579} ||
18580{
7a197a62
AK
18581 tmp=./conf$$-$RANDOM
18582 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18583} ||
18584{
ec6a6fbe 18585 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18586 { (exit 1); exit 1; }
18587}
18588
ec6a6fbe
AK
18589# Set up the scripts for CONFIG_FILES section.
18590# No need to generate them if there are no CONFIG_FILES.
18591# This happens for instance with `./config.status config.h'.
1995c9ff 18592if test -n "$CONFIG_FILES"; then
7a197a62 18593
68f2de6d 18594
ec6a6fbe
AK
18595ac_cr='\r'
18596ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18597if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18598 ac_cs_awk_cr='\\r'
18599else
18600 ac_cs_awk_cr=$ac_cr
1995c9ff 18601fi
7a197a62 18602
ec6a6fbe 18603echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18604_ACEOF
7a197a62 18605
8106cdd5 18606
ec6a6fbe
AK
18607{
18608 echo "cat >conf$$subs.awk <<_ACEOF" &&
18609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18610 echo "_ACEOF"
18611} >conf$$subs.sh ||
18612 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18613$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18614 { (exit 1); exit 1; }; }
18615ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18616ac_delim='%!_!# '
18617for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18618 . ./conf$$subs.sh ||
18619 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18620$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18621 { (exit 1); exit 1; }; }
18622
18623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18624 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18625 break
18626 elif $ac_last_try; then
ec6a6fbe
AK
18627 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18628$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18629 { (exit 1); exit 1; }; }
18630 else
18631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18632 fi
18633done
ec6a6fbe
AK
18634rm -f conf$$subs.sh
18635
18636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18637cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18638_ACEOF
18639sed -n '
18640h
18641s/^/S["/; s/!.*/"]=/
18642p
18643g
18644s/^[^!]*!//
18645:repl
18646t repl
18647s/'"$ac_delim"'$//
18648t delim
18649:nl
18650h
18651s/\(.\{148\}\).*/\1/
18652t more1
18653s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18654p
18655n
18656b repl
18657:more1
18658s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18659p
18660g
18661s/.\{148\}//
18662t nl
18663:delim
18664h
18665s/\(.\{148\}\).*/\1/
18666t more2
18667s/["\\]/\\&/g; s/^/"/; s/$/"/
18668p
18669b
18670:more2
18671s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18672p
18673g
18674s/.\{148\}//
18675t delim
18676' <conf$$subs.awk | sed '
18677/^[^""]/{
18678 N
18679 s/\n//
18680}
18681' >>$CONFIG_STATUS || ac_write_fail=1
18682rm -f conf$$subs.awk
18683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684_ACAWK
18685cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18686 for (key in S) S_is_set[key] = 1
18687 FS = "\a"
7a197a62 18688
ec6a6fbe
AK
18689}
18690{
18691 line = $ 0
18692 nfields = split(line, field, "@")
18693 substed = 0
18694 len = length(field[1])
18695 for (i = 2; i < nfields; i++) {
18696 key = field[i]
18697 keylen = length(key)
18698 if (S_is_set[key]) {
18699 value = S[key]
18700 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18701 len += length(value) + length(field[++i])
18702 substed = 1
18703 } else
18704 len += 1 + keylen
18705 }
18706
18707 print line
18708}
fddafd51 18709
ec6a6fbe 18710_ACAWK
1995c9ff 18711_ACEOF
ec6a6fbe
AK
18712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18713if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18714 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18715else
18716 cat
18717fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18718 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18719$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18720 { (exit 1); exit 1; }; }
7a197a62
AK
18721_ACEOF
18722
7a197a62
AK
18723# VPATH may cause trouble with some makes, so we remove $(srcdir),
18724# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18725# trailing colons and then remove the whole line if VPATH becomes empty
18726# (actually we leave an empty line to preserve line numbers).
18727if test "x$srcdir" = x.; then
18728 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18729s/:*\$(srcdir):*/:/
18730s/:*\${srcdir}:*/:/
18731s/:*@srcdir@:*/:/
18732s/^\([^=]*=[ ]*\):*/\1/
18733s/:*$//
18734s/^[^=]*=[ ]*$//
18735}'
18736fi
18737
ec6a6fbe 18738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18739fi # test -n "$CONFIG_FILES"
18740
ec6a6fbe
AK
18741# Set up the scripts for CONFIG_HEADERS section.
18742# No need to generate them if there are no CONFIG_HEADERS.
18743# This happens for instance with `./config.status Makefile'.
18744if test -n "$CONFIG_HEADERS"; then
18745cat >"$tmp/defines.awk" <<\_ACAWK ||
18746BEGIN {
18747_ACEOF
18748
18749# Transform confdefs.h into an awk script `defines.awk', embedded as
18750# here-document in config.status, that substitutes the proper values into
18751# config.h.in to produce config.h.
18752
18753# Create a delimiter string that does not exist in confdefs.h, to ease
18754# handling of long lines.
18755ac_delim='%!_!# '
18756for ac_last_try in false false :; do
18757 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18758 if test -z "$ac_t"; then
18759 break
18760 elif $ac_last_try; then
18761 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18762$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18763 { (exit 1); exit 1; }; }
18764 else
18765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18766 fi
18767done
18768
18769# For the awk script, D is an array of macro values keyed by name,
18770# likewise P contains macro parameters if any. Preserve backslash
18771# newline sequences.
18772
18773ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18774sed -n '
18775s/.\{148\}/&'"$ac_delim"'/g
18776t rset
18777:rset
18778s/^[ ]*#[ ]*define[ ][ ]*/ /
18779t def
18780d
18781:def
18782s/\\$//
18783t bsnl
18784s/["\\]/\\&/g
18785s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18786D["\1"]=" \3"/p
18787s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18788d
18789:bsnl
18790s/["\\]/\\&/g
18791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18792D["\1"]=" \3\\\\\\n"\\/p
18793t cont
18794s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18795t cont
18796d
18797:cont
18798n
18799s/.\{148\}/&'"$ac_delim"'/g
18800t clear
18801:clear
18802s/\\$//
18803t bsnlc
18804s/["\\]/\\&/g; s/^/"/; s/$/"/p
18805d
18806:bsnlc
18807s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18808b cont
18809' <confdefs.h | sed '
18810s/'"$ac_delim"'/"\\\
18811"/g' >>$CONFIG_STATUS || ac_write_fail=1
18812
18813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814 for (key in D) D_is_set[key] = 1
18815 FS = "\a"
18816}
18817/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18818 line = \$ 0
18819 split(line, arg, " ")
18820 if (arg[1] == "#") {
18821 defundef = arg[2]
18822 mac1 = arg[3]
18823 } else {
18824 defundef = substr(arg[1], 2)
18825 mac1 = arg[2]
18826 }
18827 split(mac1, mac2, "(") #)
18828 macro = mac2[1]
18829 prefix = substr(line, 1, index(line, defundef) - 1)
18830 if (D_is_set[macro]) {
18831 # Preserve the white space surrounding the "#".
18832 print prefix "define", macro P[macro] D[macro]
18833 next
18834 } else {
18835 # Replace #undef with comments. This is necessary, for example,
18836 # in the case of _POSIX_SOURCE, which is predefined and required
18837 # on some systems where configure will not decide to define it.
18838 if (defundef == "undef") {
18839 print "/*", prefix defundef, macro, "*/"
18840 next
18841 }
18842 }
18843}
18844{ print }
18845_ACAWK
18846_ACEOF
18847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18848 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18849$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18850 { (exit 1); exit 1; }; }
18851fi # test -n "$CONFIG_HEADERS"
18852
7a197a62 18853
ec6a6fbe
AK
18854eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18855shift
18856for ac_tag
7a197a62
AK
18857do
18858 case $ac_tag in
18859 :[FHLC]) ac_mode=$ac_tag; continue;;
18860 esac
18861 case $ac_mode$ac_tag in
18862 :[FHL]*:*);;
ec6a6fbe
AK
18863 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18864$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
18865 { (exit 1); exit 1; }; };;
18866 :[FH]-) ac_tag=-:-;;
18867 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18868 esac
18869 ac_save_IFS=$IFS
18870 IFS=:
18871 set x $ac_tag
18872 IFS=$ac_save_IFS
18873 shift
18874 ac_file=$1
18875 shift
18876
18877 case $ac_mode in
18878 :L) ac_source=$1;;
18879 :[FH])
18880 ac_file_inputs=
18881 for ac_f
18882 do
18883 case $ac_f in
18884 -) ac_f="$tmp/stdin";;
18885 *) # Look for the file first in the build tree, then in the source tree
18886 # (if the path is not absolute). The absolute path cannot be DOS-style,
18887 # because $ac_f cannot contain `:'.
18888 test -f "$ac_f" ||
18889 case $ac_f in
18890 [\\/$]*) false;;
18891 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18892 esac ||
ec6a6fbe
AK
18893 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18894$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
18895 { (exit 1); exit 1; }; };;
18896 esac
ec6a6fbe
AK
18897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18898 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
18899 done
18900
18901 # Let's still pretend it is `configure' which instantiates (i.e., don't
18902 # use $as_me), people would be surprised to read:
18903 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
18904 configure_input='Generated from '`
18905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18906 `' by configure.'
7a197a62
AK
18907 if test x"$ac_file" != x-; then
18908 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
18909 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18910$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 18911 fi
ec6a6fbe
AK
18912 # Neutralize special characters interpreted by sed in replacement strings.
18913 case $configure_input in #(
18914 *\&* | *\|* | *\\* )
18915 ac_sed_conf_input=`$as_echo "$configure_input" |
18916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18917 *) ac_sed_conf_input=$configure_input;;
18918 esac
7a197a62
AK
18919
18920 case $ac_tag in
ec6a6fbe
AK
18921 *:-:* | *:-) cat >"$tmp/stdin" \
18922 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18923$as_echo "$as_me: error: could not create $ac_file" >&2;}
18924 { (exit 1); exit 1; }; } ;;
7a197a62
AK
18925 esac
18926 ;;
80992638 18927 esac
8106cdd5 18928
7a197a62 18929 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 18930$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
18931 X"$ac_file" : 'X\(//\)[^/]' \| \
18932 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 18933 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18934$as_echo X"$ac_file" |
7a197a62
AK
18935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18936 s//\1/
18937 q
18938 }
18939 /^X\(\/\/\)[^/].*/{
18940 s//\1/
18941 q
18942 }
18943 /^X\(\/\/\)$/{
18944 s//\1/
18945 q
18946 }
18947 /^X\(\/\).*/{
18948 s//\1/
18949 q
18950 }
18951 s/.*/./; q'`
18952 { as_dir="$ac_dir"
18953 case $as_dir in #(
18954 -*) as_dir=./$as_dir;;
18955 esac
18956 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 18957 as_dirs=
7a197a62
AK
18958 while :; do
18959 case $as_dir in #(
ec6a6fbe 18960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
18961 *) as_qdir=$as_dir;;
18962 esac
18963 as_dirs="'$as_qdir' $as_dirs"
18964 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 18965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
18966 X"$as_dir" : 'X\(//\)[^/]' \| \
18967 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 18968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18969$as_echo X"$as_dir" |
7a197a62
AK
18970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18971 s//\1/
18972 q
18973 }
18974 /^X\(\/\/\)[^/].*/{
18975 s//\1/
18976 q
18977 }
18978 /^X\(\/\/\)$/{
18979 s//\1/
18980 q
18981 }
18982 /^X\(\/\).*/{
18983 s//\1/
18984 q
18985 }
18986 s/.*/./; q'`
18987 test -d "$as_dir" && break
ad6254c5 18988 done
7a197a62 18989 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
18990 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18991$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 18992 { (exit 1); exit 1; }; }; }
ad6254c5
AK
18993 ac_builddir=.
18994
7a197a62
AK
18995case "$ac_dir" in
18996.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18997*)
ec6a6fbe 18998 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 18999 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19000 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19001 case $ac_top_builddir_sub in
19002 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19003 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19004 esac ;;
19005esac
19006ac_abs_top_builddir=$ac_pwd
19007ac_abs_builddir=$ac_pwd$ac_dir_suffix
19008# for backward compatibility:
19009ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19010
19011case $srcdir in
7a197a62 19012 .) # We are building in place.
ad6254c5 19013 ac_srcdir=.
7a197a62
AK
19014 ac_top_srcdir=$ac_top_builddir_sub
19015 ac_abs_top_srcdir=$ac_pwd ;;
19016 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19017 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19018 ac_top_srcdir=$srcdir
19019 ac_abs_top_srcdir=$srcdir ;;
19020 *) # Relative name.
19021 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19022 ac_top_srcdir=$ac_top_build_prefix$srcdir
19023 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19024esac
7a197a62 19025ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19026
ad6254c5 19027
7a197a62
AK
19028 case $ac_mode in
19029 :F)
19030 #
19031 # CONFIG_FILE
19032 #
ad6254c5
AK
19033
19034 case $INSTALL in
19035 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19036 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19037 esac
fddafd51
ZK
19038 ac_MKDIR_P=$MKDIR_P
19039 case $MKDIR_P in
19040 [\\/$]* | ?:[\\/]* ) ;;
19041 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19042 esac
7a197a62 19043_ACEOF
795ca3e5 19044
ec6a6fbe 19045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19046# If the template does not know about datarootdir, expand it.
19047# FIXME: This hack should be removed a few years after 2.60.
19048ac_datarootdir_hack=; ac_datarootdir_seen=
19049
ec6a6fbe
AK
19050ac_sed_dataroot='
19051/datarootdir/ {
7a197a62
AK
19052 p
19053 q
19054}
19055/@datadir@/p
19056/@docdir@/p
19057/@infodir@/p
19058/@localedir@/p
19059/@mandir@/p
ec6a6fbe
AK
19060'
19061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19062*datarootdir*) ac_datarootdir_seen=yes;;
19063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19064 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19066_ACEOF
ec6a6fbe 19067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19068 ac_datarootdir_hack='
19069 s&@datadir@&$datadir&g
19070 s&@docdir@&$docdir&g
19071 s&@infodir@&$infodir&g
19072 s&@localedir@&$localedir&g
19073 s&@mandir@&$mandir&g
19074 s&\\\${datarootdir}&$datarootdir&g' ;;
19075esac
19076_ACEOF
19077
19078# Neutralize VPATH when `$srcdir' = `.'.
19079# Shell code in configure.ac might set extrasub.
19080# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19082ac_sed_extra="$ac_vpsub
ad6254c5
AK
19083$extrasub
19084_ACEOF
ec6a6fbe 19085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19086:t
19087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19088s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19089s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19090s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19091s&@srcdir@&$ac_srcdir&;t t
19092s&@abs_srcdir@&$ac_abs_srcdir&;t t
19093s&@top_srcdir@&$ac_top_srcdir&;t t
19094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19095s&@builddir@&$ac_builddir&;t t
19096s&@abs_builddir@&$ac_abs_builddir&;t t
19097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19098s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19099s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19100$ac_datarootdir_hack
ec6a6fbe
AK
19101"
19102eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19103 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19104$as_echo "$as_me: error: could not create $ac_file" >&2;}
19105 { (exit 1); exit 1; }; }
7a197a62
AK
19106
19107test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19108 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19110 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19111which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19112$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19113which seems to be undefined. Please make sure it is defined." >&2;}
19114
19115 rm -f "$tmp/stdin"
72b2cb61 19116 case $ac_file in
ec6a6fbe
AK
19117 -) cat "$tmp/out" && rm -f "$tmp/out";;
19118 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19119 esac \
19120 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19121$as_echo "$as_me: error: could not create $ac_file" >&2;}
19122 { (exit 1); exit 1; }; }
7a197a62
AK
19123 ;;
19124 :H)
19125 #
19126 # CONFIG_HEADER
19127 #
72b2cb61 19128 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19129 {
19130 $as_echo "/* $configure_input */" \
19131 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19132 } >"$tmp/config.h" \
19133 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19134$as_echo "$as_me: error: could not create $ac_file" >&2;}
19135 { (exit 1); exit 1; }; }
19136 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19137 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19138$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19139 else
ec6a6fbe
AK
19140 rm -f "$ac_file"
19141 mv "$tmp/config.h" "$ac_file" \
19142 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19143$as_echo "$as_me: error: could not create $ac_file" >&2;}
19144 { (exit 1); exit 1; }; }
72b2cb61
AK
19145 fi
19146 else
ec6a6fbe
AK
19147 $as_echo "/* $configure_input */" \
19148 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19149 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19150$as_echo "$as_me: error: could not create -" >&2;}
19151 { (exit 1); exit 1; }; }
72b2cb61 19152 fi
7a197a62
AK
19153 ;;
19154
19155
19156 esac
19157
19158done # for ac_tag
795ca3e5 19159
795ca3e5 19160
ad6254c5
AK
19161{ (exit 0); exit 0; }
19162_ACEOF
795ca3e5 19163chmod +x $CONFIG_STATUS
ad6254c5
AK
19164ac_clean_files=$ac_clean_files_save
19165
ec6a6fbe
AK
19166test $ac_write_fail = 0 ||
19167 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19168$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19169 { (exit 1); exit 1; }; }
19170
ad6254c5
AK
19171
19172# configure is writing to config.log, and then calls config.status.
19173# config.status does its own redirection, appending to config.log.
19174# Unfortunately, on DOS this fails, as config.log is still kept open
19175# by configure, so config.status won't be able to write to it; its
19176# output is simply discarded. So we exec the FD to /dev/null,
19177# effectively closing config.log, so it can be properly (re)opened and
19178# appended to by config.status. When coming back to configure, we
19179# need to make the FD available again.
19180if test "$no_create" != yes; then
19181 ac_cs_success=:
19182 ac_config_status_args=
19183 test "$silent" = yes &&
19184 ac_config_status_args="$ac_config_status_args --quiet"
19185 exec 5>/dev/null
19186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19187 exec 5>>config.log
19188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19189 # would make configure fail if this is the last instruction.
19190 $ac_cs_success || { (exit 1); exit 1; }
19191fi
ec6a6fbe
AK
19192if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19193 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19194$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19195fi
795ca3e5 19196
2dc95e1c
AK
19197
19198if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19199 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19200$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19201fi
This page took 2.631593 seconds and 5 git commands to generate.