]> sourceware.org Git - lvm2.git/blame - configure
Add a "should" alongside "not" to the test utilities. When a "should" command
[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
db724a44 652UDEV_LIBS
ec6a6fbe
AK
653STATIC_LINK
654STATICDIR
655SNAPSHOTS
e1b8a236 656SELINUX_LIBS
539f4a77 657READLINE_LIBS
f30875db 658PTHREAD_LIBS
ec6a6fbe
AK
659POOL
660PKGCONFIG
ec6a6fbe
AK
661MIRRORS
662LVM_RELEASE_DATE
663LVM_RELEASE
664LVM_PATCHLEVEL
665LVM_MINOR
666LVM_MAJOR
bf456146 667LVM_LIBAPI
ec6a6fbe 668LVM_VERSION
ec6a6fbe
AK
669LVM1_FALLBACK
670LVM1
671LOCALEDIR
672LIB_SUFFIX
673LDDEPS
674JOBS
675INTL_PACKAGE
676INTL
ec6a6fbe
AK
677HAVE_REALTIME
678HAVE_LIBDL
ec6a6fbe
AK
679FSADM
680DM_LIB_PATCHLEVEL
681DM_LIB_VERSION
682DM_IOCTLS
683DM_DEVICE_UID
684DM_DEVICE_MODE
685DM_DEVICE_GID
686DM_COMPAT
687DMEVENTD
19a2c6e0 688DL_LIBS
ec6a6fbe
AK
689DEVMAPPER
690DEBUG
691COPTIMISE_FLAG
e2997b73 692CONFDIR
ec6a6fbe
AK
693CMDLIB
694CLVMD
695CLUSTER
696CLDWHOLEARCHIVE
697CLDNOWHOLEARCHIVE
698CLDFLAGS
699BUILD_DMEVENTD
66fd4529 700BUILD_CMIRRORD
572fefeb 701APPLIB
ec6a6fbe
AK
702MODPROBE_CMD
703MSGFMT
704LVM2CMD_LIB
572fefeb 705LVM2APP_LIB
fd4728e1 706GENPNG
ec6a6fbe
AK
707GENHTML
708LCOV
90c80887
AK
709SACKPT_LIBS
710SACKPT_CFLAGS
a946372e
AK
711DLM_LIBS
712DLM_CFLAGS
e2997b73
AK
713CPG_LIBS
714CPG_CFLAGS
715CONFDB_LIBS
716CONFDB_CFLAGS
a946372e
AK
717SALCK_LIBS
718SALCK_CFLAGS
e2997b73
AK
719QUORUM_LIBS
720QUORUM_CFLAGS
a946372e
AK
721COROSYNC_LIBS
722COROSYNC_CFLAGS
723CMAN_LIBS
724CMAN_CFLAGS
725GULM_LIBS
726GULM_CFLAGS
727CCS_LIBS
728CCS_CFLAGS
729PKGCONFIGINIT_LIBS
730PKGCONFIGINIT_CFLAGS
e2997b73 731PKG_CONFIG
ec6a6fbe
AK
732POW_LIB
733LIBOBJS
734ALLOCA
735CSCOPE_CMD
736CFLOW_CMD
737RANLIB
738MKDIR_P
739SET_MAKE
740LN_S
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744EGREP
745GREP
746CPP
747OBJEXT
748EXEEXT
749ac_ct_CC
750CPPFLAGS
751LDFLAGS
752CFLAGS
753CC
754AWK
755SED
756target_os
757target_vendor
758target_cpu
759target
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL'
ad6254c5 805ac_subst_files=''
ec6a6fbe
AK
806ac_user_opts='
807enable_option_checking
808enable_static_link
809with_user
810with_group
811with_device_uid
812with_device_gid
813with_device_mode
814enable_lvm1_fallback
815with_lvm1
816with_pool
817with_cluster
818with_snapshots
819with_mirrors
820enable_readline
821enable_realtime
822with_clvmd
66fd4529
AK
823enable_cmirrord
824with_cmirrord_pidfile
ec6a6fbe
AK
825enable_debug
826with_optimisation
827enable_profiling
828enable_devmapper
a5f46f6a
AK
829enable_udev_sync
830enable_udev_rules
ec6a6fbe 831enable_compat
95eaa683 832enable_units_compat
ec6a6fbe
AK
833enable_ioctl
834enable_o_direct
572fefeb 835enable_applib
ec6a6fbe
AK
836enable_cmdlib
837enable_pkgconfig
23b059e7 838enable_write_install
ec6a6fbe
AK
839enable_fsadm
840enable_dmeventd
841enable_selinux
842enable_nls
843with_localedir
844with_confdir
845with_staticdir
846with_usrlibdir
847with_usrsbindir
a5f46f6a 848with_udev_prefix
78ce7acc 849with_udevdir
ec6a6fbe
AK
850with_dmeventd_pidfile
851with_dmeventd_path
852with_interface
853'
7a197a62
AK
854 ac_precious_vars='build_alias
855host_alias
856target_alias
857CC
858CFLAGS
859LDFLAGS
25fbec5b 860LIBS
7a197a62 861CPPFLAGS
e2997b73
AK
862CPP
863PKG_CONFIG
a946372e
AK
864PKGCONFIGINIT_CFLAGS
865PKGCONFIGINIT_LIBS
866CCS_CFLAGS
867CCS_LIBS
868GULM_CFLAGS
869GULM_LIBS
870CMAN_CFLAGS
871CMAN_LIBS
872COROSYNC_CFLAGS
873COROSYNC_LIBS
e2997b73
AK
874QUORUM_CFLAGS
875QUORUM_LIBS
a946372e
AK
876SALCK_CFLAGS
877SALCK_LIBS
e2997b73
AK
878CONFDB_CFLAGS
879CONFDB_LIBS
880CPG_CFLAGS
a946372e
AK
881CPG_LIBS
882DLM_CFLAGS
90c80887
AK
883DLM_LIBS
884SACKPT_CFLAGS
885SACKPT_LIBS'
7a197a62 886
795ca3e5
AK
887
888# Initialize some variables set by options.
ad6254c5
AK
889ac_init_help=
890ac_init_version=false
ec6a6fbe
AK
891ac_unrecognized_opts=
892ac_unrecognized_sep=
795ca3e5
AK
893# The variables have the same names as the options, with
894# dashes changed to underlines.
ad6254c5 895cache_file=/dev/null
795ca3e5 896exec_prefix=NONE
795ca3e5 897no_create=
795ca3e5
AK
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
795ca3e5
AK
906verbose=
907x_includes=NONE
908x_libraries=NONE
ad6254c5
AK
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 915# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
7a197a62
AK
919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
795ca3e5
AK
921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
795ca3e5
AK
924includedir='${prefix}/include'
925oldincludedir='/usr/include'
7a197a62
AK
926docdir='${datarootdir}/doc/${PACKAGE}'
927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
795ca3e5 935
795ca3e5 936ac_prev=
7a197a62 937ac_dashdash=
795ca3e5
AK
938for ac_option
939do
795ca3e5
AK
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
7a197a62 942 eval $ac_prev=\$ac_option
795ca3e5
AK
943 ac_prev=
944 continue
945 fi
946
7a197a62
AK
947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
795ca3e5
AK
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
7a197a62
AK
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
795ca3e5
AK
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 961 bindir=$ac_optarg ;;
795ca3e5
AK
962
963 -build | --build | --buil | --bui | --bu)
ad6254c5 964 ac_prev=build_alias ;;
795ca3e5 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 966 build_alias=$ac_optarg ;;
795ca3e5
AK
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
795ca3e5 977
7a197a62 978 -datadir | --datadir | --datadi | --datad)
795ca3e5 979 ac_prev=datadir ;;
7a197a62 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 981 datadir=$ac_optarg ;;
795ca3e5 982
7a197a62
AK
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
795ca3e5 990 -disable-* | --disable-*)
ec6a6fbe 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 992 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 995 { (exit 1); exit 1; }; }
ec6a6fbe
AK
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000"enable_$ac_useropt"
1001"*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
7a197a62
AK
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
795ca3e5
AK
1016
1017 -enable-* | --enable-*)
ec6a6fbe 1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1019 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1022 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"enable_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
ad6254c5 1041 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
ad6254c5
AK
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
795ca3e5
AK
1053
1054 -host | --host | --hos | --ho)
ad6254c5 1055 ac_prev=host_alias ;;
795ca3e5 1056 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1057 host_alias=$ac_optarg ;;
795ca3e5 1058
7a197a62
AK
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
795ca3e5
AK
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1070 includedir=$ac_optarg ;;
795ca3e5
AK
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1075 infodir=$ac_optarg ;;
795ca3e5
AK
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1080 libdir=$ac_optarg ;;
795ca3e5
AK
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1087 libexecdir=$ac_optarg ;;
795ca3e5 1088
7a197a62
AK
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
795ca3e5 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1095 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1099 localstatedir=$ac_optarg ;;
795ca3e5
AK
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1104 mandir=$ac_optarg ;;
795ca3e5
AK
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1111 | --no-cr | --no-c | -n)
795ca3e5
AK
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1125 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1130 prefix=$ac_optarg ;;
795ca3e5
AK
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1137 program_prefix=$ac_optarg ;;
795ca3e5
AK
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1144 program_suffix=$ac_optarg ;;
795ca3e5
AK
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1161 program_transform_name=$ac_optarg ;;
795ca3e5 1162
7a197a62
AK
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
795ca3e5
AK
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
ad6254c5 1181 sbindir=$ac_optarg ;;
795ca3e5
AK
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
ad6254c5 1192 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
ad6254c5 1197 site=$ac_optarg ;;
795ca3e5
AK
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1202 srcdir=$ac_optarg ;;
795ca3e5
AK
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1209 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1212 ac_prev=target_alias ;;
795ca3e5 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1214 target_alias=$ac_optarg ;;
795ca3e5
AK
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
ad6254c5
AK
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
795ca3e5
AK
1221
1222 -with-* | --with-*)
ec6a6fbe 1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1224 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1227 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232"with_$ac_useropt"
1233"*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1238
1239 -without-* | --without-*)
ec6a6fbe 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1241 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1244 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249"with_$ac_useropt"
1250"*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
795ca3e5
AK
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1265 x_includes=$ac_optarg ;;
795ca3e5
AK
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1272 x_libraries=$ac_optarg ;;
795ca3e5 1273
ec6a6fbe 1274 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1275Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
795ca3e5
AK
1277 ;;
1278
ad6254c5
AK
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1283 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1284 { (exit 1); exit 1; }; }
7a197a62 1285 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1286 export $ac_envvar ;;
1287
795ca3e5 1288 *)
ad6254c5 1289 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1294 ;;
1295
1296 esac
1297done
1298
1299if test -n "$ac_prev"; then
ad6254c5 1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1301 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1302 { (exit 1); exit 1; }; }
795ca3e5 1303fi
795ca3e5 1304
ec6a6fbe
AK
1305if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1309 { (exit 1); exit 1; }; } ;;
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 esac
1312fi
1313
1314# Check all directory arguments for consistency.
7a197a62
AK
1315for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
795ca3e5 1319do
7a197a62 1320 eval ac_val=\$$ac_var
ec6a6fbe
AK
1321 # Remove trailing slashes.
1322 case $ac_val in
1323 */ )
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1326 esac
1327 # Be sure to have absolute directory names.
ad6254c5 1328 case $ac_val in
7a197a62
AK
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1331 esac
ec6a6fbe 1332 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1333 { (exit 1); exit 1; }; }
795ca3e5
AK
1334done
1335
ad6254c5
AK
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
1342
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
ec6a6fbe 1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352fi
8106cdd5 1353
ad6254c5
AK
1354ac_tool_prefix=
1355test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357test "$silent" = yes && exec 6>/dev/null
795ca3e5 1358
795ca3e5 1359
7a197a62
AK
1360ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361ac_ls_di=`ls -di .` &&
1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1363 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1364 { (exit 1); exit 1; }; }
1365test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1366 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1367 { (exit 1); exit 1; }; }
1368
1369
795ca3e5
AK
1370# Find the source files, if location was not specified.
1371if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
7a197a62 1373 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379$as_echo X"$as_myself" |
7a197a62
AK
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
795ca3e5 1397 srcdir=$ac_confdir
7a197a62 1398 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1399 srcdir=..
1400 fi
1401else
1402 ac_srcdir_defaulted=no
1403fi
7a197a62
AK
1404if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1406 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1407 { (exit 1); exit 1; }; }
795ca3e5 1408fi
7a197a62
AK
1409ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410ac_abs_confdir=`(
ec6a6fbe 1411 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1412 { (exit 1); exit 1; }; }
7a197a62
AK
1413 pwd)`
1414# When building in place, set srcdir=.
1415if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417fi
1418# Remove unnecessary trailing slashes from srcdir.
1419# Double slashes in file names in object file debugging info
1420# mess up M-x gdb in Emacs.
1421case $srcdir in
1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423esac
1424for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429done
ad6254c5
AK
1430
1431#
1432# Report the --help message.
1433#
1434if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438\`configure' configures this package to adapt to many kinds of systems.
1439
1440Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445Defaults for the options are specified in brackets.
1446
1447Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
ad6254c5
AK
1458Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1460 [$ac_default_prefix]
ad6254c5 1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1462 [PREFIX]
ad6254c5
AK
1463
1464By default, \`make install' will install all the files in
1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467for instance \`--prefix=\$HOME'.
1468
1469For better control, use the options below.
1470
1471Fine tuning of the installation directories:
ec6a6fbe
AK
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1491_ACEOF
1492
1493 cat <<\_ACEOF
1494
1495System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 --target=TARGET configure for building compilers for TARGET [HOST]
1499_ACEOF
1500fi
1501
1502if test -n "$ac_init_help"; then
1503
1504 cat <<\_ACEOF
1505
1506Optional Features:
ec6a6fbe 1507 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1510 --enable-static_link Use this to link the tools to their libraries
1511 statically. Default is dynamic linking
ad6254c5
AK
1512 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1513 device-mapper is missing from the kernel
1b523347 1514 --disable-readline Disable readline support
89044bc0 1515 --enable-realtime Enable realtime clock support
66fd4529 1516 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1517 --enable-debug Enable debugging
5556819a 1518 --enable-profiling Gather gcov profiling data
93bd259b 1519 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1520 --enable-udev_sync Enable synchronisation with udev processing
1521 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1522 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1523 --enable-units-compat Enable output compatibility with old versions that
1524 that don't use KiB-style unit suffixes
93bd259b 1525 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1526 --disable-o_direct Disable O_DIRECT
572fefeb 1527 --enable-applib Build application library
ad6254c5 1528 --enable-cmdlib Build shared command library
93bd259b 1529 --enable-pkgconfig Install pkgconfig support
23b059e7 1530 --enable-write_install Install user writable files
c9274524 1531 --disable-fsadm Disable fsadm
15d91f5a 1532 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1533 --disable-selinux Disable selinux support
ad6254c5
AK
1534 --enable-nls Enable Native Language Support
1535
1536Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1539 --with-user=USER Set the owner of installed files [USER=]
1540 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1541 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1542 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1543 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1544 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1545 TYPE=internal
1546 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1547 TYPE=internal
1548 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1549 TYPE=internal
1550 --with-snapshots=TYPE Snapshot support: internal/shared/none
1551 TYPE=internal
1552 --with-mirrors=TYPE Mirror support: internal/shared/none
1553 TYPE=internal
a946372e 1554 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1555 The following cluster manager combinations are valid:
a946372e
AK
1556 * cman,gulm (RHEL4 or equivalent)
1557 * cman (RHEL5 or equivalent)
1558 * cman,corosync,openais (or selection of them)
1091650a 1559 * singlenode (localhost only)
a946372e
AK
1560 * all (autodetect)
1561 * none (disable build)
a266258f 1562 TYPE=none
66fd4529 1563 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1564 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1565 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1566 --with-confdir=DIR Configuration files in DIR [/etc]
1567 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1568 --with-usrlibdir=DIR
1569 --with-usrsbindir=DIR
a5f46f6a 1570 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1571 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1572 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1573 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1574 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1575
1576Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
25fbec5b 1581 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
ad6254c5 1584 CPP C preprocessor
e2997b73 1585 PKG_CONFIG path to pkg-config utility
a946372e
AK
1586 PKGCONFIGINIT_CFLAGS
1587 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1588 PKGCONFIGINIT_LIBS
1589 linker flags for PKGCONFIGINIT, overriding pkg-config
1590 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1591 CCS_LIBS linker flags for CCS, overriding pkg-config
1592 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1593 GULM_LIBS linker flags for GULM, overriding pkg-config
1594 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1595 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1596 COROSYNC_CFLAGS
1597 C compiler flags for COROSYNC, overriding pkg-config
1598 COROSYNC_LIBS
1599 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1600 QUORUM_CFLAGS
1601 C compiler flags for QUORUM, overriding pkg-config
1602 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1603 SALCK_CFLAGS
1604 C compiler flags for SALCK, overriding pkg-config
1605 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1606 CONFDB_CFLAGS
1607 C compiler flags for CONFDB, overriding pkg-config
1608 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1609 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1610 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1611 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1612 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1613 SACKPT_CFLAGS
1614 C compiler flags for SACKPT, overriding pkg-config
1615 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
1620_ACEOF
7a197a62 1621ac_status=$?
ad6254c5
AK
1622fi
1623
1624if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
ad6254c5 1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
ad6254c5
AK
1630 ac_builddir=.
1631
7a197a62
AK
1632case "$ac_dir" in
1633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634*)
ec6a6fbe 1635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1636 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642esac
1643ac_abs_top_builddir=$ac_pwd
1644ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645# for backward compatibility:
1646ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1647
1648case $srcdir in
7a197a62 1649 .) # We are building in place.
ad6254c5 1650 ac_srcdir=.
7a197a62
AK
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1654 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1661esac
7a197a62
AK
1662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1672 else
ec6a6fbe 1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1676 done
1677fi
1678
7a197a62 1679test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1680if $ac_init_version; then
1681 cat <<\_ACEOF
7a197a62 1682configure
ec6a6fbe 1683generated by GNU Autoconf 2.63
ad6254c5 1684
7a197a62 1685Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16862002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
1689_ACEOF
7a197a62 1690 exit
ad6254c5 1691fi
7a197a62 1692cat >config.log <<_ACEOF
ad6254c5
AK
1693This file contains any messages produced by compilers while
1694running configure, to aid debugging if configure makes a mistake.
1695
1696It was created by $as_me, which was
ec6a6fbe 1697generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1698
1699 $ $0 $@
1700
1701_ACEOF
7a197a62 1702exec 5>>config.log
ad6254c5
AK
1703{
1704cat <<_ASUNAME
1705## --------- ##
1706## Platform. ##
1707## --------- ##
1708
1709hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1710uname -m = `(uname -m) 2>/dev/null || echo unknown`
1711uname -r = `(uname -r) 2>/dev/null || echo unknown`
1712uname -s = `(uname -s) 2>/dev/null || echo unknown`
1713uname -v = `(uname -v) 2>/dev/null || echo unknown`
1714
1715/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1716/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1717
1718/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1719/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1720/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1721/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1722/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1723/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1724/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1725
1726_ASUNAME
1727
1728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729for as_dir in $PATH
1730do
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
ec6a6fbe 1733 $as_echo "PATH: $as_dir"
ad6254c5 1734done
7a197a62 1735IFS=$as_save_IFS
ad6254c5
AK
1736
1737} >&5
1738
1739cat >&5 <<_ACEOF
1740
1741
1742## ----------- ##
1743## Core tests. ##
1744## ----------- ##
1745
1746_ACEOF
1747
1748
1749# Keep a trace of the command line.
1750# Strip out --no-create and --no-recursion so they do not pile up.
1751# Strip out --silent because we don't want to record it for future runs.
1752# Also quote any args containing shell meta-characters.
1753# Make two passes to allow for proper duplicate-argument suppression.
1754ac_configure_args=
1755ac_configure_args0=
1756ac_configure_args1=
ad6254c5
AK
1757ac_must_keep_next=false
1758for ac_pass in 1 2
1759do
1760 for ac_arg
1761 do
1762 case $ac_arg in
1763 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1765 | -silent | --silent | --silen | --sile | --sil)
1766 continue ;;
7a197a62 1767 *\'*)
ec6a6fbe 1768 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1769 esac
1770 case $ac_pass in
1771 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1772 2)
1773 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1774 if test $ac_must_keep_next = true; then
8a2fc586 1775 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1776 else
8a2fc586
AK
1777 case $ac_arg in
1778 *=* | --config-cache | -C | -disable-* | --disable-* \
1779 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1780 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1781 | -with-* | --with-* | -without-* | --without-* | --x)
1782 case "$ac_configure_args0 " in
1783 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1784 esac
1785 ;;
1786 -* ) ac_must_keep_next=true ;;
1787 esac
ad6254c5 1788 fi
7a197a62 1789 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1790 ;;
1791 esac
1792 done
1793done
1794$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1795$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1796
1797# When interrupted or exit'd, cleanup temporary files, and complete
1798# config.log. We remove comments because anyway the quotes in there
1799# would cause problems or look ugly.
7a197a62
AK
1800# WARNING: Use '\'' to represent an apostrophe within the trap.
1801# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1802trap 'exit_status=$?
1803 # Save into config.log some information that might help in debugging.
1804 {
1805 echo
1806
1807 cat <<\_ASBOX
1808## ---------------- ##
1809## Cache variables. ##
1810## ---------------- ##
1811_ASBOX
1812 echo
1813 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1814(
1815 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1816 eval ac_val=\$$ac_var
1817 case $ac_val in #(
1818 *${as_nl}*)
1819 case $ac_var in #(
ec6a6fbe
AK
1820 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1821$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1822 esac
1823 case $ac_var in #(
1824 _ | IFS | as_nl) ;; #(
ec6a6fbe 1825 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1826 *) $as_unset $ac_var ;;
1827 esac ;;
1828 esac
1829 done
ad6254c5 1830 (set) 2>&1 |
7a197a62
AK
1831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
ad6254c5 1833 sed -n \
7a197a62
AK
1834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 ;; #(
ad6254c5 1837 *)
7a197a62 1838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1839 ;;
7a197a62
AK
1840 esac |
1841 sort
1842)
ad6254c5
AK
1843 echo
1844
1845 cat <<\_ASBOX
1846## ----------------- ##
1847## Output variables. ##
1848## ----------------- ##
1849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_vars
1852 do
7a197a62
AK
1853 eval ac_val=\$$ac_var
1854 case $ac_val in
ec6a6fbe 1855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1856 esac
ec6a6fbe 1857 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1858 done | sort
1859 echo
1860
1861 if test -n "$ac_subst_files"; then
1862 cat <<\_ASBOX
7a197a62
AK
1863## ------------------- ##
1864## File substitutions. ##
1865## ------------------- ##
ad6254c5
AK
1866_ASBOX
1867 echo
1868 for ac_var in $ac_subst_files
1869 do
7a197a62
AK
1870 eval ac_val=\$$ac_var
1871 case $ac_val in
ec6a6fbe 1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1873 esac
ec6a6fbe 1874 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1875 done | sort
1876 echo
1877 fi
1878
1879 if test -s confdefs.h; then
1880 cat <<\_ASBOX
1881## ----------- ##
1882## confdefs.h. ##
1883## ----------- ##
1884_ASBOX
1885 echo
7a197a62 1886 cat confdefs.h
ad6254c5
AK
1887 echo
1888 fi
1889 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1890 $as_echo "$as_me: caught signal $ac_signal"
1891 $as_echo "$as_me: exit $exit_status"
ad6254c5 1892 } >&5
7a197a62
AK
1893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1895 exit $exit_status
7a197a62 1896' 0
ad6254c5
AK
1897for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899done
1900ac_signal=0
1901
1902# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1903rm -f -r conftest* confdefs.h
ad6254c5
AK
1904
1905# Predefined preprocessor variables.
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_NAME "$PACKAGE_NAME"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_VERSION "$PACKAGE_VERSION"
1919_ACEOF
8106cdd5 1920
ad6254c5
AK
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_STRING "$PACKAGE_STRING"
1924_ACEOF
1925
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929_ACEOF
1930
1931
1932# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1933# Prefer an explicitly selected file to automatically selected ones.
1934ac_site_file1=NONE
1935ac_site_file2=NONE
7a197a62 1936if test -n "$CONFIG_SITE"; then
ec6a6fbe 1937 ac_site_file1=$CONFIG_SITE
7a197a62 1938elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1939 ac_site_file1=$prefix/share/config.site
1940 ac_site_file2=$prefix/etc/config.site
7a197a62 1941else
ec6a6fbe
AK
1942 ac_site_file1=$ac_default_prefix/share/config.site
1943 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1944fi
ec6a6fbe 1945for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1946do
ec6a6fbe 1947 test "x$ac_site_file" = xNONE && continue
795ca3e5 1948 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1949 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1951 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1952 . "$ac_site_file"
1953 fi
1954done
1955
1956if test -r "$cache_file"; then
ad6254c5
AK
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
ec6a6fbe
AK
1960 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1962 case $cache_file in
7a197a62
AK
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
ad6254c5
AK
1965 esac
1966 fi
795ca3e5 1967else
ec6a6fbe
AK
1968 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1970 >$cache_file
1971fi
1972
1973# Check that the precious variables saved in the cache have kept the same
1974# value.
1975ac_cache_corrupted=false
7a197a62 1976for ac_var in $ac_precious_vars; do
ad6254c5
AK
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1981 case $ac_old_set,$ac_new_set in
1982 set,)
ec6a6fbe
AK
1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1985 ac_cache_corrupted=: ;;
1986 ,set)
ec6a6fbe
AK
1987 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1989 ac_cache_corrupted=: ;;
1990 ,);;
1991 *)
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1993 # differences in whitespace do not lead to failure.
1994 ac_old_val_w=`echo x $ac_old_val`
1995 ac_new_val_w=`echo x $ac_new_val`
1996 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1997 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1998$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1999 ac_cache_corrupted=:
2000 else
2001 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2002$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2003 eval $ac_var=\$ac_old_val
2004 fi
2005 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2006$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2007 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2008$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2009 fi;;
2010 esac
2011 # Pass precious variables to config.status.
2012 if test "$ac_new_set" = set; then
2013 case $ac_new_val in
ec6a6fbe 2014 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2015 *) ac_arg=$ac_var=$ac_new_val ;;
2016 esac
2017 case " $ac_configure_args " in
2018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2019 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2020 esac
2021 fi
2022done
2023if $ac_cache_corrupted; then
ec6a6fbe
AK
2024 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2026 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2030 { (exit 1); exit 1; }; }
795ca3e5
AK
2031fi
2032
ad6254c5
AK
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
7a197a62
AK
2049ac_ext=c
2050ac_cpp='$CPP $CPPFLAGS'
2051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2054
795ca3e5
AK
2055
2056
7a197a62 2057ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2058
2059
80992638 2060################################################################################
795ca3e5 2061ac_aux_dir=
7a197a62
AK
2062for ac_dir in autoconf "$srcdir"/autoconf; do
2063 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install-sh -c"
2066 break
7a197a62 2067 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install.sh -c"
2070 break
7a197a62 2071 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/shtool install -c"
2074 break
795ca3e5
AK
2075 fi
2076done
2077if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2078 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2079$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2080 { (exit 1); exit 1; }; }
795ca3e5 2081fi
7a197a62
AK
2082
2083# These three variables are undocumented and unsupported,
2084# and are intended to be withdrawn in a future Autoconf release.
2085# They can cause serious problems if a builder's source tree is in a directory
2086# whose full name contains unusual characters.
2087ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2088ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2089ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090
8ce0cbda
AK
2091
2092
ad6254c5 2093################################################################################
8ce0cbda 2094# Make sure we can run config.sub.
7a197a62 2095$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2096 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2097$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2098 { (exit 1); exit 1; }; }
2099
ec6a6fbe
AK
2100{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2101$as_echo_n "checking build system type... " >&6; }
ad6254c5 2102if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2103 $as_echo_n "(cached) " >&6
ad6254c5 2104else
7a197a62
AK
2105 ac_build_alias=$build_alias
2106test "x$ac_build_alias" = x &&
2107 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2108test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2109 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2110$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2111 { (exit 1); exit 1; }; }
7a197a62 2112ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2113 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2114$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2115 { (exit 1); exit 1; }; }
2116
2117fi
ec6a6fbe
AK
2118{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2119$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2120case $ac_cv_build in
2121*-*-*) ;;
ec6a6fbe
AK
2122*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2123$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2124 { (exit 1); exit 1; }; };;
2125esac
ad6254c5 2126build=$ac_cv_build
7a197a62
AK
2127ac_save_IFS=$IFS; IFS='-'
2128set x $ac_cv_build
2129shift
2130build_cpu=$1
2131build_vendor=$2
2132shift; shift
2133# Remember, the first character of IFS is used to create $*,
2134# except with old shells:
2135build_os=$*
2136IFS=$ac_save_IFS
2137case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2138
2139
ec6a6fbe
AK
2140{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2141$as_echo_n "checking host system type... " >&6; }
ad6254c5 2142if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2143 $as_echo_n "(cached) " >&6
ad6254c5 2144else
7a197a62
AK
2145 if test "x$host_alias" = x; then
2146 ac_cv_host=$ac_cv_build
2147else
2148 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2149 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2150$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2151 { (exit 1); exit 1; }; }
7a197a62 2152fi
ad6254c5
AK
2153
2154fi
ec6a6fbe
AK
2155{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2156$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2157case $ac_cv_host in
2158*-*-*) ;;
ec6a6fbe
AK
2159*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2160$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2161 { (exit 1); exit 1; }; };;
2162esac
ad6254c5 2163host=$ac_cv_host
7a197a62
AK
2164ac_save_IFS=$IFS; IFS='-'
2165set x $ac_cv_host
2166shift
2167host_cpu=$1
2168host_vendor=$2
2169shift; shift
2170# Remember, the first character of IFS is used to create $*,
2171# except with old shells:
2172host_os=$*
2173IFS=$ac_save_IFS
2174case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2175
2176
ec6a6fbe
AK
2177{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2178$as_echo_n "checking target system type... " >&6; }
ad6254c5 2179if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2180 $as_echo_n "(cached) " >&6
ad6254c5 2181else
7a197a62
AK
2182 if test "x$target_alias" = x; then
2183 ac_cv_target=$ac_cv_host
2184else
2185 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2186 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2187$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2188 { (exit 1); exit 1; }; }
7a197a62 2189fi
8ce0cbda 2190
ad6254c5 2191fi
ec6a6fbe
AK
2192{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2193$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2194case $ac_cv_target in
2195*-*-*) ;;
ec6a6fbe
AK
2196*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2197$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2198 { (exit 1); exit 1; }; };;
2199esac
ad6254c5 2200target=$ac_cv_target
7a197a62
AK
2201ac_save_IFS=$IFS; IFS='-'
2202set x $ac_cv_target
2203shift
2204target_cpu=$1
2205target_vendor=$2
2206shift; shift
2207# Remember, the first character of IFS is used to create $*,
2208# except with old shells:
2209target_os=$*
2210IFS=$ac_save_IFS
2211case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2212
8ce0cbda 2213
ad6254c5
AK
2214# The aliases save the names the user supplied, while $host etc.
2215# will get canonicalized.
2216test -n "$target_alias" &&
8ce0cbda
AK
2217 test "$program_prefix$program_suffix$program_transform_name" = \
2218 NONENONEs,x,x, &&
2219 program_prefix=${target_alias}-
2220
8ce0cbda
AK
2221case "$host_os" in
2222 linux*)
7f54ef36 2223 CFLAGS="$CFLAGS"
8ce0cbda
AK
2224 COPTIMISE_FLAG="-O2"
2225 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2226 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2227 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2228 LDDEPS="$LDDEPS .export.sym"
2229 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2230 LIB_SUFFIX=so
8ce0cbda
AK
2231 DEVMAPPER=yes
2232 ODIRECT=yes
d0191583 2233 DM_IOCTLS=yes
8ce0cbda
AK
2234 SELINUX=yes
2235 CLUSTER=internal
93bd259b 2236 FSADM=yes
d0191583 2237 ;;
8ce0cbda
AK
2238 darwin*)
2239 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2240 COPTIMISE_FLAG="-O2"
2241 CLDFLAGS="$CLDFLAGS"
2242 CLDWHOLEARCHIVE="-all_load"
2243 CLDNOWHOLEARCHIVE=
d0191583 2244 LIB_SUFFIX=dylib
a653923f 2245 DEVMAPPER=yes
8ce0cbda 2246 ODIRECT=no
d0191583 2247 DM_IOCTLS=no
8ce0cbda
AK
2248 SELINUX=no
2249 CLUSTER=none
d0191583
JM
2250 FSADM=no
2251 ;;
8ce0cbda
AK
2252esac
2253
80992638 2254################################################################################
ec6a6fbe
AK
2255{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2256$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2257if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2258 $as_echo_n "(cached) " >&6
5951ef33
AK
2259else
2260 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2261 for ac_i in 1 2 3 4 5 6 7; do
2262 ac_script="$ac_script$as_nl$ac_script"
2263 done
ec6a6fbe 2264 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2265 $as_unset ac_script || ac_script=
ec6a6fbe 2266 if test -z "$SED"; then
5951ef33 2267 ac_path_SED_found=false
ec6a6fbe
AK
2268 # Loop through the user's path and test for each of PROGNAME-LIST
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_prog in sed gsed; do
ec6a6fbe
AK
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2277 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2278# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2279 # Check for GNU $ac_path_SED
2280case `"$ac_path_SED" --version 2>&1` in
2281*GNU*)
2282 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2283*)
2284 ac_count=0
ec6a6fbe 2285 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2286 while :
2287 do
2288 cat "conftest.in" "conftest.in" >"conftest.tmp"
2289 mv "conftest.tmp" "conftest.in"
2290 cp "conftest.in" "conftest.nl"
ec6a6fbe 2291 $as_echo '' >> "conftest.nl"
5951ef33
AK
2292 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2294 ac_count=`expr $ac_count + 1`
2295 if test $ac_count -gt ${ac_path_SED_max-0}; then
2296 # Best one so far, save it but keep looking for a better one
2297 ac_cv_path_SED="$ac_path_SED"
2298 ac_path_SED_max=$ac_count
2299 fi
2300 # 10*(2^10) chars as input seems more than enough
2301 test $ac_count -gt 10 && break
2302 done
2303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2304esac
2305
ec6a6fbe
AK
2306 $ac_path_SED_found && break 3
2307 done
5951ef33
AK
2308 done
2309done
5951ef33 2310IFS=$as_save_IFS
ec6a6fbe
AK
2311 if test -z "$ac_cv_path_SED"; then
2312 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2313$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2314 { (exit 1); exit 1; }; }
ec6a6fbe 2315 fi
5951ef33
AK
2316else
2317 ac_cv_path_SED=$SED
2318fi
2319
2320fi
ec6a6fbe
AK
2321{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2322$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2323 SED="$ac_cv_path_SED"
2324 rm -f conftest.sed
2325
ad6254c5 2326for ac_prog in gawk mawk nawk awk
795ca3e5 2327do
ad6254c5 2328 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2329set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2331$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2332if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2333 $as_echo_n "(cached) " >&6
795ca3e5
AK
2334else
2335 if test -n "$AWK"; then
2336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2337else
ad6254c5
AK
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2345 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2347 break 2
2348 fi
2349done
2350done
7a197a62 2351IFS=$as_save_IFS
ad6254c5 2352
795ca3e5
AK
2353fi
2354fi
ad6254c5 2355AWK=$ac_cv_prog_AWK
795ca3e5 2356if test -n "$AWK"; then
ec6a6fbe
AK
2357 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2358$as_echo "$AWK" >&6; }
795ca3e5 2359else
ec6a6fbe
AK
2360 { $as_echo "$as_me:$LINENO: result: no" >&5
2361$as_echo "no" >&6; }
795ca3e5
AK
2362fi
2363
7a197a62 2364
ad6254c5
AK
2365 test -n "$AWK" && break
2366done
2367
2368ac_ext=c
2369ac_cpp='$CPP $CPPFLAGS'
2370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373if test -n "$ac_tool_prefix"; then
2374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2375set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2376{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2377$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2378if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2379 $as_echo_n "(cached) " >&6
ad6254c5
AK
2380else
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2383else
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2393 break 2
2394 fi
2395done
8106cdd5 2396done
7a197a62 2397IFS=$as_save_IFS
8106cdd5 2398
ad6254c5
AK
2399fi
2400fi
2401CC=$ac_cv_prog_CC
2402if test -n "$CC"; then
ec6a6fbe
AK
2403 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2404$as_echo "$CC" >&6; }
ad6254c5 2405else
ec6a6fbe
AK
2406 { $as_echo "$as_me:$LINENO: result: no" >&5
2407$as_echo "no" >&6; }
ad6254c5
AK
2408fi
2409
7a197a62 2410
ad6254c5
AK
2411fi
2412if test -z "$ac_cv_prog_CC"; then
2413 ac_ct_CC=$CC
2414 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2415set dummy gcc; ac_word=$2
ec6a6fbe
AK
2416{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2418if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2419 $as_echo_n "(cached) " >&6
ad6254c5
AK
2420else
2421 if test -n "$ac_ct_CC"; then
2422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2431 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2433 break 2
2434 fi
2435done
2436done
7a197a62 2437IFS=$as_save_IFS
ad6254c5
AK
2438
2439fi
2440fi
2441ac_ct_CC=$ac_cv_prog_ac_ct_CC
2442if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2443 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2444$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2445else
ec6a6fbe
AK
2446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447$as_echo "no" >&6; }
ad6254c5
AK
2448fi
2449
7a197a62
AK
2450 if test "x$ac_ct_CC" = x; then
2451 CC=""
2452 else
2453 case $cross_compiling:$ac_tool_warned in
2454yes:)
ec6a6fbe
AK
2455{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2457ac_tool_warned=yes ;;
2458esac
2459 CC=$ac_ct_CC
2460 fi
ad6254c5
AK
2461else
2462 CC="$ac_cv_prog_CC"
2463fi
2464
2465if test -z "$CC"; then
7a197a62
AK
2466 if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2468set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2470$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2471if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2472 $as_echo_n "(cached) " >&6
8106cdd5
AK
2473else
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC="$CC" # Let the user override the test.
2476else
ad6254c5
AK
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2484 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2486 break 2
2487 fi
2488done
2489done
7a197a62 2490IFS=$as_save_IFS
ad6254c5 2491
8106cdd5
AK
2492fi
2493fi
ad6254c5 2494CC=$ac_cv_prog_CC
8106cdd5 2495if test -n "$CC"; then
ec6a6fbe
AK
2496 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2497$as_echo "$CC" >&6; }
ad6254c5 2498else
ec6a6fbe
AK
2499 { $as_echo "$as_me:$LINENO: result: no" >&5
2500$as_echo "no" >&6; }
ad6254c5
AK
2501fi
2502
8106cdd5 2503
7a197a62 2504 fi
ad6254c5 2505fi
795ca3e5
AK
2506if test -z "$CC"; then
2507 # Extract the first word of "cc", so it can be a program name with args.
2508set dummy cc; ac_word=$2
ec6a6fbe
AK
2509{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2511if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2512 $as_echo_n "(cached) " >&6
795ca3e5
AK
2513else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
795ca3e5 2517 ac_prog_rejected=no
ad6254c5
AK
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2526 ac_prog_rejected=yes
2527 continue
2528 fi
2529 ac_cv_prog_CC="cc"
ec6a6fbe 2530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2531 break 2
2532 fi
2533done
2534done
7a197a62 2535IFS=$as_save_IFS
ad6254c5 2536
795ca3e5
AK
2537if test $ac_prog_rejected = yes; then
2538 # We found a bogon in the path, so make sure we never use it.
2539 set dummy $ac_cv_prog_CC
2540 shift
ad6254c5 2541 if test $# != 0; then
795ca3e5
AK
2542 # We chose a different compiler from the bogus one.
2543 # However, it has the same basename, so the bogon will be chosen
2544 # first if we set CC to just the basename; use the full file name.
2545 shift
ad6254c5 2546 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2547 fi
2548fi
2549fi
2550fi
ad6254c5 2551CC=$ac_cv_prog_CC
795ca3e5 2552if test -n "$CC"; then
ec6a6fbe
AK
2553 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2554$as_echo "$CC" >&6; }
795ca3e5 2555else
ec6a6fbe
AK
2556 { $as_echo "$as_me:$LINENO: result: no" >&5
2557$as_echo "no" >&6; }
795ca3e5
AK
2558fi
2559
7a197a62 2560
ad6254c5
AK
2561fi
2562if test -z "$CC"; then
2563 if test -n "$ac_tool_prefix"; then
7a197a62 2564 for ac_prog in cl.exe
ad6254c5
AK
2565 do
2566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2567set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2568{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2570if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2571 $as_echo_n "(cached) " >&6
795ca3e5
AK
2572else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
ad6254c5
AK
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2585 break 2
2586 fi
2587done
2588done
7a197a62 2589IFS=$as_save_IFS
ad6254c5 2590
795ca3e5
AK
2591fi
2592fi
ad6254c5 2593CC=$ac_cv_prog_CC
795ca3e5 2594if test -n "$CC"; then
ec6a6fbe
AK
2595 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2596$as_echo "$CC" >&6; }
795ca3e5 2597else
ec6a6fbe
AK
2598 { $as_echo "$as_me:$LINENO: result: no" >&5
2599$as_echo "no" >&6; }
795ca3e5 2600fi
ad6254c5 2601
7a197a62 2602
ad6254c5
AK
2603 test -n "$CC" && break
2604 done
2605fi
2606if test -z "$CC"; then
2607 ac_ct_CC=$CC
7a197a62 2608 for ac_prog in cl.exe
ad6254c5
AK
2609do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2612{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2613$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2614if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2615 $as_echo_n "(cached) " >&6
ad6254c5
AK
2616else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619else
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2627 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2629 break 2
795ca3e5 2630 fi
ad6254c5
AK
2631done
2632done
7a197a62 2633IFS=$as_save_IFS
ad6254c5
AK
2634
2635fi
2636fi
2637ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2639 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2641else
ec6a6fbe
AK
2642 { $as_echo "$as_me:$LINENO: result: no" >&5
2643$as_echo "no" >&6; }
795ca3e5
AK
2644fi
2645
7a197a62 2646
ad6254c5
AK
2647 test -n "$ac_ct_CC" && break
2648done
795ca3e5 2649
7a197a62
AK
2650 if test "x$ac_ct_CC" = x; then
2651 CC=""
2652 else
2653 case $cross_compiling:$ac_tool_warned in
2654yes:)
ec6a6fbe
AK
2655{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2657ac_tool_warned=yes ;;
2658esac
2659 CC=$ac_ct_CC
2660 fi
ad6254c5
AK
2661fi
2662
2663fi
2664
2665
ec6a6fbe
AK
2666test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2669See \`config.log' for more details." >&5
ec6a6fbe 2670$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2671See \`config.log' for more details." >&2;}
ec6a6fbe 2672 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2673
2674# Provide some information about the compiler.
ec6a6fbe
AK
2675$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2676set X $ac_compile
2677ac_compiler=$2
7a197a62
AK
2678{ (ac_try="$ac_compiler --version >&5"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
ec6a6fbe
AK
2683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2684$as_echo "$ac_try_echo") >&5
7a197a62 2685 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2686 ac_status=$?
ec6a6fbe 2687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2688 (exit $ac_status); }
7a197a62
AK
2689{ (ac_try="$ac_compiler -v >&5"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
ec6a6fbe
AK
2694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2695$as_echo "$ac_try_echo") >&5
7a197a62 2696 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2697 ac_status=$?
ec6a6fbe 2698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2699 (exit $ac_status); }
7a197a62
AK
2700{ (ac_try="$ac_compiler -V >&5"
2701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
ec6a6fbe
AK
2705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2706$as_echo "$ac_try_echo") >&5
7a197a62 2707 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2708 ac_status=$?
ec6a6fbe 2709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2710 (exit $ac_status); }
2711
2712cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
2718
2719int
2720main ()
2721{
2722
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727ac_clean_files_save=$ac_clean_files
ec6a6fbe 2728ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2729# Try to create an executable without -o first, disregard a.out.
2730# It will help us diagnose broken compilers, and finding out an intuition
2731# of exeext.
ec6a6fbe
AK
2732{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2733$as_echo_n "checking for C compiler default output file name... " >&6; }
2734ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2735
2736# The possible output files:
2737ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2738
7a197a62
AK
2739ac_rmfiles=
2740for ac_file in $ac_files
2741do
2742 case $ac_file in
ec6a6fbe 2743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2744 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2745 esac
2746done
2747rm -f $ac_rmfiles
2748
2749if { (ac_try="$ac_link_default"
2750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
ec6a6fbe
AK
2754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2755$as_echo "$ac_try_echo") >&5
7a197a62 2756 (eval "$ac_link_default") 2>&5
ad6254c5 2757 ac_status=$?
ec6a6fbe 2758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2759 (exit $ac_status); }; then
7a197a62
AK
2760 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2761# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2762# in a Makefile. We should not override ac_cv_exeext if it was cached,
2763# so that the user can short-circuit this test for compilers unknown to
2764# Autoconf.
25fbec5b 2765for ac_file in $ac_files ''
ad6254c5
AK
2766do
2767 test -f "$ac_file" || continue
2768 case $ac_file in
ec6a6fbe 2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2770 ;;
ad6254c5 2771 [ab].out )
8a2fc586
AK
2772 # We found the default executable, but exeext='' is most
2773 # certainly right.
2774 break;;
ad6254c5 2775 *.* )
7a197a62
AK
2776 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2777 then :; else
2778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2779 fi
2780 # We set ac_cv_exeext here because the later test for it is not
2781 # safe: cross compilers may not add the suffix if given an `-o'
2782 # argument, so we may need to know it at that point already.
2783 # Even if this section looks crufty: it has the advantage of
2784 # actually working.
8a2fc586 2785 break;;
ad6254c5 2786 * )
8a2fc586 2787 break;;
ad6254c5
AK
2788 esac
2789done
7a197a62
AK
2790test "$ac_cv_exeext" = no && ac_cv_exeext=
2791
ad6254c5 2792else
25fbec5b
AK
2793 ac_file=''
2794fi
2795
ec6a6fbe
AK
2796{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2797$as_echo "$ac_file" >&6; }
25fbec5b 2798if test -z "$ac_file"; then
ec6a6fbe 2799 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
ec6a6fbe
AK
2802{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2805See \`config.log' for more details." >&5
ec6a6fbe 2806$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2807See \`config.log' for more details." >&2;}
ec6a6fbe 2808 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2809fi
2810
2811ac_exeext=$ac_cv_exeext
ad6254c5 2812
7a197a62 2813# Check that the compiler produces executables we can run. If not, either
ad6254c5 2814# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2815{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2816$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2817# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2818# If not cross compiling, check that we can run a simple program.
2819if test "$cross_compiling" != yes; then
2820 if { ac_try='./$ac_file'
7a197a62
AK
2821 { (case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824esac
ec6a6fbe
AK
2825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2826$as_echo "$ac_try_echo") >&5
7a197a62 2827 (eval "$ac_try") 2>&5
ad6254c5 2828 ac_status=$?
ec6a6fbe 2829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2830 (exit $ac_status); }; }; then
2831 cross_compiling=no
795ca3e5 2832 else
ad6254c5
AK
2833 if test "$cross_compiling" = maybe; then
2834 cross_compiling=yes
2835 else
ec6a6fbe
AK
2836 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2838{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2839If you meant to cross compile, use \`--host'.
2840See \`config.log' for more details." >&5
ec6a6fbe 2841$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2842If you meant to cross compile, use \`--host'.
2843See \`config.log' for more details." >&2;}
ec6a6fbe 2844 { (exit 1); exit 1; }; }; }
ad6254c5 2845 fi
795ca3e5 2846 fi
80992638 2847fi
ec6a6fbe
AK
2848{ $as_echo "$as_me:$LINENO: result: yes" >&5
2849$as_echo "yes" >&6; }
ad6254c5 2850
ec6a6fbe 2851rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2852ac_clean_files=$ac_clean_files_save
7a197a62 2853# Check that the compiler produces executables we can run. If not, either
ad6254c5 2854# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2855{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2856$as_echo_n "checking whether we are cross compiling... " >&6; }
2857{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2858$as_echo "$cross_compiling" >&6; }
7a197a62 2859
ec6a6fbe
AK
2860{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2861$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2862if { (ac_try="$ac_link"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
ec6a6fbe
AK
2867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868$as_echo "$ac_try_echo") >&5
7a197a62 2869 (eval "$ac_link") 2>&5
ad6254c5 2870 ac_status=$?
ec6a6fbe 2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2872 (exit $ac_status); }; then
2873 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2874# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2875# work properly (i.e., refer to `conftest.exe'), while it won't with
2876# `rm'.
2877for ac_file in conftest.exe conftest conftest.*; do
2878 test -f "$ac_file" || continue
2879 case $ac_file in
ec6a6fbe 2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2882 break;;
ad6254c5
AK
2883 * ) break;;
2884 esac
2885done
80992638 2886else
ec6a6fbe
AK
2887 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2890See \`config.log' for more details." >&5
ec6a6fbe 2891$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2892See \`config.log' for more details." >&2;}
ec6a6fbe 2893 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2894fi
2895
2896rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2897{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2898$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2899
2900rm -f conftest.$ac_ext
2901EXEEXT=$ac_cv_exeext
2902ac_exeext=$EXEEXT
ec6a6fbe
AK
2903{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2904$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2905if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2906 $as_echo_n "(cached) " >&6
795ca3e5 2907else
ad6254c5 2908 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
7a197a62
AK
2924if { (ac_try="$ac_compile"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
ec6a6fbe
AK
2929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2930$as_echo "$ac_try_echo") >&5
7a197a62 2931 (eval "$ac_compile") 2>&5
ad6254c5 2932 ac_status=$?
ec6a6fbe 2933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2934 (exit $ac_status); }; then
7a197a62
AK
2935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
ad6254c5 2937 case $ac_file in
ec6a6fbe 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2940 break;;
2941 esac
2942done
2943else
ec6a6fbe 2944 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
ec6a6fbe
AK
2947{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2950See \`config.log' for more details." >&5
ec6a6fbe 2951$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2952See \`config.log' for more details." >&2;}
ec6a6fbe 2953 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2954fi
2955
2956rm -f conftest.$ac_cv_objext conftest.$ac_ext
2957fi
ec6a6fbe
AK
2958{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2959$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2960OBJEXT=$ac_cv_objext
2961ac_objext=$OBJEXT
ec6a6fbe
AK
2962{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2963$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2964if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2965 $as_echo_n "(cached) " >&6
ad6254c5
AK
2966else
2967 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2968/* confdefs.h. */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
2973
2974int
2975main ()
2976{
2977#ifndef __GNUC__
2978 choke me
2979#endif
80992638 2980
ad6254c5
AK
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext
7a197a62
AK
2986if { (ac_try="$ac_compile"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
ec6a6fbe
AK
2991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992$as_echo "$ac_try_echo") >&5
7a197a62 2993 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2994 ac_status=$?
8a2fc586
AK
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
ec6a6fbe 2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
ad6254c5 3003 ac_compiler_gnu=yes
80992638 3004else
ec6a6fbe 3005 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
7a197a62 3008 ac_compiler_gnu=no
8106cdd5 3009fi
7a197a62
AK
3010
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3012ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3013
ad6254c5 3014fi
ec6a6fbe
AK
3015{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3016$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3017if test $ac_compiler_gnu = yes; then
3018 GCC=yes
3019else
3020 GCC=
3021fi
ad6254c5
AK
3022ac_test_CFLAGS=${CFLAGS+set}
3023ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3024{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3025$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3026if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3027 $as_echo_n "(cached) " >&6
795ca3e5 3028else
7a197a62
AK
3029 ac_save_c_werror_flag=$ac_c_werror_flag
3030 ac_c_werror_flag=yes
3031 ac_cv_prog_cc_g=no
3032 CFLAGS="-g"
3033 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3034/* confdefs.h. */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h. */
3039
3040int
3041main ()
3042{
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext
7a197a62
AK
3049if { (ac_try="$ac_compile"
3050case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
ec6a6fbe
AK
3054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055$as_echo "$ac_try_echo") >&5
7a197a62 3056 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3057 ac_status=$?
8a2fc586
AK
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
ec6a6fbe 3061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3062 (exit $ac_status); } && {
3063 test -z "$ac_c_werror_flag" ||
3064 test ! -s conftest.err
3065 } && test -s conftest.$ac_objext; then
7a197a62
AK
3066 ac_cv_prog_cc_g=yes
3067else
ec6a6fbe 3068 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 CFLAGS=""
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
ec6a6fbe
AK
3093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094$as_echo "$ac_try_echo") >&5
7a197a62 3095 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3096 ac_status=$?
7a197a62
AK
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
ec6a6fbe 3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
7a197a62
AK
3105 :
3106else
ec6a6fbe 3107 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3111 CFLAGS="-g"
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
ec6a6fbe
AK
3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134$as_echo "$ac_try_echo") >&5
7a197a62 3135 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3136 ac_status=$?
7a197a62
AK
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
ec6a6fbe 3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3141 (exit $ac_status); } && {
3142 test -z "$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3145 ac_cv_prog_cc_g=yes
3146else
ec6a6fbe 3147 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3148sed 's/^/| /' conftest.$ac_ext >&5
80992638 3149
7a197a62
AK
3150
3151fi
3152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154fi
3155
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3157fi
7a197a62
AK
3158
3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3161fi
ec6a6fbe
AK
3162{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3163$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3164if test "$ac_test_CFLAGS" = set; then
ad6254c5 3165 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3166elif test $ac_cv_prog_cc_g = yes; then
3167 if test "$GCC" = yes; then
3168 CFLAGS="-g -O2"
3169 else
3170 CFLAGS="-g"
3171 fi
3172else
3173 if test "$GCC" = yes; then
3174 CFLAGS="-O2"
3175 else
3176 CFLAGS=
3177 fi
3178fi
ec6a6fbe
AK
3179{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3181if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3182 $as_echo_n "(cached) " >&6
ad6254c5 3183else
7a197a62 3184 ac_cv_prog_cc_c89=no
ad6254c5
AK
3185ac_save_CC=$CC
3186cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192#include <stdarg.h>
3193#include <stdio.h>
3194#include <sys/types.h>
3195#include <sys/stat.h>
3196/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3197struct buf { int x; };
3198FILE * (*rcsopen) (struct buf *, struct stat *, int);
3199static char *e (p, i)
3200 char **p;
3201 int i;
3202{
3203 return p[i];
3204}
3205static char *f (char * (*g) (char **, int), char **p, ...)
3206{
3207 char *s;
3208 va_list v;
3209 va_start (v,p);
3210 s = g (p, va_arg (v,int));
3211 va_end (v);
3212 return s;
3213}
8a2fc586
AK
3214
3215/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3216 function prototypes and stuff, but not '\xHH' hex character constants.
3217 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3218 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3220 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3221 that's true only with -std. */
8a2fc586
AK
3222int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3223
7a197a62
AK
3224/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3225 inside strings and character constants. */
3226#define FOO(x) 'x'
3227int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3228
ad6254c5
AK
3229int test (int i, double x);
3230struct s1 {int (*f) (int a);};
3231struct s2 {int (*f) (double a);};
3232int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3233int argc;
3234char **argv;
3235int
3236main ()
3237{
3238return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3239 ;
3240 return 0;
3241}
3242_ACEOF
7a197a62
AK
3243for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3245do
3246 CC="$ac_save_CC $ac_arg"
3247 rm -f conftest.$ac_objext
7a197a62
AK
3248if { (ac_try="$ac_compile"
3249case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
ec6a6fbe
AK
3253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254$as_echo "$ac_try_echo") >&5
7a197a62 3255 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3256 ac_status=$?
8a2fc586
AK
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
ec6a6fbe 3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3261 (exit $ac_status); } && {
3262 test -z "$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3264 } && test -s conftest.$ac_objext; then
7a197a62 3265 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3266else
ec6a6fbe 3267 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
7a197a62 3270
ad6254c5 3271fi
7a197a62
AK
3272
3273rm -f core conftest.err conftest.$ac_objext
3274 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3275done
7a197a62 3276rm -f conftest.$ac_ext
ad6254c5
AK
3277CC=$ac_save_CC
3278
3279fi
7a197a62
AK
3280# AC_CACHE_VAL
3281case "x$ac_cv_prog_cc_c89" in
3282 x)
ec6a6fbe
AK
3283 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3284$as_echo "none needed" >&6; } ;;
7a197a62 3285 xno)
ec6a6fbe
AK
3286 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3287$as_echo "unsupported" >&6; } ;;
ad6254c5 3288 *)
7a197a62 3289 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3290 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3291$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3292esac
3293
ad6254c5 3294
ad6254c5
AK
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3300
d0191583
JM
3301
3302
3303ac_ext=c
3304ac_cpp='$CPP $CPPFLAGS'
3305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3308{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3309$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3310# On Suns, sometimes $CPP names a directory.
3311if test -n "$CPP" && test -d "$CPP"; then
3312 CPP=
3313fi
3314if test -z "$CPP"; then
3315 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3316 $as_echo_n "(cached) " >&6
ad6254c5 3317else
d0191583
JM
3318 # Double quotes because CPP needs to be expanded
3319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3320 do
3321 ac_preproc_ok=false
3322for ac_c_preproc_warn_flag in '' yes
ad6254c5 3323do
d0191583
JM
3324 # Use a header file that comes with gcc, so configuring glibc
3325 # with a fresh cross-compiler works.
3326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3327 # <limits.h> exists even on freestanding compilers.
3328 # On the NeXT, cc -E runs the code through the compiler's parser,
3329 # not just through cpp. "Syntax error" is here to catch this case.
3330 cat >conftest.$ac_ext <<_ACEOF
3331/* confdefs.h. */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h. */
3336#ifdef __STDC__
3337# include <limits.h>
3338#else
3339# include <assert.h>
3340#endif
3341 Syntax error
3342_ACEOF
3343if { (ac_try="$ac_cpp conftest.$ac_ext"
3344case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
ad6254c5 3347esac
ec6a6fbe
AK
3348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3349$as_echo "$ac_try_echo") >&5
d0191583
JM
3350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
ec6a6fbe 3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3356 (exit $ac_status); } >/dev/null && {
3357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3358 test ! -s conftest.err
3359 }; then
3360 :
3361else
ec6a6fbe 3362 $as_echo "$as_me: failed program was:" >&5
d0191583 3363sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3364
d0191583
JM
3365 # Broken: fails on valid input.
3366continue
795ca3e5 3367fi
795ca3e5 3368
d0191583 3369rm -f conftest.err conftest.$ac_ext
795ca3e5 3370
d0191583
JM
3371 # OK, works on sane cases. Now check whether nonexistent headers
3372 # can be detected and how.
3373 cat >conftest.$ac_ext <<_ACEOF
3374/* confdefs.h. */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h. */
3379#include <ac_nonexistent.h>
3380_ACEOF
3381if { (ac_try="$ac_cpp conftest.$ac_ext"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
ec6a6fbe
AK
3386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3387$as_echo "$ac_try_echo") >&5
d0191583
JM
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
ec6a6fbe 3393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3394 (exit $ac_status); } >/dev/null && {
3395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 }; then
3398 # Broken: success on invalid input.
3399continue
3400else
ec6a6fbe 3401 $as_echo "$as_me: failed program was:" >&5
d0191583 3402sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3403
d0191583
JM
3404 # Passes both tests.
3405ac_preproc_ok=:
3406break
3407fi
795ca3e5 3408
d0191583
JM
3409rm -f conftest.err conftest.$ac_ext
3410
3411done
3412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413rm -f conftest.err conftest.$ac_ext
3414if $ac_preproc_ok; then
3415 break
795ca3e5
AK
3416fi
3417
d0191583
JM
3418 done
3419 ac_cv_prog_CPP=$CPP
3420
3421fi
3422 CPP=$ac_cv_prog_CPP
795ca3e5 3423else
d0191583
JM
3424 ac_cv_prog_CPP=$CPP
3425fi
ec6a6fbe
AK
3426{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3427$as_echo "$CPP" >&6; }
d0191583
JM
3428ac_preproc_ok=false
3429for ac_c_preproc_warn_flag in '' yes
3430do
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h. */
ad6254c5 3439_ACEOF
d0191583
JM
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h. */
3443#ifdef __STDC__
3444# include <limits.h>
3445#else
3446# include <assert.h>
3447#endif
3448 Syntax error
3449_ACEOF
3450if { (ac_try="$ac_cpp conftest.$ac_ext"
3451case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
7a197a62 3454esac
ec6a6fbe
AK
3455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456$as_echo "$ac_try_echo") >&5
d0191583
JM
3457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
ec6a6fbe 3462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3463 (exit $ac_status); } >/dev/null && {
3464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 }; then
3467 :
795ca3e5 3468else
ec6a6fbe 3469 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 # Broken: fails on valid input.
3473continue
795ca3e5
AK
3474fi
3475
d0191583
JM
3476rm -f conftest.err conftest.$ac_ext
3477
3478 # OK, works on sane cases. Now check whether nonexistent headers
3479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486#include <ac_nonexistent.h>
3487_ACEOF
3488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
ec6a6fbe
AK
3493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494$as_echo "$ac_try_echo") >&5
d0191583
JM
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
ec6a6fbe 3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
3505 # Broken: success on invalid input.
3506continue
795ca3e5 3507else
ec6a6fbe 3508 $as_echo "$as_me: failed program was:" >&5
d0191583 3509sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3510
d0191583
JM
3511 # Passes both tests.
3512ac_preproc_ok=:
3513break
795ca3e5 3514fi
d0191583
JM
3515
3516rm -f conftest.err conftest.$ac_ext
3517
3518done
3519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520rm -f conftest.err conftest.$ac_ext
3521if $ac_preproc_ok; then
3522 :
8106cdd5 3523else
ec6a6fbe
AK
3524 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3527See \`config.log' for more details." >&5
ec6a6fbe 3528$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3529See \`config.log' for more details." >&2;}
ec6a6fbe 3530 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3531fi
3532
d0191583
JM
3533ac_ext=c
3534ac_cpp='$CPP $CPPFLAGS'
3535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538
7a197a62 3539
ec6a6fbe
AK
3540{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3541$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3542if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3543 $as_echo_n "(cached) " >&6
ad6254c5 3544else
ec6a6fbe 3545 if test -z "$GREP"; then
d0191583 3546 ac_path_GREP_found=false
ec6a6fbe
AK
3547 # Loop through the user's path and test for each of PROGNAME-LIST
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3550do
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
d0191583 3553 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3557# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3558 # Check for GNU $ac_path_GREP
3559case `"$ac_path_GREP" --version 2>&1` in
3560*GNU*)
3561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3562*)
3563 ac_count=0
ec6a6fbe 3564 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3565 while :
3566 do
3567 cat "conftest.in" "conftest.in" >"conftest.tmp"
3568 mv "conftest.tmp" "conftest.in"
3569 cp "conftest.in" "conftest.nl"
ec6a6fbe 3570 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3573 ac_count=`expr $ac_count + 1`
3574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3575 # Best one so far, save it but keep looking for a better one
3576 ac_cv_path_GREP="$ac_path_GREP"
3577 ac_path_GREP_max=$ac_count
3578 fi
3579 # 10*(2^10) chars as input seems more than enough
3580 test $ac_count -gt 10 && break
3581 done
3582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3583esac
3584
ec6a6fbe
AK
3585 $ac_path_GREP_found && break 3
3586 done
d0191583 3587 done
ad6254c5 3588done
7a197a62 3589IFS=$as_save_IFS
ec6a6fbe
AK
3590 if test -z "$ac_cv_path_GREP"; then
3591 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3592$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3593 { (exit 1); exit 1; }; }
ec6a6fbe 3594 fi
80992638 3595else
d0191583 3596 ac_cv_path_GREP=$GREP
8106cdd5 3597fi
8106cdd5 3598
80992638 3599fi
ec6a6fbe
AK
3600{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3601$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3602 GREP="$ac_cv_path_GREP"
795ca3e5 3603
d0191583 3604
ec6a6fbe
AK
3605{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3606$as_echo_n "checking for egrep... " >&6; }
d0191583 3607if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3608 $as_echo_n "(cached) " >&6
8a2fc586 3609else
d0191583
JM
3610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3611 then ac_cv_path_EGREP="$GREP -E"
3612 else
ec6a6fbe 3613 if test -z "$EGREP"; then
d0191583 3614 ac_path_EGREP_found=false
ec6a6fbe
AK
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3618do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
d0191583 3621 for ac_prog in egrep; do
ec6a6fbe
AK
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3624 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3625# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3626 # Check for GNU $ac_path_EGREP
3627case `"$ac_path_EGREP" --version 2>&1` in
3628*GNU*)
3629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3630*)
3631 ac_count=0
ec6a6fbe 3632 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3633 while :
3634 do
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
ec6a6fbe 3638 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 ac_count=`expr $ac_count + 1`
3642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_EGREP="$ac_path_EGREP"
3645 ac_path_EGREP_max=$ac_count
3646 fi
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3651esac
8a2fc586 3652
ec6a6fbe
AK
3653 $ac_path_EGREP_found && break 3
3654 done
d0191583 3655 done
8a2fc586 3656done
7a197a62 3657IFS=$as_save_IFS
ec6a6fbe
AK
3658 if test -z "$ac_cv_path_EGREP"; then
3659 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3660$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3661 { (exit 1); exit 1; }; }
ec6a6fbe 3662 fi
d0191583
JM
3663else
3664 ac_cv_path_EGREP=$EGREP
3665fi
ad6254c5 3666
d0191583
JM
3667 fi
3668fi
ec6a6fbe
AK
3669{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3670$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3671 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3672
3673
d0191583 3674if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3675 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3676$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3677if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3678 $as_echo_n "(cached) " >&6
8106cdd5 3679else
d0191583 3680 ac_pattern="Autoconf.*'x'"
ad6254c5 3681 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
d0191583
JM
3687#include <sgtty.h>
3688Autoconf TIOCGETP
ad6254c5 3689_ACEOF
d0191583
JM
3690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3692 ac_cv_prog_gcc_traditional=yes
8106cdd5 3693else
d0191583 3694 ac_cv_prog_gcc_traditional=no
80992638 3695fi
d0191583 3696rm -f conftest*
ad6254c5 3697
8106cdd5 3698
d0191583
JM
3699 if test $ac_cv_prog_gcc_traditional = no; then
3700 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3701/* confdefs.h. */
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h. */
d0191583
JM
3706#include <termio.h>
3707Autoconf TCGETA
ad6254c5 3708_ACEOF
d0191583
JM
3709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3710 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3711 ac_cv_prog_gcc_traditional=yes
7a197a62 3712fi
d0191583 3713rm -f conftest*
795ca3e5 3714
d0191583 3715 fi
795ca3e5 3716fi
ec6a6fbe
AK
3717{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3718$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3719 if test $ac_cv_prog_gcc_traditional = yes; then
3720 CC="$CC -traditional"
3721 fi
795ca3e5
AK
3722fi
3723
d0191583
JM
3724# Find a good install program. We prefer a C program (faster),
3725# so one script is as good as another. But avoid the broken or
3726# incompatible versions:
3727# SysV /etc/install, /usr/sbin/install
3728# SunOS /usr/etc/install
3729# IRIX /sbin/install
3730# AIX /bin/install
3731# AmigaOS /C/install, which installs bootblocks on floppy discs
3732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3733# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3735# OS/2's system install, which has a completely different semantic
3736# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3737# Reject install programs that cannot install multiple files.
3738{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3739$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3740if test -z "$INSTALL"; then
3741if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3742 $as_echo_n "(cached) " >&6
ad6254c5 3743else
d0191583
JM
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 # Account for people who put trailing slashes in PATH elements.
3750case $as_dir/ in
3751 ./ | .// | /cC/* | \
3752 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3753 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3754 /usr/ucb/* ) ;;
3755 *)
3756 # OSF1 and SCO ODT 3.0 have their own names for install.
3757 # Don't use installbsd from OSF since it installs stuff as root
3758 # by default.
3759 for ac_prog in ginstall scoinst install; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3762 if test $ac_prog = install &&
3763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # AIX install. It has an incompatible calling convention.
3765 :
3766 elif test $ac_prog = install &&
3767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3768 # program-specific install script used by HP pwplus--don't use.
3769 :
3770 else
ec6a6fbe
AK
3771 rm -rf conftest.one conftest.two conftest.dir
3772 echo one > conftest.one
3773 echo two > conftest.two
3774 mkdir conftest.dir
3775 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3776 test -s conftest.one && test -s conftest.two &&
3777 test -s conftest.dir/conftest.one &&
3778 test -s conftest.dir/conftest.two
3779 then
3780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3781 break 3
3782 fi
d0191583
JM
3783 fi
3784 fi
3785 done
3786 done
3787 ;;
3788esac
ec6a6fbe 3789
d0191583
JM
3790done
3791IFS=$as_save_IFS
80992638 3792
ec6a6fbe 3793rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3794
3795fi
3796 if test "${ac_cv_path_install+set}" = set; then
3797 INSTALL=$ac_cv_path_install
7a197a62 3798 else
d0191583
JM
3799 # As a last resort, use the slow shell script. Don't cache a
3800 # value for INSTALL within a source directory, because that will
3801 # break other packages using the cache if that directory is
3802 # removed, or if the value is a relative name.
3803 INSTALL=$ac_install_sh
7a197a62 3804 fi
d0191583 3805fi
ec6a6fbe
AK
3806{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3807$as_echo "$INSTALL" >&6; }
ad6254c5 3808
d0191583
JM
3809# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3810# It thinks the first close brace ends the variable substitution.
3811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3812
d0191583 3813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3814
d0191583
JM
3815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3816
ec6a6fbe
AK
3817{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3818$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3819LN_S=$as_ln_s
3820if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3821 { $as_echo "$as_me:$LINENO: result: yes" >&5
3822$as_echo "yes" >&6; }
d0191583 3823else
ec6a6fbe
AK
3824 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3825$as_echo "no, using $LN_S" >&6; }
795ca3e5 3826fi
d0191583 3827
ec6a6fbe
AK
3828{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3829$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3830set x ${MAKE-make}
3831ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3832if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3833 $as_echo_n "(cached) " >&6
7a197a62 3834else
d0191583
JM
3835 cat >conftest.make <<\_ACEOF
3836SHELL = /bin/sh
3837all:
3838 @echo '@@@%%%=$(MAKE)=@@@%%%'
3839_ACEOF
3840# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3841case `${MAKE-make} -f conftest.make 2>/dev/null` in
3842 *@@@%%%=?*=@@@%%%*)
3843 eval ac_cv_prog_make_${ac_make}_set=yes;;
3844 *)
3845 eval ac_cv_prog_make_${ac_make}_set=no;;
3846esac
3847rm -f conftest.make
ad6254c5 3848fi
d0191583 3849if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3850 { $as_echo "$as_me:$LINENO: result: yes" >&5
3851$as_echo "yes" >&6; }
d0191583
JM
3852 SET_MAKE=
3853else
ec6a6fbe
AK
3854 { $as_echo "$as_me:$LINENO: result: no" >&5
3855$as_echo "no" >&6; }
d0191583 3856 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3857fi
8106cdd5 3858
ec6a6fbe
AK
3859{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3860$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3861if test -z "$MKDIR_P"; then
3862 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3863 $as_echo_n "(cached) " >&6
5556819a
AK
3864else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3867do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_prog in mkdir gmkdir; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3873 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3874 'mkdir (GNU coreutils) '* | \
3875 'mkdir (coreutils) '* | \
3876 'mkdir (fileutils) '4.1*)
3877 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3878 break 3;;
3879 esac
3880 done
3881 done
3882done
3883IFS=$as_save_IFS
3884
3885fi
3886
3887 if test "${ac_cv_path_mkdir+set}" = set; then
3888 MKDIR_P="$ac_cv_path_mkdir -p"
3889 else
3890 # As a last resort, use the slow shell script. Don't cache a
3891 # value for MKDIR_P within a source directory, because that will
3892 # break other packages using the cache if that directory is
3893 # removed, or if the value is a relative name.
3894 test -d ./--version && rmdir ./--version
3895 MKDIR_P="$ac_install_sh -d"
3896 fi
3897fi
ec6a6fbe
AK
3898{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3899$as_echo "$MKDIR_P" >&6; }
5556819a 3900
d0191583
JM
3901if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3905$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3906if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3907 $as_echo_n "(cached) " >&6
d0191583
JM
3908else
3909 if test -n "$RANLIB"; then
3910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3921 break 2
3922 fi
3923done
3924done
3925IFS=$as_save_IFS
8106cdd5 3926
795ca3e5 3927fi
d0191583
JM
3928fi
3929RANLIB=$ac_cv_prog_RANLIB
3930if test -n "$RANLIB"; then
ec6a6fbe
AK
3931 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3932$as_echo "$RANLIB" >&6; }
d0191583 3933else
ec6a6fbe
AK
3934 { $as_echo "$as_me:$LINENO: result: no" >&5
3935$as_echo "no" >&6; }
d0191583
JM
3936fi
3937
8106cdd5 3938
ad6254c5 3939fi
d0191583
JM
3940if test -z "$ac_cv_prog_RANLIB"; then
3941 ac_ct_RANLIB=$RANLIB
3942 # Extract the first word of "ranlib", so it can be a program name with args.
3943set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3946if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3947 $as_echo_n "(cached) " >&6
ad6254c5 3948else
d0191583
JM
3949 if test -n "$ac_ct_RANLIB"; then
3950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
8106cdd5 3954do
d0191583
JM
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3961 break 2
3962 fi
3963done
3964done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
3969ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3970if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3971 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3972$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3973else
ec6a6fbe
AK
3974 { $as_echo "$as_me:$LINENO: result: no" >&5
3975$as_echo "no" >&6; }
d0191583 3976fi
ad6254c5 3977
d0191583
JM
3978 if test "x$ac_ct_RANLIB" = x; then
3979 RANLIB=":"
3980 else
3981 case $cross_compiling:$ac_tool_warned in
3982yes:)
ec6a6fbe
AK
3983{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3985ac_tool_warned=yes ;;
3986esac
3987 RANLIB=$ac_ct_RANLIB
3988 fi
3989else
3990 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3991fi
7a197a62 3992
d0191583
JM
3993# Extract the first word of "cflow", so it can be a program name with args.
3994set dummy cflow; ac_word=$2
ec6a6fbe
AK
3995{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3997if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3998 $as_echo_n "(cached) " >&6
d0191583
JM
3999else
4000 case $CFLOW_CMD in
4001 [\\/]* | ?:[\\/]*)
4002 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4003 ;;
4004 *)
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4014 break 2
4015 fi
4016done
4017done
4018IFS=$as_save_IFS
ad6254c5 4019
d0191583 4020 ;;
7a197a62 4021esac
d0191583
JM
4022fi
4023CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4024if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4025 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4026$as_echo "$CFLOW_CMD" >&6; }
80992638 4027else
ec6a6fbe
AK
4028 { $as_echo "$as_me:$LINENO: result: no" >&5
4029$as_echo "no" >&6; }
795ca3e5 4030fi
7a197a62 4031
ad6254c5 4032
d0191583
JM
4033# Extract the first word of "cscope", so it can be a program name with args.
4034set dummy cscope; ac_word=$2
ec6a6fbe
AK
4035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4037if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4038 $as_echo_n "(cached) " >&6
d0191583
JM
4039else
4040 case $CSCOPE_CMD in
4041 [\\/]* | ?:[\\/]*)
4042 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4043 ;;
4044 *)
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4054 break 2
4055 fi
795ca3e5 4056done
d0191583
JM
4057done
4058IFS=$as_save_IFS
795ca3e5 4059
d0191583
JM
4060 ;;
4061esac
ad6254c5 4062fi
d0191583
JM
4063CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4064if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4065 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4066$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4067else
ec6a6fbe
AK
4068 { $as_echo "$as_me:$LINENO: result: no" >&5
4069$as_echo "no" >&6; }
795ca3e5 4070fi
ad6254c5 4071
7a197a62 4072
ad6254c5 4073
d0191583
JM
4074################################################################################
4075
4076
4077
4078
4079
4080ac_header_dirent=no
4081for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4082 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4083{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4084$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4086 $as_echo_n "(cached) " >&6
d0191583 4087else
ad6254c5 4088 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
d0191583
JM
4094#include <sys/types.h>
4095#include <$ac_hdr>
4096
4097int
4098main ()
4099{
4100if ((DIR *) 0)
4101return 0;
4102 ;
4103 return 0;
4104}
ad6254c5 4105_ACEOF
d0191583
JM
4106rm -f conftest.$ac_objext
4107if { (ac_try="$ac_compile"
7a197a62
AK
4108case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111esac
ec6a6fbe
AK
4112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4113$as_echo "$ac_try_echo") >&5
d0191583 4114 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
ec6a6fbe 4119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4120 (exit $ac_status); } && {
4121 test -z "$ac_c_werror_flag" ||
25fbec5b 4122 test ! -s conftest.err
d0191583
JM
4123 } && test -s conftest.$ac_objext; then
4124 eval "$as_ac_Header=yes"
ad6254c5 4125else
ec6a6fbe 4126 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4127sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4128
d0191583 4129 eval "$as_ac_Header=no"
795ca3e5 4130fi
7a197a62 4131
d0191583 4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4133fi
ec6a6fbe
AK
4134ac_res=`eval 'as_val=${'$as_ac_Header'}
4135 $as_echo "$as_val"'`
4136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4137$as_echo "$ac_res" >&6; }
4138as_val=`eval 'as_val=${'$as_ac_Header'}
4139 $as_echo "$as_val"'`
4140 if test "x$as_val" = x""yes; then
d0191583 4141 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4142#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4143_ACEOF
795ca3e5 4144
d0191583
JM
4145ac_header_dirent=$ac_hdr; break
4146fi
ad6254c5 4147
d0191583
JM
4148done
4149# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4150if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4151 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4152$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4153if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4154 $as_echo_n "(cached) " >&6
ad6254c5 4155else
d0191583
JM
4156 ac_func_search_save_LIBS=$LIBS
4157cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h. */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h. */
ad6254c5 4163
d0191583
JM
4164/* Override any GCC internal prototype to avoid an error.
4165 Use char because int might match the return type of a GCC
4166 builtin and then its argument prototype would still apply. */
4167#ifdef __cplusplus
4168extern "C"
4169#endif
4170char opendir ();
4171int
4172main ()
4173{
4174return opendir ();
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179for ac_lib in '' dir; do
4180 if test -z "$ac_lib"; then
4181 ac_res="none required"
4182 else
4183 ac_res=-l$ac_lib
4184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4185 fi
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187if { (ac_try="$ac_link"
4188case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191esac
ec6a6fbe
AK
4192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4193$as_echo "$ac_try_echo") >&5
d0191583
JM
4194 (eval "$ac_link") 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
ec6a6fbe 4199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4200 (exit $ac_status); } && {
4201 test -z "$ac_c_werror_flag" ||
4202 test ! -s conftest.err
ec6a6fbe
AK
4203 } && test -s conftest$ac_exeext && {
4204 test "$cross_compiling" = yes ||
4205 $as_test_x conftest$ac_exeext
4206 }; then
d0191583
JM
4207 ac_cv_search_opendir=$ac_res
4208else
ec6a6fbe 4209 $as_echo "$as_me: failed program was:" >&5
d0191583 4210sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4211
ad6254c5 4212
795ca3e5 4213fi
ad6254c5 4214
ec6a6fbe 4215rm -rf conftest.dSYM
d0191583
JM
4216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4217 conftest$ac_exeext
4218 if test "${ac_cv_search_opendir+set}" = set; then
4219 break
7a197a62 4220fi
d0191583
JM
4221done
4222if test "${ac_cv_search_opendir+set}" = set; then
4223 :
7a197a62 4224else
d0191583 4225 ac_cv_search_opendir=no
7a197a62 4226fi
d0191583
JM
4227rm conftest.$ac_ext
4228LIBS=$ac_func_search_save_LIBS
7a197a62 4229fi
ec6a6fbe
AK
4230{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4231$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4232ac_res=$ac_cv_search_opendir
4233if test "$ac_res" != no; then
4234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4235
d0191583 4236fi
7a197a62 4237
7a197a62 4238else
ec6a6fbe
AK
4239 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4240$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4241if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4242 $as_echo_n "(cached) " >&6
7a197a62 4243else
d0191583
JM
4244 ac_func_search_save_LIBS=$LIBS
4245cat >conftest.$ac_ext <<_ACEOF
4246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
7a197a62 4251
d0191583
JM
4252/* Override any GCC internal prototype to avoid an error.
4253 Use char because int might match the return type of a GCC
4254 builtin and then its argument prototype would still apply. */
4255#ifdef __cplusplus
4256extern "C"
4257#endif
4258char opendir ();
4259int
4260main ()
4261{
4262return opendir ();
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267for ac_lib in '' x; do
4268 if test -z "$ac_lib"; then
4269 ac_res="none required"
4270 else
4271 ac_res=-l$ac_lib
4272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4273 fi
4274 rm -f conftest.$ac_objext conftest$ac_exeext
4275if { (ac_try="$ac_link"
4276case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
ec6a6fbe
AK
4280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281$as_echo "$ac_try_echo") >&5
d0191583
JM
4282 (eval "$ac_link") 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
ec6a6fbe 4287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
ec6a6fbe
AK
4291 } && test -s conftest$ac_exeext && {
4292 test "$cross_compiling" = yes ||
4293 $as_test_x conftest$ac_exeext
4294 }; then
d0191583
JM
4295 ac_cv_search_opendir=$ac_res
4296else
ec6a6fbe 4297 $as_echo "$as_me: failed program was:" >&5
d0191583 4298sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4299
4300
4301fi
4302
ec6a6fbe 4303rm -rf conftest.dSYM
d0191583
JM
4304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4305 conftest$ac_exeext
4306 if test "${ac_cv_search_opendir+set}" = set; then
4307 break
7a197a62 4308fi
d0191583
JM
4309done
4310if test "${ac_cv_search_opendir+set}" = set; then
4311 :
7a197a62 4312else
d0191583 4313 ac_cv_search_opendir=no
7a197a62 4314fi
d0191583
JM
4315rm conftest.$ac_ext
4316LIBS=$ac_func_search_save_LIBS
4317fi
ec6a6fbe
AK
4318{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4319$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4320ac_res=$ac_cv_search_opendir
4321if test "$ac_res" != no; then
4322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4323
7a197a62 4324fi
7a197a62 4325
d0191583 4326fi
7a197a62 4327
ec6a6fbe
AK
4328{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4329$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4330if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4331 $as_echo_n "(cached) " >&6
7a197a62
AK
4332else
4333 cat >conftest.$ac_ext <<_ACEOF
4334/* confdefs.h. */
4335_ACEOF
4336cat confdefs.h >>conftest.$ac_ext
4337cat >>conftest.$ac_ext <<_ACEOF
4338/* end confdefs.h. */
4339#include <stdlib.h>
4340#include <stdarg.h>
4341#include <string.h>
4342#include <float.h>
4343
4344int
4345main ()
4346{
4347
4348 ;
4349 return 0;
4350}
4351_ACEOF
4352rm -f conftest.$ac_objext
4353if { (ac_try="$ac_compile"
4354case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
ec6a6fbe
AK
4358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4359$as_echo "$ac_try_echo") >&5
7a197a62
AK
4360 (eval "$ac_compile") 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
ec6a6fbe 4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
7a197a62
AK
4370 ac_cv_header_stdc=yes
4371else
ec6a6fbe 4372 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ac_cv_header_stdc=no
4376fi
4377
4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379
4380if test $ac_cv_header_stdc = yes; then
4381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4382 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
4388#include <string.h>
8106cdd5 4389
ad6254c5
AK
4390_ACEOF
4391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392 $EGREP "memchr" >/dev/null 2>&1; then
4393 :
4394else
4395 ac_cv_header_stdc=no
80992638 4396fi
ad6254c5 4397rm -f conftest*
795ca3e5
AK
4398
4399fi
4400
ad6254c5
AK
4401if test $ac_cv_header_stdc = yes; then
4402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4403 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4404/* confdefs.h. */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h. */
80992638 4409#include <stdlib.h>
ad6254c5
AK
4410
4411_ACEOF
80992638 4412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4413 $EGREP "free" >/dev/null 2>&1; then
4414 :
795ca3e5 4415else
ad6254c5 4416 ac_cv_header_stdc=no
795ca3e5 4417fi
80992638 4418rm -f conftest*
8106cdd5 4419
795ca3e5
AK
4420fi
4421
ad6254c5
AK
4422if test $ac_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4424 if test "$cross_compiling" = yes; then
4425 :
795ca3e5 4426else
ad6254c5 4427 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4428/* confdefs.h. */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h. */
4433#include <ctype.h>
7a197a62 4434#include <stdlib.h>
ad6254c5
AK
4435#if ((' ' & 0x0FF) == 0x020)
4436# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4437# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4438#else
4439# define ISLOWER(c) \
8a2fc586
AK
4440 (('a' <= (c) && (c) <= 'i') \
4441 || ('j' <= (c) && (c) <= 'r') \
4442 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4443# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4444#endif
ad6254c5
AK
4445
4446#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4447int
4448main ()
4449{
4450 int i;
4451 for (i = 0; i < 256; i++)
4452 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4453 || toupper (i) != TOUPPER (i))
7a197a62
AK
4454 return 2;
4455 return 0;
ad6254c5
AK
4456}
4457_ACEOF
4458rm -f conftest$ac_exeext
7a197a62
AK
4459if { (ac_try="$ac_link"
4460case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463esac
ec6a6fbe
AK
4464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4465$as_echo "$ac_try_echo") >&5
7a197a62 4466 (eval "$ac_link") 2>&5
ad6254c5 4467 ac_status=$?
ec6a6fbe 4468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
ec6a6fbe
AK
4474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4475$as_echo "$ac_try_echo") >&5
7a197a62 4476 (eval "$ac_try") 2>&5
ad6254c5 4477 ac_status=$?
ec6a6fbe 4478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4479 (exit $ac_status); }; }; then
4480 :
795ca3e5 4481else
ec6a6fbe
AK
4482 $as_echo "$as_me: program exited with status $ac_status" >&5
4483$as_echo "$as_me: failed program was:" >&5
ad6254c5 4484sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4485
ad6254c5
AK
4486( exit $ac_status )
4487ac_cv_header_stdc=no
80992638 4488fi
ec6a6fbe 4489rm -rf conftest.dSYM
7a197a62 4490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4491fi
7a197a62
AK
4492
4493
ad6254c5
AK
4494fi
4495fi
ec6a6fbe
AK
4496{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4497$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4498if test $ac_cv_header_stdc = yes; then
4499
4500cat >>confdefs.h <<\_ACEOF
4501#define STDC_HEADERS 1
4502_ACEOF
795ca3e5
AK
4503
4504fi
4505
ec6a6fbe
AK
4506{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4507$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4508if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4509 $as_echo_n "(cached) " >&6
8106cdd5 4510else
ad6254c5 4511 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
80992638 4517#include <sys/types.h>
ad6254c5
AK
4518#include <sys/wait.h>
4519#ifndef WEXITSTATUS
7a197a62 4520# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4521#endif
4522#ifndef WIFEXITED
4523# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4524#endif
4525
4526int
4527main ()
4528{
4529 int s;
4530 wait (&s);
4531 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4532 ;
4533 return 0;
4534}
4535_ACEOF
4536rm -f conftest.$ac_objext
7a197a62
AK
4537if { (ac_try="$ac_compile"
4538case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541esac
ec6a6fbe
AK
4542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4543$as_echo "$ac_try_echo") >&5
7a197a62 4544 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4545 ac_status=$?
8a2fc586
AK
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
ec6a6fbe 4549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4550 (exit $ac_status); } && {
4551 test -z "$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4554 ac_cv_header_sys_wait_h=yes
4555else
ec6a6fbe 4556 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
7a197a62 4559 ac_cv_header_sys_wait_h=no
8106cdd5 4560fi
7a197a62
AK
4561
4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4563fi
ec6a6fbe
AK
4564{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4565$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4566if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4567
ad6254c5
AK
4568cat >>confdefs.h <<\_ACEOF
4569#define HAVE_SYS_WAIT_H 1
4570_ACEOF
795ca3e5
AK
4571
4572fi
4573
ec6a6fbe
AK
4574{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4575$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4576if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4577 $as_echo_n "(cached) " >&6
795ca3e5 4578else
ad6254c5 4579 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4580/* confdefs.h. */
4581_ACEOF
4582cat confdefs.h >>conftest.$ac_ext
4583cat >>conftest.$ac_ext <<_ACEOF
4584/* end confdefs.h. */
795ca3e5
AK
4585#include <sys/types.h>
4586#include <sys/time.h>
4587#include <time.h>
ad6254c5
AK
4588
4589int
4590main ()
4591{
4592if ((struct tm *) 0)
4593return 0;
4594 ;
4595 return 0;
4596}
4597_ACEOF
4598rm -f conftest.$ac_objext
7a197a62
AK
4599if { (ac_try="$ac_compile"
4600case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603esac
ec6a6fbe
AK
4604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4605$as_echo "$ac_try_echo") >&5
7a197a62 4606 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4607 ac_status=$?
8a2fc586
AK
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
ec6a6fbe 4611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4612 (exit $ac_status); } && {
4613 test -z "$ac_c_werror_flag" ||
4614 test ! -s conftest.err
4615 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4616 ac_cv_header_time=yes
4617else
ec6a6fbe 4618 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
7a197a62 4621 ac_cv_header_time=no
795ca3e5 4622fi
7a197a62
AK
4623
4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4625fi
ec6a6fbe
AK
4626{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4627$as_echo "$ac_cv_header_time" >&6; }
80992638 4628if test $ac_cv_header_time = yes; then
ad6254c5
AK
4629
4630cat >>confdefs.h <<\_ACEOF
795ca3e5 4631#define TIME_WITH_SYS_TIME 1
ad6254c5 4632_ACEOF
b896caa1 4633
8106cdd5 4634fi
b896caa1 4635
b896caa1 4636
d0191583
JM
4637# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4648 inttypes.h stdint.h unistd.h
4649do
ec6a6fbe
AK
4650as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4651{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4652$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4654 $as_echo_n "(cached) " >&6
d0191583
JM
4655else
4656 cat >conftest.$ac_ext <<_ACEOF
4657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662$ac_includes_default
4663
4664#include <$ac_header>
4665_ACEOF
4666rm -f conftest.$ac_objext
4667if { (ac_try="$ac_compile"
4668case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671esac
ec6a6fbe
AK
4672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673$as_echo "$ac_try_echo") >&5
d0191583
JM
4674 (eval "$ac_compile") 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
ec6a6fbe 4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4680 (exit $ac_status); } && {
4681 test -z "$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 } && test -s conftest.$ac_objext; then
4684 eval "$as_ac_Header=yes"
4685else
ec6a6fbe 4686 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 eval "$as_ac_Header=no"
4690fi
4691
4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693fi
ec6a6fbe
AK
4694ac_res=`eval 'as_val=${'$as_ac_Header'}
4695 $as_echo "$as_val"'`
4696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4697$as_echo "$ac_res" >&6; }
4698as_val=`eval 'as_val=${'$as_ac_Header'}
4699 $as_echo "$as_val"'`
4700 if test "x$as_val" = x""yes; then
d0191583 4701 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4703_ACEOF
4704
4705fi
4706
4707done
4708
b896caa1 4709
b896caa1
AK
4710
4711
795ca3e5 4712
8106cdd5 4713
80992638 4714
795ca3e5 4715
a38df97f 4716
80992638 4717
d0191583
JM
4718
4719
4720
4721
4722
4723for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4724 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4725do
ec6a6fbe 4726as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4729$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4731 $as_echo_n "(cached) " >&6
d0191583 4732fi
ec6a6fbe
AK
4733ac_res=`eval 'as_val=${'$as_ac_Header'}
4734 $as_echo "$as_val"'`
4735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4736$as_echo "$ac_res" >&6; }
ad6254c5 4737else
d0191583 4738 # Is the header compilable?
ec6a6fbe
AK
4739{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4740$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4741cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4742/* confdefs.h. */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h. */
4747$ac_includes_default
ad6254c5
AK
4748#include <$ac_header>
4749_ACEOF
4750rm -f conftest.$ac_objext
7a197a62
AK
4751if { (ac_try="$ac_compile"
4752case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755esac
ec6a6fbe
AK
4756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757$as_echo "$ac_try_echo") >&5
7a197a62 4758 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4759 ac_status=$?
8a2fc586
AK
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
ec6a6fbe 4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4764 (exit $ac_status); } && {
4765 test -z "$ac_c_werror_flag" ||
4766 test ! -s conftest.err
4767 } && test -s conftest.$ac_objext; then
d0191583 4768 ac_header_compiler=yes
ad6254c5 4769else
ec6a6fbe 4770 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4771sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4772
d0191583 4773 ac_header_compiler=no
ad6254c5 4774fi
7a197a62
AK
4775
4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4777{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4778$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4779
4780# Is the header present?
ec6a6fbe
AK
4781{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4782$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4783cat >conftest.$ac_ext <<_ACEOF
4784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
4789#include <$ac_header>
4790_ACEOF
4791if { (ac_try="$ac_cpp conftest.$ac_ext"
4792case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795esac
ec6a6fbe
AK
4796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797$as_echo "$ac_try_echo") >&5
d0191583
JM
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
ec6a6fbe 4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4804 (exit $ac_status); } >/dev/null && {
4805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 }; then
4808 ac_header_preproc=yes
4809else
ec6a6fbe 4810 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 ac_header_preproc=no
4814fi
4815
4816rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4817{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4818$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4819
4820# So? What about this header?
4821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4822 yes:no: )
ec6a6fbe
AK
4823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4824$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4826$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4827 ac_header_preproc=yes
4828 ;;
4829 no:yes:* )
ec6a6fbe
AK
4830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4831$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4833$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4835$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4837$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4839$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4841$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4842
4843 ;;
4844esac
ec6a6fbe
AK
4845{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4846$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4848 $as_echo_n "(cached) " >&6
d0191583
JM
4849else
4850 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4851fi
ec6a6fbe
AK
4852ac_res=`eval 'as_val=${'$as_ac_Header'}
4853 $as_echo "$as_val"'`
4854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4855$as_echo "$ac_res" >&6; }
d0191583
JM
4856
4857fi
ec6a6fbe
AK
4858as_val=`eval 'as_val=${'$as_ac_Header'}
4859 $as_echo "$as_val"'`
4860 if test "x$as_val" = x""yes; then
ad6254c5 4861 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4863_ACEOF
a38df97f 4864
d0191583 4865else
ec6a6fbe
AK
4866 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4867$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4868 { (exit 1); exit 1; }; }
80992638
AK
4869fi
4870
ad6254c5
AK
4871done
4872
7d1552c9 4873
d0191583
JM
4874case "$host_os" in
4875 linux*)
7d1552c9 4876
80992638 4877
5a52dca9 4878
d0191583 4879for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4880do
ec6a6fbe 4881as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4884$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4886 $as_echo_n "(cached) " >&6
ad6254c5 4887fi
ec6a6fbe
AK
4888ac_res=`eval 'as_val=${'$as_ac_Header'}
4889 $as_echo "$as_val"'`
4890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4891$as_echo "$ac_res" >&6; }
ad6254c5
AK
4892else
4893 # Is the header compilable?
ec6a6fbe
AK
4894{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4895$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4896cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4897/* confdefs.h. */
4898_ACEOF
4899cat confdefs.h >>conftest.$ac_ext
4900cat >>conftest.$ac_ext <<_ACEOF
4901/* end confdefs.h. */
4902$ac_includes_default
4903#include <$ac_header>
4904_ACEOF
4905rm -f conftest.$ac_objext
7a197a62
AK
4906if { (ac_try="$ac_compile"
4907case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910esac
ec6a6fbe
AK
4911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912$as_echo "$ac_try_echo") >&5
7a197a62 4913 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4914 ac_status=$?
8a2fc586
AK
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
ec6a6fbe 4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest.$ac_objext; then
fc54be10
AK
4923 ac_header_compiler=yes
4924else
ec6a6fbe 4925 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4926sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_header_compiler=no
4929fi
4930
4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4932{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4933$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4934
4935# Is the header present?
ec6a6fbe
AK
4936{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4937$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4938cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4939/* confdefs.h. */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h. */
4944#include <$ac_header>
4945_ACEOF
7a197a62
AK
4946if { (ac_try="$ac_cpp conftest.$ac_ext"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
ec6a6fbe
AK
4951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4952$as_echo "$ac_try_echo") >&5
7a197a62 4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
ec6a6fbe 4958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 }; then
ad6254c5
AK
4963 ac_header_preproc=yes
4964else
ec6a6fbe 4965 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 ac_header_preproc=no
4969fi
7a197a62 4970
ad6254c5 4971rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4972{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4973$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4974
4975# So? What about this header?
8a2fc586
AK
4976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4977 yes:no: )
ec6a6fbe
AK
4978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4979$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4981$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4982 ac_header_preproc=yes
ad6254c5 4983 ;;
8a2fc586 4984 no:yes:* )
ec6a6fbe
AK
4985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4986$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4988$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4990$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4992$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4994$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4996$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4997
ad6254c5
AK
4998 ;;
4999esac
ec6a6fbe
AK
5000{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5001$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5003 $as_echo_n "(cached) " >&6
ad6254c5 5004else
8a2fc586 5005 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5006fi
ec6a6fbe
AK
5007ac_res=`eval 'as_val=${'$as_ac_Header'}
5008 $as_echo "$as_val"'`
5009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5010$as_echo "$ac_res" >&6; }
ad6254c5
AK
5011
5012fi
ec6a6fbe
AK
5013as_val=`eval 'as_val=${'$as_ac_Header'}
5014 $as_echo "$as_val"'`
5015 if test "x$as_val" = x""yes; then
ad6254c5 5016 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5018_ACEOF
b896caa1 5019
d8ac0fbc 5020else
ec6a6fbe
AK
5021 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5022$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5023 { (exit 1); exit 1; }; }
80992638
AK
5024fi
5025
ad6254c5 5026done
d0191583
JM
5027 ;;
5028 darwin*)
d8ac0fbc 5029
d8ac0fbc 5030
d0191583 5031for ac_header in machine/endian.h sys/disk.h
ad6254c5 5032do
ec6a6fbe 5033as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5035 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5036$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5038 $as_echo_n "(cached) " >&6
ad6254c5 5039fi
ec6a6fbe
AK
5040ac_res=`eval 'as_val=${'$as_ac_Header'}
5041 $as_echo "$as_val"'`
5042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5043$as_echo "$ac_res" >&6; }
ad6254c5
AK
5044else
5045 # Is the header compilable?
ec6a6fbe
AK
5046{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5047$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5048cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054$ac_includes_default
5055#include <$ac_header>
5056_ACEOF
5057rm -f conftest.$ac_objext
7a197a62
AK
5058if { (ac_try="$ac_compile"
5059case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062esac
ec6a6fbe
AK
5063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5064$as_echo "$ac_try_echo") >&5
7a197a62 5065 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5066 ac_status=$?
8a2fc586
AK
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
ec6a6fbe 5070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5071 (exit $ac_status); } && {
5072 test -z "$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5075 ac_header_compiler=yes
5076else
ec6a6fbe 5077 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
7a197a62 5080 ac_header_compiler=no
ad6254c5 5081fi
7a197a62
AK
5082
5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5084{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5085$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5086
5087# Is the header present?
ec6a6fbe
AK
5088{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5089$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5090cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5091/* confdefs.h. */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h. */
5096#include <$ac_header>
5097_ACEOF
7a197a62
AK
5098if { (ac_try="$ac_cpp conftest.$ac_ext"
5099case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102esac
ec6a6fbe
AK
5103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104$as_echo "$ac_try_echo") >&5
7a197a62 5105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
ec6a6fbe 5110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5111 (exit $ac_status); } >/dev/null && {
5112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 }; then
ad6254c5
AK
5115 ac_header_preproc=yes
5116else
ec6a6fbe 5117 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_header_preproc=no
5121fi
7a197a62 5122
ad6254c5 5123rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5124{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5125$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5126
5127# So? What about this header?
8a2fc586
AK
5128case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5129 yes:no: )
ec6a6fbe
AK
5130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5131$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5133$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5134 ac_header_preproc=yes
ad6254c5 5135 ;;
8a2fc586 5136 no:yes:* )
ec6a6fbe
AK
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5138$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5140$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5142$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5144$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5146$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5148$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5149
ad6254c5
AK
5150 ;;
5151esac
ec6a6fbe
AK
5152{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5153$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5155 $as_echo_n "(cached) " >&6
ad6254c5 5156else
8a2fc586 5157 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5158fi
ec6a6fbe
AK
5159ac_res=`eval 'as_val=${'$as_ac_Header'}
5160 $as_echo "$as_val"'`
5161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5162$as_echo "$ac_res" >&6; }
ad6254c5
AK
5163
5164fi
ec6a6fbe
AK
5165as_val=`eval 'as_val=${'$as_ac_Header'}
5166 $as_echo "$as_val"'`
5167 if test "x$as_val" = x""yes; then
ad6254c5 5168 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5170_ACEOF
4922197a 5171
4922197a 5172else
ec6a6fbe
AK
5173 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5174$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5175 { (exit 1); exit 1; }; }
80992638
AK
5176fi
5177
ad6254c5 5178done
d0191583
JM
5179 ;;
5180esac
4922197a 5181
4922197a 5182
4922197a 5183
ad6254c5
AK
5184
5185
d0191583
JM
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5199 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5200 sys/types.h unistd.h
ad6254c5 5201do
ec6a6fbe 5202as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5205$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5207 $as_echo_n "(cached) " >&6
ad6254c5 5208fi
ec6a6fbe
AK
5209ac_res=`eval 'as_val=${'$as_ac_Header'}
5210 $as_echo "$as_val"'`
5211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5212$as_echo "$ac_res" >&6; }
795ca3e5 5213else
ad6254c5 5214 # Is the header compilable?
ec6a6fbe
AK
5215{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5216$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5217cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5218/* confdefs.h. */
5219_ACEOF
5220cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h. */
5223$ac_includes_default
5224#include <$ac_header>
5225_ACEOF
5226rm -f conftest.$ac_objext
7a197a62
AK
5227if { (ac_try="$ac_compile"
5228case "(($ac_try" in
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5231esac
ec6a6fbe
AK
5232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233$as_echo "$ac_try_echo") >&5
7a197a62 5234 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5235 ac_status=$?
8a2fc586
AK
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
ec6a6fbe 5239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5240 (exit $ac_status); } && {
5241 test -z "$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5244 ac_header_compiler=yes
5245else
ec6a6fbe 5246 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
7a197a62 5249 ac_header_compiler=no
ad6254c5 5250fi
7a197a62
AK
5251
5252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5253{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5254$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5255
5256# Is the header present?
ec6a6fbe
AK
5257{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5258$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5259cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5260/* confdefs.h. */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h. */
5265#include <$ac_header>
5266_ACEOF
7a197a62
AK
5267if { (ac_try="$ac_cpp conftest.$ac_ext"
5268case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271esac
ec6a6fbe
AK
5272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273$as_echo "$ac_try_echo") >&5
7a197a62 5274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
ec6a6fbe 5279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5280 (exit $ac_status); } >/dev/null && {
5281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 }; then
ad6254c5
AK
5284 ac_header_preproc=yes
5285else
ec6a6fbe 5286 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
5289 ac_header_preproc=no
5290fi
7a197a62 5291
ad6254c5 5292rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5293{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5295
5296# So? What about this header?
8a2fc586
AK
5297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5298 yes:no: )
ec6a6fbe
AK
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5302$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5303 ac_header_preproc=yes
ad6254c5 5304 ;;
8a2fc586 5305 no:yes:* )
ec6a6fbe
AK
5306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5307$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5309$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5311$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5313$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5315$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5317$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5318
ad6254c5
AK
5319 ;;
5320esac
ec6a6fbe
AK
5321{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5322$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5324 $as_echo_n "(cached) " >&6
ad6254c5 5325else
8a2fc586 5326 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5327fi
ec6a6fbe
AK
5328ac_res=`eval 'as_val=${'$as_ac_Header'}
5329 $as_echo "$as_val"'`
5330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5331$as_echo "$ac_res" >&6; }
80992638 5332
ad6254c5 5333fi
ec6a6fbe
AK
5334as_val=`eval 'as_val=${'$as_ac_Header'}
5335 $as_echo "$as_val"'`
5336 if test "x$as_val" = x""yes; then
ad6254c5 5337 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5339_ACEOF
795ca3e5 5340
795ca3e5 5341else
ec6a6fbe
AK
5342 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5343$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5344 { (exit 1); exit 1; }; }
80992638
AK
5345fi
5346
ad6254c5 5347done
ad6254c5 5348
795ca3e5 5349
d0191583
JM
5350
5351for ac_header in termios.h sys/statvfs.h
ad6254c5 5352do
ec6a6fbe 5353as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5356$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5358 $as_echo_n "(cached) " >&6
ad6254c5 5359fi
ec6a6fbe
AK
5360ac_res=`eval 'as_val=${'$as_ac_Header'}
5361 $as_echo "$as_val"'`
5362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5363$as_echo "$ac_res" >&6; }
ad6254c5
AK
5364else
5365 # Is the header compilable?
ec6a6fbe
AK
5366{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5367$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5368cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374$ac_includes_default
5375#include <$ac_header>
5376_ACEOF
5377rm -f conftest.$ac_objext
7a197a62
AK
5378if { (ac_try="$ac_compile"
5379case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382esac
ec6a6fbe
AK
5383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384$as_echo "$ac_try_echo") >&5
7a197a62 5385 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5386 ac_status=$?
8a2fc586
AK
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
ec6a6fbe 5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5395 ac_header_compiler=yes
5396else
ec6a6fbe 5397 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
7a197a62 5400 ac_header_compiler=no
ad6254c5 5401fi
7a197a62
AK
5402
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5404{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5405$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5406
5407# Is the header present?
ec6a6fbe
AK
5408{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5409$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5410cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
5416#include <$ac_header>
5417_ACEOF
7a197a62
AK
5418if { (ac_try="$ac_cpp conftest.$ac_ext"
5419case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422esac
ec6a6fbe
AK
5423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5424$as_echo "$ac_try_echo") >&5
7a197a62 5425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
ec6a6fbe 5430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5431 (exit $ac_status); } >/dev/null && {
5432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5433 test ! -s conftest.err
5434 }; then
ad6254c5
AK
5435 ac_header_preproc=yes
5436else
ec6a6fbe 5437 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
5440 ac_header_preproc=no
5441fi
7a197a62 5442
ad6254c5 5443rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5444{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5445$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5446
5447# So? What about this header?
8a2fc586
AK
5448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5449 yes:no: )
ec6a6fbe
AK
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5451$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5453$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5454 ac_header_preproc=yes
ad6254c5 5455 ;;
8a2fc586 5456 no:yes:* )
ec6a6fbe
AK
5457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5458$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5460$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5462$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5464$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5466$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5468$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5469
ad6254c5
AK
5470 ;;
5471esac
ec6a6fbe
AK
5472{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5473$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5475 $as_echo_n "(cached) " >&6
ad6254c5 5476else
8a2fc586 5477 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5478fi
ec6a6fbe
AK
5479ac_res=`eval 'as_val=${'$as_ac_Header'}
5480 $as_echo "$as_val"'`
5481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5482$as_echo "$ac_res" >&6; }
b896caa1 5483
ad6254c5 5484fi
ec6a6fbe
AK
5485as_val=`eval 'as_val=${'$as_ac_Header'}
5486 $as_echo "$as_val"'`
5487 if test "x$as_val" = x""yes; then
ad6254c5 5488 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5489#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5490_ACEOF
5491
80992638
AK
5492fi
5493
ad6254c5 5494done
d0191583 5495
d3c8211f 5496
80992638 5497################################################################################
ec6a6fbe
AK
5498{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5499$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5500if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5501 $as_echo_n "(cached) " >&6
d3c8211f 5502else
ad6254c5 5503 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509
5510int
5511main ()
5512{
5513/* FIXME: Include the comments suggested by Paul. */
5514#ifndef __cplusplus
5515 /* Ultrix mips cc rejects this. */
5516 typedef int charset[2];
25fbec5b 5517 const charset cs;
ad6254c5 5518 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5519 char const *const *pcpcc;
5520 char **ppc;
ad6254c5
AK
5521 /* NEC SVR4.0.2 mips cc rejects this. */
5522 struct point {int x, y;};
5523 static struct point const zero = {0,0};
5524 /* AIX XL C 1.02.0.0 rejects this.
5525 It does not let you subtract one const X* pointer from another in
5526 an arm of an if-expression whose if-part is not a constant
5527 expression */
5528 const char *g = "string";
25fbec5b 5529 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5530 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5531 ++pcpcc;
5532 ppc = (char**) pcpcc;
5533 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5534 { /* SCO 3.2v4 cc rejects this. */
5535 char *t;
5536 char const *s = 0 ? (char *) 0 : (char const *) 0;
5537
5538 *t++ = 0;
7a197a62 5539 if (s) return 0;
ad6254c5
AK
5540 }
5541 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5542 int x[] = {25, 17};
5543 const int *foo = &x[0];
5544 ++foo;
5545 }
5546 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5547 typedef const int *iptr;
5548 iptr p = 0;
5549 ++p;
5550 }
5551 { /* AIX XL C 1.02.0.0 rejects this saying
5552 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5553 struct s { int j; const int *ap[3]; };
5554 struct s *b; b->j = 5;
5555 }
5556 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5557 const int foo = 10;
7a197a62 5558 if (!foo) return 0;
ad6254c5 5559 }
25fbec5b 5560 return !cs[0] && !zero.x;
ad6254c5
AK
5561#endif
5562
5563 ;
5564 return 0;
5565}
5566_ACEOF
5567rm -f conftest.$ac_objext
7a197a62
AK
5568if { (ac_try="$ac_compile"
5569case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572esac
ec6a6fbe
AK
5573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574$as_echo "$ac_try_echo") >&5
7a197a62 5575 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5576 ac_status=$?
8a2fc586
AK
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
ec6a6fbe 5580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5585 ac_cv_c_const=yes
5586else
ec6a6fbe 5587 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
7a197a62 5590 ac_cv_c_const=no
ad6254c5 5591fi
7a197a62
AK
5592
5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5594fi
ec6a6fbe
AK
5595{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5596$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5597if test $ac_cv_c_const = no; then
80992638 5598
ad6254c5 5599cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5600#define const /**/
ad6254c5 5601_ACEOF
80992638 5602
d3c8211f 5603fi
d3c8211f 5604
ec6a6fbe
AK
5605{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5606$as_echo_n "checking for inline... " >&6; }
ad6254c5 5607if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5608 $as_echo_n "(cached) " >&6
8ef2b021 5609else
ad6254c5
AK
5610 ac_cv_c_inline=no
5611for ac_kw in inline __inline__ __inline; do
5612 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618#ifndef __cplusplus
5619typedef int foo_t;
5620static $ac_kw foo_t static_foo () {return 0; }
5621$ac_kw foo_t foo () {return 0; }
5622#endif
80992638 5623
ad6254c5
AK
5624_ACEOF
5625rm -f conftest.$ac_objext
7a197a62
AK
5626if { (ac_try="$ac_compile"
5627case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
ec6a6fbe
AK
5631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632$as_echo "$ac_try_echo") >&5
7a197a62 5633 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5634 ac_status=$?
8a2fc586
AK
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
ec6a6fbe 5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
7a197a62 5643 ac_cv_c_inline=$ac_kw
ad6254c5 5644else
ec6a6fbe 5645 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5646sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5647
7a197a62 5648
8ce0cbda 5649fi
7a197a62
AK
5650
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 test "$ac_cv_c_inline" != no && break
ad6254c5 5653done
8ce0cbda 5654
8ce0cbda 5655fi
ec6a6fbe
AK
5656{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5657$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5658
5659
ad6254c5
AK
5660case $ac_cv_c_inline in
5661 inline | yes) ;;
8a2fc586
AK
5662 *)
5663 case $ac_cv_c_inline in
5664 no) ac_val=;;
5665 *) ac_val=$ac_cv_c_inline;;
5666 esac
5667 cat >>confdefs.h <<_ACEOF
5668#ifndef __cplusplus
5669#define inline $ac_val
5670#endif
c1c065a3 5671_ACEOF
d0191583
JM
5672 ;;
5673esac
5674
ec6a6fbe
AK
5675{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5676$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5677if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5678 $as_echo_n "(cached) " >&6
d0191583
JM
5679else
5680 cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h. */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h. */
5686$ac_includes_default
5687int
5688main ()
5689{
5690static struct stat ac_aggr;
5691if (ac_aggr.st_rdev)
5692return 0;
5693 ;
5694 return 0;
5695}
5696_ACEOF
5697rm -f conftest.$ac_objext
5698if { (ac_try="$ac_compile"
5699case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702esac
ec6a6fbe
AK
5703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5704$as_echo "$ac_try_echo") >&5
5705 (eval "$ac_compile") 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest.$ac_objext; then
5715 ac_cv_member_struct_stat_st_rdev=yes
5716else
5717 $as_echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h. */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h. */
5726$ac_includes_default
5727int
5728main ()
5729{
5730static struct stat ac_aggr;
5731if (sizeof ac_aggr.st_rdev)
5732return 0;
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext
5738if { (ac_try="$ac_compile"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744$as_echo "$ac_try_echo") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_cv_member_struct_stat_st_rdev=yes
5756else
5757 $as_echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 ac_cv_member_struct_stat_st_rdev=no
5761fi
5762
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764fi
5765
5766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767fi
5768{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5769$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5770if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5771
5772cat >>confdefs.h <<_ACEOF
5773#define HAVE_STRUCT_STAT_ST_RDEV 1
5774_ACEOF
5775
5776
5777fi
5778
5779{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5780$as_echo_n "checking for off_t... " >&6; }
5781if test "${ac_cv_type_off_t+set}" = set; then
5782 $as_echo_n "(cached) " >&6
5783else
5784 ac_cv_type_off_t=no
5785cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h. */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791$ac_includes_default
5792int
5793main ()
5794{
5795if (sizeof (off_t))
5796 return 0;
5797 ;
5798 return 0;
5799}
5800_ACEOF
5801rm -f conftest.$ac_objext
5802if { (ac_try="$ac_compile"
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_compile") 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); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h. */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h. */
5825$ac_includes_default
5826int
5827main ()
5828{
5829if (sizeof ((off_t)))
5830 return 0;
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext
5836if { (ac_try="$ac_compile"
5837case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5842$as_echo "$ac_try_echo") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 :
5854else
5855 $as_echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 ac_cv_type_off_t=yes
5859fi
5860
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862else
5863 $as_echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
5866
5867fi
5868
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870fi
5871{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5872$as_echo "$ac_cv_type_off_t" >&6; }
5873if test "x$ac_cv_type_off_t" = x""yes; then
5874 :
5875else
5876
5877cat >>confdefs.h <<_ACEOF
5878#define off_t long int
5879_ACEOF
5880
5881fi
5882
5883{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5884$as_echo_n "checking for pid_t... " >&6; }
5885if test "${ac_cv_type_pid_t+set}" = set; then
5886 $as_echo_n "(cached) " >&6
5887else
5888 ac_cv_type_pid_t=no
5889cat >conftest.$ac_ext <<_ACEOF
5890/* confdefs.h. */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h. */
5895$ac_includes_default
5896int
5897main ()
5898{
5899if (sizeof (pid_t))
5900 return 0;
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (ac_try="$ac_compile"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5912$as_echo "$ac_try_echo") >&5
d0191583
JM
5913 (eval "$ac_compile") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
ec6a6fbe 5918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
ec6a6fbe 5923 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5924/* confdefs.h. */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h. */
5929$ac_includes_default
5930int
5931main ()
5932{
ec6a6fbe
AK
5933if (sizeof ((pid_t)))
5934 return 0;
d0191583
JM
5935 ;
5936 return 0;
5937}
5938_ACEOF
5939rm -f conftest.$ac_objext
5940if { (ac_try="$ac_compile"
5941case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
ec6a6fbe
AK
5945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5946$as_echo "$ac_try_echo") >&5
d0191583
JM
5947 (eval "$ac_compile") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
ec6a6fbe 5952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
ec6a6fbe 5957 :
d0191583 5958else
ec6a6fbe 5959 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
ec6a6fbe 5962 ac_cv_type_pid_t=yes
d0191583
JM
5963fi
5964
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5966else
5967 $as_echo "$as_me: failed program was:" >&5
5968sed 's/^/| /' conftest.$ac_ext >&5
5969
5970
d0191583
JM
5971fi
5972
5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974fi
ec6a6fbe
AK
5975{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5976$as_echo "$ac_cv_type_pid_t" >&6; }
5977if test "x$ac_cv_type_pid_t" = x""yes; then
5978 :
5979else
d0191583
JM
5980
5981cat >>confdefs.h <<_ACEOF
ec6a6fbe 5982#define pid_t int
d0191583
JM
5983_ACEOF
5984
d0191583 5985fi
8ce0cbda 5986
ec6a6fbe
AK
5987{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5988$as_echo_n "checking return type of signal handlers... " >&6; }
5989if test "${ac_cv_type_signal+set}" = set; then
5990 $as_echo_n "(cached) " >&6
ad6254c5 5991else
b145d876
ZK
5992 cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
ec6a6fbe
AK
5998#include <sys/types.h>
5999#include <signal.h>
6000
b145d876
ZK
6001int
6002main ()
6003{
ec6a6fbe 6004return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6005 ;
6006 return 0;
6007}
6008_ACEOF
6009rm -f conftest.$ac_objext
7a197a62
AK
6010if { (ac_try="$ac_compile"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
ec6a6fbe
AK
6015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6016$as_echo "$ac_try_echo") >&5
7a197a62 6017 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6018 ac_status=$?
8a2fc586
AK
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
ec6a6fbe 6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6023 (exit $ac_status); } && {
6024 test -z "$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6026 } && test -s conftest.$ac_objext; then
ec6a6fbe 6027 ac_cv_type_signal=int
b145d876 6028else
ec6a6fbe 6029 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
ec6a6fbe 6032 ac_cv_type_signal=void
ad6254c5 6033fi
b145d876
ZK
6034
6035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036fi
ec6a6fbe
AK
6037{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6038$as_echo "$ac_cv_type_signal" >&6; }
80992638 6039
ad6254c5 6040cat >>confdefs.h <<_ACEOF
ec6a6fbe 6041#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6042_ACEOF
199e490e 6043
b896caa1 6044
ec6a6fbe
AK
6045{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6046$as_echo_n "checking for size_t... " >&6; }
6047if test "${ac_cv_type_size_t+set}" = set; then
6048 $as_echo_n "(cached) " >&6
ad6254c5 6049else
ec6a6fbe
AK
6050 ac_cv_type_size_t=no
6051cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
6057$ac_includes_default
6058int
6059main ()
6060{
ec6a6fbe
AK
6061if (sizeof (size_t))
6062 return 0;
ad6254c5
AK
6063 ;
6064 return 0;
6065}
6066_ACEOF
6067rm -f conftest.$ac_objext
7a197a62
AK
6068if { (ac_try="$ac_compile"
6069case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072esac
ec6a6fbe
AK
6073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074$as_echo "$ac_try_echo") >&5
7a197a62 6075 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6076 ac_status=$?
8a2fc586
AK
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
ec6a6fbe 6080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
d0191583
JM
6085 cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h. */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
6090/* end confdefs.h. */
ec6a6fbe 6091$ac_includes_default
d0191583
JM
6092int
6093main ()
6094{
ec6a6fbe
AK
6095if (sizeof ((size_t)))
6096 return 0;
d0191583
JM
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101rm -f conftest.$ac_objext
6102if { (ac_try="$ac_compile"
6103case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
ec6a6fbe
AK
6107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6108$as_echo "$ac_try_echo") >&5
d0191583
JM
6109 (eval "$ac_compile") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
ec6a6fbe 6114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.$ac_objext; then
ec6a6fbe 6119 :
d0191583 6120else
ec6a6fbe 6121 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6122sed 's/^/| /' conftest.$ac_ext >&5
6123
ec6a6fbe
AK
6124 ac_cv_type_size_t=yes
6125fi
6126
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128else
6129 $as_echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132
d0191583
JM
6133fi
6134
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136fi
ec6a6fbe
AK
6137{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6138$as_echo "$ac_cv_type_size_t" >&6; }
6139if test "x$ac_cv_type_size_t" = x""yes; then
6140 :
6141else
d0191583
JM
6142
6143cat >>confdefs.h <<_ACEOF
ec6a6fbe 6144#define size_t unsigned int
d0191583
JM
6145_ACEOF
6146
ec6a6fbe 6147fi
d0191583 6148
ec6a6fbe
AK
6149{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6150$as_echo_n "checking for mode_t... " >&6; }
6151if test "${ac_cv_type_mode_t+set}" = set; then
6152 $as_echo_n "(cached) " >&6
8106cdd5 6153else
ec6a6fbe
AK
6154 ac_cv_type_mode_t=no
6155cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6156/* confdefs.h. */
6157_ACEOF
6158cat confdefs.h >>conftest.$ac_ext
6159cat >>conftest.$ac_ext <<_ACEOF
6160/* end confdefs.h. */
6161$ac_includes_default
6162int
6163main ()
6164{
ec6a6fbe
AK
6165if (sizeof (mode_t))
6166 return 0;
ad6254c5
AK
6167 ;
6168 return 0;
6169}
6170_ACEOF
6171rm -f conftest.$ac_objext
7a197a62
AK
6172if { (ac_try="$ac_compile"
6173case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176esac
ec6a6fbe
AK
6177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6178$as_echo "$ac_try_echo") >&5
7a197a62 6179 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6180 ac_status=$?
8a2fc586
AK
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
ec6a6fbe 6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.$ac_objext; then
b145d876
ZK
6189 cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195$ac_includes_default
6196int
6197main ()
6198{
ec6a6fbe
AK
6199if (sizeof ((mode_t)))
6200 return 0;
ad6254c5
AK
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205rm -f conftest.$ac_objext
7a197a62
AK
6206if { (ac_try="$ac_compile"
6207case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210esac
ec6a6fbe
AK
6211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6212$as_echo "$ac_try_echo") >&5
7a197a62 6213 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6214 ac_status=$?
8a2fc586
AK
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
ec6a6fbe 6218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6223 :
6224else
6225 $as_echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 ac_cv_type_mode_t=yes
6229fi
6230
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6232else
ec6a6fbe 6233 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
ec6a6fbe 6236
80992638 6237fi
7a197a62
AK
6238
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6240fi
ec6a6fbe
AK
6241{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6242$as_echo "$ac_cv_type_mode_t" >&6; }
6243if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6244 :
6245else
80992638 6246
ad6254c5
AK
6247cat >>confdefs.h <<_ACEOF
6248#define mode_t int
6249_ACEOF
6250
6251fi
6252
ec6a6fbe
AK
6253{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6254$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6255if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6256 $as_echo_n "(cached) " >&6
ad6254c5
AK
6257else
6258 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6259/* confdefs.h. */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h. */
6264$ac_includes_default
6265int
6266main ()
6267{
6268static struct stat ac_aggr;
6269if (ac_aggr.st_rdev)
6270return 0;
6271 ;
6272 return 0;
6273}
6274_ACEOF
6275rm -f conftest.$ac_objext
7a197a62
AK
6276if { (ac_try="$ac_compile"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
ec6a6fbe
AK
6281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6282$as_echo "$ac_try_echo") >&5
7a197a62 6283 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6284 ac_status=$?
8a2fc586
AK
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
ec6a6fbe 6288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6293 ac_cv_member_struct_stat_st_rdev=yes
6294else
ec6a6fbe 6295 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
7a197a62 6298 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304$ac_includes_default
6305int
6306main ()
6307{
6308static struct stat ac_aggr;
6309if (sizeof ac_aggr.st_rdev)
6310return 0;
6311 ;
6312 return 0;
6313}
6314_ACEOF
6315rm -f conftest.$ac_objext
7a197a62
AK
6316if { (ac_try="$ac_compile"
6317case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320esac
ec6a6fbe
AK
6321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6322$as_echo "$ac_try_echo") >&5
7a197a62 6323 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6324 ac_status=$?
8a2fc586
AK
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
ec6a6fbe 6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6333 ac_cv_member_struct_stat_st_rdev=yes
6334else
ec6a6fbe 6335 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
7a197a62 6338 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6339fi
7a197a62
AK
6340
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6342fi
7a197a62
AK
6343
6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6345fi
ec6a6fbe
AK
6346{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6347$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6348if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6349
6350cat >>confdefs.h <<_ACEOF
6351#define HAVE_STRUCT_STAT_ST_RDEV 1
6352_ACEOF
6353
6354
ad6254c5
AK
6355fi
6356
ec6a6fbe
AK
6357{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6358$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6359if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6360 $as_echo_n "(cached) " >&6
ad6254c5
AK
6361else
6362 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h. */
6368#include <sys/types.h>
6369#include <time.h>
6370
6371int
6372main ()
6373{
25fbec5b
AK
6374struct tm tm;
6375 int *p = &tm.tm_sec;
ec6a6fbe 6376 return !p;
ad6254c5
AK
6377 ;
6378 return 0;
6379}
6380_ACEOF
6381rm -f conftest.$ac_objext
7a197a62
AK
6382if { (ac_try="$ac_compile"
6383case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386esac
ec6a6fbe
AK
6387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6388$as_echo "$ac_try_echo") >&5
7a197a62 6389 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6390 ac_status=$?
8a2fc586
AK
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
ec6a6fbe 6394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6395 (exit $ac_status); } && {
6396 test -z "$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6399 ac_cv_struct_tm=time.h
6400else
ec6a6fbe 6401 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
7a197a62 6404 ac_cv_struct_tm=sys/time.h
ad6254c5 6405fi
7a197a62
AK
6406
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6408fi
ec6a6fbe
AK
6409{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6410$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6411if test $ac_cv_struct_tm = sys/time.h; then
6412
6413cat >>confdefs.h <<\_ACEOF
6414#define TM_IN_SYS_TIME 1
6415_ACEOF
6416
6417fi
809fae91 6418
795ca3e5 6419
80992638 6420################################################################################
ad6254c5
AK
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
d0191583
JM
6435
6436
6437
6438for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6439 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6440 uname
ad6254c5 6441do
ec6a6fbe
AK
6442as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6443{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6444$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6445if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6446 $as_echo_n "(cached) " >&6
795ca3e5 6447else
ad6254c5 6448 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h. */
8a2fc586
AK
6454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6456#define $ac_func innocuous_$ac_func
6457
ad6254c5
AK
6458/* System header to define __stub macros and hopefully few prototypes,
6459 which can conflict with char $ac_func (); below.
6460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6461 <limits.h> exists even on freestanding compilers. */
8a2fc586 6462
ad6254c5
AK
6463#ifdef __STDC__
6464# include <limits.h>
6465#else
6466# include <assert.h>
6467#endif
8a2fc586
AK
6468
6469#undef $ac_func
6470
7a197a62
AK
6471/* Override any GCC internal prototype to avoid an error.
6472 Use char because int might match the return type of a GCC
6473 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6474#ifdef __cplusplus
6475extern "C"
ad6254c5 6476#endif
ad6254c5
AK
6477char $ac_func ();
6478/* The GNU C library defines this for functions which it implements
6479 to always fail with ENOSYS. Some functions are actually named
6480 something starting with __ and the normal name is an alias. */
7a197a62 6481#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6482choke me
ad6254c5
AK
6483#endif
6484
6485int
6486main ()
6487{
7a197a62 6488return $ac_func ();
ad6254c5
AK
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6494if { (ac_try="$ac_link"
6495case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498esac
ec6a6fbe
AK
6499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6500$as_echo "$ac_try_echo") >&5
7a197a62 6501 (eval "$ac_link") 2>conftest.er1
ad6254c5 6502 ac_status=$?
8a2fc586
AK
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
ec6a6fbe 6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
ec6a6fbe
AK
6510 } && test -s conftest$ac_exeext && {
6511 test "$cross_compiling" = yes ||
6512 $as_test_x conftest$ac_exeext
6513 }; then
fc54be10
AK
6514 eval "$as_ac_var=yes"
6515else
ec6a6fbe 6516 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6517sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 eval "$as_ac_var=no"
6520fi
6521
ec6a6fbe 6522rm -rf conftest.dSYM
25fbec5b 6523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6524 conftest$ac_exeext conftest.$ac_ext
6525fi
ec6a6fbe
AK
6526ac_res=`eval 'as_val=${'$as_ac_var'}
6527 $as_echo "$as_val"'`
6528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6529$as_echo "$ac_res" >&6; }
6530as_val=`eval 'as_val=${'$as_ac_var'}
6531 $as_echo "$as_val"'`
6532 if test "x$as_val" = x""yes; then
ad6254c5 6533 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6535_ACEOF
6536
6537else
ec6a6fbe
AK
6538 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6539$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6540 { (exit 1); exit 1; }; }
6541fi
6542done
795ca3e5 6543
a0f9708e
AK
6544
6545for ac_func in siginterrupt
6546do
6547as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6548{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6549$as_echo_n "checking for $ac_func... " >&6; }
6550if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6551 $as_echo_n "(cached) " >&6
6552else
6553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h. */
6559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6561#define $ac_func innocuous_$ac_func
6562
6563/* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char $ac_func (); below.
6565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6566 <limits.h> exists even on freestanding compilers. */
6567
6568#ifdef __STDC__
6569# include <limits.h>
6570#else
6571# include <assert.h>
6572#endif
6573
6574#undef $ac_func
6575
6576/* Override any GCC internal prototype to avoid an error.
6577 Use char because int might match the return type of a GCC
6578 builtin and then its argument prototype would still apply. */
6579#ifdef __cplusplus
6580extern "C"
6581#endif
6582char $ac_func ();
6583/* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586#if defined __stub_$ac_func || defined __stub___$ac_func
6587choke me
6588#endif
6589
6590int
6591main ()
6592{
6593return $ac_func ();
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (ac_try="$ac_link"
6600case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6603esac
6604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6605$as_echo "$ac_try_echo") >&5
6606 (eval "$ac_link") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest$ac_exeext && {
6616 test "$cross_compiling" = yes ||
6617 $as_test_x conftest$ac_exeext
6618 }; then
6619 eval "$as_ac_var=yes"
6620else
6621 $as_echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 eval "$as_ac_var=no"
6625fi
6626
6627rm -rf conftest.dSYM
6628rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6629 conftest$ac_exeext conftest.$ac_ext
6630fi
6631ac_res=`eval 'as_val=${'$as_ac_var'}
6632 $as_echo "$as_val"'`
6633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6634$as_echo "$ac_res" >&6; }
6635as_val=`eval 'as_val=${'$as_ac_var'}
6636 $as_echo "$as_val"'`
6637 if test "x$as_val" = x""yes; then
6638 cat >>confdefs.h <<_ACEOF
6639#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6640_ACEOF
6641
6642fi
6643done
6644
ad6254c5
AK
6645# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6646# for constant arguments. Useless!
ec6a6fbe
AK
6647{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6648$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6649if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6650 $as_echo_n "(cached) " >&6
ad6254c5
AK
6651else
6652 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6653/* confdefs.h. */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h. */
6658#include <alloca.h>
6659int
6660main ()
6661{
6662char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6663 if (p) return 0;
ad6254c5
AK
6664 ;
6665 return 0;
6666}
6667_ACEOF
6668rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6669if { (ac_try="$ac_link"
6670case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673esac
ec6a6fbe
AK
6674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6675$as_echo "$ac_try_echo") >&5
7a197a62 6676 (eval "$ac_link") 2>conftest.er1
ad6254c5 6677 ac_status=$?
8a2fc586
AK
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
ec6a6fbe 6681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
ec6a6fbe
AK
6685 } && test -s conftest$ac_exeext && {
6686 test "$cross_compiling" = yes ||
6687 $as_test_x conftest$ac_exeext
6688 }; then
ad6254c5
AK
6689 ac_cv_working_alloca_h=yes
6690else
ec6a6fbe 6691 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6692sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6693
7a197a62 6694 ac_cv_working_alloca_h=no
ad6254c5 6695fi
7a197a62 6696
ec6a6fbe 6697rm -rf conftest.dSYM
25fbec5b 6698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6699 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6700fi
ec6a6fbe
AK
6701{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6702$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6703if test $ac_cv_working_alloca_h = yes; then
6704
6705cat >>confdefs.h <<\_ACEOF
6706#define HAVE_ALLOCA_H 1
6707_ACEOF
6708
6709fi
6710
ec6a6fbe
AK
6711{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6712$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6713if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6714 $as_echo_n "(cached) " >&6
ad6254c5
AK
6715else
6716 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
6722#ifdef __GNUC__
6723# define alloca __builtin_alloca
6724#else
6725# ifdef _MSC_VER
6726# include <malloc.h>
6727# define alloca _alloca
6728# else
25fbec5b 6729# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6730# include <alloca.h>
6731# else
6732# ifdef _AIX
6733 #pragma alloca
6734# else
6735# ifndef alloca /* predefined by HP cc +Olibcalls */
6736char *alloca ();
6737# endif
6738# endif
6739# endif
6740# endif
6741#endif
6742
6743int
6744main ()
6745{
6746char *p = (char *) alloca (1);
7a197a62 6747 if (p) return 0;
ad6254c5
AK
6748 ;
6749 return 0;
6750}
6751_ACEOF
6752rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6753if { (ac_try="$ac_link"
6754case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757esac
ec6a6fbe
AK
6758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6759$as_echo "$ac_try_echo") >&5
7a197a62 6760 (eval "$ac_link") 2>conftest.er1
ad6254c5 6761 ac_status=$?
8a2fc586
AK
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
ec6a6fbe 6765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
ec6a6fbe
AK
6769 } && test -s conftest$ac_exeext && {
6770 test "$cross_compiling" = yes ||
6771 $as_test_x conftest$ac_exeext
6772 }; then
ad6254c5
AK
6773 ac_cv_func_alloca_works=yes
6774else
ec6a6fbe 6775 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
7a197a62 6778 ac_cv_func_alloca_works=no
ad6254c5 6779fi
7a197a62 6780
ec6a6fbe 6781rm -rf conftest.dSYM
25fbec5b 6782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6783 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6784fi
ec6a6fbe
AK
6785{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6786$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6787
6788if test $ac_cv_func_alloca_works = yes; then
6789
6790cat >>confdefs.h <<\_ACEOF
6791#define HAVE_ALLOCA 1
6792_ACEOF
6793
6794else
6795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6796# that cause trouble. Some versions do not even contain alloca or
6797# contain a buggy version. If you still want to use their alloca,
6798# use ar to extract alloca.o from them instead of compiling alloca.c.
6799
7a197a62 6800ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6801
6802cat >>confdefs.h <<\_ACEOF
6803#define C_ALLOCA 1
6804_ACEOF
6805
6806
ec6a6fbe
AK
6807{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6808$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6809if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6810 $as_echo_n "(cached) " >&6
ad6254c5
AK
6811else
6812 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6813/* confdefs.h. */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
6817/* end confdefs.h. */
7a197a62 6818#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6819webecray
6820#else
6821wenotbecray
6822#endif
6823
6824_ACEOF
795ca3e5 6825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6826 $EGREP "webecray" >/dev/null 2>&1; then
6827 ac_cv_os_cray=yes
6828else
6829 ac_cv_os_cray=no
795ca3e5
AK
6830fi
6831rm -f conftest*
6832
795ca3e5 6833fi
ec6a6fbe
AK
6834{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6835$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6836if test $ac_cv_os_cray = yes; then
6837 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6839{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6840$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6841if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6842 $as_echo_n "(cached) " >&6
ad6254c5
AK
6843else
6844 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6845/* confdefs.h. */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h. */
8a2fc586
AK
6850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6852#define $ac_func innocuous_$ac_func
6853
ad6254c5
AK
6854/* System header to define __stub macros and hopefully few prototypes,
6855 which can conflict with char $ac_func (); below.
6856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6857 <limits.h> exists even on freestanding compilers. */
8a2fc586 6858
ad6254c5
AK
6859#ifdef __STDC__
6860# include <limits.h>
6861#else
6862# include <assert.h>
6863#endif
8a2fc586
AK
6864
6865#undef $ac_func
6866
7a197a62
AK
6867/* Override any GCC internal prototype to avoid an error.
6868 Use char because int might match the return type of a GCC
6869 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6870#ifdef __cplusplus
6871extern "C"
ad6254c5 6872#endif
ad6254c5
AK
6873char $ac_func ();
6874/* The GNU C library defines this for functions which it implements
6875 to always fail with ENOSYS. Some functions are actually named
6876 something starting with __ and the normal name is an alias. */
7a197a62 6877#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6878choke me
ad6254c5
AK
6879#endif
6880
6881int
6882main ()
6883{
7a197a62 6884return $ac_func ();
ad6254c5
AK
6885 ;
6886 return 0;
6887}
6888_ACEOF
6889rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6890if { (ac_try="$ac_link"
6891case "(($ac_try" in
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6894esac
ec6a6fbe
AK
6895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6896$as_echo "$ac_try_echo") >&5
7a197a62 6897 (eval "$ac_link") 2>conftest.er1
ad6254c5 6898 ac_status=$?
8a2fc586
AK
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
ec6a6fbe 6902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
ec6a6fbe
AK
6906 } && test -s conftest$ac_exeext && {
6907 test "$cross_compiling" = yes ||
6908 $as_test_x conftest$ac_exeext
6909 }; then
ad6254c5
AK
6910 eval "$as_ac_var=yes"
6911else
ec6a6fbe 6912 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
7a197a62 6915 eval "$as_ac_var=no"
ad6254c5 6916fi
7a197a62 6917
ec6a6fbe 6918rm -rf conftest.dSYM
25fbec5b 6919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6920 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6921fi
ec6a6fbe
AK
6922ac_res=`eval 'as_val=${'$as_ac_var'}
6923 $as_echo "$as_val"'`
6924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6925$as_echo "$ac_res" >&6; }
6926as_val=`eval 'as_val=${'$as_ac_var'}
6927 $as_echo "$as_val"'`
6928 if test "x$as_val" = x""yes; then
80992638 6929
ad6254c5
AK
6930cat >>confdefs.h <<_ACEOF
6931#define CRAY_STACKSEG_END $ac_func
6932_ACEOF
6933
6934 break
6935fi
6936
6937 done
6938fi
6939
ec6a6fbe
AK
6940{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6941$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6942if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6943 $as_echo_n "(cached) " >&6
ad6254c5
AK
6944else
6945 if test "$cross_compiling" = yes; then
6946 ac_cv_c_stack_direction=0
6947else
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. */
7a197a62 6954$ac_includes_default
ad6254c5
AK
6955int
6956find_stack_direction ()
6957{
6958 static char *addr = 0;
6959 auto char dummy;
6960 if (addr == 0)
6961 {
6962 addr = &dummy;
6963 return find_stack_direction ();
6964 }
6965 else
6966 return (&dummy > addr) ? 1 : -1;
6967}
6968
6969int
6970main ()
6971{
7a197a62 6972 return find_stack_direction () < 0;
ad6254c5
AK
6973}
6974_ACEOF
6975rm -f conftest$ac_exeext
7a197a62
AK
6976if { (ac_try="$ac_link"
6977case "(($ac_try" in
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6980esac
ec6a6fbe
AK
6981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6982$as_echo "$ac_try_echo") >&5
7a197a62 6983 (eval "$ac_link") 2>&5
ad6254c5 6984 ac_status=$?
ec6a6fbe 6985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6987 { (case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990esac
ec6a6fbe
AK
6991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6992$as_echo "$ac_try_echo") >&5
7a197a62 6993 (eval "$ac_try") 2>&5
ad6254c5 6994 ac_status=$?
ec6a6fbe 6995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6996 (exit $ac_status); }; }; then
6997 ac_cv_c_stack_direction=1
6998else
ec6a6fbe
AK
6999 $as_echo "$as_me: program exited with status $ac_status" >&5
7000$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7001sed 's/^/| /' conftest.$ac_ext >&5
7002
7003( exit $ac_status )
7004ac_cv_c_stack_direction=-1
7005fi
ec6a6fbe 7006rm -rf conftest.dSYM
7a197a62 7007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7008fi
7a197a62
AK
7009
7010
ad6254c5 7011fi
ec6a6fbe
AK
7012{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7013$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7014
7015cat >>confdefs.h <<_ACEOF
7016#define STACK_DIRECTION $ac_cv_c_stack_direction
7017_ACEOF
7018
7019
7020fi
7021
ec6a6fbe
AK
7022{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7023$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7024if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7025 $as_echo_n "(cached) " >&6
ad6254c5
AK
7026else
7027 if test "$cross_compiling" = yes; then
7028 ac_cv_func_closedir_void=yes
7029else
7030 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7031/* confdefs.h. */
7032_ACEOF
7033cat confdefs.h >>conftest.$ac_ext
7034cat >>conftest.$ac_ext <<_ACEOF
7035/* end confdefs.h. */
7036$ac_includes_default
7037#include <$ac_header_dirent>
7038#ifndef __cplusplus
7039int closedir ();
7040#endif
7041
7042int
7043main ()
7044{
7a197a62 7045return closedir (opendir (".")) != 0;
ad6254c5
AK
7046 ;
7047 return 0;
7048}
7049_ACEOF
7050rm -f conftest$ac_exeext
7a197a62
AK
7051if { (ac_try="$ac_link"
7052case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055esac
ec6a6fbe
AK
7056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7057$as_echo "$ac_try_echo") >&5
7a197a62 7058 (eval "$ac_link") 2>&5
ad6254c5 7059 ac_status=$?
ec6a6fbe 7060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7062 { (case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065esac
ec6a6fbe
AK
7066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067$as_echo "$ac_try_echo") >&5
7a197a62 7068 (eval "$ac_try") 2>&5
ad6254c5 7069 ac_status=$?
ec6a6fbe 7070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7071 (exit $ac_status); }; }; then
7072 ac_cv_func_closedir_void=no
7073else
ec6a6fbe
AK
7074 $as_echo "$as_me: program exited with status $ac_status" >&5
7075$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
7078( exit $ac_status )
7079ac_cv_func_closedir_void=yes
7080fi
ec6a6fbe 7081rm -rf conftest.dSYM
7a197a62 7082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7083fi
7a197a62
AK
7084
7085
ad6254c5 7086fi
ec6a6fbe
AK
7087{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7088$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7089if test $ac_cv_func_closedir_void = yes; then
7090
7091cat >>confdefs.h <<\_ACEOF
7092#define CLOSEDIR_VOID 1
7093_ACEOF
7094
7095fi
7096
7097
7a197a62 7098for ac_header in vfork.h
ad6254c5 7099do
ec6a6fbe 7100as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7103$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7105 $as_echo_n "(cached) " >&6
ad6254c5 7106fi
ec6a6fbe
AK
7107ac_res=`eval 'as_val=${'$as_ac_Header'}
7108 $as_echo "$as_val"'`
7109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7110$as_echo "$ac_res" >&6; }
ad6254c5
AK
7111else
7112 # Is the header compilable?
ec6a6fbe
AK
7113{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7114$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7115cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7116/* confdefs.h. */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h. */
7121$ac_includes_default
7122#include <$ac_header>
7123_ACEOF
7124rm -f conftest.$ac_objext
7a197a62
AK
7125if { (ac_try="$ac_compile"
7126case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129esac
ec6a6fbe
AK
7130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7131$as_echo "$ac_try_echo") >&5
7a197a62 7132 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7133 ac_status=$?
8a2fc586
AK
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
ec6a6fbe 7137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7142 ac_header_compiler=yes
7143else
ec6a6fbe 7144 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7a197a62 7147 ac_header_compiler=no
ad6254c5 7148fi
7a197a62
AK
7149
7150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7151{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7152$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7153
7154# Is the header present?
ec6a6fbe
AK
7155{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7156$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7157cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7158/* confdefs.h. */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h. */
7163#include <$ac_header>
7164_ACEOF
7a197a62
AK
7165if { (ac_try="$ac_cpp conftest.$ac_ext"
7166case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169esac
ec6a6fbe
AK
7170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171$as_echo "$ac_try_echo") >&5
7a197a62 7172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
ec6a6fbe 7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7178 (exit $ac_status); } >/dev/null && {
7179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 }; then
ad6254c5
AK
7182 ac_header_preproc=yes
7183else
ec6a6fbe 7184 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 ac_header_preproc=no
7188fi
7a197a62 7189
ad6254c5 7190rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7191{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7192$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7193
7194# So? What about this header?
8a2fc586
AK
7195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7196 yes:no: )
ec6a6fbe
AK
7197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7198$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7200$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7201 ac_header_preproc=yes
ad6254c5 7202 ;;
8a2fc586 7203 no:yes:* )
ec6a6fbe
AK
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7205$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7207$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7209$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7211$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7213$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7215$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7216
ad6254c5
AK
7217 ;;
7218esac
ec6a6fbe
AK
7219{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7220$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7222 $as_echo_n "(cached) " >&6
ad6254c5 7223else
8a2fc586 7224 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7225fi
ec6a6fbe
AK
7226ac_res=`eval 'as_val=${'$as_ac_Header'}
7227 $as_echo "$as_val"'`
7228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7229$as_echo "$ac_res" >&6; }
ad6254c5 7230
795ca3e5 7231fi
ec6a6fbe
AK
7232as_val=`eval 'as_val=${'$as_ac_Header'}
7233 $as_echo "$as_val"'`
7234 if test "x$as_val" = x""yes; then
ad6254c5 7235 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7236#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7237_ACEOF
7238
7239fi
7240
7241done
795ca3e5 7242
ad6254c5
AK
7243
7244
7245for ac_func in fork vfork
7246do
ec6a6fbe
AK
7247as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7248{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7249$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7250if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7251 $as_echo_n "(cached) " >&6
795ca3e5 7252else
ad6254c5 7253 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7254/* confdefs.h. */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h. */
8a2fc586
AK
7259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7261#define $ac_func innocuous_$ac_func
7262
ad6254c5
AK
7263/* System header to define __stub macros and hopefully few prototypes,
7264 which can conflict with char $ac_func (); below.
7265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7266 <limits.h> exists even on freestanding compilers. */
8a2fc586 7267
ad6254c5
AK
7268#ifdef __STDC__
7269# include <limits.h>
7270#else
7271# include <assert.h>
795ca3e5 7272#endif
8a2fc586
AK
7273
7274#undef $ac_func
7275
7a197a62
AK
7276/* Override any GCC internal prototype to avoid an error.
7277 Use char because int might match the return type of a GCC
7278 builtin and then its argument prototype would still apply. */
795ca3e5 7279#ifdef __cplusplus
ad6254c5 7280extern "C"
ad6254c5 7281#endif
ad6254c5
AK
7282char $ac_func ();
7283/* The GNU C library defines this for functions which it implements
7284 to always fail with ENOSYS. Some functions are actually named
7285 something starting with __ and the normal name is an alias. */
7a197a62 7286#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7287choke me
795ca3e5
AK
7288#endif
7289
ad6254c5
AK
7290int
7291main ()
7292{
7a197a62 7293return $ac_func ();
ad6254c5
AK
7294 ;
7295 return 0;
7296}
7297_ACEOF
7298rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7299if { (ac_try="$ac_link"
7300case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303esac
ec6a6fbe
AK
7304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305$as_echo "$ac_try_echo") >&5
7a197a62 7306 (eval "$ac_link") 2>conftest.er1
ad6254c5 7307 ac_status=$?
8a2fc586
AK
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
ec6a6fbe 7311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
ec6a6fbe
AK
7315 } && test -s conftest$ac_exeext && {
7316 test "$cross_compiling" = yes ||
7317 $as_test_x conftest$ac_exeext
7318 }; then
ad6254c5 7319 eval "$as_ac_var=yes"
795ca3e5 7320else
ec6a6fbe 7321 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7322sed 's/^/| /' conftest.$ac_ext >&5
7323
7a197a62 7324 eval "$as_ac_var=no"
795ca3e5 7325fi
7a197a62 7326
ec6a6fbe 7327rm -rf conftest.dSYM
25fbec5b 7328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7329 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7330fi
ec6a6fbe
AK
7331ac_res=`eval 'as_val=${'$as_ac_var'}
7332 $as_echo "$as_val"'`
7333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7334$as_echo "$ac_res" >&6; }
7335as_val=`eval 'as_val=${'$as_ac_var'}
7336 $as_echo "$as_val"'`
7337 if test "x$as_val" = x""yes; then
ad6254c5 7338 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7339#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7340_ACEOF
7341
7342fi
7343done
7344
7345if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7346 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7347$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7348if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7349 $as_echo_n "(cached) " >&6
ad6254c5
AK
7350else
7351 if test "$cross_compiling" = yes; then
7352 ac_cv_func_fork_works=cross
7353else
7354 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
7360$ac_includes_default
7361int
7362main ()
7363{
7364
7365 /* By Ruediger Kuhlmann. */
7366 return fork () < 0;
7367
7368 ;
7369 return 0;
7370}
ad6254c5
AK
7371_ACEOF
7372rm -f conftest$ac_exeext
7a197a62
AK
7373if { (ac_try="$ac_link"
7374case "(($ac_try" in
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7377esac
ec6a6fbe
AK
7378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7379$as_echo "$ac_try_echo") >&5
7a197a62 7380 (eval "$ac_link") 2>&5
ad6254c5 7381 ac_status=$?
ec6a6fbe 7382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7384 { (case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7387esac
ec6a6fbe
AK
7388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7389$as_echo "$ac_try_echo") >&5
7a197a62 7390 (eval "$ac_try") 2>&5
ad6254c5 7391 ac_status=$?
ec6a6fbe 7392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7393 (exit $ac_status); }; }; then
7394 ac_cv_func_fork_works=yes
7395else
ec6a6fbe
AK
7396 $as_echo "$as_me: program exited with status $ac_status" >&5
7397$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400( exit $ac_status )
7401ac_cv_func_fork_works=no
7402fi
ec6a6fbe 7403rm -rf conftest.dSYM
7a197a62 7404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7405fi
7a197a62
AK
7406
7407
ad6254c5 7408fi
ec6a6fbe
AK
7409{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7410$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7411
7412else
7413 ac_cv_func_fork_works=$ac_cv_func_fork
7414fi
7415if test "x$ac_cv_func_fork_works" = xcross; then
7416 case $host in
7417 *-*-amigaos* | *-*-msdosdjgpp*)
7418 # Override, as these systems have only a dummy fork() stub
7419 ac_cv_func_fork_works=no
7420 ;;
7421 *)
7422 ac_cv_func_fork_works=yes
7423 ;;
7424 esac
ec6a6fbe
AK
7425 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7426$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7427fi
7428ac_cv_func_vfork_works=$ac_cv_func_vfork
7429if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7430 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7431$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7432if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7433 $as_echo_n "(cached) " >&6
ad6254c5
AK
7434else
7435 if test "$cross_compiling" = yes; then
7436 ac_cv_func_vfork_works=cross
7437else
7438 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7439/* confdefs.h. */
7440_ACEOF
7441cat confdefs.h >>conftest.$ac_ext
7442cat >>conftest.$ac_ext <<_ACEOF
7443/* end confdefs.h. */
7444/* Thanks to Paul Eggert for this test. */
7a197a62 7445$ac_includes_default
ad6254c5 7446#include <sys/wait.h>
25fbec5b 7447#ifdef HAVE_VFORK_H
ad6254c5
AK
7448# include <vfork.h>
7449#endif
7450/* On some sparc systems, changes by the child to local and incoming
7451 argument registers are propagated back to the parent. The compiler
7452 is told about this with #include <vfork.h>, but some compilers
7453 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7454 static variable whose address is put into a register that is
7455 clobbered by the vfork. */
7456static void
7457#ifdef __cplusplus
7458sparc_address_test (int arg)
7459# else
7460sparc_address_test (arg) int arg;
7461#endif
7462{
7463 static pid_t child;
7464 if (!child) {
7465 child = vfork ();
7466 if (child < 0) {
7467 perror ("vfork");
7468 _exit(2);
7469 }
7470 if (!child) {
7471 arg = getpid();
7472 write(-1, "", 0);
7473 _exit (arg);
7474 }
7475 }
7476}
7477
7478int
7479main ()
7480{
7481 pid_t parent = getpid ();
7482 pid_t child;
7483
7484 sparc_address_test (0);
7485
7486 child = vfork ();
7487
7488 if (child == 0) {
7489 /* Here is another test for sparc vfork register problems. This
7490 test uses lots of local variables, at least as many local
7491 variables as main has allocated so far including compiler
7492 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7493 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7494 reuse the register of parent for one of the local variables,
7495 since it will think that parent can't possibly be used any more
7496 in this routine. Assigning to the local variable will thus
7497 munge parent in the parent process. */
7498 pid_t
7499 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7500 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7501 /* Convince the compiler that p..p7 are live; otherwise, it might
7502 use the same hardware register for all 8 local variables. */
7503 if (p != p1 || p != p2 || p != p3 || p != p4
7504 || p != p5 || p != p6 || p != p7)
7505 _exit(1);
7506
7507 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7508 from child file descriptors. If the child closes a descriptor
7509 before it execs or exits, this munges the parent's descriptor
7510 as well. Test for this by closing stdout in the child. */
7511 _exit(close(fileno(stdout)) != 0);
7512 } else {
7513 int status;
7514 struct stat st;
7515
7516 while (wait(&status) != child)
7517 ;
7a197a62 7518 return (
ad6254c5
AK
7519 /* Was there some problem with vforking? */
7520 child < 0
7521
7522 /* Did the child fail? (This shouldn't happen.) */
7523 || status
7524
7525 /* Did the vfork/compiler bug occur? */
7526 || parent != getpid()
7527
7528 /* Did the file descriptor bug occur? */
7529 || fstat(fileno(stdout), &st) != 0
7530 );
7531 }
7532}
7533_ACEOF
7534rm -f conftest$ac_exeext
7a197a62
AK
7535if { (ac_try="$ac_link"
7536case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
ec6a6fbe
AK
7540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7541$as_echo "$ac_try_echo") >&5
7a197a62 7542 (eval "$ac_link") 2>&5
ad6254c5 7543 ac_status=$?
ec6a6fbe 7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7546 { (case "(($ac_try" in
7547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548 *) ac_try_echo=$ac_try;;
7549esac
ec6a6fbe
AK
7550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551$as_echo "$ac_try_echo") >&5
7a197a62 7552 (eval "$ac_try") 2>&5
ad6254c5 7553 ac_status=$?
ec6a6fbe 7554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7555 (exit $ac_status); }; }; then
7556 ac_cv_func_vfork_works=yes
7557else
ec6a6fbe
AK
7558 $as_echo "$as_me: program exited with status $ac_status" >&5
7559$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7560sed 's/^/| /' conftest.$ac_ext >&5
7561
7562( exit $ac_status )
7563ac_cv_func_vfork_works=no
7564fi
ec6a6fbe 7565rm -rf conftest.dSYM
7a197a62 7566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7567fi
7a197a62
AK
7568
7569
ad6254c5 7570fi
ec6a6fbe
AK
7571{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7572$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7573
7574fi;
7575if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7576 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7577 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7578$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7579fi
7580
7581if test "x$ac_cv_func_vfork_works" = xyes; then
7582
7583cat >>confdefs.h <<\_ACEOF
7584#define HAVE_WORKING_VFORK 1
7585_ACEOF
7586
7587else
7588
7589cat >>confdefs.h <<\_ACEOF
7590#define vfork fork
7591_ACEOF
7592
7593fi
7594if test "x$ac_cv_func_fork_works" = xyes; then
7595
7596cat >>confdefs.h <<\_ACEOF
7597#define HAVE_WORKING_FORK 1
7598_ACEOF
7599
7600fi
7601
ec6a6fbe
AK
7602{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7603$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7604if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7605 $as_echo_n "(cached) " >&6
ad6254c5
AK
7606else
7607 rm -f conftest.sym conftest.file
7608echo >conftest.file
7609if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7610 if test "$cross_compiling" = yes; then
7611 ac_cv_func_lstat_dereferences_slashed_symlink=no
7612else
7613 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7614/* confdefs.h. */
7615_ACEOF
7616cat confdefs.h >>conftest.$ac_ext
7617cat >>conftest.$ac_ext <<_ACEOF
7618/* end confdefs.h. */
7619$ac_includes_default
7620int
7621main ()
7622{
7623struct stat sbuf;
7624 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7625 That is better in the sense that it means we will not
7626 have to compile and use the lstat wrapper. */
7a197a62 7627 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7628 ;
7629 return 0;
7630}
7631_ACEOF
7632rm -f conftest$ac_exeext
7a197a62
AK
7633if { (ac_try="$ac_link"
7634case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637esac
ec6a6fbe
AK
7638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7639$as_echo "$ac_try_echo") >&5
7a197a62 7640 (eval "$ac_link") 2>&5
ad6254c5 7641 ac_status=$?
ec6a6fbe 7642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7644 { (case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647esac
ec6a6fbe
AK
7648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649$as_echo "$ac_try_echo") >&5
7a197a62 7650 (eval "$ac_try") 2>&5
ad6254c5 7651 ac_status=$?
ec6a6fbe 7652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7653 (exit $ac_status); }; }; then
7654 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7655else
ec6a6fbe
AK
7656 $as_echo "$as_me: program exited with status $ac_status" >&5
7657$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660( exit $ac_status )
7661ac_cv_func_lstat_dereferences_slashed_symlink=no
7662fi
ec6a6fbe 7663rm -rf conftest.dSYM
7a197a62 7664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7665fi
7a197a62
AK
7666
7667
ad6254c5
AK
7668else
7669 # If the `ln -s' command failed, then we probably don't even
7670 # have an lstat function.
7671 ac_cv_func_lstat_dereferences_slashed_symlink=no
7672fi
7673rm -f conftest.sym conftest.file
7674
7675fi
ec6a6fbe
AK
7676{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7677$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7678
7679test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7680
7681cat >>confdefs.h <<_ACEOF
7682#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7683_ACEOF
7684
7685
7686if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7687 case " $LIBOBJS " in
8a2fc586 7688 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7689 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7690 ;;
8a2fc586
AK
7691esac
7692
ad6254c5
AK
7693fi
7694
ec6a6fbe
AK
7695{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7696$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7697if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7698 $as_echo_n "(cached) " >&6
ad6254c5
AK
7699else
7700 if test "$cross_compiling" = yes; then
7701 ac_cv_func_lstat_empty_string_bug=yes
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{
7713struct stat sbuf;
7a197a62 7714 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest$ac_exeext
7a197a62
AK
7720if { (ac_try="$ac_link"
7721case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724esac
ec6a6fbe
AK
7725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7726$as_echo "$ac_try_echo") >&5
7a197a62 7727 (eval "$ac_link") 2>&5
ad6254c5 7728 ac_status=$?
ec6a6fbe 7729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7731 { (case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734esac
ec6a6fbe
AK
7735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736$as_echo "$ac_try_echo") >&5
7a197a62 7737 (eval "$ac_try") 2>&5
ad6254c5 7738 ac_status=$?
ec6a6fbe 7739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7740 (exit $ac_status); }; }; then
7a197a62 7741 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7742else
ec6a6fbe
AK
7743 $as_echo "$as_me: program exited with status $ac_status" >&5
7744$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7745sed 's/^/| /' conftest.$ac_ext >&5
7746
7747( exit $ac_status )
7a197a62 7748ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7749fi
ec6a6fbe 7750rm -rf conftest.dSYM
7a197a62 7751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7752fi
7a197a62
AK
7753
7754
ad6254c5 7755fi
ec6a6fbe
AK
7756{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7757$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7758if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7759 case " $LIBOBJS " in
8a2fc586 7760 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7761 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7762 ;;
8a2fc586
AK
7763esac
7764
ad6254c5
AK
7765
7766cat >>confdefs.h <<_ACEOF
7767#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7768_ACEOF
7769
7770fi
7771
7772
7773for ac_header in stdlib.h
7774do
ec6a6fbe 7775as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7778$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7780 $as_echo_n "(cached) " >&6
ad6254c5 7781fi
ec6a6fbe
AK
7782ac_res=`eval 'as_val=${'$as_ac_Header'}
7783 $as_echo "$as_val"'`
7784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7785$as_echo "$ac_res" >&6; }
ad6254c5
AK
7786else
7787 # Is the header compilable?
ec6a6fbe
AK
7788{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7789$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7790cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
7796$ac_includes_default
7797#include <$ac_header>
7798_ACEOF
7799rm -f conftest.$ac_objext
7a197a62
AK
7800if { (ac_try="$ac_compile"
7801case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
ec6a6fbe
AK
7805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7806$as_echo "$ac_try_echo") >&5
7a197a62 7807 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7808 ac_status=$?
8a2fc586
AK
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
ec6a6fbe 7812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7817 ac_header_compiler=yes
7818else
ec6a6fbe 7819 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
7a197a62 7822 ac_header_compiler=no
ad6254c5 7823fi
7a197a62
AK
7824
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7826{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7827$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7828
7829# Is the header present?
ec6a6fbe
AK
7830{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7831$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7832cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7833/* confdefs.h. */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h. */
7838#include <$ac_header>
7839_ACEOF
7a197a62
AK
7840if { (ac_try="$ac_cpp conftest.$ac_ext"
7841case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
ec6a6fbe
AK
7845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7846$as_echo "$ac_try_echo") >&5
7a197a62 7847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
ec6a6fbe 7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7853 (exit $ac_status); } >/dev/null && {
7854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 }; then
ad6254c5
AK
7857 ac_header_preproc=yes
7858else
ec6a6fbe 7859 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7860sed 's/^/| /' conftest.$ac_ext >&5
7861
7862 ac_header_preproc=no
7863fi
7a197a62 7864
ad6254c5 7865rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7866{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7867$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7868
7869# So? What about this header?
8a2fc586
AK
7870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7871 yes:no: )
ec6a6fbe
AK
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7873$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7875$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7876 ac_header_preproc=yes
ad6254c5 7877 ;;
8a2fc586 7878 no:yes:* )
ec6a6fbe
AK
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7880$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7882$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7884$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7886$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7888$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7890$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7891
ad6254c5
AK
7892 ;;
7893esac
ec6a6fbe
AK
7894{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7895$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7897 $as_echo_n "(cached) " >&6
ad6254c5 7898else
8a2fc586 7899 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7900fi
ec6a6fbe
AK
7901ac_res=`eval 'as_val=${'$as_ac_Header'}
7902 $as_echo "$as_val"'`
7903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7904$as_echo "$ac_res" >&6; }
ad6254c5
AK
7905
7906fi
ec6a6fbe
AK
7907as_val=`eval 'as_val=${'$as_ac_Header'}
7908 $as_echo "$as_val"'`
7909 if test "x$as_val" = x""yes; then
ad6254c5 7910 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7911#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7912_ACEOF
7913
7914fi
7915
7916done
7917
ec6a6fbe
AK
7918{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7919$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7920if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7921 $as_echo_n "(cached) " >&6
ad6254c5
AK
7922else
7923 if test "$cross_compiling" = yes; then
7924 ac_cv_func_malloc_0_nonnull=no
7925else
7926 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7927/* confdefs.h. */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h. */
25fbec5b 7932#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7933# include <stdlib.h>
7934#else
7935char *malloc ();
7936#endif
7937
7938int
7939main ()
7940{
7a197a62 7941return ! malloc (0);
ad6254c5
AK
7942 ;
7943 return 0;
7944}
7945_ACEOF
7946rm -f conftest$ac_exeext
7a197a62
AK
7947if { (ac_try="$ac_link"
7948case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951esac
ec6a6fbe
AK
7952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7953$as_echo "$ac_try_echo") >&5
7a197a62 7954 (eval "$ac_link") 2>&5
ad6254c5 7955 ac_status=$?
ec6a6fbe 7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7958 { (case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961esac
ec6a6fbe
AK
7962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7963$as_echo "$ac_try_echo") >&5
7a197a62 7964 (eval "$ac_try") 2>&5
ad6254c5 7965 ac_status=$?
ec6a6fbe 7966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7967 (exit $ac_status); }; }; then
7968 ac_cv_func_malloc_0_nonnull=yes
7969else
ec6a6fbe
AK
7970 $as_echo "$as_me: program exited with status $ac_status" >&5
7971$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974( exit $ac_status )
7975ac_cv_func_malloc_0_nonnull=no
7976fi
ec6a6fbe 7977rm -rf conftest.dSYM
7a197a62 7978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7979fi
7a197a62
AK
7980
7981
ad6254c5 7982fi
ec6a6fbe
AK
7983{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7984$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7985if test $ac_cv_func_malloc_0_nonnull = yes; then
7986
7987cat >>confdefs.h <<\_ACEOF
7988#define HAVE_MALLOC 1
7989_ACEOF
7990
7991else
7992 cat >>confdefs.h <<\_ACEOF
7993#define HAVE_MALLOC 0
7994_ACEOF
7995
7a197a62 7996 case " $LIBOBJS " in
8a2fc586 7997 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7998 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7999 ;;
8a2fc586
AK
8000esac
8001
ad6254c5
AK
8002
8003cat >>confdefs.h <<\_ACEOF
8004#define malloc rpl_malloc
8005_ACEOF
8006
8007fi
8008
8009
8010
ec6a6fbe
AK
8011{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8012$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8013if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8014 $as_echo_n "(cached) " >&6
ad6254c5
AK
8015else
8016 if test "$cross_compiling" = yes; then
8017 ac_cv_func_memcmp_working=no
8018else
8019 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8a2fc586 8025$ac_includes_default
ad6254c5
AK
8026int
8027main ()
8028{
8029
8030 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8031 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8032 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8033 return 1;
ad6254c5
AK
8034
8035 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8036 or more and with at least one buffer not starting on a 4-byte boundary.
8037 William Lewis provided this test program. */
8038 {
8039 char foo[21];
8040 char bar[21];
8041 int i;
8042 for (i = 0; i < 4; i++)
8043 {
8a2fc586
AK
8044 char *a = foo + i;
8045 char *b = bar + i;
8046 strcpy (a, "--------01111111");
8047 strcpy (b, "--------10000000");
8048 if (memcmp (a, b, 16) >= 0)
7a197a62 8049 return 1;
ad6254c5 8050 }
7a197a62 8051 return 0;
ad6254c5
AK
8052 }
8053
8054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest$ac_exeext
7a197a62
AK
8059if { (ac_try="$ac_link"
8060case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
ec6a6fbe
AK
8064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8065$as_echo "$ac_try_echo") >&5
7a197a62 8066 (eval "$ac_link") 2>&5
ad6254c5 8067 ac_status=$?
ec6a6fbe 8068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073esac
ec6a6fbe
AK
8074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8075$as_echo "$ac_try_echo") >&5
7a197a62 8076 (eval "$ac_try") 2>&5
ad6254c5 8077 ac_status=$?
ec6a6fbe 8078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8079 (exit $ac_status); }; }; then
8080 ac_cv_func_memcmp_working=yes
8081else
ec6a6fbe
AK
8082 $as_echo "$as_me: program exited with status $ac_status" >&5
8083$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8084sed 's/^/| /' conftest.$ac_ext >&5
8085
8086( exit $ac_status )
8087ac_cv_func_memcmp_working=no
8088fi
ec6a6fbe 8089rm -rf conftest.dSYM
7a197a62 8090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8091fi
7a197a62
AK
8092
8093
ad6254c5 8094fi
ec6a6fbe
AK
8095{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8096$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8097test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8098 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8099 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8100 ;;
8a2fc586
AK
8101esac
8102
ad6254c5
AK
8103
8104
8105
8106for ac_header in stdlib.h unistd.h
8107do
ec6a6fbe 8108as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8111$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8113 $as_echo_n "(cached) " >&6
ad6254c5 8114fi
ec6a6fbe
AK
8115ac_res=`eval 'as_val=${'$as_ac_Header'}
8116 $as_echo "$as_val"'`
8117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8118$as_echo "$ac_res" >&6; }
ad6254c5
AK
8119else
8120 # Is the header compilable?
ec6a6fbe
AK
8121{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8122$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8123cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
8129$ac_includes_default
8130#include <$ac_header>
8131_ACEOF
8132rm -f conftest.$ac_objext
7a197a62
AK
8133if { (ac_try="$ac_compile"
8134case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137esac
ec6a6fbe
AK
8138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8139$as_echo "$ac_try_echo") >&5
7a197a62 8140 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8141 ac_status=$?
8a2fc586
AK
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
ec6a6fbe 8145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8150 ac_header_compiler=yes
8151else
ec6a6fbe 8152 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
7a197a62 8155 ac_header_compiler=no
ad6254c5 8156fi
7a197a62
AK
8157
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8159{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8160$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8161
8162# Is the header present?
ec6a6fbe
AK
8163{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8164$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8165cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8166/* confdefs.h. */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h. */
8171#include <$ac_header>
8172_ACEOF
7a197a62
AK
8173if { (ac_try="$ac_cpp conftest.$ac_ext"
8174case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
ec6a6fbe
AK
8178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179$as_echo "$ac_try_echo") >&5
7a197a62 8180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
ec6a6fbe 8185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8186 (exit $ac_status); } >/dev/null && {
8187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 }; then
ad6254c5
AK
8190 ac_header_preproc=yes
8191else
ec6a6fbe 8192 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_header_preproc=no
8196fi
7a197a62 8197
ad6254c5 8198rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8199{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8200$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8201
8202# So? What about this header?
8a2fc586
AK
8203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8204 yes:no: )
ec6a6fbe
AK
8205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8206$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8208$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8209 ac_header_preproc=yes
ad6254c5 8210 ;;
8a2fc586 8211 no:yes:* )
ec6a6fbe
AK
8212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8213$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8215$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8217$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8219$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8221$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8223$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8224
ad6254c5
AK
8225 ;;
8226esac
ec6a6fbe
AK
8227{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8228$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8230 $as_echo_n "(cached) " >&6
ad6254c5 8231else
8a2fc586 8232 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8233fi
ec6a6fbe
AK
8234ac_res=`eval 'as_val=${'$as_ac_Header'}
8235 $as_echo "$as_val"'`
8236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8237$as_echo "$ac_res" >&6; }
ad6254c5
AK
8238
8239fi
ec6a6fbe
AK
8240as_val=`eval 'as_val=${'$as_ac_Header'}
8241 $as_echo "$as_val"'`
8242 if test "x$as_val" = x""yes; then
ad6254c5 8243 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8245_ACEOF
8246
8247fi
8248
8249done
8250
8251
8252for ac_func in getpagesize
8253do
ec6a6fbe
AK
8254as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8256$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8257if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8258 $as_echo_n "(cached) " >&6
ad6254c5
AK
8259else
8260 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8261/* confdefs.h. */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h. */
8a2fc586
AK
8266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8268#define $ac_func innocuous_$ac_func
8269
ad6254c5
AK
8270/* System header to define __stub macros and hopefully few prototypes,
8271 which can conflict with char $ac_func (); below.
8272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8273 <limits.h> exists even on freestanding compilers. */
8a2fc586 8274
ad6254c5
AK
8275#ifdef __STDC__
8276# include <limits.h>
8277#else
8278# include <assert.h>
8279#endif
8a2fc586
AK
8280
8281#undef $ac_func
8282
7a197a62
AK
8283/* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8286#ifdef __cplusplus
8287extern "C"
ad6254c5 8288#endif
ad6254c5
AK
8289char $ac_func ();
8290/* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
7a197a62 8293#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8294choke me
ad6254c5
AK
8295#endif
8296
8297int
8298main ()
8299{
7a197a62 8300return $ac_func ();
ad6254c5
AK
8301 ;
8302 return 0;
8303}
8304_ACEOF
8305rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8306if { (ac_try="$ac_link"
8307case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310esac
ec6a6fbe
AK
8311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8312$as_echo "$ac_try_echo") >&5
7a197a62 8313 (eval "$ac_link") 2>conftest.er1
ad6254c5 8314 ac_status=$?
8a2fc586
AK
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
ec6a6fbe 8318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
ec6a6fbe
AK
8322 } && test -s conftest$ac_exeext && {
8323 test "$cross_compiling" = yes ||
8324 $as_test_x conftest$ac_exeext
8325 }; then
ad6254c5
AK
8326 eval "$as_ac_var=yes"
8327else
ec6a6fbe 8328 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
7a197a62 8331 eval "$as_ac_var=no"
ad6254c5 8332fi
7a197a62 8333
ec6a6fbe 8334rm -rf conftest.dSYM
25fbec5b 8335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8336 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8337fi
ec6a6fbe
AK
8338ac_res=`eval 'as_val=${'$as_ac_var'}
8339 $as_echo "$as_val"'`
8340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8341$as_echo "$ac_res" >&6; }
8342as_val=`eval 'as_val=${'$as_ac_var'}
8343 $as_echo "$as_val"'`
8344 if test "x$as_val" = x""yes; then
ad6254c5 8345 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8346#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8347_ACEOF
8348
8349fi
8350done
8351
ec6a6fbe
AK
8352{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8353$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8354if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8355 $as_echo_n "(cached) " >&6
ad6254c5
AK
8356else
8357 if test "$cross_compiling" = yes; then
8358 ac_cv_func_mmap_fixed_mapped=no
8359else
8360 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8361/* confdefs.h. */
8362_ACEOF
8363cat confdefs.h >>conftest.$ac_ext
8364cat >>conftest.$ac_ext <<_ACEOF
8365/* end confdefs.h. */
8366$ac_includes_default
8367/* malloc might have been renamed as rpl_malloc. */
8368#undef malloc
8369
8370/* Thanks to Mike Haertel and Jim Avera for this test.
8371 Here is a matrix of mmap possibilities:
8372 mmap private not fixed
8373 mmap private fixed at somewhere currently unmapped
8374 mmap private fixed at somewhere already mapped
8375 mmap shared not fixed
8376 mmap shared fixed at somewhere currently unmapped
8377 mmap shared fixed at somewhere already mapped
8378 For private mappings, we should verify that changes cannot be read()
8379 back from the file, nor mmap's back from the file at a different
8380 address. (There have been systems where private was not correctly
8381 implemented like the infamous i386 svr4.0, and systems where the
8382 VM page cache was not coherent with the file system buffer cache
8383 like early versions of FreeBSD and possibly contemporary NetBSD.)
8384 For shared mappings, we should conversely verify that changes get
8385 propagated back to all the places they're supposed to be.
8386
8387 Grep wants private fixed already mapped.
8388 The main things grep needs to know about mmap are:
8389 * does it exist and is it safe to write into the mmap'd area
8390 * how to use it (BSD variants) */
8391
8392#include <fcntl.h>
8393#include <sys/mman.h>
8394
25fbec5b 8395#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8396char *malloc ();
8397#endif
8398
8399/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8400#ifndef HAVE_GETPAGESIZE
ad6254c5 8401/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8402# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8403# define HAVE_SYS_PARAM_H 1
8404# endif
8405
8406# ifdef _SC_PAGESIZE
8407# define getpagesize() sysconf(_SC_PAGESIZE)
8408# else /* no _SC_PAGESIZE */
25fbec5b 8409# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8410# include <sys/param.h>
8411# ifdef EXEC_PAGESIZE
8412# define getpagesize() EXEC_PAGESIZE
8413# else /* no EXEC_PAGESIZE */
8414# ifdef NBPG
8415# define getpagesize() NBPG * CLSIZE
8416# ifndef CLSIZE
8417# define CLSIZE 1
8418# endif /* no CLSIZE */
8419# else /* no NBPG */
8420# ifdef NBPC
8421# define getpagesize() NBPC
8422# else /* no NBPC */
8423# ifdef PAGESIZE
8424# define getpagesize() PAGESIZE
8425# endif /* PAGESIZE */
8426# endif /* no NBPC */
8427# endif /* no NBPG */
8428# endif /* no EXEC_PAGESIZE */
8429# else /* no HAVE_SYS_PARAM_H */
8430# define getpagesize() 8192 /* punt totally */
8431# endif /* no HAVE_SYS_PARAM_H */
8432# endif /* no _SC_PAGESIZE */
8433
8434#endif /* no HAVE_GETPAGESIZE */
8435
8436int
8437main ()
8438{
8439 char *data, *data2, *data3;
8440 int i, pagesize;
8441 int fd;
8442
8443 pagesize = getpagesize ();
8444
8445 /* First, make a file with some known garbage in it. */
8446 data = (char *) malloc (pagesize);
8447 if (!data)
7a197a62 8448 return 1;
ad6254c5
AK
8449 for (i = 0; i < pagesize; ++i)
8450 *(data + i) = rand ();
8451 umask (0);
8452 fd = creat ("conftest.mmap", 0600);
8453 if (fd < 0)
7a197a62 8454 return 1;
ad6254c5 8455 if (write (fd, data, pagesize) != pagesize)
7a197a62 8456 return 1;
ad6254c5
AK
8457 close (fd);
8458
8459 /* Next, try to mmap the file at a fixed address which already has
8460 something else allocated at it. If we can, also make sure that
8461 we see the same garbage. */
8462 fd = open ("conftest.mmap", O_RDWR);
8463 if (fd < 0)
7a197a62 8464 return 1;
ad6254c5
AK
8465 data2 = (char *) malloc (2 * pagesize);
8466 if (!data2)
7a197a62
AK
8467 return 1;
8468 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8469 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8470 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8471 return 1;
ad6254c5
AK
8472 for (i = 0; i < pagesize; ++i)
8473 if (*(data + i) != *(data2 + i))
7a197a62 8474 return 1;
ad6254c5
AK
8475
8476 /* Finally, make sure that changes to the mapped area do not
8477 percolate back to the file as seen by read(). (This is a bug on
8478 some variants of i386 svr4.0.) */
8479 for (i = 0; i < pagesize; ++i)
8480 *(data2 + i) = *(data2 + i) + 1;
8481 data3 = (char *) malloc (pagesize);
8482 if (!data3)
7a197a62 8483 return 1;
ad6254c5 8484 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8485 return 1;
ad6254c5
AK
8486 for (i = 0; i < pagesize; ++i)
8487 if (*(data + i) != *(data3 + i))
7a197a62 8488 return 1;
ad6254c5 8489 close (fd);
7a197a62 8490 return 0;
ad6254c5
AK
8491}
8492_ACEOF
8493rm -f conftest$ac_exeext
7a197a62
AK
8494if { (ac_try="$ac_link"
8495case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498esac
ec6a6fbe
AK
8499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8500$as_echo "$ac_try_echo") >&5
7a197a62 8501 (eval "$ac_link") 2>&5
ad6254c5 8502 ac_status=$?
ec6a6fbe 8503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508esac
ec6a6fbe
AK
8509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8510$as_echo "$ac_try_echo") >&5
7a197a62 8511 (eval "$ac_try") 2>&5
ad6254c5 8512 ac_status=$?
ec6a6fbe 8513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8514 (exit $ac_status); }; }; then
8515 ac_cv_func_mmap_fixed_mapped=yes
8516else
ec6a6fbe
AK
8517 $as_echo "$as_me: program exited with status $ac_status" >&5
8518$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8519sed 's/^/| /' conftest.$ac_ext >&5
8520
8521( exit $ac_status )
8522ac_cv_func_mmap_fixed_mapped=no
8523fi
ec6a6fbe 8524rm -rf conftest.dSYM
7a197a62 8525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8526fi
7a197a62
AK
8527
8528
ad6254c5 8529fi
ec6a6fbe
AK
8530{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8531$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8532if test $ac_cv_func_mmap_fixed_mapped = yes; then
8533
8534cat >>confdefs.h <<\_ACEOF
8535#define HAVE_MMAP 1
8536_ACEOF
8537
8538fi
8539rm -f conftest.mmap
8540
ec6a6fbe
AK
8541{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8542$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8543if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8544 $as_echo_n "(cached) " >&6
ad6254c5
AK
8545else
8546 if test "$cross_compiling" = yes; then
8547 ac_cv_func_stat_empty_string_bug=yes
8548else
8549 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555$ac_includes_default
8556int
8557main ()
8558{
8559struct stat sbuf;
7a197a62 8560 return stat ("", &sbuf) == 0;
ad6254c5
AK
8561 ;
8562 return 0;
8563}
8564_ACEOF
8565rm -f conftest$ac_exeext
7a197a62
AK
8566if { (ac_try="$ac_link"
8567case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570esac
ec6a6fbe
AK
8571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8572$as_echo "$ac_try_echo") >&5
7a197a62 8573 (eval "$ac_link") 2>&5
ad6254c5 8574 ac_status=$?
ec6a6fbe 8575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580esac
ec6a6fbe
AK
8581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8582$as_echo "$ac_try_echo") >&5
7a197a62 8583 (eval "$ac_try") 2>&5
ad6254c5 8584 ac_status=$?
ec6a6fbe 8585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8586 (exit $ac_status); }; }; then
7a197a62 8587 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8588else
ec6a6fbe
AK
8589 $as_echo "$as_me: program exited with status $ac_status" >&5
8590$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
8593( exit $ac_status )
7a197a62 8594ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8595fi
ec6a6fbe 8596rm -rf conftest.dSYM
7a197a62 8597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8598fi
7a197a62
AK
8599
8600
ad6254c5 8601fi
ec6a6fbe
AK
8602{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8603$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8604if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8605 case " $LIBOBJS " in
8a2fc586 8606 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8607 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8608 ;;
8a2fc586
AK
8609esac
8610
ad6254c5
AK
8611
8612cat >>confdefs.h <<_ACEOF
8613#define HAVE_STAT_EMPTY_STRING_BUG 1
8614_ACEOF
8615
8616fi
8617
ec6a6fbe
AK
8618{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8619$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8620if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8621 $as_echo_n "(cached) " >&6
ad6254c5
AK
8622else
8623 if test "$cross_compiling" = yes; then
8624 ac_cv_func_strtod=no
8625else
8626 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8627/* confdefs.h. */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h. */
8632
7a197a62
AK
8633$ac_includes_default
8634#ifndef strtod
ad6254c5 8635double strtod ();
7a197a62 8636#endif
ad6254c5
AK
8637int
8638main()
8639{
8640 {
8641 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8642 char *string = " +69";
8643 char *term;
8644 double value;
8645 value = strtod (string, &term);
8646 if (value != 69 || term != (string + 4))
7a197a62 8647 return 1;
ad6254c5
AK
8648 }
8649
8650 {
8651 /* Under Solaris 2.4, strtod returns the wrong value for the
8652 terminating character under some conditions. */
8653 char *string = "NaN";
8654 char *term;
8655 strtod (string, &term);
8656 if (term != string && *(term - 1) == 0)
7a197a62 8657 return 1;
ad6254c5 8658 }
7a197a62 8659 return 0;
ad6254c5
AK
8660}
8661
8662_ACEOF
8663rm -f conftest$ac_exeext
7a197a62
AK
8664if { (ac_try="$ac_link"
8665case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668esac
ec6a6fbe
AK
8669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8670$as_echo "$ac_try_echo") >&5
7a197a62 8671 (eval "$ac_link") 2>&5
ad6254c5 8672 ac_status=$?
ec6a6fbe 8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8675 { (case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8678esac
ec6a6fbe
AK
8679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8680$as_echo "$ac_try_echo") >&5
7a197a62 8681 (eval "$ac_try") 2>&5
ad6254c5 8682 ac_status=$?
ec6a6fbe 8683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8684 (exit $ac_status); }; }; then
8685 ac_cv_func_strtod=yes
8686else
ec6a6fbe
AK
8687 $as_echo "$as_me: program exited with status $ac_status" >&5
8688$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8689sed 's/^/| /' conftest.$ac_ext >&5
8690
8691( exit $ac_status )
8692ac_cv_func_strtod=no
8693fi
ec6a6fbe 8694rm -rf conftest.dSYM
7a197a62 8695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8696fi
7a197a62
AK
8697
8698
ad6254c5 8699fi
ec6a6fbe
AK
8700{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8701$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8702if test $ac_cv_func_strtod = no; then
7a197a62 8703 case " $LIBOBJS " in
8a2fc586 8704 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8705 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8706 ;;
8a2fc586
AK
8707esac
8708
ec6a6fbe
AK
8709{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8710$as_echo_n "checking for pow... " >&6; }
ad6254c5 8711if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8712 $as_echo_n "(cached) " >&6
ad6254c5
AK
8713else
8714 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8715/* confdefs.h. */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h. */
8a2fc586
AK
8720/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8722#define pow innocuous_pow
8723
ad6254c5
AK
8724/* System header to define __stub macros and hopefully few prototypes,
8725 which can conflict with char pow (); below.
8726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8727 <limits.h> exists even on freestanding compilers. */
8a2fc586 8728
ad6254c5
AK
8729#ifdef __STDC__
8730# include <limits.h>
8731#else
8732# include <assert.h>
8733#endif
8a2fc586
AK
8734
8735#undef pow
8736
7a197a62
AK
8737/* Override any GCC internal prototype to avoid an error.
8738 Use char because int might match the return type of a GCC
8739 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8740#ifdef __cplusplus
8741extern "C"
ad6254c5 8742#endif
ad6254c5
AK
8743char pow ();
8744/* The GNU C library defines this for functions which it implements
8745 to always fail with ENOSYS. Some functions are actually named
8746 something starting with __ and the normal name is an alias. */
7a197a62 8747#if defined __stub_pow || defined __stub___pow
ad6254c5 8748choke me
ad6254c5
AK
8749#endif
8750
8751int
8752main ()
8753{
7a197a62 8754return pow ();
ad6254c5
AK
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8760if { (ac_try="$ac_link"
8761case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764esac
ec6a6fbe
AK
8765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8766$as_echo "$ac_try_echo") >&5
7a197a62 8767 (eval "$ac_link") 2>conftest.er1
ad6254c5 8768 ac_status=$?
8a2fc586
AK
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
ec6a6fbe 8772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
ec6a6fbe
AK
8776 } && test -s conftest$ac_exeext && {
8777 test "$cross_compiling" = yes ||
8778 $as_test_x conftest$ac_exeext
8779 }; then
ad6254c5
AK
8780 ac_cv_func_pow=yes
8781else
ec6a6fbe 8782 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8783sed 's/^/| /' conftest.$ac_ext >&5
8784
7a197a62 8785 ac_cv_func_pow=no
ad6254c5 8786fi
7a197a62 8787
ec6a6fbe 8788rm -rf conftest.dSYM
25fbec5b 8789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8790 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8791fi
ec6a6fbe
AK
8792{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8793$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8794
8795if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8796 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8797$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8798if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8799 $as_echo_n "(cached) " >&6
ad6254c5
AK
8800else
8801 ac_check_lib_save_LIBS=$LIBS
8802LIBS="-lm $LIBS"
8803cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8804/* confdefs.h. */
8805_ACEOF
8806cat confdefs.h >>conftest.$ac_ext
8807cat >>conftest.$ac_ext <<_ACEOF
8808/* end confdefs.h. */
8809
7a197a62
AK
8810/* Override any GCC internal prototype to avoid an error.
8811 Use char because int might match the return type of a GCC
8812 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8813#ifdef __cplusplus
8814extern "C"
8815#endif
ad6254c5
AK
8816char pow ();
8817int
8818main ()
8819{
7a197a62 8820return pow ();
ad6254c5
AK
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825rm -f conftest.$ac_objext 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>conftest.er1
ad6254c5 8834 ac_status=$?
8a2fc586
AK
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
ec6a6fbe 8838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8839 (exit $ac_status); } && {
8840 test -z "$ac_c_werror_flag" ||
8841 test ! -s conftest.err
ec6a6fbe
AK
8842 } && test -s conftest$ac_exeext && {
8843 test "$cross_compiling" = yes ||
8844 $as_test_x conftest$ac_exeext
8845 }; then
ad6254c5
AK
8846 ac_cv_lib_m_pow=yes
8847else
ec6a6fbe 8848 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8849sed 's/^/| /' conftest.$ac_ext >&5
8850
7a197a62 8851 ac_cv_lib_m_pow=no
ad6254c5 8852fi
7a197a62 8853
ec6a6fbe 8854rm -rf conftest.dSYM
25fbec5b 8855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8856 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8857LIBS=$ac_check_lib_save_LIBS
d0191583 8858fi
ec6a6fbe
AK
8859{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8860$as_echo "$ac_cv_lib_m_pow" >&6; }
8861if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8862 POW_LIB=-lm
8863else
ec6a6fbe
AK
8864 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8865$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8866fi
72b2cb61 8867
d0191583 8868fi
72b2cb61 8869
ad6254c5
AK
8870fi
8871
ad6254c5 8872
d0191583
JM
8873for ac_func in vprintf
8874do
ec6a6fbe
AK
8875as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8876{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8877$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8879 $as_echo_n "(cached) " >&6
ad6254c5 8880else
d0191583
JM
8881 cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
8887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8889#define $ac_func innocuous_$ac_func
7a197a62 8890
d0191583
JM
8891/* System header to define __stub macros and hopefully few prototypes,
8892 which can conflict with char $ac_func (); below.
8893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894 <limits.h> exists even on freestanding compilers. */
ad6254c5 8895
d0191583
JM
8896#ifdef __STDC__
8897# include <limits.h>
8898#else
8899# include <assert.h>
8900#endif
ad6254c5 8901
d0191583 8902#undef $ac_func
72b2cb61 8903
d0191583
JM
8904/* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8907#ifdef __cplusplus
8908extern "C"
8909#endif
8910char $ac_func ();
8911/* The GNU C library defines this for functions which it implements
8912 to always fail with ENOSYS. Some functions are actually named
8913 something starting with __ and the normal name is an alias. */
8914#if defined __stub_$ac_func || defined __stub___$ac_func
8915choke me
8916#endif
8917
8918int
8919main ()
8920{
8921return $ac_func ();
8922 ;
8923 return 0;
8924}
72b2cb61 8925_ACEOF
d0191583
JM
8926rm -f conftest.$ac_objext conftest$ac_exeext
8927if { (ac_try="$ac_link"
8928case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
ec6a6fbe
AK
8932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8933$as_echo "$ac_try_echo") >&5
d0191583
JM
8934 (eval "$ac_link") 2>conftest.er1
8935 ac_status=$?
8936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
ec6a6fbe 8939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8940 (exit $ac_status); } && {
8941 test -z "$ac_c_werror_flag" ||
8942 test ! -s conftest.err
ec6a6fbe
AK
8943 } && test -s conftest$ac_exeext && {
8944 test "$cross_compiling" = yes ||
8945 $as_test_x conftest$ac_exeext
8946 }; then
d0191583
JM
8947 eval "$as_ac_var=yes"
8948else
ec6a6fbe 8949 $as_echo "$as_me: failed program was:" >&5
d0191583 8950sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8951
d0191583 8952 eval "$as_ac_var=no"
ad6254c5
AK
8953fi
8954
ec6a6fbe 8955rm -rf conftest.dSYM
d0191583
JM
8956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8957 conftest$ac_exeext conftest.$ac_ext
7a197a62 8958fi
ec6a6fbe
AK
8959ac_res=`eval 'as_val=${'$as_ac_var'}
8960 $as_echo "$as_val"'`
8961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8962$as_echo "$ac_res" >&6; }
8963as_val=`eval 'as_val=${'$as_ac_var'}
8964 $as_echo "$as_val"'`
8965 if test "x$as_val" = x""yes; then
d0191583 8966 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8967#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8968_ACEOF
7a197a62 8969
ec6a6fbe
AK
8970{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8971$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8972if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8973 $as_echo_n "(cached) " >&6
ad6254c5 8974else
d0191583
JM
8975 cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h. */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h. */
8981/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8983#define _doprnt innocuous__doprnt
7a197a62 8984
d0191583
JM
8985/* System header to define __stub macros and hopefully few prototypes,
8986 which can conflict with char _doprnt (); below.
8987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8988 <limits.h> exists even on freestanding compilers. */
ad6254c5 8989
d0191583
JM
8990#ifdef __STDC__
8991# include <limits.h>
8992#else
8993# include <assert.h>
8994#endif
72b2cb61 8995
d0191583
JM
8996#undef _doprnt
8997
8998/* Override any GCC internal prototype to avoid an error.
8999 Use char because int might match the return type of a GCC
9000 builtin and then its argument prototype would still apply. */
9001#ifdef __cplusplus
9002extern "C"
9003#endif
9004char _doprnt ();
9005/* The GNU C library defines this for functions which it implements
9006 to always fail with ENOSYS. Some functions are actually named
9007 something starting with __ and the normal name is an alias. */
9008#if defined __stub__doprnt || defined __stub____doprnt
9009choke me
9010#endif
9011
9012int
9013main ()
9014{
9015return _doprnt ();
9016 ;
9017 return 0;
9018}
72b2cb61 9019_ACEOF
d0191583
JM
9020rm -f conftest.$ac_objext conftest$ac_exeext
9021if { (ac_try="$ac_link"
9022case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025esac
ec6a6fbe
AK
9026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9027$as_echo "$ac_try_echo") >&5
d0191583
JM
9028 (eval "$ac_link") 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
ec6a6fbe 9033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9034 (exit $ac_status); } && {
9035 test -z "$ac_c_werror_flag" ||
9036 test ! -s conftest.err
ec6a6fbe
AK
9037 } && test -s conftest$ac_exeext && {
9038 test "$cross_compiling" = yes ||
9039 $as_test_x conftest$ac_exeext
9040 }; then
d0191583
JM
9041 ac_cv_func__doprnt=yes
9042else
ec6a6fbe 9043 $as_echo "$as_me: failed program was:" >&5
d0191583 9044sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9045
d0191583 9046 ac_cv_func__doprnt=no
ad6254c5
AK
9047fi
9048
ec6a6fbe 9049rm -rf conftest.dSYM
d0191583
JM
9050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9051 conftest$ac_exeext conftest.$ac_ext
7a197a62 9052fi
ec6a6fbe
AK
9053{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9054$as_echo "$ac_cv_func__doprnt" >&6; }
9055if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9056
d0191583
JM
9057cat >>confdefs.h <<\_ACEOF
9058#define HAVE_DOPRNT 1
9059_ACEOF
ad6254c5 9060
7a197a62
AK
9061fi
9062
d0191583
JM
9063fi
9064done
8b1a3214 9065
ad6254c5 9066
7a197a62 9067
9c961554 9068################################################################################
ec6a6fbe
AK
9069{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9070$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9071# Check whether --enable-static_link was given.
9072if test "${enable_static_link+set}" = set; then
9073 enableval=$enable_static_link; STATIC_LINK=$enableval
9074else
9075 STATIC_LINK=no
9076fi
9077
ec6a6fbe
AK
9078{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9079$as_echo "$STATIC_LINK" >&6; }
9c961554 9080
d0191583 9081################################################################################
ad6254c5 9082
ad6254c5
AK
9083
9084################################################################################
ec6a6fbe
AK
9085{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9086$as_echo_n "checking file owner... " >&6; }
d0191583
JM
9087
9088# Check whether --with-user was given.
9089if test "${with_user+set}" = set; then
9090 withval=$with_user; OWNER="$withval"
7a197a62
AK
9091fi
9092
ec6a6fbe
AK
9093{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9094$as_echo "$OWNER" >&6; }
ad6254c5 9095
d0191583 9096if test x$OWNER != x; then
23b059e7 9097 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
9098fi
9099
9100################################################################################
ec6a6fbe
AK
9101{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9102$as_echo_n "checking group owner... " >&6; }
ad6254c5 9103
d0191583
JM
9104# Check whether --with-group was given.
9105if test "${with_group+set}" = set; then
9106 withval=$with_group; GROUP="$withval"
7a197a62
AK
9107fi
9108
ec6a6fbe
AK
9109{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9110$as_echo "$GROUP" >&6; }
d0191583
JM
9111
9112if test x$GROUP != x; then
23b059e7 9113 INSTALL="$INSTALL -g $GROUP"
d0191583 9114fi
ad6254c5 9115
24bbc4d7 9116################################################################################
ec6a6fbe
AK
9117{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9118$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9119
9120
9121# Check whether --with-device-uid was given.
9122if test "${with_device_uid+set}" = set; then
9123 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9124else
9125 DM_DEVICE_UID="0"
9126fi
9127
ec6a6fbe
AK
9128{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9129$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9130
9131################################################################################
ec6a6fbe
AK
9132{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9133$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9134
9135
9136# Check whether --with-device-gid was given.
9137if test "${with_device_gid+set}" = set; then
9138 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9139else
9140 DM_DEVICE_GID="0"
9141fi
9142
ec6a6fbe
AK
9143{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9144$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9145
93bd259b 9146################################################################################
ec6a6fbe
AK
9147{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9148$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9149
9150
9151# Check whether --with-device-mode was given.
9152if test "${with_device_mode+set}" = set; then
9153 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9154else
9155 DM_DEVICE_MODE="0600"
9156fi
9157
ec6a6fbe
AK
9158{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9159$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9160
ad6254c5 9161################################################################################
ec6a6fbe
AK
9162{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9163$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9164# Check whether --enable-lvm1_fallback was given.
9165if test "${enable_lvm1_fallback+set}" = set; then
9166 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9167else
9168 LVM1_FALLBACK=no
7a197a62
AK
9169fi
9170
ec6a6fbe
AK
9171{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9172$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9173
d0191583 9174if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9175
9176cat >>confdefs.h <<\_ACEOF
d0191583 9177#define LVM1_FALLBACK 1
72b2cb61
AK
9178_ACEOF
9179
ad6254c5
AK
9180fi
9181
9182################################################################################
ec6a6fbe
AK
9183{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9184$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9185
9186# Check whether --with-lvm1 was given.
9187if test "${with_lvm1+set}" = set; then
9188 withval=$with_lvm1; LVM1="$withval"
9189else
9190 LVM1="internal"
7a197a62
AK
9191fi
9192
ec6a6fbe
AK
9193{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9194$as_echo "$LVM1" >&6; }
ad6254c5 9195
d0191583 9196if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9197 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9198" >&5
ec6a6fbe 9199$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9200" >&2;}
9201 { (exit 1); exit 1; }; }
9202fi;
9203
9204if test x$LVM1 = xinternal; then
72b2cb61
AK
9205
9206cat >>confdefs.h <<\_ACEOF
d0191583 9207#define LVM1_INTERNAL 1
72b2cb61
AK
9208_ACEOF
9209
ad6254c5
AK
9210fi
9211
9212################################################################################
ec6a6fbe
AK
9213{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9214$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9215
9216# Check whether --with-pool was given.
9217if test "${with_pool+set}" = set; then
9218 withval=$with_pool; POOL="$withval"
ad6254c5 9219else
d0191583 9220 POOL="internal"
7a197a62
AK
9221fi
9222
ec6a6fbe
AK
9223{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9224$as_echo "$POOL" >&6; }
ad6254c5 9225
d0191583 9226if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9227 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9228" >&5
ec6a6fbe 9229$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9230" >&2;}
9231 { (exit 1); exit 1; }; }
9232fi;
7a197a62 9233
d0191583
JM
9234if test x$POOL = xinternal; then
9235
9236cat >>confdefs.h <<\_ACEOF
9237#define POOL_INTERNAL 1
9238_ACEOF
9239
9240fi
ad6254c5 9241
06f62ad1 9242################################################################################
ec6a6fbe
AK
9243{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9244$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9245
9246# Check whether --with-cluster was given.
9247if test "${with_cluster+set}" = set; then
9248 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9249fi
9250
ec6a6fbe
AK
9251{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9252$as_echo "$CLUSTER" >&6; }
06f62ad1 9253
d0191583 9254if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9255 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9256" >&5
ec6a6fbe 9257$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9258" >&2;}
9259 { (exit 1); exit 1; }; }
d0191583 9260fi;
06f62ad1 9261
d0191583 9262if test x$CLUSTER = xinternal; then
72b2cb61
AK
9263
9264cat >>confdefs.h <<\_ACEOF
d0191583 9265#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9266_ACEOF
9267
15d91f5a 9268fi
ad6254c5
AK
9269
9270################################################################################
ec6a6fbe
AK
9271{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9272$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9273
d0191583
JM
9274# Check whether --with-snapshots was given.
9275if test "${with_snapshots+set}" = set; then
9276 withval=$with_snapshots; SNAPSHOTS="$withval"
9277else
9278 SNAPSHOTS="internal"
ad6254c5
AK
9279fi
9280
ec6a6fbe
AK
9281{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9282$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9283
d0191583 9284if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9285 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9286" >&5
ec6a6fbe 9287$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9288" >&2;}
9289 { (exit 1); exit 1; }; }
9290fi;
9291
9292if test x$SNAPSHOTS = xinternal; then
9293
9294cat >>confdefs.h <<\_ACEOF
9295#define SNAPSHOT_INTERNAL 1
9296_ACEOF
ad6254c5 9297
ad6254c5 9298fi
7a197a62 9299
d0191583 9300################################################################################
ec6a6fbe
AK
9301{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9302$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9303
9304# Check whether --with-mirrors was given.
9305if test "${with_mirrors+set}" = set; then
9306 withval=$with_mirrors; MIRRORS="$withval"
9307else
9308 MIRRORS="internal"
ad6254c5 9309fi
ad6254c5 9310
ec6a6fbe
AK
9311{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9312$as_echo "$MIRRORS" >&6; }
ad6254c5 9313
d0191583 9314if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9315 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9316" >&5
ec6a6fbe 9317$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9318" >&2;}
9319 { (exit 1); exit 1; }; }
9320fi;
ad6254c5 9321
d0191583 9322if test x$MIRRORS = xinternal; then
ad6254c5 9323
d0191583
JM
9324cat >>confdefs.h <<\_ACEOF
9325#define MIRRORED_INTERNAL 1
ad6254c5 9326_ACEOF
8a2fc586 9327
d0191583 9328fi
8a2fc586 9329
d0191583 9330################################################################################
ec6a6fbe
AK
9331{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9332$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9333# Check whether --enable-readline was given.
9334if test "${enable_readline+set}" = set; then
9335 enableval=$enable_readline; READLINE=$enableval
9336else
06e459df 9337 READLINE=maybe
d0191583 9338fi
8a2fc586 9339
ec6a6fbe
AK
9340{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9341$as_echo "$READLINE" >&6; }
8a2fc586 9342
d0191583 9343################################################################################
ec6a6fbe
AK
9344{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9345$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9346# Check whether --enable-realtime was given.
9347if test "${enable_realtime+set}" = set; then
9348 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9349fi
ad6254c5 9350
ec6a6fbe
AK
9351{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9352$as_echo "$REALTIME" >&6; }
d0191583
JM
9353
9354################################################################################
90c80887 9355pkg_config_init() {
e2997b73
AK
9356
9357
9358if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9359 if test -n "$ac_tool_prefix"; then
9360 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9361set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9363$as_echo_n "checking for $ac_word... " >&6; }
9364if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9365 $as_echo_n "(cached) " >&6
9366else
9367 case $PKG_CONFIG in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9370 ;;
9371 *)
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373for as_dir in $PATH
9374do
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9382 fi
9383done
9384done
9385IFS=$as_save_IFS
9386
9387 ;;
9388esac
9389fi
9390PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9391if test -n "$PKG_CONFIG"; then
9392 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9393$as_echo "$PKG_CONFIG" >&6; }
9394else
9395 { $as_echo "$as_me:$LINENO: result: no" >&5
9396$as_echo "no" >&6; }
9397fi
9398
9399
9400fi
9401if test -z "$ac_cv_path_PKG_CONFIG"; then
9402 ac_pt_PKG_CONFIG=$PKG_CONFIG
9403 # Extract the first word of "pkg-config", so it can be a program name with args.
9404set dummy pkg-config; ac_word=$2
9405{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9406$as_echo_n "checking for $ac_word... " >&6; }
9407if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9408 $as_echo_n "(cached) " >&6
9409else
9410 case $ac_pt_PKG_CONFIG in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9413 ;;
9414 *)
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416for as_dir in $PATH
9417do
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9425 fi
9426done
9427done
9428IFS=$as_save_IFS
9429
9430 ;;
9431esac
9432fi
9433ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9434if test -n "$ac_pt_PKG_CONFIG"; then
9435 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9436$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9437else
9438 { $as_echo "$as_me:$LINENO: result: no" >&5
9439$as_echo "no" >&6; }
9440fi
9441
9442 if test "x$ac_pt_PKG_CONFIG" = x; then
9443 PKG_CONFIG=""
9444 else
9445 case $cross_compiling:$ac_tool_warned in
9446yes:)
9447{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9449ac_tool_warned=yes ;;
9450esac
9451 PKG_CONFIG=$ac_pt_PKG_CONFIG
9452 fi
9453else
9454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9455fi
9456
9457fi
9458if test -n "$PKG_CONFIG"; then
9459 _pkg_min_version=0.9.0
9460 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9461$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9462 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9463 { $as_echo "$as_me:$LINENO: result: yes" >&5
9464$as_echo "yes" >&6; }
9465 else
9466 { $as_echo "$as_me:$LINENO: result: no" >&5
9467$as_echo "no" >&6; }
9468 PKG_CONFIG=""
9469 fi
9470
9471fi
9472
9473pkg_failed=no
a946372e
AK
9474{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9475$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9476
a946372e
AK
9477if test -n "$PKGCONFIGINIT_CFLAGS"; then
9478 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9479 elif test -n "$PKG_CONFIG"; then
9480 if test -n "$PKG_CONFIG" && \
a946372e
AK
9481 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9482 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9483 ac_status=$?
9484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; then
a946372e 9486 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9487else
9488 pkg_failed=yes
9489fi
9490 else
9491 pkg_failed=untried
9492fi
a946372e
AK
9493if test -n "$PKGCONFIGINIT_LIBS"; then
9494 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9495 elif test -n "$PKG_CONFIG"; then
9496 if test -n "$PKG_CONFIG" && \
a946372e
AK
9497 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9498 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9499 ac_status=$?
9500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; then
a946372e 9502 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9503else
9504 pkg_failed=yes
9505fi
9506 else
9507 pkg_failed=untried
9508fi
9509
9510
9511
9512if test $pkg_failed = yes; then
9513
9514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9515 _pkg_short_errors_supported=yes
9516else
9517 _pkg_short_errors_supported=no
9518fi
9519 if test $_pkg_short_errors_supported = yes; then
a946372e 9520 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9521 else
a946372e 9522 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9523 fi
9524 # Put the nasty error message in config.log where it belongs
a946372e 9525 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9526
9527 { $as_echo "$as_me:$LINENO: result: no" >&5
9528$as_echo "no" >&6; }
a946372e
AK
9529 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9530$as_echo "pkg-config initialized" >&6; }
e2997b73 9531elif test $pkg_failed = untried; then
a946372e
AK
9532 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9533$as_echo "pkg-config initialized" >&6; }
e2997b73 9534else
a946372e
AK
9535 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9536 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9537 { $as_echo "$as_me:$LINENO: result: yes" >&5
9538$as_echo "yes" >&6; }
9539 :
9540fi
90c80887
AK
9541 PKGCONFIG_INIT=1
9542}
9543
9544################################################################################
9545{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9546$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9547
9548# Check whether --with-clvmd was given.
9549if test "${with_clvmd+set}" = set; then
9550 withval=$with_clvmd; CLVMD="$withval"
9551else
9552 CLVMD="none"
9553fi
9554
9555if test x$CLVMD = xyes; then
9556 CLVMD=all
9557fi
9558{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9559$as_echo "$CLVMD" >&6; }
9560
9561if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9562 CLUSTER=internal
9563fi
9564
9565if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9566 pkg_config_init
9567fi
9568
9569
9570if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9571 BUILDGULM=yes
9572fi
9573if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9574 BUILDCOROSYNC=yes
9575fi
9576if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9577 BUILDOPENAIS=yes
9578fi
9579if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9580 BUILDCMAN=yes
9581fi
9582
9583if test x$BUILDGULM = xyes; then
9584 if test x$BUILDCOROSYNC = xyes || \
9585 test x$BUILDOPENAIS = xyes; then
9586 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9587$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9588 { (exit 1); exit 1; }; }
9589 fi
a946372e 9590fi
e2997b73 9591
a946372e
AK
9592soft_bailout() {
9593 NOTFOUND=1
9594}
e2997b73 9595
a946372e
AK
9596hard_bailout() {
9597 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9598$as_echo "$as_me: error: bailing out" >&2;}
9599 { (exit 1); exit 1; }; }
9600}
9601
9602if test x$CLVMD = xall; then
9603 bailout=soft_bailout
9604 BUILDGULM=yes
9605 BUILDCMAN=yes
9606 BUILDCOROSYNC=yes
9607 BUILDOPENAIS=yes
e2997b73 9608else
a946372e 9609 bailout=hard_bailout
e2997b73 9610fi
a946372e
AK
9611
9612check_lib_no_libs() {
9613 lib_no_libs_arg1=$1
9614 shift
9615 lib_no_libs_arg2=$1
9616 shift
9617 lib_no_libs_args=$@
9618
9619as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9620{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9621$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9622if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9623 $as_echo_n "(cached) " >&6
9624else
9625 ac_check_lib_save_LIBS=$LIBS
9626LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633
9634/* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637#ifdef __cplusplus
9638extern "C"
9639#endif
9640char $lib_no_libs_arg2 ();
9641int
9642main ()
9643{
9644return $lib_no_libs_arg2 ();
9645 ;
9646 return 0;
9647}
9648_ACEOF
9649rm -f conftest.$ac_objext conftest$ac_exeext
9650if { (ac_try="$ac_link"
9651case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656$as_echo "$ac_try_echo") >&5
9657 (eval "$ac_link") 2>conftest.er1
e2997b73 9658 ac_status=$?
a946372e
AK
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
e2997b73 9662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext && {
9667 test "$cross_compiling" = yes ||
9668 $as_test_x conftest$ac_exeext
9669 }; then
9670 eval "$as_ac_Lib=yes"
e2997b73 9671else
a946372e
AK
9672 $as_echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9674
a946372e
AK
9675 eval "$as_ac_Lib=no"
9676fi
e2997b73 9677
a946372e
AK
9678rm -rf conftest.dSYM
9679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9681LIBS=$ac_check_lib_save_LIBS
9682fi
9683ac_res=`eval 'as_val=${'$as_ac_Lib'}
9684 $as_echo "$as_val"'`
9685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9686$as_echo "$ac_res" >&6; }
9687as_val=`eval 'as_val=${'$as_ac_Lib'}
9688 $as_echo "$as_val"'`
9689 if test "x$as_val" = x""yes; then
9690 cat >>confdefs.h <<_ACEOF
9691#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9692_ACEOF
e2997b73 9693
a946372e 9694 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9695
e2997b73 9696else
a946372e 9697 $bailout
e2997b73 9698fi
e2997b73 9699
a946372e
AK
9700 LIBS=$ac_check_lib_save_LIBS
9701}
9702
9703if test x$BUILDGULM = xyes; then
e2997b73
AK
9704
9705pkg_failed=no
a946372e
AK
9706{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9707$as_echo_n "checking for CCS... " >&6; }
e2997b73 9708
a946372e
AK
9709if test -n "$CCS_CFLAGS"; then
9710 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9711 elif test -n "$PKG_CONFIG"; then
9712 if test -n "$PKG_CONFIG" && \
a946372e
AK
9713 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9714 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9715 ac_status=$?
9716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; then
a946372e 9718 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9719else
9720 pkg_failed=yes
9721fi
9722 else
9723 pkg_failed=untried
9724fi
a946372e
AK
9725if test -n "$CCS_LIBS"; then
9726 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9727 elif test -n "$PKG_CONFIG"; then
9728 if test -n "$PKG_CONFIG" && \
a946372e
AK
9729 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9730 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9731 ac_status=$?
9732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; then
a946372e 9734 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9735else
9736 pkg_failed=yes
9737fi
9738 else
9739 pkg_failed=untried
9740fi
9741
9742
9743
9744if test $pkg_failed = yes; then
9745
9746if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9747 _pkg_short_errors_supported=yes
9748else
9749 _pkg_short_errors_supported=no
9750fi
9751 if test $_pkg_short_errors_supported = yes; then
a946372e 9752 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9753 else
a946372e 9754 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9755 fi
9756 # Put the nasty error message in config.log where it belongs
a946372e 9757 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9758
9759 { $as_echo "$as_me:$LINENO: result: no" >&5
9760$as_echo "no" >&6; }
a946372e 9761 NOTFOUND=0
e2997b73 9762
a946372e
AK
9763for ac_header in ccs.h
9764do
9765as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9768$as_echo_n "checking for $ac_header... " >&6; }
9769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770 $as_echo_n "(cached) " >&6
d0191583 9771fi
a946372e
AK
9772ac_res=`eval 'as_val=${'$as_ac_Header'}
9773 $as_echo "$as_val"'`
9774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9775$as_echo "$ac_res" >&6; }
fc54be10 9776else
a946372e
AK
9777 # Is the header compilable?
9778{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9779$as_echo_n "checking $ac_header usability... " >&6; }
9780cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h. */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h. */
9786$ac_includes_default
9787#include <$ac_header>
9788_ACEOF
9789rm -f conftest.$ac_objext
9790if { (ac_try="$ac_compile"
9791case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9796$as_echo "$ac_try_echo") >&5
9797 (eval "$ac_compile") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest.$ac_objext; then
9807 ac_header_compiler=yes
9808else
9809 $as_echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9811
a946372e 9812 ac_header_compiler=no
d0191583
JM
9813fi
9814
a946372e
AK
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9817$as_echo "$ac_header_compiler" >&6; }
fddafd51 9818
a946372e
AK
9819# Is the header present?
9820{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9821$as_echo_n "checking $ac_header presence... " >&6; }
9822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828#include <$ac_header>
9829_ACEOF
9830if { (ac_try="$ac_cpp conftest.$ac_ext"
9831case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836$as_echo "$ac_try_echo") >&5
9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } >/dev/null && {
9844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 }; then
9847 ac_header_preproc=yes
9848else
9849 $as_echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_header_preproc=no
9853fi
9854
9855rm -f conftest.err conftest.$ac_ext
9856{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857$as_echo "$ac_header_preproc" >&6; }
9858
9859# So? What about this header?
9860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9861 yes:no: )
9862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9865$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9866 ac_header_preproc=yes
9867 ;;
9868 no:yes:* )
9869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9870$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9872$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9874$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9876$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9880$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9881
9882 ;;
9883esac
9884{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9885$as_echo_n "checking for $ac_header... " >&6; }
9886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 $as_echo_n "(cached) " >&6
9888else
9889 eval "$as_ac_Header=\$ac_header_preproc"
9890fi
9891ac_res=`eval 'as_val=${'$as_ac_Header'}
9892 $as_echo "$as_val"'`
9893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9894$as_echo "$ac_res" >&6; }
9895
9896fi
9897as_val=`eval 'as_val=${'$as_ac_Header'}
9898 $as_echo "$as_val"'`
9899 if test "x$as_val" = x""yes; then
9900 cat >>confdefs.h <<_ACEOF
9901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902_ACEOF
9903
9904else
9905 $bailout
9906fi
9907
9908done
9909
9910 check_lib_no_libs ccs ccs_connect
9911 if test $NOTFOUND = 0; then
9912 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9913$as_echo "no pkg for libccs, using -lccs" >&6; }
9914 CCS_LIBS="-lccs"
9915 HAVE_CCS=yes
9916 fi
9917elif test $pkg_failed = untried; then
9918 NOTFOUND=0
9919
9920for ac_header in ccs.h
9921do
9922as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9925$as_echo_n "checking for $ac_header... " >&6; }
9926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9927 $as_echo_n "(cached) " >&6
9928fi
9929ac_res=`eval 'as_val=${'$as_ac_Header'}
9930 $as_echo "$as_val"'`
9931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9932$as_echo "$ac_res" >&6; }
9933else
9934 # Is the header compilable?
9935{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9936$as_echo_n "checking $ac_header usability... " >&6; }
9937cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943$ac_includes_default
9944#include <$ac_header>
9945_ACEOF
9946rm -f conftest.$ac_objext
9947if { (ac_try="$ac_compile"
9948case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953$as_echo "$ac_try_echo") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest.$ac_objext; then
9964 ac_header_compiler=yes
9965else
9966 $as_echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 ac_header_compiler=no
9970fi
9971
9972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974$as_echo "$ac_header_compiler" >&6; }
9975
9976# Is the header present?
9977{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9978$as_echo_n "checking $ac_header presence... " >&6; }
9979cat >conftest.$ac_ext <<_ACEOF
9980/* confdefs.h. */
9981_ACEOF
9982cat confdefs.h >>conftest.$ac_ext
9983cat >>conftest.$ac_ext <<_ACEOF
9984/* end confdefs.h. */
9985#include <$ac_header>
9986_ACEOF
9987if { (ac_try="$ac_cpp conftest.$ac_ext"
9988case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9993$as_echo "$ac_try_echo") >&5
9994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } >/dev/null && {
10001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 }; then
10004 ac_header_preproc=yes
10005else
10006 $as_echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_header_preproc=no
10010fi
10011
10012rm -f conftest.err conftest.$ac_ext
10013{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014$as_echo "$ac_header_preproc" >&6; }
10015
10016# So? What about this header?
10017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10018 yes:no: )
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10020$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10022$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10023 ac_header_preproc=yes
10024 ;;
10025 no:yes:* )
10026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10027$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10029$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10031$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10033$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10035$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10037$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10038
10039 ;;
10040esac
10041{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10042$as_echo_n "checking for $ac_header... " >&6; }
10043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044 $as_echo_n "(cached) " >&6
10045else
10046 eval "$as_ac_Header=\$ac_header_preproc"
10047fi
10048ac_res=`eval 'as_val=${'$as_ac_Header'}
10049 $as_echo "$as_val"'`
10050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10051$as_echo "$ac_res" >&6; }
10052
10053fi
10054as_val=`eval 'as_val=${'$as_ac_Header'}
10055 $as_echo "$as_val"'`
10056 if test "x$as_val" = x""yes; then
10057 cat >>confdefs.h <<_ACEOF
10058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10059_ACEOF
10060
10061else
10062 $bailout
10063fi
10064
10065done
10066
10067 check_lib_no_libs ccs ccs_connect
10068 if test $NOTFOUND = 0; then
10069 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10070$as_echo "no pkg for libccs, using -lccs" >&6; }
10071 CCS_LIBS="-lccs"
10072 HAVE_CCS=yes
10073 fi
10074else
10075 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10076 CCS_LIBS=$pkg_cv_CCS_LIBS
10077 { $as_echo "$as_me:$LINENO: result: yes" >&5
10078$as_echo "yes" >&6; }
10079 HAVE_CCS=yes
10080fi
10081
10082pkg_failed=no
10083{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10084$as_echo_n "checking for GULM... " >&6; }
10085
10086if test -n "$GULM_CFLAGS"; then
10087 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10088 elif test -n "$PKG_CONFIG"; then
10089 if test -n "$PKG_CONFIG" && \
10090 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10091 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10092 ac_status=$?
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; then
10095 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10096else
10097 pkg_failed=yes
10098fi
10099 else
10100 pkg_failed=untried
10101fi
10102if test -n "$GULM_LIBS"; then
10103 pkg_cv_GULM_LIBS="$GULM_LIBS"
10104 elif test -n "$PKG_CONFIG"; then
10105 if test -n "$PKG_CONFIG" && \
10106 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10107 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10108 ac_status=$?
10109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; then
10111 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10112else
10113 pkg_failed=yes
10114fi
10115 else
10116 pkg_failed=untried
10117fi
10118
10119
10120
10121if test $pkg_failed = yes; then
10122
10123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10124 _pkg_short_errors_supported=yes
10125else
10126 _pkg_short_errors_supported=no
10127fi
10128 if test $_pkg_short_errors_supported = yes; then
10129 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10130 else
10131 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10132 fi
10133 # Put the nasty error message in config.log where it belongs
10134 echo "$GULM_PKG_ERRORS" >&5
10135
10136 { $as_echo "$as_me:$LINENO: result: no" >&5
10137$as_echo "no" >&6; }
10138 NOTFOUND=0
10139
10140for ac_header in libgulm.h
10141do
10142as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10145$as_echo_n "checking for $ac_header... " >&6; }
10146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147 $as_echo_n "(cached) " >&6
10148fi
10149ac_res=`eval 'as_val=${'$as_ac_Header'}
10150 $as_echo "$as_val"'`
10151 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10152$as_echo "$ac_res" >&6; }
10153else
10154 # Is the header compilable?
10155{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10156$as_echo_n "checking $ac_header usability... " >&6; }
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163$ac_includes_default
10164#include <$ac_header>
10165_ACEOF
10166rm -f conftest.$ac_objext
10167if { (ac_try="$ac_compile"
10168case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10173$as_echo "$ac_try_echo") >&5
10174 (eval "$ac_compile") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest.$ac_objext; then
10184 ac_header_compiler=yes
10185else
10186 $as_echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ac_header_compiler=no
10190fi
10191
10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10194$as_echo "$ac_header_compiler" >&6; }
10195
10196# Is the header present?
10197{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10198$as_echo_n "checking $ac_header presence... " >&6; }
10199cat >conftest.$ac_ext <<_ACEOF
10200/* confdefs.h. */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h. */
10205#include <$ac_header>
10206_ACEOF
10207if { (ac_try="$ac_cpp conftest.$ac_ext"
10208case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211esac
10212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213$as_echo "$ac_try_echo") >&5
10214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null && {
10221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 }; then
10224 ac_header_preproc=yes
10225else
10226 $as_echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_header_preproc=no
10230fi
10231
10232rm -f conftest.err conftest.$ac_ext
10233{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234$as_echo "$ac_header_preproc" >&6; }
10235
10236# So? What about this header?
10237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10238 yes:no: )
10239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10240$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10242$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10243 ac_header_preproc=yes
10244 ;;
10245 no:yes:* )
10246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10247$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10249$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10251$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10253$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10255$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10257$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10258
10259 ;;
10260esac
10261{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10262$as_echo_n "checking for $ac_header... " >&6; }
10263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 $as_echo_n "(cached) " >&6
10265else
10266 eval "$as_ac_Header=\$ac_header_preproc"
10267fi
10268ac_res=`eval 'as_val=${'$as_ac_Header'}
10269 $as_echo "$as_val"'`
10270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10271$as_echo "$ac_res" >&6; }
10272
10273fi
10274as_val=`eval 'as_val=${'$as_ac_Header'}
10275 $as_echo "$as_val"'`
10276 if test "x$as_val" = x""yes; then
10277 cat >>confdefs.h <<_ACEOF
10278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10279_ACEOF
10280
10281else
10282 $bailout
10283fi
10284
10285done
10286
10287 check_lib_no_libs gulm lg_core_login
10288 if test $NOTFOUND = 0; then
10289 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10290$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10291 GULM_LIBS="-lgulm"
10292 HAVE_GULM=yes
10293 fi
10294elif test $pkg_failed = untried; then
10295 NOTFOUND=0
10296
10297for ac_header in libgulm.h
10298do
10299as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10302$as_echo_n "checking for $ac_header... " >&6; }
10303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10304 $as_echo_n "(cached) " >&6
10305fi
10306ac_res=`eval 'as_val=${'$as_ac_Header'}
10307 $as_echo "$as_val"'`
10308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10309$as_echo "$ac_res" >&6; }
10310else
10311 # Is the header compilable?
10312{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10313$as_echo_n "checking $ac_header usability... " >&6; }
10314cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320$ac_includes_default
10321#include <$ac_header>
10322_ACEOF
10323rm -f conftest.$ac_objext
10324if { (ac_try="$ac_compile"
10325case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330$as_echo "$ac_try_echo") >&5
10331 (eval "$ac_compile") 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest.$ac_objext; then
10341 ac_header_compiler=yes
10342else
10343 $as_echo "$as_me: failed program was:" >&5
10344sed 's/^/| /' conftest.$ac_ext >&5
10345
10346 ac_header_compiler=no
10347fi
10348
10349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10351$as_echo "$ac_header_compiler" >&6; }
10352
10353# Is the header present?
10354{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10355$as_echo_n "checking $ac_header presence... " >&6; }
10356cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h. */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h. */
10362#include <$ac_header>
10363_ACEOF
10364if { (ac_try="$ac_cpp conftest.$ac_ext"
10365case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10370$as_echo "$ac_try_echo") >&5
10371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } >/dev/null && {
10378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10379 test ! -s conftest.err
10380 }; then
10381 ac_header_preproc=yes
10382else
10383 $as_echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 ac_header_preproc=no
10387fi
10388
10389rm -f conftest.err conftest.$ac_ext
10390{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10391$as_echo "$ac_header_preproc" >&6; }
10392
10393# So? What about this header?
10394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10395 yes:no: )
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10397$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10399$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10400 ac_header_preproc=yes
10401 ;;
10402 no:yes:* )
10403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10404$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10406$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10408$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10410$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10412$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10414$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10415
10416 ;;
10417esac
10418{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10419$as_echo_n "checking for $ac_header... " >&6; }
10420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 $as_echo_n "(cached) " >&6
10422else
10423 eval "$as_ac_Header=\$ac_header_preproc"
10424fi
10425ac_res=`eval 'as_val=${'$as_ac_Header'}
10426 $as_echo "$as_val"'`
10427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10428$as_echo "$ac_res" >&6; }
10429
10430fi
10431as_val=`eval 'as_val=${'$as_ac_Header'}
10432 $as_echo "$as_val"'`
10433 if test "x$as_val" = x""yes; then
10434 cat >>confdefs.h <<_ACEOF
10435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436_ACEOF
10437
10438else
10439 $bailout
10440fi
10441
10442done
10443
10444 check_lib_no_libs gulm lg_core_login
10445 if test $NOTFOUND = 0; then
10446 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10447$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10448 GULM_LIBS="-lgulm"
10449 HAVE_GULM=yes
10450 fi
10451else
10452 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10453 GULM_LIBS=$pkg_cv_GULM_LIBS
10454 { $as_echo "$as_me:$LINENO: result: yes" >&5
10455$as_echo "yes" >&6; }
10456 HAVE_GULM=yes
10457fi
10458fi
10459
10460if test x$BUILDCMAN = xyes; then
10461
10462pkg_failed=no
10463{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10464$as_echo_n "checking for CMAN... " >&6; }
10465
10466if test -n "$CMAN_CFLAGS"; then
10467 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10468 elif test -n "$PKG_CONFIG"; then
10469 if test -n "$PKG_CONFIG" && \
10470 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10471 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10472 ac_status=$?
10473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; then
10475 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10476else
10477 pkg_failed=yes
10478fi
10479 else
10480 pkg_failed=untried
10481fi
10482if test -n "$CMAN_LIBS"; then
10483 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10484 elif test -n "$PKG_CONFIG"; then
10485 if test -n "$PKG_CONFIG" && \
10486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10487 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; then
10491 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10492else
10493 pkg_failed=yes
10494fi
10495 else
10496 pkg_failed=untried
10497fi
10498
10499
10500
10501if test $pkg_failed = yes; then
10502
10503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10504 _pkg_short_errors_supported=yes
10505else
10506 _pkg_short_errors_supported=no
10507fi
10508 if test $_pkg_short_errors_supported = yes; then
10509 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10510 else
10511 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10512 fi
10513 # Put the nasty error message in config.log where it belongs
10514 echo "$CMAN_PKG_ERRORS" >&5
10515
10516 { $as_echo "$as_me:$LINENO: result: no" >&5
10517$as_echo "no" >&6; }
10518 NOTFOUND=0
10519
10520for ac_header in libcman.h
10521do
10522as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10525$as_echo_n "checking for $ac_header... " >&6; }
10526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 $as_echo_n "(cached) " >&6
10528fi
10529ac_res=`eval 'as_val=${'$as_ac_Header'}
10530 $as_echo "$as_val"'`
10531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10532$as_echo "$ac_res" >&6; }
10533else
10534 # Is the header compilable?
10535{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536$as_echo_n "checking $ac_header usability... " >&6; }
10537cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
10543$ac_includes_default
10544#include <$ac_header>
10545_ACEOF
10546rm -f conftest.$ac_objext
10547if { (ac_try="$ac_compile"
10548case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551esac
10552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10553$as_echo "$ac_try_echo") >&5
10554 (eval "$ac_compile") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest.$ac_objext; then
10564 ac_header_compiler=yes
10565else
10566 $as_echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_compiler=no
10570fi
10571
10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10574$as_echo "$ac_header_compiler" >&6; }
10575
10576# Is the header present?
10577{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10578$as_echo_n "checking $ac_header presence... " >&6; }
10579cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585#include <$ac_header>
10586_ACEOF
10587if { (ac_try="$ac_cpp conftest.$ac_ext"
10588case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591esac
10592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593$as_echo "$ac_try_echo") >&5
10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev/null && {
10601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 }; then
10604 ac_header_preproc=yes
10605else
10606 $as_echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_preproc=no
10610fi
10611
10612rm -f conftest.err conftest.$ac_ext
10613{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614$as_echo "$ac_header_preproc" >&6; }
10615
10616# So? What about this header?
10617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10618 yes:no: )
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10622$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10623 ac_header_preproc=yes
10624 ;;
10625 no:yes:* )
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10627$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10629$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10631$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10633$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10637$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10638
10639 ;;
10640esac
10641{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10642$as_echo_n "checking for $ac_header... " >&6; }
10643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 $as_echo_n "(cached) " >&6
10645else
10646 eval "$as_ac_Header=\$ac_header_preproc"
10647fi
10648ac_res=`eval 'as_val=${'$as_ac_Header'}
10649 $as_echo "$as_val"'`
10650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10651$as_echo "$ac_res" >&6; }
10652
10653fi
10654as_val=`eval 'as_val=${'$as_ac_Header'}
10655 $as_echo "$as_val"'`
10656 if test "x$as_val" = x""yes; then
10657 cat >>confdefs.h <<_ACEOF
10658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10659_ACEOF
10660
10661else
10662 $bailout
10663fi
10664
10665done
10666
10667 check_lib_no_libs cman cman_init
10668 if test $NOTFOUND = 0; then
10669 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10670$as_echo "no pkg for libcman, using -lcman" >&6; }
10671 CMAN_LIBS="-lcman"
10672 HAVE_CMAN=yes
10673 fi
10674elif test $pkg_failed = untried; then
10675 NOTFOUND=0
10676
10677for ac_header in libcman.h
10678do
10679as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10682$as_echo_n "checking for $ac_header... " >&6; }
10683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684 $as_echo_n "(cached) " >&6
10685fi
10686ac_res=`eval 'as_val=${'$as_ac_Header'}
10687 $as_echo "$as_val"'`
10688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10689$as_echo "$ac_res" >&6; }
10690else
10691 # Is the header compilable?
10692{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10693$as_echo_n "checking $ac_header usability... " >&6; }
10694cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h. */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h. */
10700$ac_includes_default
10701#include <$ac_header>
10702_ACEOF
10703rm -f conftest.$ac_objext
10704if { (ac_try="$ac_compile"
10705case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710$as_echo "$ac_try_echo") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10721 ac_header_compiler=yes
10722else
10723 $as_echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_header_compiler=no
10727fi
10728
10729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10731$as_echo "$ac_header_compiler" >&6; }
10732
10733# Is the header present?
10734{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10735$as_echo_n "checking $ac_header presence... " >&6; }
10736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h. */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h. */
10742#include <$ac_header>
10743_ACEOF
10744if { (ac_try="$ac_cpp conftest.$ac_ext"
10745case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750$as_echo "$ac_try_echo") >&5
10751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null && {
10758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 }; then
10761 ac_header_preproc=yes
10762else
10763 $as_echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 ac_header_preproc=no
10767fi
10768
10769rm -f conftest.err conftest.$ac_ext
10770{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10771$as_echo "$ac_header_preproc" >&6; }
10772
10773# So? What about this header?
10774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10775 yes:no: )
10776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10777$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10779$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10780 ac_header_preproc=yes
10781 ;;
10782 no:yes:* )
10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10786$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10788$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10790$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10792$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10794$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10795
10796 ;;
10797esac
10798{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10799$as_echo_n "checking for $ac_header... " >&6; }
10800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801 $as_echo_n "(cached) " >&6
10802else
10803 eval "$as_ac_Header=\$ac_header_preproc"
10804fi
10805ac_res=`eval 'as_val=${'$as_ac_Header'}
10806 $as_echo "$as_val"'`
10807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10808$as_echo "$ac_res" >&6; }
10809
10810fi
10811as_val=`eval 'as_val=${'$as_ac_Header'}
10812 $as_echo "$as_val"'`
10813 if test "x$as_val" = x""yes; then
10814 cat >>confdefs.h <<_ACEOF
10815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816_ACEOF
10817
10818else
10819 $bailout
10820fi
10821
10822done
10823
10824 check_lib_no_libs cman cman_init
10825 if test $NOTFOUND = 0; then
10826 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10827$as_echo "no pkg for libcman, using -lcman" >&6; }
10828 CMAN_LIBS="-lcman"
10829 HAVE_CMAN=yes
10830 fi
10831else
10832 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10833 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10834 { $as_echo "$as_me:$LINENO: result: yes" >&5
10835$as_echo "yes" >&6; }
10836 HAVE_CMAN=yes
10837fi
10838 CHECKCONFDB=yes
10839 CHECKDLM=yes
10840fi
10841
10842if test x$BUILDCOROSYNC = xyes || \
10843 test x$BUILDOPENAIS = xyes; then
10844
10845pkg_failed=no
10846{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10847$as_echo_n "checking for COROSYNC... " >&6; }
10848
10849if test -n "$COROSYNC_CFLAGS"; then
10850 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10851 elif test -n "$PKG_CONFIG"; then
10852 if test -n "$PKG_CONFIG" && \
10853 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10854 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10855 ac_status=$?
10856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; then
10858 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10859else
10860 pkg_failed=yes
10861fi
10862 else
10863 pkg_failed=untried
10864fi
10865if test -n "$COROSYNC_LIBS"; then
10866 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10867 elif test -n "$PKG_CONFIG"; then
10868 if test -n "$PKG_CONFIG" && \
10869 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10870 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10871 ac_status=$?
10872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; then
10874 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10875else
10876 pkg_failed=yes
10877fi
10878 else
10879 pkg_failed=untried
10880fi
10881
10882
10883
10884if test $pkg_failed = yes; then
10885
10886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10887 _pkg_short_errors_supported=yes
10888else
10889 _pkg_short_errors_supported=no
10890fi
10891 if test $_pkg_short_errors_supported = yes; then
10892 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10893 else
10894 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10895 fi
10896 # Put the nasty error message in config.log where it belongs
10897 echo "$COROSYNC_PKG_ERRORS" >&5
10898
10899 { $as_echo "$as_me:$LINENO: result: no" >&5
10900$as_echo "no" >&6; }
10901 $bailout
10902elif test $pkg_failed = untried; then
10903 $bailout
10904else
10905 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10906 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10907 { $as_echo "$as_me:$LINENO: result: yes" >&5
10908$as_echo "yes" >&6; }
10909 HAVE_COROSYNC=yes
10910fi
10911 CHECKCONFDB=yes
10912fi
10913
10914if test x$BUILDCOROSYNC = xyes; then
10915
10916pkg_failed=no
10917{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10918$as_echo_n "checking for QUORUM... " >&6; }
10919
10920if test -n "$QUORUM_CFLAGS"; then
10921 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10922 elif test -n "$PKG_CONFIG"; then
10923 if test -n "$PKG_CONFIG" && \
10924 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10925 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10926 ac_status=$?
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; then
10929 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10930else
10931 pkg_failed=yes
10932fi
10933 else
10934 pkg_failed=untried
10935fi
10936if test -n "$QUORUM_LIBS"; then
10937 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10938 elif test -n "$PKG_CONFIG"; then
10939 if test -n "$PKG_CONFIG" && \
10940 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10941 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10942 ac_status=$?
10943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; then
10945 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10946else
10947 pkg_failed=yes
10948fi
10949 else
10950 pkg_failed=untried
10951fi
10952
10953
10954
10955if test $pkg_failed = yes; then
10956
10957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10958 _pkg_short_errors_supported=yes
10959else
10960 _pkg_short_errors_supported=no
10961fi
10962 if test $_pkg_short_errors_supported = yes; then
10963 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10964 else
10965 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10966 fi
10967 # Put the nasty error message in config.log where it belongs
10968 echo "$QUORUM_PKG_ERRORS" >&5
10969
10970 { $as_echo "$as_me:$LINENO: result: no" >&5
10971$as_echo "no" >&6; }
10972 $bailout
10973elif test $pkg_failed = untried; then
10974 $bailout
10975else
10976 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10977 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10978 { $as_echo "$as_me:$LINENO: result: yes" >&5
10979$as_echo "yes" >&6; }
10980 HAVE_QUORUM=yes
10981fi
10982 CHECKCPG=yes
10983 CHECKDLM=yes
10984fi
10985
10986if test x$BUILDOPENAIS = xyes; then
10987
10988pkg_failed=no
10989{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10990$as_echo_n "checking for SALCK... " >&6; }
10991
10992if test -n "$SALCK_CFLAGS"; then
10993 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10994 elif test -n "$PKG_CONFIG"; then
10995 if test -n "$PKG_CONFIG" && \
10996 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10997 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10998 ac_status=$?
10999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; then
11001 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11002else
11003 pkg_failed=yes
11004fi
11005 else
11006 pkg_failed=untried
11007fi
11008if test -n "$SALCK_LIBS"; then
11009 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11010 elif test -n "$PKG_CONFIG"; then
11011 if test -n "$PKG_CONFIG" && \
11012 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11013 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11014 ac_status=$?
11015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; then
11017 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11018else
11019 pkg_failed=yes
11020fi
11021 else
11022 pkg_failed=untried
11023fi
11024
11025
11026
11027if test $pkg_failed = yes; then
11028
11029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11030 _pkg_short_errors_supported=yes
11031else
11032 _pkg_short_errors_supported=no
11033fi
11034 if test $_pkg_short_errors_supported = yes; then
11035 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11036 else
11037 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11038 fi
11039 # Put the nasty error message in config.log where it belongs
11040 echo "$SALCK_PKG_ERRORS" >&5
11041
11042 { $as_echo "$as_me:$LINENO: result: no" >&5
11043$as_echo "no" >&6; }
11044 $bailout
11045elif test $pkg_failed = untried; then
11046 $bailout
11047else
11048 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11049 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11050 { $as_echo "$as_me:$LINENO: result: yes" >&5
11051$as_echo "yes" >&6; }
11052 HAVE_SALCK=yes
11053fi
11054 CHECKCPG=yes
11055fi
11056
11057
11058
11059if test x$CHECKCONFDB = xyes; then
11060
11061pkg_failed=no
11062{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11063$as_echo_n "checking for CONFDB... " >&6; }
11064
11065if test -n "$CONFDB_CFLAGS"; then
11066 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11067 elif test -n "$PKG_CONFIG"; then
11068 if test -n "$PKG_CONFIG" && \
11069 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11070 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; then
11074 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11075else
11076 pkg_failed=yes
11077fi
11078 else
11079 pkg_failed=untried
11080fi
11081if test -n "$CONFDB_LIBS"; then
11082 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11083 elif test -n "$PKG_CONFIG"; then
11084 if test -n "$PKG_CONFIG" && \
11085 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11086 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11087 ac_status=$?
11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; then
11090 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11091else
11092 pkg_failed=yes
11093fi
11094 else
11095 pkg_failed=untried
11096fi
11097
11098
11099
11100if test $pkg_failed = yes; then
11101
11102if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11103 _pkg_short_errors_supported=yes
11104else
11105 _pkg_short_errors_supported=no
11106fi
11107 if test $_pkg_short_errors_supported = yes; then
11108 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11109 else
11110 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11111 fi
11112 # Put the nasty error message in config.log where it belongs
11113 echo "$CONFDB_PKG_ERRORS" >&5
11114
11115 { $as_echo "$as_me:$LINENO: result: no" >&5
11116$as_echo "no" >&6; }
11117 HAVE_CONFDB=no
11118elif test $pkg_failed = untried; then
11119 HAVE_CONFDB=no
11120else
11121 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11122 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11123 { $as_echo "$as_me:$LINENO: result: yes" >&5
11124$as_echo "yes" >&6; }
11125 HAVE_CONFDB=yes
11126fi
11127
11128
11129for ac_header in corosync/confdb.h
11130do
11131as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11134$as_echo_n "checking for $ac_header... " >&6; }
11135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 $as_echo_n "(cached) " >&6
11137fi
11138ac_res=`eval 'as_val=${'$as_ac_Header'}
11139 $as_echo "$as_val"'`
11140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11141$as_echo "$ac_res" >&6; }
11142else
11143 # Is the header compilable?
11144{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145$as_echo_n "checking $ac_header usability... " >&6; }
11146cat >conftest.$ac_ext <<_ACEOF
11147/* confdefs.h. */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
11152$ac_includes_default
11153#include <$ac_header>
11154_ACEOF
11155rm -f conftest.$ac_objext
11156if { (ac_try="$ac_compile"
11157case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160esac
11161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11162$as_echo "$ac_try_echo") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } && {
11170 test -z "$ac_c_werror_flag" ||
11171 test ! -s conftest.err
11172 } && test -s conftest.$ac_objext; then
11173 ac_header_compiler=yes
11174else
11175 $as_echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_header_compiler=no
11179fi
11180
11181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183$as_echo "$ac_header_compiler" >&6; }
11184
11185# Is the header present?
11186{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187$as_echo_n "checking $ac_header presence... " >&6; }
11188cat >conftest.$ac_ext <<_ACEOF
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
11194#include <$ac_header>
11195_ACEOF
11196if { (ac_try="$ac_cpp conftest.$ac_ext"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202$as_echo "$ac_try_echo") >&5
11203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } >/dev/null && {
11210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 }; then
11213 ac_header_preproc=yes
11214else
11215 $as_echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_header_preproc=no
11219fi
11220
11221rm -f conftest.err conftest.$ac_ext
11222{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11223$as_echo "$ac_header_preproc" >&6; }
11224
11225# So? What about this header?
11226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11227 yes:no: )
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11229$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11231$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11232 ac_header_preproc=yes
11233 ;;
11234 no:yes:* )
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11236$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11238$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11240$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11242$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11244$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11246$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11247
11248 ;;
11249esac
11250{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11251$as_echo_n "checking for $ac_header... " >&6; }
11252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 $as_echo_n "(cached) " >&6
11254else
11255 eval "$as_ac_Header=\$ac_header_preproc"
11256fi
11257ac_res=`eval 'as_val=${'$as_ac_Header'}
11258 $as_echo "$as_val"'`
11259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11260$as_echo "$ac_res" >&6; }
11261
11262fi
11263as_val=`eval 'as_val=${'$as_ac_Header'}
11264 $as_echo "$as_val"'`
11265 if test "x$as_val" = x""yes; then
11266 cat >>confdefs.h <<_ACEOF
11267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268_ACEOF
11269 HAVE_CONFDB_H=yes
11270else
11271 HAVE_CONFDB_H=no
11272fi
11273
11274done
11275
11276
11277 if test x$HAVE_CONFDB != xyes && \
11278 test x$HAVE_CONFDB_H = xyes; then
11279 check_lib_no_libs confdb confdb_initialize
11280 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11281$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11282 CONFDB_LIBS="-lconfdb"
11283 HAVE_CONFDB=yes
11284 fi
11285
11286 if test x$BUILDCOROSYNC = xyes && \
11287 test x$HAVE_CONFDB != xyes &&
11288 test x$CLVMD != xall; then
11289 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11290$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11291 { (exit 1); exit 1; }; }
11292 fi
11293fi
11294
11295if test x$CHECKCPG = xyes; then
11296
11297pkg_failed=no
11298{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11299$as_echo_n "checking for CPG... " >&6; }
11300
11301if test -n "$CPG_CFLAGS"; then
11302 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11303 elif test -n "$PKG_CONFIG"; then
11304 if test -n "$PKG_CONFIG" && \
11305 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11306 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11307 ac_status=$?
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; then
11310 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11311else
11312 pkg_failed=yes
11313fi
11314 else
11315 pkg_failed=untried
11316fi
11317if test -n "$CPG_LIBS"; then
11318 pkg_cv_CPG_LIBS="$CPG_LIBS"
11319 elif test -n "$PKG_CONFIG"; then
11320 if test -n "$PKG_CONFIG" && \
11321 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11322 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11323 ac_status=$?
11324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; then
11326 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11327else
11328 pkg_failed=yes
11329fi
11330 else
11331 pkg_failed=untried
11332fi
11333
11334
11335
11336if test $pkg_failed = yes; then
11337
11338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11339 _pkg_short_errors_supported=yes
11340else
11341 _pkg_short_errors_supported=no
11342fi
11343 if test $_pkg_short_errors_supported = yes; then
11344 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11345 else
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11347 fi
11348 # Put the nasty error message in config.log where it belongs
11349 echo "$CPG_PKG_ERRORS" >&5
11350
11351 { $as_echo "$as_me:$LINENO: result: no" >&5
11352$as_echo "no" >&6; }
11353 $bailout
11354elif test $pkg_failed = untried; then
11355 $bailout
11356else
11357 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11358 CPG_LIBS=$pkg_cv_CPG_LIBS
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360$as_echo "yes" >&6; }
11361 HAVE_CPG=yes
11362fi
11363fi
11364
11365if test x$CHECKDLM = xyes; then
11366
11367pkg_failed=no
11368{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11369$as_echo_n "checking for DLM... " >&6; }
11370
11371if test -n "$DLM_CFLAGS"; then
11372 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11373 elif test -n "$PKG_CONFIG"; then
11374 if test -n "$PKG_CONFIG" && \
11375 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11376 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11377 ac_status=$?
11378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; then
11380 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11381else
11382 pkg_failed=yes
11383fi
11384 else
11385 pkg_failed=untried
11386fi
11387if test -n "$DLM_LIBS"; then
11388 pkg_cv_DLM_LIBS="$DLM_LIBS"
11389 elif test -n "$PKG_CONFIG"; then
11390 if test -n "$PKG_CONFIG" && \
11391 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11392 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11393 ac_status=$?
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; then
11396 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11397else
11398 pkg_failed=yes
11399fi
11400 else
11401 pkg_failed=untried
11402fi
11403
11404
11405
11406if test $pkg_failed = yes; then
11407
11408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11409 _pkg_short_errors_supported=yes
11410else
11411 _pkg_short_errors_supported=no
11412fi
11413 if test $_pkg_short_errors_supported = yes; then
11414 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11415 else
11416 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11417 fi
11418 # Put the nasty error message in config.log where it belongs
11419 echo "$DLM_PKG_ERRORS" >&5
11420
11421 { $as_echo "$as_me:$LINENO: result: no" >&5
11422$as_echo "no" >&6; }
11423 NOTFOUND=0
11424
11425for ac_header in libdlm.h
11426do
11427as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11430$as_echo_n "checking for $ac_header... " >&6; }
11431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 $as_echo_n "(cached) " >&6
11433fi
11434ac_res=`eval 'as_val=${'$as_ac_Header'}
11435 $as_echo "$as_val"'`
11436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11437$as_echo "$ac_res" >&6; }
11438else
11439 # Is the header compilable?
11440{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441$as_echo_n "checking $ac_header usability... " >&6; }
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448$ac_includes_default
11449#include <$ac_header>
11450_ACEOF
11451rm -f conftest.$ac_objext
11452if { (ac_try="$ac_compile"
11453case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456esac
11457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11458$as_echo "$ac_try_echo") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11470else
11471 $as_echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 ac_header_compiler=no
11475fi
11476
11477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479$as_echo "$ac_header_compiler" >&6; }
11480
11481# Is the header present?
11482{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483$as_echo_n "checking $ac_header presence... " >&6; }
11484cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
11490#include <$ac_header>
11491_ACEOF
11492if { (ac_try="$ac_cpp conftest.$ac_ext"
11493case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496esac
11497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11498$as_echo "$ac_try_echo") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null && {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 }; then
11509 ac_header_preproc=yes
11510else
11511 $as_echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_header_preproc=no
11515fi
11516
11517rm -f conftest.err conftest.$ac_ext
11518{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519$as_echo "$ac_header_preproc" >&6; }
11520
11521# So? What about this header?
11522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11529 ;;
11530 no:yes:* )
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543
11544 ;;
11545esac
11546{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11547$as_echo_n "checking for $ac_header... " >&6; }
11548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 $as_echo_n "(cached) " >&6
11550else
11551 eval "$as_ac_Header=\$ac_header_preproc"
11552fi
11553ac_res=`eval 'as_val=${'$as_ac_Header'}
11554 $as_echo "$as_val"'`
11555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11556$as_echo "$ac_res" >&6; }
11557
11558fi
11559as_val=`eval 'as_val=${'$as_ac_Header'}
11560 $as_echo "$as_val"'`
11561 if test "x$as_val" = x""yes; then
11562 cat >>confdefs.h <<_ACEOF
11563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564_ACEOF
11565
11566else
11567 $bailout
11568fi
11569
11570done
11571
11572 check_lib_no_libs dlm dlm_lock -lpthread
11573 if test $NOTFOUND = 0; then
11574 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11575$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11576 DLM_LIBS="-ldlm -lpthread"
11577 HAVE_DLM=yes
11578 fi
11579elif test $pkg_failed = untried; then
11580 NOTFOUND=0
11581
11582for ac_header in libdlm.h
11583do
11584as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11587$as_echo_n "checking for $ac_header... " >&6; }
11588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 $as_echo_n "(cached) " >&6
11590fi
11591ac_res=`eval 'as_val=${'$as_ac_Header'}
11592 $as_echo "$as_val"'`
11593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11594$as_echo "$ac_res" >&6; }
11595else
11596 # Is the header compilable?
11597{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598$as_echo_n "checking $ac_header usability... " >&6; }
11599cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605$ac_includes_default
11606#include <$ac_header>
11607_ACEOF
11608rm -f conftest.$ac_objext
11609if { (ac_try="$ac_compile"
11610case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613esac
11614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11615$as_echo "$ac_try_echo") >&5
11616 (eval "$ac_compile") 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest.$ac_objext; then
11626 ac_header_compiler=yes
11627else
11628 $as_echo "$as_me: failed program was:" >&5
11629sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_header_compiler=no
11632fi
11633
11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636$as_echo "$ac_header_compiler" >&6; }
11637
11638# Is the header present?
11639{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640$as_echo_n "checking $ac_header presence... " >&6; }
11641cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647#include <$ac_header>
11648_ACEOF
11649if { (ac_try="$ac_cpp conftest.$ac_ext"
11650case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653esac
11654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11655$as_echo "$ac_try_echo") >&5
11656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } >/dev/null && {
11663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 }; then
11666 ac_header_preproc=yes
11667else
11668 $as_echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 ac_header_preproc=no
11672fi
11673
11674rm -f conftest.err conftest.$ac_ext
11675{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11676$as_echo "$ac_header_preproc" >&6; }
11677
11678# So? What about this header?
11679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11680 yes:no: )
11681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11682$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11684$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11685 ac_header_preproc=yes
11686 ;;
11687 no:yes:* )
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11689$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11691$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11693$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11695$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11697$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11699$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11700
11701 ;;
11702esac
11703{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11704$as_echo_n "checking for $ac_header... " >&6; }
11705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11706 $as_echo_n "(cached) " >&6
11707else
11708 eval "$as_ac_Header=\$ac_header_preproc"
11709fi
11710ac_res=`eval 'as_val=${'$as_ac_Header'}
11711 $as_echo "$as_val"'`
11712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11713$as_echo "$ac_res" >&6; }
11714
11715fi
11716as_val=`eval 'as_val=${'$as_ac_Header'}
11717 $as_echo "$as_val"'`
11718 if test "x$as_val" = x""yes; then
11719 cat >>confdefs.h <<_ACEOF
11720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11721_ACEOF
11722
11723else
11724 $bailout
11725fi
11726
11727done
11728
11729 check_lib_no_libs dlm dlm_lock -lpthread
11730 if test $NOTFOUND = 0; then
11731 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11732$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11733 DLM_LIBS="-ldlm -lpthread"
11734 HAVE_DLM=yes
11735 fi
11736else
11737 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11738 DLM_LIBS=$pkg_cv_DLM_LIBS
11739 { $as_echo "$as_me:$LINENO: result: yes" >&5
11740$as_echo "yes" >&6; }
11741 HAVE_DLM=yes
11742fi
11743fi
11744
11745if test x$CLVMD = xall; then
8c222979 11746 CLVMD=none
a946372e
AK
11747 if test x$HAVE_CCS = xyes && \
11748 test x$HAVE_GULM = xyes; then
8c222979
FDN
11749 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11750$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11751 CLVMD="$CLVMD,gulm"
a946372e
AK
11752 fi
11753 if test x$HAVE_CMAN = xyes && \
11754 test x$HAVE_DLM = xyes; then
8c222979
FDN
11755 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11756$as_echo "Enabling clvmd cman cluster manager" >&6; }
11757 CLVMD="$CLVMD,cman"
a946372e
AK
11758 fi
11759 if test x$HAVE_COROSYNC = xyes && \
11760 test x$HAVE_QUORUM = xyes && \
11761 test x$HAVE_CPG = xyes && \
11762 test x$HAVE_DLM = xyes && \
11763 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11764 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11765$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11766 CLVMD="$CLVMD,corosync"
a946372e
AK
11767 fi
11768 if test x$HAVE_COROSYNC = xyes && \
11769 test x$HAVE_CPG = xyes && \
11770 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11771 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11772$as_echo "Enabling clvmd openais cluster manager" >&6; }
11773 CLVMD="$CLVMD,openais"
11774 fi
11775 if test x$CLVMD = xnone; then
11776 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11777$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11778 fi
a946372e
AK
11779fi
11780
11781################################################################################
66fd4529
AK
11782{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11783$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11784# Check whether --enable-cmirrord was given.
11785if test "${enable_cmirrord+set}" = set; then
11786 enableval=$enable_cmirrord; CMIRRORD=$enableval
11787else
11788 CMIRRORD=no
11789fi
11790
11791{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11792$as_echo "$CMIRRORD" >&6; }
11793
11794BUILD_CMIRRORD=$CMIRRORD
11795
11796################################################################################
11797
11798
11799if test "x$BUILD_CMIRRORD" = xyes; then
11800
11801# Check whether --with-cmirrord-pidfile was given.
11802if test "${with_cmirrord_pidfile+set}" = set; then
11803 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11804#define CMIRRORD_PIDFILE "$withval"
11805_ACEOF
11806
11807else
11808 cat >>confdefs.h <<_ACEOF
11809#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11810_ACEOF
11811
a946372e
AK
11812fi
11813
66fd4529 11814fi
a946372e 11815
66fd4529
AK
11816################################################################################
11817if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11818 if test x$PKGCONFIG_INIT != x1; then
11819 pkg_config_init
11820 fi
11821
11822pkg_failed=no
11823{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11824$as_echo_n "checking for SACKPT... " >&6; }
11825
11826if test -n "$SACKPT_CFLAGS"; then
11827 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11828 elif test -n "$PKG_CONFIG"; then
11829 if test -n "$PKG_CONFIG" && \
11830 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11831 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; then
11835 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11836else
11837 pkg_failed=yes
11838fi
11839 else
11840 pkg_failed=untried
11841fi
11842if test -n "$SACKPT_LIBS"; then
11843 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11844 elif test -n "$PKG_CONFIG"; then
11845 if test -n "$PKG_CONFIG" && \
11846 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11847 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11848 ac_status=$?
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; then
11851 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11852else
11853 pkg_failed=yes
11854fi
11855 else
11856 pkg_failed=untried
11857fi
11858
11859
11860
11861if test $pkg_failed = yes; then
11862
11863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11864 _pkg_short_errors_supported=yes
11865else
11866 _pkg_short_errors_supported=no
11867fi
11868 if test $_pkg_short_errors_supported = yes; then
11869 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11870 else
11871 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11872 fi
11873 # Put the nasty error message in config.log where it belongs
11874 echo "$SACKPT_PKG_ERRORS" >&5
11875
11876 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11877
11878$SACKPT_PKG_ERRORS
11879
11880Consider adjusting the PKG_CONFIG_PATH environment variable if you
11881installed software in a non-standard prefix.
11882
11883Alternatively, you may set the environment variables SACKPT_CFLAGS
11884and SACKPT_LIBS to avoid the need to call pkg-config.
11885See the pkg-config man page for more details.
11886" >&5
11887$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11888
11889$SACKPT_PKG_ERRORS
11890
11891Consider adjusting the PKG_CONFIG_PATH environment variable if you
11892installed software in a non-standard prefix.
11893
11894Alternatively, you may set the environment variables SACKPT_CFLAGS
11895and SACKPT_LIBS to avoid the need to call pkg-config.
11896See the pkg-config man page for more details.
11897" >&2;}
11898 { (exit 1); exit 1; }; }
11899elif test $pkg_failed = untried; then
11900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11903is in your PATH or set the PKG_CONFIG environment variable to the full
11904path to pkg-config.
11905
11906Alternatively, you may set the environment variables SACKPT_CFLAGS
11907and SACKPT_LIBS to avoid the need to call pkg-config.
11908See the pkg-config man page for more details.
11909
11910To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11911See \`config.log' for more details." >&5
11912$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11913is in your PATH or set the PKG_CONFIG environment variable to the full
11914path to pkg-config.
11915
11916Alternatively, you may set the environment variables SACKPT_CFLAGS
11917and SACKPT_LIBS to avoid the need to call pkg-config.
11918See the pkg-config man page for more details.
11919
11920To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11921See \`config.log' for more details." >&2;}
11922 { (exit 1); exit 1; }; }; }
11923else
11924 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11925 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11926 { $as_echo "$as_me:$LINENO: result: yes" >&5
11927$as_echo "yes" >&6; }
11928 :
11929fi
11930 if test x$HAVE_CPG != xyes; then
a946372e
AK
11931
11932pkg_failed=no
11933{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11934$as_echo_n "checking for CPG... " >&6; }
11935
11936if test -n "$CPG_CFLAGS"; then
11937 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11938 elif test -n "$PKG_CONFIG"; then
11939 if test -n "$PKG_CONFIG" && \
11940 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11941 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11942 ac_status=$?
11943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; then
11945 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11946else
11947 pkg_failed=yes
11948fi
11949 else
11950 pkg_failed=untried
11951fi
11952if test -n "$CPG_LIBS"; then
11953 pkg_cv_CPG_LIBS="$CPG_LIBS"
11954 elif test -n "$PKG_CONFIG"; then
11955 if test -n "$PKG_CONFIG" && \
11956 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11957 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11958 ac_status=$?
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; then
11961 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11962else
11963 pkg_failed=yes
11964fi
11965 else
11966 pkg_failed=untried
11967fi
11968
11969
11970
11971if test $pkg_failed = yes; then
11972
11973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11974 _pkg_short_errors_supported=yes
11975else
11976 _pkg_short_errors_supported=no
11977fi
11978 if test $_pkg_short_errors_supported = yes; then
11979 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11980 else
11981 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11982 fi
11983 # Put the nasty error message in config.log where it belongs
11984 echo "$CPG_PKG_ERRORS" >&5
11985
90c80887
AK
11986 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11987
11988$CPG_PKG_ERRORS
11989
11990Consider adjusting the PKG_CONFIG_PATH environment variable if you
11991installed software in a non-standard prefix.
11992
11993Alternatively, you may set the environment variables CPG_CFLAGS
11994and CPG_LIBS to avoid the need to call pkg-config.
11995See the pkg-config man page for more details.
11996" >&5
11997$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11998
11999$CPG_PKG_ERRORS
12000
12001Consider adjusting the PKG_CONFIG_PATH environment variable if you
12002installed software in a non-standard prefix.
12003
12004Alternatively, you may set the environment variables CPG_CFLAGS
12005and CPG_LIBS to avoid the need to call pkg-config.
12006See the pkg-config man page for more details.
12007" >&2;}
12008 { (exit 1); exit 1; }; }
a946372e 12009elif test $pkg_failed = untried; then
90c80887
AK
12010 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12012{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12013is in your PATH or set the PKG_CONFIG environment variable to the full
12014path to pkg-config.
12015
12016Alternatively, you may set the environment variables CPG_CFLAGS
12017and CPG_LIBS to avoid the need to call pkg-config.
12018See the pkg-config man page for more details.
12019
12020To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12021See \`config.log' for more details." >&5
12022$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12023is in your PATH or set the PKG_CONFIG environment variable to the full
12024path to pkg-config.
12025
12026Alternatively, you may set the environment variables CPG_CFLAGS
12027and CPG_LIBS to avoid the need to call pkg-config.
12028See the pkg-config man page for more details.
12029
12030To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12031See \`config.log' for more details." >&2;}
12032 { (exit 1); exit 1; }; }; }
a946372e
AK
12033else
12034 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12035 CPG_LIBS=$pkg_cv_CPG_LIBS
12036 { $as_echo "$as_me:$LINENO: result: yes" >&5
12037$as_echo "yes" >&6; }
12038 :
12039fi
90c80887 12040 fi
a946372e
AK
12041fi
12042
12043################################################################################
12044{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12045$as_echo_n "checking whether to enable debugging... " >&6; }
12046# Check whether --enable-debug was given.
12047if test "${enable_debug+set}" = set; then
12048 enableval=$enable_debug; DEBUG=$enableval
12049else
12050 DEBUG=no
12051fi
12052
12053{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12054$as_echo "$DEBUG" >&6; }
12055
12056if test x$DEBUG = xyes; then
12057 COPTIMISE_FLAG=
12058else
12059 CSCOPE_CMD=
12060fi
12061
12062################################################################################
12063{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12064$as_echo_n "checking for C optimisation flag... " >&6; }
12065
12066# Check whether --with-optimisation was given.
12067if test "${with_optimisation+set}" = set; then
12068 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12069fi
12070
12071{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12072$as_echo "$COPTIMISE_FLAG" >&6; }
12073
12074################################################################################
12075{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12076$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12077# Check whether --enable-profiling was given.
12078if test "${enable_profiling+set}" = set; then
5556819a 12079 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12080else
5556819a 12081 PROFILING=no
fddafd51
ZK
12082fi
12083
ec6a6fbe
AK
12084{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12085$as_echo "$PROFILING" >&6; }
5556819a
AK
12086
12087if test "x$PROFILING" = xyes; then
12088 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12089 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12090set dummy lcov; ac_word=$2
ec6a6fbe
AK
12091{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12092$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12093if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12094 $as_echo_n "(cached) " >&6
fddafd51
ZK
12095else
12096 case $LCOV in
12097 [\\/]* | ?:[\\/]*)
12098 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12099 ;;
12100 *)
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12110 break 2
12111 fi
12112done
12113done
12114IFS=$as_save_IFS
12115
12116 ;;
12117esac
12118fi
12119LCOV=$ac_cv_path_LCOV
12120if test -n "$LCOV"; then
ec6a6fbe
AK
12121 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12122$as_echo "$LCOV" >&6; }
fddafd51 12123else
ec6a6fbe
AK
12124 { $as_echo "$as_me:$LINENO: result: no" >&5
12125$as_echo "no" >&6; }
fddafd51
ZK
12126fi
12127
12128
5556819a 12129 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12130set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12131{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12132$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12133if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12134 $as_echo_n "(cached) " >&6
fddafd51
ZK
12135else
12136 case $GENHTML in
12137 [\\/]* | ?:[\\/]*)
12138 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12139 ;;
12140 *)
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142for as_dir in $PATH
12143do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12150 break 2
12151 fi
12152done
12153done
12154IFS=$as_save_IFS
12155
12156 ;;
12157esac
12158fi
12159GENHTML=$ac_cv_path_GENHTML
12160if test -n "$GENHTML"; then
ec6a6fbe
AK
12161 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12162$as_echo "$GENHTML" >&6; }
fddafd51 12163else
ec6a6fbe
AK
12164 { $as_echo "$as_me:$LINENO: result: no" >&5
12165$as_echo "no" >&6; }
fddafd51
ZK
12166fi
12167
12168
fd4728e1 12169 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
12170 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12171$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12172 { (exit 1); exit 1; }; }
12173 fi
fd4728e1
ZK
12174 # Extract the first word of "genpng", so it can be a program name with args.
12175set dummy genpng; ac_word=$2
12176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12177$as_echo_n "checking for $ac_word... " >&6; }
12178if test "${ac_cv_path_GENPNG+set}" = set; then
12179 $as_echo_n "(cached) " >&6
12180else
12181 case $GENPNG in
12182 [\\/]* | ?:[\\/]*)
12183 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12184 ;;
12185 *)
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12193 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12196 fi
12197done
12198done
12199IFS=$as_save_IFS
12200
12201 ;;
12202esac
12203fi
12204GENPNG=$ac_cv_path_GENPNG
12205if test -n "$GENPNG"; then
12206 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12207$as_echo "$GENPNG" >&6; }
12208else
12209 { $as_echo "$as_me:$LINENO: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
12212
12213
12214 if test -n "$GENPNG"; then
12215 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12216$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12217 if $GENPNG --help > /dev/null 2>&1 ; then
12218 { $as_echo "$as_me:$LINENO: result: ok" >&5
12219$as_echo "ok" >&6; }
12220 GENHTML="$GENHTML --frames"
12221 else
12222 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12223$as_echo "not supported" >&6; }
12224 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12225$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12226 GENPNG=
12227 fi
12228 fi
5556819a 12229fi
d0191583
JM
12230
12231################################################################################
ec6a6fbe
AK
12232{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12233$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12234# Check whether --enable-devmapper was given.
12235if test "${enable_devmapper+set}" = set; then
12236 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12237fi
12238
ec6a6fbe
AK
12239{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12240$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12241
12242if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12243
12244cat >>confdefs.h <<\_ACEOF
d0191583 12245#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12246_ACEOF
12247
12248fi
12249
a5f46f6a
AK
12250################################################################################
12251{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12252$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12253# Check whether --enable-udev_sync was given.
12254if test "${enable_udev_sync+set}" = set; then
12255 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12256else
12257 UDEV_SYNC=no
12258fi
12259
12260{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12261$as_echo "$UDEV_SYNC" >&6; }
12262
90c80887
AK
12263if test x$UDEV_SYNC = xyes; then
12264 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12265$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12266if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12268else
12269 ac_check_lib_save_LIBS=$LIBS
12270LIBS="-ludev $LIBS"
12271cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277
12278/* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
12281#ifdef __cplusplus
12282extern "C"
12283#endif
12284char udev_queue_get_udev_is_active ();
12285int
12286main ()
12287{
12288return udev_queue_get_udev_is_active ();
12289 ;
12290 return 0;
12291}
12292_ACEOF
12293rm -f conftest.$ac_objext conftest$ac_exeext
12294if { (ac_try="$ac_link"
12295case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12300$as_echo "$ac_try_echo") >&5
12301 (eval "$ac_link") 2>conftest.er1
12302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
12306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest$ac_exeext && {
12311 test "$cross_compiling" = yes ||
12312 $as_test_x conftest$ac_exeext
12313 }; then
12314 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12315else
12316 $as_echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12320fi
12321
12322rm -rf conftest.dSYM
12323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12324 conftest$ac_exeext conftest.$ac_ext
12325LIBS=$ac_check_lib_save_LIBS
12326fi
12327{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12328$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12329if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
5161ecb9 12330 UDEV_LIBS="-ludev"
90c80887 12331else
5161ecb9
PR
12332 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12333$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12334 { (exit 1); exit 1; }; }
90c80887
AK
12335fi
12336
12337
90c80887 12338cat >>confdefs.h <<\_ACEOF
5161ecb9 12339#define UDEV_SYNC_SUPPORT 1
90c80887
AK
12340_ACEOF
12341
90c80887
AK
12342fi
12343
5161ecb9
PR
12344{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12345$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12346# Check whether --enable-udev_rules was given.
12347if test "${enable_udev_rules+set}" = set; then
12348 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12349else
12350 UDEV_RULES=$UDEV_SYNC
12351fi
12352
12353{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12354$as_echo "$UDEV_RULES" >&6; }
12355
93bd259b
AK
12356################################################################################
12357# Check whether --enable-compat was given.
12358if test "${enable_compat+set}" = set; then
12359 enableval=$enable_compat; DM_COMPAT=$enableval
12360else
12361 DM_COMPAT=no
12362fi
12363
12364
95eaa683
AK
12365################################################################################
12366# Check whether --enable-units-compat was given.
12367if test "${enable_units_compat+set}" = set; then
12368 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12369else
12370 UNITS_COMPAT=no
12371fi
12372
12373
12374if test x$UNITS_COMPAT = xyes; then
12375
12376cat >>confdefs.h <<\_ACEOF
12377#define DEFAULT_SI_UNIT_CONSISTENCY 0
12378_ACEOF
12379
12380fi
12381
93bd259b
AK
12382################################################################################
12383# Check whether --enable-ioctl was given.
12384if test "${enable_ioctl+set}" = set; then
12385 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12386fi
12387
12388
d0191583 12389################################################################################
ec6a6fbe
AK
12390{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12391$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12392# Check whether --enable-o_direct was given.
12393if test "${enable_o_direct+set}" = set; then
12394 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12395fi
ad6254c5 12396
ec6a6fbe
AK
12397{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12398$as_echo "$ODIRECT" >&6; }
ad6254c5 12399
d0191583 12400if test x$ODIRECT = xyes; then
ad6254c5 12401
d0191583
JM
12402cat >>confdefs.h <<\_ACEOF
12403#define O_DIRECT_SUPPORT 1
12404_ACEOF
ad6254c5 12405
d0191583 12406fi
ad6254c5 12407
572fefeb
AK
12408################################################################################
12409{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12410$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12411# Check whether --enable-applib was given.
12412if test "${enable_applib+set}" = set; then
12413 enableval=$enable_applib; APPLIB=$enableval
12414else
12415 APPLIB=no
12416fi
12417
12418{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12419$as_echo "$APPLIB" >&6; }
12420
12421test x$APPLIB = xyes \
12422 && LVM2APP_LIB=-llvm2app \
12423 || LVM2APP_LIB=
12424
d0191583 12425################################################################################
ec6a6fbe
AK
12426{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12427$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12428# Check whether --enable-cmdlib was given.
12429if test "${enable_cmdlib+set}" = set; then
12430 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12431else
d0191583
JM
12432 CMDLIB=no
12433fi
8a2fc586 12434
ec6a6fbe
AK
12435{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12436$as_echo "$CMDLIB" >&6; }
8a2fc586 12437
2a9a80c9 12438test x$CMDLIB = xyes \
d179cc7a
JM
12439 && LVM2CMD_LIB=-llvm2cmd \
12440 || LVM2CMD_LIB=
12441
93bd259b
AK
12442################################################################################
12443# Check whether --enable-pkgconfig was given.
12444if test "${enable_pkgconfig+set}" = set; then
12445 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12446else
12447 PKGCONFIG=no
12448fi
12449
2a9a80c9 12450
23b059e7
ZK
12451################################################################################
12452# Check whether --enable-write_install was given.
12453if test "${enable_write_install+set}" = set; then
12454 enableval=$enable_write_install; WRITE_INSTALL=$enableval
12455else
12456 WRITE_INSTALL=no
12457fi
12458
12459
d0191583 12460################################################################################
ec6a6fbe
AK
12461{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12462$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12463# Check whether --enable-fsadm was given.
12464if test "${enable_fsadm+set}" = set; then
12465 enableval=$enable_fsadm; FSADM=$enableval
12466fi
8a2fc586 12467
ec6a6fbe
AK
12468{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12469$as_echo "$FSADM" >&6; }
8a2fc586 12470
d0191583 12471################################################################################
ec6a6fbe
AK
12472{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12473$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12474# Check whether --enable-dmeventd was given.
12475if test "${enable_dmeventd+set}" = set; then
12476 enableval=$enable_dmeventd; DMEVENTD=$enableval
12477fi
ad6254c5 12478
ec6a6fbe
AK
12479{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12480$as_echo "$DMEVENTD" >&6; }
ad6254c5 12481
93bd259b
AK
12482BUILD_DMEVENTD=$DMEVENTD
12483
2a9a80c9
PR
12484if test x$DMEVENTD = xyes; then
12485 if test x$MIRRORS != xinternal; then
ec6a6fbe 12486 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12487 " >&5
ec6a6fbe 12488$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12489 " >&2;}
d0191583 12490 { (exit 1); exit 1; }; }
2a9a80c9
PR
12491 fi
12492 if test x$CMDLIB = xno; then
ec6a6fbe 12493 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12494 " >&5
ec6a6fbe 12495$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12496 " >&2;}
12497 { (exit 1); exit 1; }; }
12498 fi
ad6254c5 12499fi
7a197a62 12500
d0191583
JM
12501if test x$DMEVENTD = xyes; then
12502
12503cat >>confdefs.h <<\_ACEOF
12504#define DMEVENTD 1
ad6254c5
AK
12505_ACEOF
12506
ad6254c5 12507fi
93bd259b
AK
12508
12509################################################################################
12510
ec6a6fbe
AK
12511{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12512$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12513if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12514 $as_echo_n "(cached) " >&6
93bd259b
AK
12515else
12516 ac_check_lib_save_LIBS=$LIBS
12517LIBS="-lc $LIBS"
12518cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h. */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */
12524
12525/* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528#ifdef __cplusplus
12529extern "C"
12530#endif
12531char getline ();
12532int
12533main ()
12534{
12535return getline ();
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext conftest$ac_exeext
12541if { (ac_try="$ac_link"
12542case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545esac
ec6a6fbe
AK
12546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547$as_echo "$ac_try_echo") >&5
93bd259b
AK
12548 (eval "$ac_link") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
ec6a6fbe 12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
ec6a6fbe
AK
12557 } && test -s conftest$ac_exeext && {
12558 test "$cross_compiling" = yes ||
12559 $as_test_x conftest$ac_exeext
12560 }; then
93bd259b
AK
12561 ac_cv_lib_c_getline=yes
12562else
ec6a6fbe 12563 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 ac_cv_lib_c_getline=no
12567fi
12568
ec6a6fbe 12569rm -rf conftest.dSYM
93bd259b
AK
12570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12571 conftest$ac_exeext conftest.$ac_ext
12572LIBS=$ac_check_lib_save_LIBS
12573fi
ec6a6fbe
AK
12574{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12575$as_echo "$ac_cv_lib_c_getline" >&6; }
12576if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12577
12578cat >>confdefs.h <<\_ACEOF
12579#define HAVE_GETLINE 1
12580_ACEOF
12581
12582fi
12583
12584
12585################################################################################
12586
ec6a6fbe
AK
12587{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12588$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12589if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12590 $as_echo_n "(cached) " >&6
93bd259b
AK
12591else
12592 ac_check_lib_save_LIBS=$LIBS
12593LIBS="-lc $LIBS"
12594cat >conftest.$ac_ext <<_ACEOF
12595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
12600
12601/* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12604#ifdef __cplusplus
12605extern "C"
12606#endif
12607char canonicalize_file_name ();
12608int
12609main ()
12610{
12611return canonicalize_file_name ();
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616rm -f conftest.$ac_objext conftest$ac_exeext
12617if { (ac_try="$ac_link"
12618case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
ec6a6fbe
AK
12622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12623$as_echo "$ac_try_echo") >&5
93bd259b
AK
12624 (eval "$ac_link") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
ec6a6fbe 12629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
ec6a6fbe
AK
12633 } && test -s conftest$ac_exeext && {
12634 test "$cross_compiling" = yes ||
12635 $as_test_x conftest$ac_exeext
12636 }; then
93bd259b
AK
12637 ac_cv_lib_c_canonicalize_file_name=yes
12638else
ec6a6fbe 12639 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 ac_cv_lib_c_canonicalize_file_name=no
12643fi
12644
ec6a6fbe 12645rm -rf conftest.dSYM
93bd259b
AK
12646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12647 conftest$ac_exeext conftest.$ac_ext
12648LIBS=$ac_check_lib_save_LIBS
12649fi
ec6a6fbe
AK
12650{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12651$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12652if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12653
12654cat >>confdefs.h <<\_ACEOF
12655#define HAVE_CANONICALIZE_FILE_NAME 1
12656_ACEOF
12657
12658fi
12659
12660
d0191583
JM
12661################################################################################
12662if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12663 then exec_prefix="";
12664fi;
ad6254c5 12665
ad6254c5 12666################################################################################
ec6a6fbe
AK
12667{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12668$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12669if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12670 $as_echo_n "(cached) " >&6
ad6254c5
AK
12671else
12672 ac_check_lib_save_LIBS=$LIBS
12673LIBS="-ldl $LIBS"
12674cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12675/* confdefs.h. */
12676_ACEOF
12677cat confdefs.h >>conftest.$ac_ext
12678cat >>conftest.$ac_ext <<_ACEOF
12679/* end confdefs.h. */
12680
7a197a62
AK
12681/* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12684#ifdef __cplusplus
12685extern "C"
12686#endif
ad6254c5
AK
12687char dlopen ();
12688int
12689main ()
12690{
7a197a62 12691return dlopen ();
ad6254c5
AK
12692 ;
12693 return 0;
12694}
12695_ACEOF
12696rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12697if { (ac_try="$ac_link"
12698case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701esac
ec6a6fbe
AK
12702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12703$as_echo "$ac_try_echo") >&5
7a197a62 12704 (eval "$ac_link") 2>conftest.er1
ad6254c5 12705 ac_status=$?
8a2fc586
AK
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
ec6a6fbe 12709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12710 (exit $ac_status); } && {
12711 test -z "$ac_c_werror_flag" ||
12712 test ! -s conftest.err
ec6a6fbe
AK
12713 } && test -s conftest$ac_exeext && {
12714 test "$cross_compiling" = yes ||
12715 $as_test_x conftest$ac_exeext
12716 }; then
ad6254c5
AK
12717 ac_cv_lib_dl_dlopen=yes
12718else
ec6a6fbe 12719 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12720sed 's/^/| /' conftest.$ac_ext >&5
12721
7a197a62 12722 ac_cv_lib_dl_dlopen=no
ad6254c5 12723fi
7a197a62 12724
ec6a6fbe 12725rm -rf conftest.dSYM
25fbec5b 12726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12727 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12728LIBS=$ac_check_lib_save_LIBS
12729fi
ec6a6fbe
AK
12730{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12731$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12732if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 12733
72b2cb61
AK
12734
12735cat >>confdefs.h <<\_ACEOF
12736#define HAVE_LIBDL 1
12737_ACEOF
12738
19a2c6e0
ZK
12739 DL_LIBS="-ldl"
12740 HAVE_LIBDL=yes
ad6254c5 12741else
19a2c6e0
ZK
12742
12743 DL_LIBS=
ad6254c5
AK
12744 HAVE_LIBDL=no
12745fi
12746
19a2c6e0 12747
ad6254c5
AK
12748################################################################################
12749if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12750 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12751 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12752 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12753" >&5
ec6a6fbe 12754$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12755" >&2;}
12756 { (exit 1); exit 1; }; }
12757fi
12758
f30875db
ZK
12759################################################################################
12760if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12761 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12762$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12763if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12764 $as_echo_n "(cached) " >&6
12765else
12766 ac_check_lib_save_LIBS=$LIBS
12767LIBS="-lpthread $LIBS"
12768cat >conftest.$ac_ext <<_ACEOF
12769/* confdefs.h. */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h. */
12774
12775/* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12778#ifdef __cplusplus
12779extern "C"
12780#endif
12781char pthread_mutex_lock ();
12782int
12783main ()
12784{
12785return pthread_mutex_lock ();
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext conftest$ac_exeext
12791if { (ac_try="$ac_link"
12792case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12797$as_echo "$ac_try_echo") >&5
12798 (eval "$ac_link") 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest$ac_exeext && {
12808 test "$cross_compiling" = yes ||
12809 $as_test_x conftest$ac_exeext
12810 }; then
12811 ac_cv_lib_pthread_pthread_mutex_lock=yes
12812else
12813 $as_echo "$as_me: failed program was:" >&5
12814sed 's/^/| /' conftest.$ac_ext >&5
12815
12816 ac_cv_lib_pthread_pthread_mutex_lock=no
12817fi
12818
12819rm -rf conftest.dSYM
12820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12821 conftest$ac_exeext conftest.$ac_ext
12822LIBS=$ac_check_lib_save_LIBS
12823fi
12824{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12825$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12826if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12827 PTHREAD_LIBS="-lpthread"
12828else
12829 hard_bailout
12830fi
12831
12832fi
12833
d0191583 12834################################################################################
ec6a6fbe
AK
12835{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12836$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12837# Check whether --enable-selinux was given.
12838if test "${enable_selinux+set}" = set; then
12839 enableval=$enable_selinux; SELINUX=$enableval
12840fi
12841
ec6a6fbe
AK
12842{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12843$as_echo "$SELINUX" >&6; }
d0191583 12844
ad6254c5
AK
12845################################################################################
12846if test x$SELINUX = xyes; then
ec6a6fbe
AK
12847 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12848$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12849if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12850 $as_echo_n "(cached) " >&6
8a2fc586
AK
12851else
12852 ac_check_lib_save_LIBS=$LIBS
12853LIBS="-lsepol $LIBS"
12854cat >conftest.$ac_ext <<_ACEOF
12855/* confdefs.h. */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
12859/* end confdefs.h. */
12860
7a197a62
AK
12861/* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12864#ifdef __cplusplus
12865extern "C"
12866#endif
8a2fc586
AK
12867char sepol_check_context ();
12868int
12869main ()
12870{
7a197a62 12871return sepol_check_context ();
8a2fc586
AK
12872 ;
12873 return 0;
12874}
12875_ACEOF
12876rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12877if { (ac_try="$ac_link"
12878case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12881esac
ec6a6fbe
AK
12882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12883$as_echo "$ac_try_echo") >&5
7a197a62 12884 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
ec6a6fbe 12889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12890 (exit $ac_status); } && {
12891 test -z "$ac_c_werror_flag" ||
12892 test ! -s conftest.err
ec6a6fbe
AK
12893 } && test -s conftest$ac_exeext && {
12894 test "$cross_compiling" = yes ||
12895 $as_test_x conftest$ac_exeext
12896 }; then
8a2fc586
AK
12897 ac_cv_lib_sepol_sepol_check_context=yes
12898else
ec6a6fbe 12899 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12900sed 's/^/| /' conftest.$ac_ext >&5
12901
7a197a62 12902 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12903fi
7a197a62 12904
ec6a6fbe 12905rm -rf conftest.dSYM
25fbec5b 12906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12907 conftest$ac_exeext conftest.$ac_ext
12908LIBS=$ac_check_lib_save_LIBS
12909fi
ec6a6fbe
AK
12910{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12911$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12912if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12913
d0191583
JM
12914
12915cat >>confdefs.h <<\_ACEOF
12916#define HAVE_SEPOL 1
12917_ACEOF
12918
f8f6ec92
ZK
12919 SELINUX_LIBS="-lsepol"
12920fi
12921
8a2fc586 12922
ec6a6fbe
AK
12923 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12924$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12925if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12926 $as_echo_n "(cached) " >&6
ad6254c5
AK
12927else
12928 ac_check_lib_save_LIBS=$LIBS
12929LIBS="-lselinux $LIBS"
12930cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936
7a197a62
AK
12937/* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12940#ifdef __cplusplus
12941extern "C"
12942#endif
ad6254c5
AK
12943char is_selinux_enabled ();
12944int
12945main ()
12946{
7a197a62 12947return is_selinux_enabled ();
ad6254c5
AK
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12953if { (ac_try="$ac_link"
12954case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
ec6a6fbe
AK
12958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12959$as_echo "$ac_try_echo") >&5
7a197a62 12960 (eval "$ac_link") 2>conftest.er1
ad6254c5 12961 ac_status=$?
8a2fc586
AK
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
ec6a6fbe 12965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
ec6a6fbe
AK
12969 } && test -s conftest$ac_exeext && {
12970 test "$cross_compiling" = yes ||
12971 $as_test_x conftest$ac_exeext
12972 }; then
ad6254c5
AK
12973 ac_cv_lib_selinux_is_selinux_enabled=yes
12974else
ec6a6fbe 12975 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
7a197a62 12978 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12979fi
7a197a62 12980
ec6a6fbe 12981rm -rf conftest.dSYM
25fbec5b 12982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12983 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12984LIBS=$ac_check_lib_save_LIBS
12985fi
ec6a6fbe
AK
12986{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12987$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12988if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 12989
72b2cb61 12990
f8f6ec92
ZK
12991for ac_header in selinux/selinux.h
12992do
12993as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12996$as_echo_n "checking for $ac_header... " >&6; }
12997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12998 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
12999fi
13000ac_res=`eval 'as_val=${'$as_ac_Header'}
13001 $as_echo "$as_val"'`
13002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13003$as_echo "$ac_res" >&6; }
66e941e8 13004else
f8f6ec92
ZK
13005 # Is the header compilable?
13006{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13007$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
13008cat >conftest.$ac_ext <<_ACEOF
13009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
f8f6ec92
ZK
13014$ac_includes_default
13015#include <$ac_header>
66e941e8 13016_ACEOF
f8f6ec92
ZK
13017rm -f conftest.$ac_objext
13018if { (ac_try="$ac_compile"
66e941e8
JM
13019case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
ec6a6fbe
AK
13023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13024$as_echo "$ac_try_echo") >&5
f8f6ec92 13025 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
ec6a6fbe 13030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
f8f6ec92
ZK
13034 } && test -s conftest.$ac_objext; then
13035 ac_header_compiler=yes
13036else
13037 $as_echo "$as_me: failed program was:" >&5
13038sed 's/^/| /' conftest.$ac_ext >&5
13039
13040 ac_header_compiler=no
13041fi
13042
13043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13045$as_echo "$ac_header_compiler" >&6; }
13046
13047# Is the header present?
13048{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13049$as_echo_n "checking $ac_header presence... " >&6; }
13050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056#include <$ac_header>
13057_ACEOF
13058if { (ac_try="$ac_cpp conftest.$ac_ext"
13059case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062esac
13063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13064$as_echo "$ac_try_echo") >&5
13065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } >/dev/null && {
13072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13073 test ! -s conftest.err
ec6a6fbe 13074 }; then
f8f6ec92 13075 ac_header_preproc=yes
66e941e8 13076else
ec6a6fbe 13077 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
f8f6ec92
ZK
13080 ac_header_preproc=no
13081fi
13082
13083rm -f conftest.err conftest.$ac_ext
13084{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13085$as_echo "$ac_header_preproc" >&6; }
13086
13087# So? What about this header?
13088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13089 yes:no: )
13090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13091$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13093$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13094 ac_header_preproc=yes
13095 ;;
13096 no:yes:* )
13097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13098$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13100$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13102$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13104$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13106$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13108$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13109
f8f6ec92
ZK
13110 ;;
13111esac
13112{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13113$as_echo_n "checking for $ac_header... " >&6; }
13114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13115 $as_echo_n "(cached) " >&6
13116else
13117 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13118fi
f8f6ec92
ZK
13119ac_res=`eval 'as_val=${'$as_ac_Header'}
13120 $as_echo "$as_val"'`
13121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13122$as_echo "$ac_res" >&6; }
66e941e8 13123
66e941e8 13124fi
f8f6ec92
ZK
13125as_val=`eval 'as_val=${'$as_ac_Header'}
13126 $as_echo "$as_val"'`
13127 if test "x$as_val" = x""yes; then
13128 cat >>confdefs.h <<_ACEOF
13129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13130_ACEOF
13131
66e941e8 13132else
f8f6ec92 13133 hard_bailout
66e941e8 13134fi
f8f6ec92
ZK
13135
13136done
13137
13138
13139cat >>confdefs.h <<\_ACEOF
13140#define HAVE_SELINUX 1
13141_ACEOF
13142
13143 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13144 HAVE_SELINUX=yes
13145else
13146
13147 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13148$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13149 SELINUX_LIBS=
13150 HAVE_SELINUX=no
66e941e8
JM
13151fi
13152
ad6254c5
AK
13153fi
13154
8b1a3214
AK
13155################################################################################
13156if test x$REALTIME = xyes; then
ec6a6fbe
AK
13157 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13158$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13159if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13160 $as_echo_n "(cached) " >&6
8b1a3214
AK
13161else
13162 ac_check_lib_save_LIBS=$LIBS
13163LIBS="-lrt $LIBS"
13164cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170
7a197a62
AK
13171/* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13174#ifdef __cplusplus
13175extern "C"
13176#endif
8b1a3214
AK
13177char clock_gettime ();
13178int
13179main ()
13180{
7a197a62 13181return clock_gettime ();
8b1a3214
AK
13182 ;
13183 return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13187if { (ac_try="$ac_link"
13188case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191esac
ec6a6fbe
AK
13192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13193$as_echo "$ac_try_echo") >&5
7a197a62 13194 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
ec6a6fbe 13199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13200 (exit $ac_status); } && {
13201 test -z "$ac_c_werror_flag" ||
13202 test ! -s conftest.err
ec6a6fbe
AK
13203 } && test -s conftest$ac_exeext && {
13204 test "$cross_compiling" = yes ||
13205 $as_test_x conftest$ac_exeext
13206 }; then
8b1a3214
AK
13207 ac_cv_lib_rt_clock_gettime=yes
13208else
ec6a6fbe 13209 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13210sed 's/^/| /' conftest.$ac_ext >&5
13211
7a197a62 13212 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13213fi
7a197a62 13214
ec6a6fbe 13215rm -rf conftest.dSYM
25fbec5b 13216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13217 conftest$ac_exeext conftest.$ac_ext
13218LIBS=$ac_check_lib_save_LIBS
13219fi
ec6a6fbe
AK
13220{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13221$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13222if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13223 HAVE_REALTIME=yes
13224else
13225 HAVE_REALTIME=no
13226fi
13227
8b1a3214
AK
13228
13229 if test x$HAVE_REALTIME = xyes; then
13230
13231cat >>confdefs.h <<\_ACEOF
13232#define HAVE_REALTIME 1
13233_ACEOF
13234
13235 LIBS="-lrt $LIBS"
13236 else
ec6a6fbe
AK
13237 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13238$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13239 fi
13240fi
13241
ad6254c5
AK
13242################################################################################
13243
13244for ac_header in getopt.h
13245do
ec6a6fbe 13246as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13249$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13251 $as_echo_n "(cached) " >&6
ad6254c5 13252fi
ec6a6fbe
AK
13253ac_res=`eval 'as_val=${'$as_ac_Header'}
13254 $as_echo "$as_val"'`
13255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13256$as_echo "$ac_res" >&6; }
ad6254c5
AK
13257else
13258 # Is the header compilable?
ec6a6fbe
AK
13259{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13260$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13261cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13262/* confdefs.h. */
13263_ACEOF
13264cat confdefs.h >>conftest.$ac_ext
13265cat >>conftest.$ac_ext <<_ACEOF
13266/* end confdefs.h. */
13267$ac_includes_default
13268#include <$ac_header>
13269_ACEOF
13270rm -f conftest.$ac_objext
7a197a62
AK
13271if { (ac_try="$ac_compile"
13272case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275esac
ec6a6fbe
AK
13276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13277$as_echo "$ac_try_echo") >&5
7a197a62 13278 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13279 ac_status=$?
8a2fc586
AK
13280 grep -v '^ *+' conftest.er1 >conftest.err
13281 rm -f conftest.er1
13282 cat conftest.err >&5
ec6a6fbe 13283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13284 (exit $ac_status); } && {
13285 test -z "$ac_c_werror_flag" ||
13286 test ! -s conftest.err
13287 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13288 ac_header_compiler=yes
13289else
ec6a6fbe 13290 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13291sed 's/^/| /' conftest.$ac_ext >&5
13292
7a197a62 13293 ac_header_compiler=no
ad6254c5 13294fi
7a197a62
AK
13295
13296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13297{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13298$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13299
13300# Is the header present?
ec6a6fbe
AK
13301{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13302$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13303cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h. */
13309#include <$ac_header>
13310_ACEOF
7a197a62
AK
13311if { (ac_try="$ac_cpp conftest.$ac_ext"
13312case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315esac
ec6a6fbe
AK
13316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13317$as_echo "$ac_try_echo") >&5
7a197a62 13318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13319 ac_status=$?
13320 grep -v '^ *+' conftest.er1 >conftest.err
13321 rm -f conftest.er1
13322 cat conftest.err >&5
ec6a6fbe 13323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13324 (exit $ac_status); } >/dev/null && {
13325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13326 test ! -s conftest.err
13327 }; then
ad6254c5
AK
13328 ac_header_preproc=yes
13329else
ec6a6fbe 13330 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13331sed 's/^/| /' conftest.$ac_ext >&5
13332
13333 ac_header_preproc=no
13334fi
7a197a62 13335
ad6254c5 13336rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13337{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13338$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13339
13340# So? What about this header?
8a2fc586
AK
13341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13342 yes:no: )
ec6a6fbe
AK
13343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13344$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13346$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13347 ac_header_preproc=yes
ad6254c5 13348 ;;
8a2fc586 13349 no:yes:* )
ec6a6fbe
AK
13350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13351$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13353$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13355$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13357$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13359$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13361$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13362
ad6254c5
AK
13363 ;;
13364esac
ec6a6fbe
AK
13365{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13366$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13368 $as_echo_n "(cached) " >&6
ad6254c5 13369else
8a2fc586 13370 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13371fi
ec6a6fbe
AK
13372ac_res=`eval 'as_val=${'$as_ac_Header'}
13373 $as_echo "$as_val"'`
13374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13375$as_echo "$ac_res" >&6; }
ad6254c5
AK
13376
13377fi
ec6a6fbe
AK
13378as_val=`eval 'as_val=${'$as_ac_Header'}
13379 $as_echo "$as_val"'`
13380 if test "x$as_val" = x""yes; then
ad6254c5 13381 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13382#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13383_ACEOF
72b2cb61
AK
13384
13385cat >>confdefs.h <<\_ACEOF
13386#define HAVE_GETOPTLONG 1
13387_ACEOF
13388
ad6254c5
AK
13389fi
13390
13391done
13392
13393
13394################################################################################
06e459df 13395if test x$READLINE != xno; then
539f4a77
ZK
13396 lvm_saved_libs=$LIBS
13397 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13398$as_echo_n "checking for library containing tgetent... " >&6; }
13399if test "${ac_cv_search_tgetent+set}" = set; then
13400 $as_echo_n "(cached) " >&6
13401else
13402 ac_func_search_save_LIBS=$LIBS
13403cat >conftest.$ac_ext <<_ACEOF
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
13408/* end confdefs.h. */
bc1024f8 13409
539f4a77
ZK
13410/* Override any GCC internal prototype to avoid an error.
13411 Use char because int might match the return type of a GCC
13412 builtin and then its argument prototype would still apply. */
13413#ifdef __cplusplus
13414extern "C"
13415#endif
13416char tgetent ();
13417int
13418main ()
13419{
13420return tgetent ();
13421 ;
13422 return 0;
13423}
13424_ACEOF
13425for ac_lib in '' tinfo ncurses curses termcap termlib; do
13426 if test -z "$ac_lib"; then
13427 ac_res="none required"
13428 else
13429 ac_res=-l$ac_lib
13430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13431 fi
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433if { (ac_try="$ac_link"
13434case "(($ac_try" in
13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436 *) ac_try_echo=$ac_try;;
13437esac
13438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13439$as_echo "$ac_try_echo") >&5
13440 (eval "$ac_link") 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } && {
13447 test -z "$ac_c_werror_flag" ||
13448 test ! -s conftest.err
13449 } && test -s conftest$ac_exeext && {
13450 test "$cross_compiling" = yes ||
13451 $as_test_x conftest$ac_exeext
13452 }; then
13453 ac_cv_search_tgetent=$ac_res
13454else
13455 $as_echo "$as_me: failed program was:" >&5
13456sed 's/^/| /' conftest.$ac_ext >&5
13457
13458
13459fi
13460
13461rm -rf conftest.dSYM
13462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13463 conftest$ac_exeext
13464 if test "${ac_cv_search_tgetent+set}" = set; then
13465 break
13466fi
13467done
13468if test "${ac_cv_search_tgetent+set}" = set; then
13469 :
13470else
13471 ac_cv_search_tgetent=no
13472fi
13473rm conftest.$ac_ext
13474LIBS=$ac_func_search_save_LIBS
13475fi
13476{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13477$as_echo "$ac_cv_search_tgetent" >&6; }
13478ac_res=$ac_cv_search_tgetent
13479if test "$ac_res" != no; then
13480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13481 READLINE_LIBS=$ac_cv_search_tgetent
13482else
13483
13484 if test "$READLINE" = yes; then
13485 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13486--enable-readline option (which is enabled by default). Either disable readline
13487support with --disable-readline or download and install termcap from:
13488 ftp.gnu.org/gnu/termcap
13489Note: if you are using precompiled packages you will also need the development
13490 package as well (which may be called termcap-devel or something similar).
13491Note: (n)curses also seems to work as a substitute for termcap. This was
13492 not found either - but you could try installing that as well." >&5
13493$as_echo "$as_me: error: termcap could not be found which is required for the
13494--enable-readline option (which is enabled by default). Either disable readline
13495support with --disable-readline or download and install termcap from:
13496 ftp.gnu.org/gnu/termcap
13497Note: if you are using precompiled packages you will also need the development
13498 package as well (which may be called termcap-devel or something similar).
13499Note: (n)curses also seems to work as a substitute for termcap. This was
13500 not found either - but you could try installing that as well." >&2;}
13501 { (exit 1); exit 1; }; }
13502 fi
13503fi
13504
13505 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13506$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13507if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13508 $as_echo_n "(cached) " >&6
ad6254c5
AK
13509else
13510 ac_check_lib_save_LIBS=$LIBS
13511LIBS="-lreadline $LIBS"
13512cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518
7a197a62
AK
13519/* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13522#ifdef __cplusplus
13523extern "C"
13524#endif
ad6254c5
AK
13525char readline ();
13526int
13527main ()
13528{
7a197a62 13529return readline ();
ad6254c5
AK
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13535if { (ac_try="$ac_link"
13536case "(($ac_try" in
13537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13539esac
ec6a6fbe
AK
13540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13541$as_echo "$ac_try_echo") >&5
7a197a62 13542 (eval "$ac_link") 2>conftest.er1
ad6254c5 13543 ac_status=$?
8a2fc586
AK
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
ec6a6fbe 13547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
ec6a6fbe
AK
13551 } && test -s conftest$ac_exeext && {
13552 test "$cross_compiling" = yes ||
13553 $as_test_x conftest$ac_exeext
13554 }; then
ad6254c5
AK
13555 ac_cv_lib_readline_readline=yes
13556else
ec6a6fbe 13557 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
7a197a62 13560 ac_cv_lib_readline_readline=no
ad6254c5 13561fi
7a197a62 13562
ec6a6fbe 13563rm -rf conftest.dSYM
25fbec5b 13564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13565 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13566LIBS=$ac_check_lib_save_LIBS
13567fi
ec6a6fbe
AK
13568{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13569$as_echo "$ac_cv_lib_readline_readline" >&6; }
13570if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13571
13572
13573cat >>confdefs.h <<\_ACEOF
13574#define READLINE_SUPPORT 1
bc1024f8
JM
13575_ACEOF
13576
539f4a77
ZK
13577 LIBS=$lvm_saved_libs
13578 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13579$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13580if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13581 $as_echo_n "(cached) " >&6
13582else
13583 ac_check_lib_save_LIBS=$LIBS
13584LIBS="-lreadline $LIBS"
13585cat >conftest.$ac_ext <<_ACEOF
13586/* confdefs.h. */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h. */
bc1024f8 13591
539f4a77
ZK
13592/* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595#ifdef __cplusplus
13596extern "C"
13597#endif
13598char rl_line_buffer ();
13599int
13600main ()
13601{
13602return rl_line_buffer ();
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607rm -f conftest.$ac_objext conftest$ac_exeext
13608if { (ac_try="$ac_link"
13609case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13614$as_echo "$ac_try_echo") >&5
13615 (eval "$ac_link") 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } && {
13622 test -z "$ac_c_werror_flag" ||
13623 test ! -s conftest.err
13624 } && test -s conftest$ac_exeext && {
13625 test "$cross_compiling" = yes ||
13626 $as_test_x conftest$ac_exeext
13627 }; then
13628 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13629else
539f4a77
ZK
13630 $as_echo "$as_me: failed program was:" >&5
13631sed 's/^/| /' conftest.$ac_ext >&5
13632
13633 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13634fi
13635
539f4a77
ZK
13636rm -rf conftest.dSYM
13637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13638 conftest$ac_exeext conftest.$ac_ext
13639LIBS=$ac_check_lib_save_LIBS
13640fi
13641{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13642$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13643if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13644 READLINE_LIBS="-lreadline"
13645else
13646
13647 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13648$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13649 READLINE_LIBS="-lreadline $READLINE_LIBS"
13650
13651fi
13652
13653else
13654
13655 READLINE_LIBS=
13656 if test "$READLINE" = yes; then
13657 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13658--enable-readline option (which is enabled by default). Either disable readline
13659support with --disable-readline or download and install readline from:
13660 ftp.gnu.org/gnu/readline
13661Note: if you are using precompiled packages you will also need the development
539f4a77 13662package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13663$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13664--enable-readline option (which is enabled by default). Either disable readline
13665support with --disable-readline or download and install readline from:
13666 ftp.gnu.org/gnu/readline
13667Note: if you are using precompiled packages you will also need the development
539f4a77 13668package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13669 { (exit 1); exit 1; }; }
539f4a77
ZK
13670 fi
13671fi
13672
13673 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13674
13675for ac_func in rl_completion_matches
13676do
ec6a6fbe
AK
13677as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13678{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13679$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13680if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13681 $as_echo_n "(cached) " >&6
ad6254c5
AK
13682else
13683 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
bc1024f8 13689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13691#define $ac_func innocuous_$ac_func
8a2fc586 13692
ad6254c5 13693/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13694 which can conflict with char $ac_func (); below.
ad6254c5
AK
13695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13696 <limits.h> exists even on freestanding compilers. */
8a2fc586 13697
ad6254c5
AK
13698#ifdef __STDC__
13699# include <limits.h>
13700#else
13701# include <assert.h>
13702#endif
8a2fc586 13703
bc1024f8 13704#undef $ac_func
8a2fc586 13705
7a197a62
AK
13706/* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13709#ifdef __cplusplus
13710extern "C"
ad6254c5 13711#endif
bc1024f8 13712char $ac_func ();
ad6254c5
AK
13713/* The GNU C library defines this for functions which it implements
13714 to always fail with ENOSYS. Some functions are actually named
13715 something starting with __ and the normal name is an alias. */
bc1024f8 13716#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13717choke me
ad6254c5
AK
13718#endif
13719
13720int
13721main ()
13722{
bc1024f8 13723return $ac_func ();
ad6254c5
AK
13724 ;
13725 return 0;
13726}
13727_ACEOF
13728rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13729if { (ac_try="$ac_link"
13730case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13733esac
ec6a6fbe
AK
13734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13735$as_echo "$ac_try_echo") >&5
7a197a62 13736 (eval "$ac_link") 2>conftest.er1
ad6254c5 13737 ac_status=$?
8a2fc586
AK
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
ec6a6fbe 13741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
ec6a6fbe
AK
13745 } && test -s conftest$ac_exeext && {
13746 test "$cross_compiling" = yes ||
13747 $as_test_x conftest$ac_exeext
13748 }; then
bc1024f8 13749 eval "$as_ac_var=yes"
ad6254c5 13750else
ec6a6fbe 13751 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13752sed 's/^/| /' conftest.$ac_ext >&5
13753
bc1024f8 13754 eval "$as_ac_var=no"
ad6254c5 13755fi
7a197a62 13756
ec6a6fbe 13757rm -rf conftest.dSYM
25fbec5b 13758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13759 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13760fi
ec6a6fbe
AK
13761ac_res=`eval 'as_val=${'$as_ac_var'}
13762 $as_echo "$as_val"'`
13763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13764$as_echo "$ac_res" >&6; }
13765as_val=`eval 'as_val=${'$as_ac_var'}
13766 $as_echo "$as_val"'`
13767 if test "x$as_val" = x""yes; then
bc1024f8 13768 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13769#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13770_ACEOF
13771
13772fi
bc1024f8 13773done
ad6254c5 13774
539f4a77 13775 LIBS=$lvm_saved_libs
ad6254c5
AK
13776fi
13777
13778################################################################################
ec6a6fbe
AK
13779{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13780$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13781# Check whether --enable-nls was given.
ad6254c5 13782if test "${enable_nls+set}" = set; then
7a197a62 13783 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13784else
13785 INTL=no
7a197a62
AK
13786fi
13787
ec6a6fbe
AK
13788{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13789$as_echo "$INTL" >&6; }
ad6254c5
AK
13790
13791if test x$INTL = xyes; then
93bd259b 13792# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13793 INTL_PACKAGE="lvm2"
13794 # Extract the first word of "msgfmt", so it can be a program name with args.
13795set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13797$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13798if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13799 $as_echo_n "(cached) " >&6
ad6254c5
AK
13800else
13801 case $MSGFMT in
13802 [\\/]* | ?:[\\/]*)
13803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13804 ;;
13805 *)
13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807for as_dir in $PATH
13808do
13809 IFS=$as_save_IFS
13810 test -z "$as_dir" && as_dir=.
13811 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13813 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13815 break 2
13816 fi
13817done
13818done
7a197a62 13819IFS=$as_save_IFS
ad6254c5
AK
13820
13821 ;;
13822esac
13823fi
13824MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13825if test -n "$MSGFMT"; then
ec6a6fbe
AK
13826 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13827$as_echo "$MSGFMT" >&6; }
ad6254c5 13828else
ec6a6fbe
AK
13829 { $as_echo "$as_me:$LINENO: result: no" >&5
13830$as_echo "no" >&6; }
ad6254c5
AK
13831fi
13832
7a197a62 13833
ad6254c5 13834 if [ "x$MSGFMT" == x ];
ec6a6fbe 13835 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13836 " >&5
ec6a6fbe 13837$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13838 " >&2;}
13839 { (exit 1); exit 1; }; }
13840 fi;
13841
13842
7a197a62 13843# Check whether --with-localedir was given.
ad6254c5 13844if test "${with_localedir+set}" = set; then
7a197a62 13845 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13846else
13847 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13848fi
13849
ad6254c5
AK
13850fi
13851
13852################################################################################
13853
7a197a62 13854# Check whether --with-confdir was given.
ad6254c5 13855if test "${with_confdir+set}" = set; then
7a197a62 13856 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13857else
13858 CONFDIR='/etc'
7a197a62
AK
13859fi
13860
ad6254c5
AK
13861
13862
7a197a62 13863# Check whether --with-staticdir was given.
ad6254c5 13864if test "${with_staticdir+set}" = set; then
7a197a62 13865 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13866else
13867 STATICDIR='${exec_prefix}/sbin'
7a197a62 13868fi
ad6254c5 13869
33f732c5 13870
7a197a62 13871
68f2de6d
AK
13872# Check whether --with-usrlibdir was given.
13873if test "${with_usrlibdir+set}" = set; then
13874 withval=$with_usrlibdir; usrlibdir="$withval"
13875else
13876 usrlibdir='${prefix}/lib'
13877fi
13878
13879
13880
13881# Check whether --with-usrsbindir was given.
13882if test "${with_usrsbindir+set}" = set; then
13883 withval=$with_usrsbindir; usrsbindir="$withval"
13884else
13885 usrsbindir='${prefix}/sbin'
13886fi
13887
13888
a5f46f6a
AK
13889################################################################################
13890
13891# Check whether --with-udev_prefix was given.
13892if test "${with_udev_prefix+set}" = set; then
13893 withval=$with_udev_prefix; udev_prefix="$withval"
13894else
13895 udev_prefix='${exec_prefix}'
13896fi
13897
13898
78ce7acc
AK
13899
13900# Check whether --with-udevdir was given.
13901if test "${with_udevdir+set}" = set; then
13902 withval=$with_udevdir; udevdir="$withval"
13903else
13904 udevdir='${udev_prefix}/lib/udev/rules.d'
13905fi
13906
a5f46f6a 13907
ad6254c5
AK
13908################################################################################
13909if test x$READLINE = xyes; then
13910
13911
13912for ac_header in readline/readline.h readline/history.h
13913do
ec6a6fbe 13914as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13917$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13919 $as_echo_n "(cached) " >&6
ad6254c5 13920fi
ec6a6fbe
AK
13921ac_res=`eval 'as_val=${'$as_ac_Header'}
13922 $as_echo "$as_val"'`
13923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13924$as_echo "$ac_res" >&6; }
ad6254c5
AK
13925else
13926 # Is the header compilable?
ec6a6fbe
AK
13927{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13928$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13929cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13930/* confdefs.h. */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h. */
13935$ac_includes_default
13936#include <$ac_header>
13937_ACEOF
13938rm -f conftest.$ac_objext
7a197a62
AK
13939if { (ac_try="$ac_compile"
13940case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13943esac
ec6a6fbe
AK
13944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13945$as_echo "$ac_try_echo") >&5
7a197a62 13946 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13947 ac_status=$?
8a2fc586
AK
13948 grep -v '^ *+' conftest.er1 >conftest.err
13949 rm -f conftest.er1
13950 cat conftest.err >&5
ec6a6fbe 13951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13952 (exit $ac_status); } && {
13953 test -z "$ac_c_werror_flag" ||
13954 test ! -s conftest.err
13955 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13956 ac_header_compiler=yes
13957else
ec6a6fbe 13958 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13959sed 's/^/| /' conftest.$ac_ext >&5
13960
7a197a62 13961 ac_header_compiler=no
ad6254c5 13962fi
7a197a62
AK
13963
13964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13965{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13966$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13967
13968# Is the header present?
ec6a6fbe
AK
13969{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13970$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13971cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13972/* confdefs.h. */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
13976/* end confdefs.h. */
13977#include <$ac_header>
13978_ACEOF
7a197a62
AK
13979if { (ac_try="$ac_cpp conftest.$ac_ext"
13980case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13983esac
ec6a6fbe
AK
13984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13985$as_echo "$ac_try_echo") >&5
7a197a62 13986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
ec6a6fbe 13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13992 (exit $ac_status); } >/dev/null && {
13993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 }; then
ad6254c5
AK
13996 ac_header_preproc=yes
13997else
ec6a6fbe 13998 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13999sed 's/^/| /' conftest.$ac_ext >&5
14000
14001 ac_header_preproc=no
14002fi
7a197a62 14003
ad6254c5 14004rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14005{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14006$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14007
14008# So? What about this header?
8a2fc586
AK
14009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14010 yes:no: )
ec6a6fbe
AK
14011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14012$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14014$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14015 ac_header_preproc=yes
ad6254c5 14016 ;;
8a2fc586 14017 no:yes:* )
ec6a6fbe
AK
14018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14019$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14021$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14023$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14025$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14027$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14029$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14030
ad6254c5
AK
14031 ;;
14032esac
ec6a6fbe
AK
14033{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14034$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14036 $as_echo_n "(cached) " >&6
ad6254c5 14037else
8a2fc586 14038 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14039fi
ec6a6fbe
AK
14040ac_res=`eval 'as_val=${'$as_ac_Header'}
14041 $as_echo "$as_val"'`
14042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14043$as_echo "$ac_res" >&6; }
ad6254c5
AK
14044
14045fi
ec6a6fbe
AK
14046as_val=`eval 'as_val=${'$as_ac_Header'}
14047 $as_echo "$as_val"'`
14048 if test "x$as_val" = x""yes; then
ad6254c5 14049 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14051_ACEOF
14052
14053else
ec6a6fbe
AK
14054 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14055$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14056 { (exit 1); exit 1; }; }
14057fi
14058
14059done
14060
14061fi
14062
5c7fc7c4 14063if test x$CLVMD != xnone; then
ad6254c5
AK
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074for 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
14075do
ec6a6fbe 14076as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14079$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14081 $as_echo_n "(cached) " >&6
ad6254c5 14082fi
ec6a6fbe
AK
14083ac_res=`eval 'as_val=${'$as_ac_Header'}
14084 $as_echo "$as_val"'`
14085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14086$as_echo "$ac_res" >&6; }
ad6254c5
AK
14087else
14088 # Is the header compilable?
ec6a6fbe
AK
14089{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14090$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14091cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14092/* confdefs.h. */
14093_ACEOF
14094cat confdefs.h >>conftest.$ac_ext
14095cat >>conftest.$ac_ext <<_ACEOF
14096/* end confdefs.h. */
14097$ac_includes_default
14098#include <$ac_header>
14099_ACEOF
14100rm -f conftest.$ac_objext
7a197a62
AK
14101if { (ac_try="$ac_compile"
14102case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105esac
ec6a6fbe
AK
14106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14107$as_echo "$ac_try_echo") >&5
7a197a62 14108 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14109 ac_status=$?
8a2fc586
AK
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
ec6a6fbe 14113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14118 ac_header_compiler=yes
14119else
ec6a6fbe 14120 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14121sed 's/^/| /' conftest.$ac_ext >&5
14122
7a197a62 14123 ac_header_compiler=no
ad6254c5 14124fi
7a197a62
AK
14125
14126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14127{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14128$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14129
14130# Is the header present?
ec6a6fbe
AK
14131{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14132$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14133cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14134/* confdefs.h. */
14135_ACEOF
14136cat confdefs.h >>conftest.$ac_ext
14137cat >>conftest.$ac_ext <<_ACEOF
14138/* end confdefs.h. */
14139#include <$ac_header>
14140_ACEOF
7a197a62
AK
14141if { (ac_try="$ac_cpp conftest.$ac_ext"
14142case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145esac
ec6a6fbe
AK
14146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14147$as_echo "$ac_try_echo") >&5
7a197a62 14148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14149 ac_status=$?
14150 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1
14152 cat conftest.err >&5
ec6a6fbe 14153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14154 (exit $ac_status); } >/dev/null && {
14155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14157 }; then
ad6254c5
AK
14158 ac_header_preproc=yes
14159else
ec6a6fbe 14160 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ac_header_preproc=no
14164fi
7a197a62 14165
ad6254c5 14166rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14167{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14168$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14169
14170# So? What about this header?
8a2fc586
AK
14171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14172 yes:no: )
ec6a6fbe
AK
14173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14174$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14176$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14177 ac_header_preproc=yes
ad6254c5 14178 ;;
8a2fc586 14179 no:yes:* )
ec6a6fbe
AK
14180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14181$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14183$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14185$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14187$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14189$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14191$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14192
ad6254c5
AK
14193 ;;
14194esac
ec6a6fbe
AK
14195{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14196$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14198 $as_echo_n "(cached) " >&6
ad6254c5 14199else
8a2fc586 14200 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14201fi
ec6a6fbe
AK
14202ac_res=`eval 'as_val=${'$as_ac_Header'}
14203 $as_echo "$as_val"'`
14204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14205$as_echo "$ac_res" >&6; }
ad6254c5
AK
14206
14207fi
ec6a6fbe
AK
14208as_val=`eval 'as_val=${'$as_ac_Header'}
14209 $as_echo "$as_val"'`
14210 if test "x$as_val" = x""yes; then
ad6254c5 14211 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14213_ACEOF
14214
14215else
ec6a6fbe
AK
14216 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14217$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14218 { (exit 1); exit 1; }; }
795ca3e5
AK
14219fi
14220
ad6254c5
AK
14221done
14222
14223
795ca3e5 14224
8106cdd5 14225
ad6254c5
AK
14226
14227
14228for ac_func in dup2 getmntent memmove select socket
14229do
ec6a6fbe
AK
14230as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14231{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14232$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14233if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14234 $as_echo_n "(cached) " >&6
795ca3e5 14235else
ad6254c5 14236 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14237/* confdefs.h. */
14238_ACEOF
14239cat confdefs.h >>conftest.$ac_ext
14240cat >>conftest.$ac_ext <<_ACEOF
14241/* end confdefs.h. */
8a2fc586
AK
14242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14244#define $ac_func innocuous_$ac_func
14245
795ca3e5 14246/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14247 which can conflict with char $ac_func (); below.
14248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14249 <limits.h> exists even on freestanding compilers. */
8a2fc586 14250
ad6254c5
AK
14251#ifdef __STDC__
14252# include <limits.h>
14253#else
14254# include <assert.h>
14255#endif
8a2fc586
AK
14256
14257#undef $ac_func
14258
7a197a62
AK
14259/* Override any GCC internal prototype to avoid an error.
14260 Use char because int might match the return type of a GCC
14261 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14262#ifdef __cplusplus
14263extern "C"
ad6254c5 14264#endif
ad6254c5 14265char $ac_func ();
795ca3e5
AK
14266/* The GNU C library defines this for functions which it implements
14267 to always fail with ENOSYS. Some functions are actually named
14268 something starting with __ and the normal name is an alias. */
7a197a62 14269#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14270choke me
795ca3e5
AK
14271#endif
14272
ad6254c5
AK
14273int
14274main ()
14275{
7a197a62 14276return $ac_func ();
ad6254c5
AK
14277 ;
14278 return 0;
14279}
14280_ACEOF
14281rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14282if { (ac_try="$ac_link"
14283case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286esac
ec6a6fbe
AK
14287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14288$as_echo "$ac_try_echo") >&5
7a197a62 14289 (eval "$ac_link") 2>conftest.er1
ad6254c5 14290 ac_status=$?
8a2fc586
AK
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
ec6a6fbe 14294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14295 (exit $ac_status); } && {
14296 test -z "$ac_c_werror_flag" ||
14297 test ! -s conftest.err
ec6a6fbe
AK
14298 } && test -s conftest$ac_exeext && {
14299 test "$cross_compiling" = yes ||
14300 $as_test_x conftest$ac_exeext
14301 }; then
ad6254c5 14302 eval "$as_ac_var=yes"
795ca3e5 14303else
ec6a6fbe 14304 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
7a197a62 14307 eval "$as_ac_var=no"
80992638 14308fi
7a197a62 14309
ec6a6fbe 14310rm -rf conftest.dSYM
25fbec5b 14311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14312 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14313fi
ec6a6fbe
AK
14314ac_res=`eval 'as_val=${'$as_ac_var'}
14315 $as_echo "$as_val"'`
14316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14317$as_echo "$ac_res" >&6; }
14318as_val=`eval 'as_val=${'$as_ac_var'}
14319 $as_echo "$as_val"'`
14320 if test "x$as_val" = x""yes; then
ad6254c5 14321 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14323_ACEOF
80992638
AK
14324
14325else
ec6a6fbe
AK
14326 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14327$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14328 { (exit 1); exit 1; }; }
8106cdd5 14329fi
ad6254c5 14330done
795ca3e5 14331
25fbec5b
AK
14332 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14333# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14334{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14335$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14336if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14337 $as_echo_n "(cached) " >&6
25fbec5b
AK
14338else
14339 ac_func_search_save_LIBS=$LIBS
14340cat >conftest.$ac_ext <<_ACEOF
14341/* confdefs.h. */
14342_ACEOF
14343cat confdefs.h >>conftest.$ac_ext
14344cat >>conftest.$ac_ext <<_ACEOF
14345/* end confdefs.h. */
80992638 14346
7a197a62
AK
14347/* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
ad6254c5 14349 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14350#ifdef __cplusplus
14351extern "C"
14352#endif
25fbec5b 14353char getmntent ();
ad6254c5
AK
14354int
14355main ()
14356{
25fbec5b 14357return getmntent ();
ad6254c5
AK
14358 ;
14359 return 0;
14360}
14361_ACEOF
25fbec5b
AK
14362for ac_lib in '' sun seq gen; do
14363 if test -z "$ac_lib"; then
14364 ac_res="none required"
14365 else
14366 ac_res=-l$ac_lib
14367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14368 fi
14369 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14370if { (ac_try="$ac_link"
14371case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
ec6a6fbe
AK
14375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14376$as_echo "$ac_try_echo") >&5
7a197a62 14377 (eval "$ac_link") 2>conftest.er1
ad6254c5 14378 ac_status=$?
8a2fc586
AK
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
ec6a6fbe 14382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
ec6a6fbe
AK
14386 } && test -s conftest$ac_exeext && {
14387 test "$cross_compiling" = yes ||
14388 $as_test_x conftest$ac_exeext
14389 }; then
25fbec5b 14390 ac_cv_search_getmntent=$ac_res
80992638 14391else
ec6a6fbe 14392 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
25fbec5b 14395
795ca3e5
AK
14396fi
14397
ec6a6fbe 14398rm -rf conftest.dSYM
25fbec5b
AK
14399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14400 conftest$ac_exeext
14401 if test "${ac_cv_search_getmntent+set}" = set; then
14402 break
795ca3e5 14403fi
25fbec5b
AK
14404done
14405if test "${ac_cv_search_getmntent+set}" = set; then
14406 :
14407else
14408 ac_cv_search_getmntent=no
14409fi
14410rm conftest.$ac_ext
14411LIBS=$ac_func_search_save_LIBS
14412fi
ec6a6fbe
AK
14413{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14414$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14415ac_res=$ac_cv_search_getmntent
14416if test "$ac_res" != no; then
14417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14418 ac_cv_func_getmntent=yes
14419
14420cat >>confdefs.h <<\_ACEOF
9c961554 14421#define HAVE_GETMNTENT 1
ad6254c5 14422_ACEOF
795ca3e5 14423
25fbec5b
AK
14424else
14425 ac_cv_func_getmntent=no
795ca3e5 14426fi
795ca3e5
AK
14427
14428
ad6254c5
AK
14429# AC_FUNC_REALLOC
14430
14431
14432for ac_header in sys/select.h sys/socket.h
14433do
ec6a6fbe 14434as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14437$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14439 $as_echo_n "(cached) " >&6
ad6254c5 14440fi
ec6a6fbe
AK
14441ac_res=`eval 'as_val=${'$as_ac_Header'}
14442 $as_echo "$as_val"'`
14443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14444$as_echo "$ac_res" >&6; }
795ca3e5 14445else
ad6254c5 14446 # Is the header compilable?
ec6a6fbe
AK
14447{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14448$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14449cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14450/* confdefs.h. */
14451_ACEOF
14452cat confdefs.h >>conftest.$ac_ext
14453cat >>conftest.$ac_ext <<_ACEOF
14454/* end confdefs.h. */
14455$ac_includes_default
14456#include <$ac_header>
14457_ACEOF
14458rm -f conftest.$ac_objext
7a197a62
AK
14459if { (ac_try="$ac_compile"
14460case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14463esac
ec6a6fbe
AK
14464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14465$as_echo "$ac_try_echo") >&5
7a197a62 14466 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14467 ac_status=$?
8a2fc586
AK
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
ec6a6fbe 14471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest.$ac_objext; then
ad6254c5 14476 ac_header_compiler=yes
80992638 14477else
ec6a6fbe 14478 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14479sed 's/^/| /' conftest.$ac_ext >&5
14480
7a197a62 14481 ac_header_compiler=no
ad6254c5 14482fi
7a197a62
AK
14483
14484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14485{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14486$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14487
14488# Is the header present?
ec6a6fbe
AK
14489{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14490$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14491cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
14497#include <$ac_header>
14498_ACEOF
7a197a62
AK
14499if { (ac_try="$ac_cpp conftest.$ac_ext"
14500case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503esac
ec6a6fbe
AK
14504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505$as_echo "$ac_try_echo") >&5
7a197a62 14506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
ec6a6fbe 14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14512 (exit $ac_status); } >/dev/null && {
14513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 }; then
ad6254c5
AK
14516 ac_header_preproc=yes
14517else
ec6a6fbe 14518 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14519sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_header_preproc=no
14522fi
7a197a62 14523
ad6254c5 14524rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14525{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14527
14528# So? What about this header?
8a2fc586
AK
14529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14530 yes:no: )
ec6a6fbe
AK
14531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14534$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14535 ac_header_preproc=yes
ad6254c5 14536 ;;
8a2fc586 14537 no:yes:* )
ec6a6fbe
AK
14538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14541$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14545$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14547$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14550
ad6254c5
AK
14551 ;;
14552esac
ec6a6fbe
AK
14553{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14554$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14556 $as_echo_n "(cached) " >&6
ad6254c5 14557else
8a2fc586 14558 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14559fi
ec6a6fbe
AK
14560ac_res=`eval 'as_val=${'$as_ac_Header'}
14561 $as_echo "$as_val"'`
14562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14563$as_echo "$ac_res" >&6; }
8106cdd5 14564
795ca3e5 14565fi
ec6a6fbe
AK
14566as_val=`eval 'as_val=${'$as_ac_Header'}
14567 $as_echo "$as_val"'`
14568 if test "x$as_val" = x""yes; then
ad6254c5 14569 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14571_ACEOF
14572
795ca3e5
AK
14573fi
14574
ad6254c5
AK
14575done
14576
ec6a6fbe
AK
14577{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14578$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14579if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14580 $as_echo_n "(cached) " >&6
26e7f2e0 14581else
ad6254c5 14582 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14583 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14584 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14585 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h. */
14591$ac_includes_default
25fbec5b 14592#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14593# include <sys/select.h>
14594#endif
25fbec5b 14595#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14596# include <sys/socket.h>
14597#endif
14598
14599int
14600main ()
14601{
14602extern int select ($ac_arg1,
8a2fc586
AK
14603 $ac_arg234, $ac_arg234, $ac_arg234,
14604 $ac_arg5);
ad6254c5
AK
14605 ;
14606 return 0;
14607}
14608_ACEOF
14609rm -f conftest.$ac_objext
7a197a62
AK
14610if { (ac_try="$ac_compile"
14611case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
ec6a6fbe
AK
14615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14616$as_echo "$ac_try_echo") >&5
7a197a62 14617 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14618 ac_status=$?
8a2fc586
AK
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
ec6a6fbe 14622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14623 (exit $ac_status); } && {
14624 test -z "$ac_c_werror_flag" ||
14625 test ! -s conftest.err
14626 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14627 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14628else
ec6a6fbe 14629 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
7a197a62 14632
ad6254c5 14633fi
7a197a62
AK
14634
14635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14636 done
14637 done
14638done
14639# Provide a safe default value.
14640: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14641
26e7f2e0 14642fi
ec6a6fbe
AK
14643{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14644$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14645ac_save_IFS=$IFS; IFS=','
14646set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14647IFS=$ac_save_IFS
14648shift
14649
14650cat >>confdefs.h <<_ACEOF
14651#define SELECT_TYPE_ARG1 $1
14652_ACEOF
14653
14654
14655cat >>confdefs.h <<_ACEOF
14656#define SELECT_TYPE_ARG234 ($2)
14657_ACEOF
14658
14659
14660cat >>confdefs.h <<_ACEOF
14661#define SELECT_TYPE_ARG5 ($3)
14662_ACEOF
14663
80992638 14664rm -f conftest*
80992638 14665
8106cdd5 14666fi
ad6254c5 14667
ad6254c5
AK
14668if test x$CLUSTER != xnone; then
14669
14670
14671for ac_header in sys/socket.h sys/un.h
b896caa1 14672do
ec6a6fbe 14673as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14676$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14678 $as_echo_n "(cached) " >&6
ad6254c5 14679fi
ec6a6fbe
AK
14680ac_res=`eval 'as_val=${'$as_ac_Header'}
14681 $as_echo "$as_val"'`
14682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14683$as_echo "$ac_res" >&6; }
ad6254c5
AK
14684else
14685 # Is the header compilable?
ec6a6fbe
AK
14686{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14687$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14688cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14689/* confdefs.h. */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h. */
14694$ac_includes_default
14695#include <$ac_header>
14696_ACEOF
14697rm -f conftest.$ac_objext
7a197a62
AK
14698if { (ac_try="$ac_compile"
14699case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702esac
ec6a6fbe
AK
14703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14704$as_echo "$ac_try_echo") >&5
7a197a62 14705 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14706 ac_status=$?
8a2fc586
AK
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
ec6a6fbe 14710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14715 ac_header_compiler=yes
14716else
ec6a6fbe 14717 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
7a197a62 14720 ac_header_compiler=no
ad6254c5 14721fi
7a197a62
AK
14722
14723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14724{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14726
14727# Is the header present?
ec6a6fbe
AK
14728{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14729$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14730cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14731/* confdefs.h. */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h. */
14736#include <$ac_header>
14737_ACEOF
7a197a62
AK
14738if { (ac_try="$ac_cpp conftest.$ac_ext"
14739case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
ec6a6fbe
AK
14743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14744$as_echo "$ac_try_echo") >&5
7a197a62 14745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
ec6a6fbe 14750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14751 (exit $ac_status); } >/dev/null && {
14752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14753 test ! -s conftest.err
14754 }; then
ad6254c5
AK
14755 ac_header_preproc=yes
14756else
ec6a6fbe 14757 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 ac_header_preproc=no
14761fi
7a197a62 14762
ad6254c5 14763rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14764{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14766
14767# So? What about this header?
8a2fc586
AK
14768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14769 yes:no: )
ec6a6fbe
AK
14770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14771$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14773$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14774 ac_header_preproc=yes
ad6254c5 14775 ;;
8a2fc586 14776 no:yes:* )
ec6a6fbe
AK
14777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14778$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14780$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14782$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14784$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14786$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14788$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14789
ad6254c5
AK
14790 ;;
14791esac
ec6a6fbe
AK
14792{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14793$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14795 $as_echo_n "(cached) " >&6
ad6254c5 14796else
8a2fc586 14797 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14798fi
ec6a6fbe
AK
14799ac_res=`eval 'as_val=${'$as_ac_Header'}
14800 $as_echo "$as_val"'`
14801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14802$as_echo "$ac_res" >&6; }
ad6254c5
AK
14803
14804fi
ec6a6fbe
AK
14805as_val=`eval 'as_val=${'$as_ac_Header'}
14806 $as_echo "$as_val"'`
14807 if test "x$as_val" = x""yes; then
ad6254c5 14808 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14810_ACEOF
14811
80992638 14812else
ec6a6fbe
AK
14813 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14814$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14815 { (exit 1); exit 1; }; }
b896caa1 14816fi
ad6254c5 14817
b896caa1
AK
14818done
14819
14820
ad6254c5
AK
14821for ac_func in socket
14822do
ec6a6fbe
AK
14823as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14824{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14825$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14826if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14827 $as_echo_n "(cached) " >&6
795ca3e5 14828else
ad6254c5 14829 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14830/* confdefs.h. */
14831_ACEOF
14832cat confdefs.h >>conftest.$ac_ext
14833cat >>conftest.$ac_ext <<_ACEOF
14834/* end confdefs.h. */
8a2fc586
AK
14835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14837#define $ac_func innocuous_$ac_func
14838
ad6254c5
AK
14839/* System header to define __stub macros and hopefully few prototypes,
14840 which can conflict with char $ac_func (); below.
14841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14842 <limits.h> exists even on freestanding compilers. */
8a2fc586 14843
ad6254c5
AK
14844#ifdef __STDC__
14845# include <limits.h>
14846#else
14847# include <assert.h>
14848#endif
8a2fc586
AK
14849
14850#undef $ac_func
14851
7a197a62
AK
14852/* Override any GCC internal prototype to avoid an error.
14853 Use char because int might match the return type of a GCC
14854 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14855#ifdef __cplusplus
14856extern "C"
ad6254c5 14857#endif
ad6254c5
AK
14858char $ac_func ();
14859/* The GNU C library defines this for functions which it implements
14860 to always fail with ENOSYS. Some functions are actually named
14861 something starting with __ and the normal name is an alias. */
7a197a62 14862#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14863choke me
ad6254c5
AK
14864#endif
14865
14866int
14867main ()
14868{
7a197a62 14869return $ac_func ();
ad6254c5
AK
14870 ;
14871 return 0;
14872}
14873_ACEOF
14874rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14875if { (ac_try="$ac_link"
14876case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879esac
ec6a6fbe
AK
14880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881$as_echo "$ac_try_echo") >&5
7a197a62 14882 (eval "$ac_link") 2>conftest.er1
ad6254c5 14883 ac_status=$?
8a2fc586
AK
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
ec6a6fbe 14887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
ec6a6fbe
AK
14891 } && test -s conftest$ac_exeext && {
14892 test "$cross_compiling" = yes ||
14893 $as_test_x conftest$ac_exeext
14894 }; then
ad6254c5
AK
14895 eval "$as_ac_var=yes"
14896else
ec6a6fbe 14897 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
7a197a62 14900 eval "$as_ac_var=no"
ad6254c5 14901fi
7a197a62 14902
ec6a6fbe 14903rm -rf conftest.dSYM
25fbec5b 14904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14905 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14906fi
ec6a6fbe
AK
14907ac_res=`eval 'as_val=${'$as_ac_var'}
14908 $as_echo "$as_val"'`
14909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14910$as_echo "$ac_res" >&6; }
14911as_val=`eval 'as_val=${'$as_ac_var'}
14912 $as_echo "$as_val"'`
14913 if test "x$as_val" = x""yes; then
ad6254c5 14914 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14915#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14916_ACEOF
14917
14918else
ec6a6fbe
AK
14919 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14920$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14921 { (exit 1); exit 1; }; }
14922fi
14923done
14924
14925fi
14926
14927if test x$HAVE_LIBDL = xyes; then
14928
14929for ac_header in dlfcn.h
14930do
ec6a6fbe 14931as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14933 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14934$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14936 $as_echo_n "(cached) " >&6
ad6254c5 14937fi
ec6a6fbe
AK
14938ac_res=`eval 'as_val=${'$as_ac_Header'}
14939 $as_echo "$as_val"'`
14940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14941$as_echo "$ac_res" >&6; }
ad6254c5
AK
14942else
14943 # Is the header compilable?
ec6a6fbe
AK
14944{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14945$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14946cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952$ac_includes_default
14953#include <$ac_header>
14954_ACEOF
14955rm -f conftest.$ac_objext
7a197a62
AK
14956if { (ac_try="$ac_compile"
14957case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14960esac
ec6a6fbe
AK
14961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14962$as_echo "$ac_try_echo") >&5
7a197a62 14963 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14964 ac_status=$?
8a2fc586
AK
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
ec6a6fbe 14968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14969 (exit $ac_status); } && {
14970 test -z "$ac_c_werror_flag" ||
14971 test ! -s conftest.err
14972 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14973 ac_header_compiler=yes
14974else
ec6a6fbe 14975 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
7a197a62 14978 ac_header_compiler=no
ad6254c5 14979fi
7a197a62
AK
14980
14981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14982{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14983$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14984
14985# Is the header present?
ec6a6fbe
AK
14986{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14987$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14988cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14989/* confdefs.h. */
14990_ACEOF
14991cat confdefs.h >>conftest.$ac_ext
14992cat >>conftest.$ac_ext <<_ACEOF
14993/* end confdefs.h. */
14994#include <$ac_header>
14995_ACEOF
7a197a62
AK
14996if { (ac_try="$ac_cpp conftest.$ac_ext"
14997case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
ec6a6fbe
AK
15001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15002$as_echo "$ac_try_echo") >&5
7a197a62 15003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
ec6a6fbe 15008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15009 (exit $ac_status); } >/dev/null && {
15010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 }; then
ad6254c5
AK
15013 ac_header_preproc=yes
15014else
ec6a6fbe 15015 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15016sed 's/^/| /' conftest.$ac_ext >&5
15017
15018 ac_header_preproc=no
15019fi
7a197a62 15020
ad6254c5 15021rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15022{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15023$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15024
15025# So? What about this header?
8a2fc586
AK
15026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15027 yes:no: )
ec6a6fbe
AK
15028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15029$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15031$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15032 ac_header_preproc=yes
ad6254c5 15033 ;;
8a2fc586 15034 no:yes:* )
ec6a6fbe
AK
15035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15036$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15038$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15040$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15042$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15044$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15046$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15047
ad6254c5
AK
15048 ;;
15049esac
ec6a6fbe
AK
15050{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15051$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15053 $as_echo_n "(cached) " >&6
ad6254c5 15054else
8a2fc586 15055 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 15056fi
ec6a6fbe
AK
15057ac_res=`eval 'as_val=${'$as_ac_Header'}
15058 $as_echo "$as_val"'`
15059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15060$as_echo "$ac_res" >&6; }
80992638 15061
8106cdd5 15062fi
ec6a6fbe
AK
15063as_val=`eval 'as_val=${'$as_ac_Header'}
15064 $as_echo "$as_val"'`
15065 if test "x$as_val" = x""yes; then
ad6254c5 15066 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15068_ACEOF
795ca3e5
AK
15069
15070else
ec6a6fbe
AK
15071 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15072$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15073 { (exit 1); exit 1; }; }
795ca3e5
AK
15074fi
15075
ad6254c5 15076done
80992638 15077
ad6254c5 15078fi
80992638 15079
ad6254c5 15080if test x$INTL = xyes; then
83912faa 15081
ad6254c5
AK
15082for ac_header in libintl.h
15083do
ec6a6fbe 15084as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15087$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15089 $as_echo_n "(cached) " >&6
ad6254c5 15090fi
ec6a6fbe
AK
15091ac_res=`eval 'as_val=${'$as_ac_Header'}
15092 $as_echo "$as_val"'`
15093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15094$as_echo "$ac_res" >&6; }
83912faa 15095else
ad6254c5 15096 # Is the header compilable?
ec6a6fbe
AK
15097{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15098$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15099cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15100/* confdefs.h. */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
15105$ac_includes_default
15106#include <$ac_header>
15107_ACEOF
15108rm -f conftest.$ac_objext
7a197a62
AK
15109if { (ac_try="$ac_compile"
15110case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113esac
ec6a6fbe
AK
15114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15115$as_echo "$ac_try_echo") >&5
7a197a62 15116 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15117 ac_status=$?
8a2fc586
AK
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
ec6a6fbe 15121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15122 (exit $ac_status); } && {
15123 test -z "$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15126 ac_header_compiler=yes
15127else
ec6a6fbe 15128 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15129sed 's/^/| /' conftest.$ac_ext >&5
15130
7a197a62 15131 ac_header_compiler=no
ad6254c5 15132fi
7a197a62
AK
15133
15134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15135{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15136$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15137
15138# Is the header present?
ec6a6fbe
AK
15139{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15140$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15141cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15142/* confdefs.h. */
15143_ACEOF
15144cat confdefs.h >>conftest.$ac_ext
15145cat >>conftest.$ac_ext <<_ACEOF
15146/* end confdefs.h. */
15147#include <$ac_header>
15148_ACEOF
7a197a62
AK
15149if { (ac_try="$ac_cpp conftest.$ac_ext"
15150case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153esac
ec6a6fbe
AK
15154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15155$as_echo "$ac_try_echo") >&5
7a197a62 15156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15157 ac_status=$?
15158 grep -v '^ *+' conftest.er1 >conftest.err
15159 rm -f conftest.er1
15160 cat conftest.err >&5
ec6a6fbe 15161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15162 (exit $ac_status); } >/dev/null && {
15163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15164 test ! -s conftest.err
15165 }; then
ad6254c5
AK
15166 ac_header_preproc=yes
15167else
ec6a6fbe 15168 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15169sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ac_header_preproc=no
15172fi
7a197a62 15173
ad6254c5 15174rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15175{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15176$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15177
15178# So? What about this header?
8a2fc586
AK
15179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15180 yes:no: )
ec6a6fbe
AK
15181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15182$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15184$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15185 ac_header_preproc=yes
ad6254c5 15186 ;;
8a2fc586 15187 no:yes:* )
ec6a6fbe
AK
15188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15189$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15191$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15193$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15195$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15197$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15199$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15200
ad6254c5
AK
15201 ;;
15202esac
ec6a6fbe
AK
15203{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15204$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15206 $as_echo_n "(cached) " >&6
80992638 15207else
8a2fc586 15208 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15209fi
ec6a6fbe
AK
15210ac_res=`eval 'as_val=${'$as_ac_Header'}
15211 $as_echo "$as_val"'`
15212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15213$as_echo "$ac_res" >&6; }
83912faa 15214
69792976 15215fi
ec6a6fbe
AK
15216as_val=`eval 'as_val=${'$as_ac_Header'}
15217 $as_echo "$as_val"'`
15218 if test "x$as_val" = x""yes; then
ad6254c5 15219 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15221_ACEOF
69792976 15222
69792976 15223else
ec6a6fbe
AK
15224 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15225$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15226 { (exit 1); exit 1; }; }
80992638
AK
15227fi
15228
ad6254c5 15229done
69792976 15230
ad6254c5
AK
15231fi
15232
a5f46f6a
AK
15233if test x$UDEV_SYNC = xyes; then
15234
15235
15236for ac_header in sys/ipc.h sys/sem.h
15237do
15238as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15241$as_echo_n "checking for $ac_header... " >&6; }
15242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15243 $as_echo_n "(cached) " >&6
15244fi
15245ac_res=`eval 'as_val=${'$as_ac_Header'}
15246 $as_echo "$as_val"'`
15247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15248$as_echo "$ac_res" >&6; }
15249else
15250 # Is the header compilable?
15251{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15252$as_echo_n "checking $ac_header usability... " >&6; }
15253cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
15258/* end confdefs.h. */
15259$ac_includes_default
15260#include <$ac_header>
15261_ACEOF
15262rm -f conftest.$ac_objext
15263if { (ac_try="$ac_compile"
15264case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267esac
15268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15269$as_echo "$ac_try_echo") >&5
15270 (eval "$ac_compile") 2>conftest.er1
15271 ac_status=$?
15272 grep -v '^ *+' conftest.er1 >conftest.err
15273 rm -f conftest.er1
15274 cat conftest.err >&5
15275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest.$ac_objext; then
15280 ac_header_compiler=yes
15281else
15282 $as_echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 ac_header_compiler=no
15286fi
15287
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15290$as_echo "$ac_header_compiler" >&6; }
15291
15292# Is the header present?
15293{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15294$as_echo_n "checking $ac_header presence... " >&6; }
15295cat >conftest.$ac_ext <<_ACEOF
15296/* confdefs.h. */
15297_ACEOF
15298cat confdefs.h >>conftest.$ac_ext
15299cat >>conftest.$ac_ext <<_ACEOF
15300/* end confdefs.h. */
15301#include <$ac_header>
15302_ACEOF
15303if { (ac_try="$ac_cpp conftest.$ac_ext"
15304case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307esac
15308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15309$as_echo "$ac_try_echo") >&5
15310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } >/dev/null && {
15317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15318 test ! -s conftest.err
15319 }; then
15320 ac_header_preproc=yes
15321else
15322 $as_echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325 ac_header_preproc=no
15326fi
15327
15328rm -f conftest.err conftest.$ac_ext
15329{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330$as_echo "$ac_header_preproc" >&6; }
15331
15332# So? What about this header?
15333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 yes:no: )
15335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15340 ;;
15341 no:yes:* )
15342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354
15355 ;;
15356esac
15357{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15358$as_echo_n "checking for $ac_header... " >&6; }
15359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 $as_echo_n "(cached) " >&6
15361else
15362 eval "$as_ac_Header=\$ac_header_preproc"
15363fi
15364ac_res=`eval 'as_val=${'$as_ac_Header'}
15365 $as_echo "$as_val"'`
15366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15367$as_echo "$ac_res" >&6; }
15368
15369fi
15370as_val=`eval 'as_val=${'$as_ac_Header'}
15371 $as_echo "$as_val"'`
15372 if test "x$as_val" = x""yes; then
15373 cat >>confdefs.h <<_ACEOF
15374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15375_ACEOF
15376
15377else
15378 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15379$as_echo "$as_me: error: bailing out" >&2;}
15380 { (exit 1); exit 1; }; }
15381fi
15382
15383done
15384
15385fi
15386
a653923f
AK
15387################################################################################
15388# Extract the first word of "modprobe", so it can be a program name with args.
15389set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15390{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15391$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15392if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15393 $as_echo_n "(cached) " >&6
72b2cb61
AK
15394else
15395 case $MODPROBE_CMD in
15396 [\\/]* | ?:[\\/]*)
15397 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15398 ;;
15399 *)
15400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401for as_dir in $PATH
15402do
15403 IFS=$as_save_IFS
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15407 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15409 break 2
15410 fi
15411done
15412done
7a197a62 15413IFS=$as_save_IFS
72b2cb61
AK
15414
15415 ;;
15416esac
15417fi
15418MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15419if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15420 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15421$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15422else
ec6a6fbe
AK
15423 { $as_echo "$as_me:$LINENO: result: no" >&5
15424$as_echo "no" >&6; }
72b2cb61
AK
15425fi
15426
a653923f 15427
7a197a62 15428
a653923f 15429if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15430
15431cat >>confdefs.h <<_ACEOF
15432#define MODPROBE_CMD "$MODPROBE_CMD"
15433_ACEOF
15434
a653923f
AK
15435fi
15436
80992638 15437################################################################################
93bd259b
AK
15438
15439
15440if test "$BUILD_DMEVENTD" = yes; then
15441
15442# Check whether --with-dmeventd-pidfile was given.
15443if test "${with_dmeventd_pidfile+set}" = set; then
15444 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15445#define DMEVENTD_PIDFILE "$withval"
15446_ACEOF
15447
15448else
15449 cat >>confdefs.h <<_ACEOF
15450#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15451_ACEOF
15452
15453fi
15454
15455fi
15456
15457
15458
15459if test "$BUILD_DMEVENTD" = yes; then
15460 dmeventd_prefix="$exec_prefix"
15461 if test "x$dmeventd_prefix" = "xNONE"; then
15462 dmeventd_prefix="$prefix"
15463 fi
15464 if test "x$dmeventd_prefix" = "xNONE"; then
15465 dmeventd_prefix=""
15466 fi
15467
15468# Check whether --with-dmeventd-path was given.
15469if test "${with_dmeventd_path+set}" = set; then
15470 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15471#define DMEVENTD_PATH "$withval"
15472_ACEOF
15473
15474else
15475 cat >>confdefs.h <<_ACEOF
15476#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15477_ACEOF
15478
15479fi
15480
15481fi
15482
15483################################################################################
ec6a6fbe
AK
15484{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15485$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15486
15487# Check whether --with-interface was given.
15488if test "${with_interface+set}" = set; then
15489 withval=$with_interface; interface="$withval"
15490else
15491 interface=ioctl
15492fi
15493
15494if [ "x$interface" != xioctl ];
15495then
ec6a6fbe
AK
15496 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15497$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15498 { (exit 1); exit 1; }; }
15499fi
ec6a6fbe
AK
15500{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15501$as_echo "$interface" >&6; }
93bd259b
AK
15502
15503################################################################################
db8b5af9 15504DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15505
15506cat >>confdefs.h <<_ACEOF
15507#define DM_LIB_VERSION $DM_LIB_VERSION
15508_ACEOF
15509
15510
db8b5af9 15511DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15512
db8b5af9 15513LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15514
db8b5af9 15515VER=`cat "$srcdir"/VERSION`
bf456146 15516LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15517VER=`echo "$VER" | $AWK '{print $1}'`
15518LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15519VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15520LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15521LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15522LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15523LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15524
80992638 15525################################################################################
fae0c576 15526
83912faa 15527
795ca3e5
AK
15528
15529
15530
15531
15532
15533
5a52dca9 15534
8ef2b021 15535
199e490e 15536
69792976
AK
15537
15538
15539
d0191583 15540
69792976 15541
8106cdd5
AK
15542
15543
15544
15545
15546
d68a82ec 15547
036f273a 15548
7d1552c9 15549
8106cdd5 15550
0a62c911 15551
8106cdd5 15552
4a7f3eb2 15553
4922197a
AK
15554
15555
d8ac0fbc 15556
1a9ea74d 15557
8a2fc586
AK
15558
15559
d0191583 15560
93bd259b
AK
15561
15562
15563
15564
15565
d0191583
JM
15566
15567
15568
15569
15570
8a2fc586 15571
19a2c6e0 15572
8ce0cbda 15573
8b1a3214 15574
ec6a6fbe
AK
15575
15576
15577
15578
e2997b73
AK
15579
15580
15581
15582
15583
15584
a946372e
AK
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
ec6a6fbe 15596
33f732c5 15597
66e941e8 15598
d3c8211f 15599
7e3fe830 15600
a5f46f6a
AK
15601
15602
15603
572fefeb 15604
90c80887
AK
15605
15606
bf456146 15607
e1b8a236 15608
0878503f 15609
68f2de6d
AK
15610
15611
80992638 15612################################################################################
d3d98fdc 15613ac_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 include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile 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 15614
ad6254c5 15615cat >confcache <<\_ACEOF
795ca3e5
AK
15616# This file is a shell script that caches the results of configure
15617# tests run on this system so they can be shared between configure
ad6254c5
AK
15618# scripts and configure runs, see configure's option --config-cache.
15619# It is not useful on other systems. If it contains results you don't
15620# want to keep, you may remove or edit it.
795ca3e5 15621#
ad6254c5
AK
15622# config.status only pays attention to the cache file if you give it
15623# the --recheck option to rerun configure.
795ca3e5 15624#
ad6254c5
AK
15625# `ac_cv_env_foo' variables (set or unset) will be overridden when
15626# loading this file, other *unset* `ac_cv_foo' will be assigned the
15627# following values.
15628
15629_ACEOF
15630
795ca3e5
AK
15631# The following way of writing the cache mishandles newlines in values,
15632# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15633# So, we kill variables containing newlines.
795ca3e5
AK
15634# Ultrix sh set writes to stderr and can't be redirected directly,
15635# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15636(
15637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15638 eval ac_val=\$$ac_var
15639 case $ac_val in #(
15640 *${as_nl}*)
15641 case $ac_var in #(
ec6a6fbe
AK
15642 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15643$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15644 esac
15645 case $ac_var in #(
15646 _ | IFS | as_nl) ;; #(
ec6a6fbe 15647 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15648 *) $as_unset $ac_var ;;
15649 esac ;;
15650 esac
15651 done
15652
ad6254c5 15653 (set) 2>&1 |
7a197a62
AK
15654 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15655 *${as_nl}ac_space=\ *)
ad6254c5
AK
15656 # `set' does not quote correctly, so add quotes (double-quote
15657 # substitution turns \\\\ into \\, and sed turns \\ into \).
15658 sed -n \
8a2fc586
AK
15659 "s/'/'\\\\''/g;
15660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15661 ;; #(
ad6254c5
AK
15662 *)
15663 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15665 ;;
7a197a62
AK
15666 esac |
15667 sort
15668) |
ad6254c5 15669 sed '
7a197a62 15670 /^ac_cv_env_/b end
ad6254c5 15671 t clear
7a197a62 15672 :clear
ad6254c5
AK
15673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15674 t end
7a197a62
AK
15675 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15676 :end' >>confcache
15677if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15678 if test -w "$cache_file"; then
15679 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15680 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15681$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15682 cat confcache >$cache_file
795ca3e5 15683 else
ec6a6fbe
AK
15684 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15685$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15686 fi
15687fi
15688rm -f confcache
15689
795ca3e5
AK
15690test "x$prefix" = xNONE && prefix=$ac_default_prefix
15691# Let make expand exec_prefix.
15692test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15693
72b2cb61 15694DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15695
15696ac_libobjs=
15697ac_ltlibobjs=
15698for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15699 # 1. Remove the extension, and $U if already installed.
7a197a62 15700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15703 # will be set to the directory where LIBOBJS objects are built.
15704 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15705 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15706done
15707LIBOBJS=$ac_libobjs
80992638 15708
ad6254c5
AK
15709LTLIBOBJS=$ac_ltlibobjs
15710
15711
15712
15713: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15714ac_write_fail=0
ad6254c5
AK
15715ac_clean_files_save=$ac_clean_files
15716ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15717{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15718$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15719cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15720#! $SHELL
15721# Generated by $as_me.
795ca3e5 15722# Run this file to recreate the current configuration.
795ca3e5 15723# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15724# configure, is in config.log if it exists.
15725
15726debug=false
15727ac_cs_recheck=false
15728ac_cs_silent=false
15729SHELL=\${CONFIG_SHELL-$SHELL}
15730_ACEOF
15731
ec6a6fbe 15732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15733## --------------------- ##
15734## M4sh Initialization. ##
15735## --------------------- ##
15736
25fbec5b
AK
15737# Be more Bourne compatible
15738DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15739if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15740 emulate sh
15741 NULLCMD=:
ec6a6fbe 15742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15743 # is contrary to our usage. Disable this feature.
15744 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15745 setopt NO_GLOB_SUBST
15746else
25fbec5b
AK
15747 case `(set -o) 2>/dev/null` in
15748 *posix*) set -o posix ;;
15749esac
15750
7a197a62 15751fi
25fbec5b
AK
15752
15753
7a197a62
AK
15754
15755
15756# PATH needs CR
15757# Avoid depending upon Character Ranges.
15758as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15759as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15760as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15761as_cr_digits='0123456789'
15762as_cr_alnum=$as_cr_Letters$as_cr_digits
15763
ec6a6fbe
AK
15764as_nl='
15765'
15766export as_nl
15767# Printing a long string crashes Solaris 7 /usr/bin/printf.
15768as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15769as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15771if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15772 as_echo='printf %s\n'
15773 as_echo_n='printf %s'
15774else
15775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15777 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15778 else
ec6a6fbe
AK
15779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15780 as_echo_n_body='eval
15781 arg=$1;
15782 case $arg in
15783 *"$as_nl"*)
15784 expr "X$arg" : "X\\(.*\\)$as_nl";
15785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15786 esac;
15787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15788 '
15789 export as_echo_n_body
15790 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15791 fi
ec6a6fbe
AK
15792 export as_echo_body
15793 as_echo='sh -c $as_echo_body as_echo'
15794fi
15795
15796# The user is always right.
15797if test "${PATH_SEPARATOR+set}" != set; then
15798 PATH_SEPARATOR=:
15799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15801 PATH_SEPARATOR=';'
15802 }
ad6254c5
AK
15803fi
15804
15805# Support unset when possible.
8a2fc586 15806if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15807 as_unset=unset
15808else
15809 as_unset=false
15810fi
8106cdd5 15811
ad6254c5 15812
7a197a62
AK
15813# IFS
15814# We need space, tab and new line, in precisely that order. Quoting is
15815# there to prevent editors from complaining about space-tab.
15816# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15817# splitting by setting IFS to empty value.)
7a197a62
AK
15818IFS=" "" $as_nl"
15819
15820# Find who we are. Look in the path if we contain no directory separator.
15821case $0 in
15822 *[\\/]* ) as_myself=$0 ;;
15823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15824for as_dir in $PATH
15825do
15826 IFS=$as_save_IFS
15827 test -z "$as_dir" && as_dir=.
15828 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15829done
15830IFS=$as_save_IFS
15831
15832 ;;
15833esac
15834# We did not find ourselves, most probably we were run as `sh COMMAND'
15835# in which case we are not to be found in the path.
15836if test "x$as_myself" = x; then
15837 as_myself=$0
15838fi
15839if test ! -f "$as_myself"; then
ec6a6fbe 15840 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15841 { (exit 1); exit 1; }
15842fi
15843
ad6254c5 15844# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15845for as_var in ENV MAIL MAILPATH
15846do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15847done
ad6254c5
AK
15848PS1='$ '
15849PS2='> '
15850PS4='+ '
15851
15852# NLS nuisances.
ec6a6fbe
AK
15853LC_ALL=C
15854export LC_ALL
15855LANGUAGE=C
15856export LANGUAGE
8106cdd5 15857
ad6254c5 15858# Required to use basename.
7a197a62
AK
15859if expr a : '\(a\)' >/dev/null 2>&1 &&
15860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15861 as_expr=expr
15862else
15863 as_expr=false
15864fi
8106cdd5 15865
7a197a62 15866if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15867 as_basename=basename
15868else
15869 as_basename=false
15870fi
15871
15872
15873# Name of the executable.
7a197a62 15874as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15875$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15876 X"$0" : 'X\(//\)$' \| \
7a197a62 15877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15878$as_echo X/"$0" |
7a197a62
AK
15879 sed '/^.*\/\([^/][^/]*\)\/*$/{
15880 s//\1/
15881 q
15882 }
15883 /^X\/\(\/\/\)$/{
15884 s//\1/
15885 q
15886 }
15887 /^X\/\(\/\).*/{
15888 s//\1/
15889 q
15890 }
15891 s/.*/./; q'`
ad6254c5 15892
7a197a62
AK
15893# CDPATH.
15894$as_unset CDPATH
ad6254c5
AK
15895
15896
ad6254c5 15897
ad6254c5
AK
15898 as_lineno_1=$LINENO
15899 as_lineno_2=$LINENO
ad6254c5 15900 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15901 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15902
ad6254c5
AK
15903 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15904 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15905 # line-number line after each line using $LINENO; the second 'sed'
15906 # does the real work. The second script uses 'N' to pair each
15907 # line-number line with the line containing $LINENO, and appends
15908 # trailing '-' during substitution so that $LINENO is not a special
15909 # case at line end.
ad6254c5 15910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15911 # scripts with optimization help from Paolo Bonzini. Blame Lee
15912 # E. McMahon (1931-1989) for sed's syntax. :-)
15913 sed -n '
15914 p
15915 /[$]LINENO/=
15916 ' <$as_myself |
ad6254c5 15917 sed '
7a197a62
AK
15918 s/[$]LINENO.*/&-/
15919 t lineno
15920 b
15921 :lineno
ad6254c5 15922 N
7a197a62
AK
15923 :loop
15924 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15925 t loop
7a197a62 15926 s/-\n.*//
ad6254c5 15927 ' >$as_me.lineno &&
7a197a62 15928 chmod +x "$as_me.lineno" ||
ec6a6fbe 15929 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15930 { (exit 1); exit 1; }; }
15931
15932 # Don't try to exec as it changes $[0], causing all sort of problems
15933 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15934 # original and so on. Autoconf is especially sensitive to this).
15935 . "./$as_me.lineno"
ad6254c5
AK
15936 # Exit status is that of the last command.
15937 exit
15938}
15939
15940
7a197a62
AK
15941if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15942 as_dirname=dirname
15943else
15944 as_dirname=false
15945fi
15946
15947ECHO_C= ECHO_N= ECHO_T=
15948case `echo -n x` in
15949-n*)
15950 case `echo 'x\c'` in
15951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15952 *) ECHO_C='\c';;
15953 esac;;
15954*)
15955 ECHO_N='-n';;
ad6254c5 15956esac
7a197a62
AK
15957if expr a : '\(a\)' >/dev/null 2>&1 &&
15958 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15959 as_expr=expr
15960else
15961 as_expr=false
15962fi
80992638 15963
ad6254c5 15964rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15965if test -d conf$$.dir; then
15966 rm -f conf$$.dir/conf$$.file
15967else
15968 rm -f conf$$.dir
ec6a6fbe
AK
15969 mkdir conf$$.dir 2>/dev/null
15970fi
15971if (echo >conf$$.file) 2>/dev/null; then
15972 if ln -s conf$$.file conf$$ 2>/dev/null; then
15973 as_ln_s='ln -s'
15974 # ... but there are two gotchas:
15975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15977 # In both cases, we have to default to `cp -p'.
15978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15979 as_ln_s='cp -p'
15980 elif ln conf$$.file conf$$ 2>/dev/null; then
15981 as_ln_s=ln
15982 else
ad6254c5 15983 as_ln_s='cp -p'
ec6a6fbe 15984 fi
ad6254c5
AK
15985else
15986 as_ln_s='cp -p'
15987fi
7a197a62
AK
15988rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15989rmdir conf$$.dir 2>/dev/null
8106cdd5 15990
ad6254c5
AK
15991if mkdir -p . 2>/dev/null; then
15992 as_mkdir_p=:
15993else
8a2fc586 15994 test -d ./-p && rmdir ./-p
ad6254c5
AK
15995 as_mkdir_p=false
15996fi
15997
25fbec5b
AK
15998if test -x / >/dev/null 2>&1; then
15999 as_test_x='test -x'
7a197a62 16000else
25fbec5b
AK
16001 if ls -dL / >/dev/null 2>&1; then
16002 as_ls_L_option=L
16003 else
16004 as_ls_L_option=
16005 fi
16006 as_test_x='
16007 eval sh -c '\''
16008 if test -d "$1"; then
ec6a6fbe 16009 test -d "$1/.";
25fbec5b
AK
16010 else
16011 case $1 in
ec6a6fbe 16012 -*)set "./$1";;
25fbec5b
AK
16013 esac;
16014 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16015 ???[sx]*):;;*)false;;esac;fi
16016 '\'' sh
16017 '
7a197a62 16018fi
25fbec5b 16019as_executable_p=$as_test_x
ad6254c5
AK
16020
16021# Sed expression to map a string onto a valid CPP name.
8a2fc586 16022as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16023
16024# Sed expression to map a string onto a valid variable name.
8a2fc586 16025as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16026
16027
ad6254c5
AK
16028exec 6>&1
16029
7a197a62 16030# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 16031# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
16032# values after options handling.
16033ac_log="
ad6254c5 16034This file was extended by $as_me, which was
ec6a6fbe 16035generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
16036
16037 CONFIG_FILES = $CONFIG_FILES
16038 CONFIG_HEADERS = $CONFIG_HEADERS
16039 CONFIG_LINKS = $CONFIG_LINKS
16040 CONFIG_COMMANDS = $CONFIG_COMMANDS
16041 $ $0 $@
16042
7a197a62
AK
16043on `(hostname || uname -n) 2>/dev/null | sed 1q`
16044"
16045
ad6254c5
AK
16046_ACEOF
16047
ec6a6fbe
AK
16048case $ac_config_files in *"
16049"*) set x $ac_config_files; shift; ac_config_files=$*;;
16050esac
16051
16052case $ac_config_headers in *"
16053"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16054esac
16055
16056
16057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16058# Files that config.status was made for.
68f2de6d
AK
16059config_files="$ac_config_files"
16060config_headers="$ac_config_headers"
ad6254c5 16061
7a197a62 16062_ACEOF
ad6254c5 16063
ec6a6fbe 16064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16065ac_cs_usage="\
16066\`$as_me' instantiates files from templates according to the
16067current configuration.
16068
ec6a6fbe 16069Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16070
16071 -h, --help print this help, then exit
25fbec5b 16072 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16073 -q, --quiet, --silent
16074 do not print progress messages
ad6254c5
AK
16075 -d, --debug don't remove temporary files
16076 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16077 --file=FILE[:TEMPLATE]
16078 instantiate the configuration file FILE
16079 --header=FILE[:TEMPLATE]
16080 instantiate the configuration header FILE
ad6254c5
AK
16081
16082Configuration files:
16083$config_files
16084
72b2cb61
AK
16085Configuration headers:
16086$config_headers
16087
ad6254c5 16088Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16089
7a197a62 16090_ACEOF
ec6a6fbe 16091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16092ac_cs_version="\\
16093config.status
ec6a6fbe
AK
16094configured by $0, generated by GNU Autoconf 2.63,
16095 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16096
ec6a6fbe 16097Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16098This config.status script is free software; the Free Software Foundation
16099gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16100
16101ac_pwd='$ac_pwd'
16102srcdir='$srcdir'
16103INSTALL='$INSTALL'
fddafd51 16104MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16105AWK='$AWK'
16106test -n "\$AWK" || AWK=awk
ad6254c5
AK
16107_ACEOF
16108
ec6a6fbe
AK
16109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110# The default lists apply if the user does not specify any file.
ad6254c5
AK
16111ac_need_defaults=:
16112while test $# != 0
16113do
16114 case $1 in
16115 --*=*)
7a197a62
AK
16116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16118 ac_shift=:
16119 ;;
7a197a62 16120 *)
ad6254c5
AK
16121 ac_option=$1
16122 ac_optarg=$2
16123 ac_shift=shift
16124 ;;
ad6254c5
AK
16125 esac
16126
16127 case $ac_option in
16128 # Handling of the options.
ad6254c5
AK
16129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16130 ac_cs_recheck=: ;;
7a197a62 16131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16132 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16133 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16134 debug=: ;;
16135 --file | --fil | --fi | --f )
16136 $ac_shift
ec6a6fbe
AK
16137 case $ac_optarg in
16138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16139 esac
16140 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16141 ac_need_defaults=false;;
16142 --header | --heade | --head | --hea )
16143 $ac_shift
ec6a6fbe
AK
16144 case $ac_optarg in
16145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16146 esac
16147 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16148 ac_need_defaults=false;;
7a197a62
AK
16149 --he | --h)
16150 # Conflict between --help and --header
ec6a6fbe 16151 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16152Try \`$0 --help' for more information." >&2
16153 { (exit 1); exit 1; }; };;
16154 --help | --hel | -h )
ec6a6fbe 16155 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16158 ac_cs_silent=: ;;
16159
16160 # This is an error.
ec6a6fbe 16161 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16162Try \`$0 --help' for more information." >&2
ad6254c5
AK
16163 { (exit 1); exit 1; }; } ;;
16164
7a197a62
AK
16165 *) ac_config_targets="$ac_config_targets $1"
16166 ac_need_defaults=false ;;
ad6254c5
AK
16167
16168 esac
16169 shift
16170done
16171
16172ac_configure_extra_args=
16173
16174if $ac_cs_silent; then
16175 exec 6>/dev/null
16176 ac_configure_extra_args="$ac_configure_extra_args --silent"
16177fi
16178
16179_ACEOF
ec6a6fbe 16180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16181if \$ac_cs_recheck; then
ec6a6fbe
AK
16182 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16183 shift
16184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16185 CONFIG_SHELL='$SHELL'
7a197a62 16186 export CONFIG_SHELL
ec6a6fbe 16187 exec "\$@"
ad6254c5
AK
16188fi
16189
16190_ACEOF
ec6a6fbe 16191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16192exec 5>>config.log
16193{
16194 echo
16195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16196## Running $as_me. ##
16197_ASBOX
ec6a6fbe 16198 $as_echo "$ac_log"
7a197a62 16199} >&5
ad6254c5 16200
7a197a62 16201_ACEOF
ec6a6fbe 16202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16203_ACEOF
ad6254c5 16204
ec6a6fbe 16205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16206
16207# Handling of arguments.
ad6254c5
AK
16208for ac_config_target in $ac_config_targets
16209do
7a197a62
AK
16210 case $ac_config_target in
16211 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16212 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16213 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16214 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16215 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16216 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16217 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16218 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16219 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16220 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16221 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16222 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16223 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16224 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16225 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16226 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16227 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16228 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16229 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16230 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16231 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16232 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16233 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16234 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16235 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16236 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16237 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16238 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16239 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16240 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16241 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16242 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16243 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16244 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16245 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16246 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16247
ec6a6fbe
AK
16248 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16249$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16250 { (exit 1); exit 1; }; };;
80992638 16251 esac
ad6254c5
AK
16252done
16253
7a197a62 16254
ad6254c5
AK
16255# If the user did not use the arguments to specify the items to instantiate,
16256# then the envvar interface is used. Set only those that are not.
16257# We use the long form for the default assignment because of an extremely
16258# bizarre bug on SunOS 4.1.3.
16259if $ac_need_defaults; then
16260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16262fi
16263
16264# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16265# simply because there is no reason against having it here, and in addition,
ad6254c5 16266# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16267# Hook for its removal unless debugging.
16268# Note that there is a small window in which the directory will not be cleaned:
16269# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16270$debug ||
16271{
7a197a62
AK
16272 tmp=
16273 trap 'exit_status=$?
16274 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16275' 0
ad6254c5
AK
16276 trap '{ (exit 1); exit 1; }' 1 2 13 15
16277}
ad6254c5
AK
16278# Create a (secure) tmp directory for tmp files.
16279
16280{
7a197a62 16281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16282 test -n "$tmp" && test -d "$tmp"
16283} ||
16284{
7a197a62
AK
16285 tmp=./conf$$-$RANDOM
16286 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16287} ||
16288{
ec6a6fbe 16289 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16290 { (exit 1); exit 1; }
16291}
16292
ec6a6fbe
AK
16293# Set up the scripts for CONFIG_FILES section.
16294# No need to generate them if there are no CONFIG_FILES.
16295# This happens for instance with `./config.status config.h'.
1995c9ff 16296if test -n "$CONFIG_FILES"; then
7a197a62 16297
68f2de6d 16298
ec6a6fbe
AK
16299ac_cr='\r'
16300ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16301if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16302 ac_cs_awk_cr='\\r'
16303else
16304 ac_cs_awk_cr=$ac_cr
1995c9ff 16305fi
7a197a62 16306
ec6a6fbe 16307echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16308_ACEOF
7a197a62 16309
8106cdd5 16310
ec6a6fbe
AK
16311{
16312 echo "cat >conf$$subs.awk <<_ACEOF" &&
16313 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16314 echo "_ACEOF"
16315} >conf$$subs.sh ||
16316 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16317$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16318 { (exit 1); exit 1; }; }
16319ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16320ac_delim='%!_!# '
16321for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16322 . ./conf$$subs.sh ||
16323 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16324$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16325 { (exit 1); exit 1; }; }
16326
16327 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16328 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16329 break
16330 elif $ac_last_try; then
ec6a6fbe
AK
16331 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16332$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16333 { (exit 1); exit 1; }; }
16334 else
16335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16336 fi
16337done
ec6a6fbe
AK
16338rm -f conf$$subs.sh
16339
16340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16342_ACEOF
16343sed -n '
16344h
16345s/^/S["/; s/!.*/"]=/
16346p
16347g
16348s/^[^!]*!//
16349:repl
16350t repl
16351s/'"$ac_delim"'$//
16352t delim
16353:nl
16354h
16355s/\(.\{148\}\).*/\1/
16356t more1
16357s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16358p
16359n
16360b repl
16361:more1
16362s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16363p
16364g
16365s/.\{148\}//
16366t nl
16367:delim
16368h
16369s/\(.\{148\}\).*/\1/
16370t more2
16371s/["\\]/\\&/g; s/^/"/; s/$/"/
16372p
16373b
16374:more2
16375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16376p
16377g
16378s/.\{148\}//
16379t delim
16380' <conf$$subs.awk | sed '
16381/^[^""]/{
16382 N
16383 s/\n//
16384}
16385' >>$CONFIG_STATUS || ac_write_fail=1
16386rm -f conf$$subs.awk
16387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16388_ACAWK
16389cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16390 for (key in S) S_is_set[key] = 1
16391 FS = "\a"
7a197a62 16392
ec6a6fbe
AK
16393}
16394{
16395 line = $ 0
16396 nfields = split(line, field, "@")
16397 substed = 0
16398 len = length(field[1])
16399 for (i = 2; i < nfields; i++) {
16400 key = field[i]
16401 keylen = length(key)
16402 if (S_is_set[key]) {
16403 value = S[key]
16404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16405 len += length(value) + length(field[++i])
16406 substed = 1
16407 } else
16408 len += 1 + keylen
16409 }
16410
16411 print line
16412}
fddafd51 16413
ec6a6fbe 16414_ACAWK
1995c9ff 16415_ACEOF
ec6a6fbe
AK
16416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16417if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16419else
16420 cat
16421fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16422 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16423$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16424 { (exit 1); exit 1; }; }
7a197a62
AK
16425_ACEOF
16426
7a197a62
AK
16427# VPATH may cause trouble with some makes, so we remove $(srcdir),
16428# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16429# trailing colons and then remove the whole line if VPATH becomes empty
16430# (actually we leave an empty line to preserve line numbers).
16431if test "x$srcdir" = x.; then
16432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16433s/:*\$(srcdir):*/:/
16434s/:*\${srcdir}:*/:/
16435s/:*@srcdir@:*/:/
16436s/^\([^=]*=[ ]*\):*/\1/
16437s/:*$//
16438s/^[^=]*=[ ]*$//
16439}'
16440fi
16441
ec6a6fbe 16442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16443fi # test -n "$CONFIG_FILES"
16444
ec6a6fbe
AK
16445# Set up the scripts for CONFIG_HEADERS section.
16446# No need to generate them if there are no CONFIG_HEADERS.
16447# This happens for instance with `./config.status Makefile'.
16448if test -n "$CONFIG_HEADERS"; then
16449cat >"$tmp/defines.awk" <<\_ACAWK ||
16450BEGIN {
16451_ACEOF
16452
16453# Transform confdefs.h into an awk script `defines.awk', embedded as
16454# here-document in config.status, that substitutes the proper values into
16455# config.h.in to produce config.h.
16456
16457# Create a delimiter string that does not exist in confdefs.h, to ease
16458# handling of long lines.
16459ac_delim='%!_!# '
16460for ac_last_try in false false :; do
16461 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16462 if test -z "$ac_t"; then
16463 break
16464 elif $ac_last_try; then
16465 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16466$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16467 { (exit 1); exit 1; }; }
16468 else
16469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16470 fi
16471done
16472
16473# For the awk script, D is an array of macro values keyed by name,
16474# likewise P contains macro parameters if any. Preserve backslash
16475# newline sequences.
16476
16477ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16478sed -n '
16479s/.\{148\}/&'"$ac_delim"'/g
16480t rset
16481:rset
16482s/^[ ]*#[ ]*define[ ][ ]*/ /
16483t def
16484d
16485:def
16486s/\\$//
16487t bsnl
16488s/["\\]/\\&/g
16489s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16490D["\1"]=" \3"/p
16491s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16492d
16493:bsnl
16494s/["\\]/\\&/g
16495s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16496D["\1"]=" \3\\\\\\n"\\/p
16497t cont
16498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16499t cont
16500d
16501:cont
16502n
16503s/.\{148\}/&'"$ac_delim"'/g
16504t clear
16505:clear
16506s/\\$//
16507t bsnlc
16508s/["\\]/\\&/g; s/^/"/; s/$/"/p
16509d
16510:bsnlc
16511s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16512b cont
16513' <confdefs.h | sed '
16514s/'"$ac_delim"'/"\\\
16515"/g' >>$CONFIG_STATUS || ac_write_fail=1
16516
16517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16518 for (key in D) D_is_set[key] = 1
16519 FS = "\a"
16520}
16521/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16522 line = \$ 0
16523 split(line, arg, " ")
16524 if (arg[1] == "#") {
16525 defundef = arg[2]
16526 mac1 = arg[3]
16527 } else {
16528 defundef = substr(arg[1], 2)
16529 mac1 = arg[2]
16530 }
16531 split(mac1, mac2, "(") #)
16532 macro = mac2[1]
16533 prefix = substr(line, 1, index(line, defundef) - 1)
16534 if (D_is_set[macro]) {
16535 # Preserve the white space surrounding the "#".
16536 print prefix "define", macro P[macro] D[macro]
16537 next
16538 } else {
16539 # Replace #undef with comments. This is necessary, for example,
16540 # in the case of _POSIX_SOURCE, which is predefined and required
16541 # on some systems where configure will not decide to define it.
16542 if (defundef == "undef") {
16543 print "/*", prefix defundef, macro, "*/"
16544 next
16545 }
16546 }
16547}
16548{ print }
16549_ACAWK
16550_ACEOF
16551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16553$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16554 { (exit 1); exit 1; }; }
16555fi # test -n "$CONFIG_HEADERS"
16556
7a197a62 16557
ec6a6fbe
AK
16558eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16559shift
16560for ac_tag
7a197a62
AK
16561do
16562 case $ac_tag in
16563 :[FHLC]) ac_mode=$ac_tag; continue;;
16564 esac
16565 case $ac_mode$ac_tag in
16566 :[FHL]*:*);;
ec6a6fbe
AK
16567 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16568$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16569 { (exit 1); exit 1; }; };;
16570 :[FH]-) ac_tag=-:-;;
16571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16572 esac
16573 ac_save_IFS=$IFS
16574 IFS=:
16575 set x $ac_tag
16576 IFS=$ac_save_IFS
16577 shift
16578 ac_file=$1
16579 shift
16580
16581 case $ac_mode in
16582 :L) ac_source=$1;;
16583 :[FH])
16584 ac_file_inputs=
16585 for ac_f
16586 do
16587 case $ac_f in
16588 -) ac_f="$tmp/stdin";;
16589 *) # Look for the file first in the build tree, then in the source tree
16590 # (if the path is not absolute). The absolute path cannot be DOS-style,
16591 # because $ac_f cannot contain `:'.
16592 test -f "$ac_f" ||
16593 case $ac_f in
16594 [\\/$]*) false;;
16595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16596 esac ||
ec6a6fbe
AK
16597 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16598$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16599 { (exit 1); exit 1; }; };;
16600 esac
ec6a6fbe
AK
16601 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16602 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16603 done
16604
16605 # Let's still pretend it is `configure' which instantiates (i.e., don't
16606 # use $as_me), people would be surprised to read:
16607 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16608 configure_input='Generated from '`
16609 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16610 `' by configure.'
7a197a62
AK
16611 if test x"$ac_file" != x-; then
16612 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16613 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16614$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16615 fi
ec6a6fbe
AK
16616 # Neutralize special characters interpreted by sed in replacement strings.
16617 case $configure_input in #(
16618 *\&* | *\|* | *\\* )
16619 ac_sed_conf_input=`$as_echo "$configure_input" |
16620 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16621 *) ac_sed_conf_input=$configure_input;;
16622 esac
7a197a62
AK
16623
16624 case $ac_tag in
ec6a6fbe
AK
16625 *:-:* | *:-) cat >"$tmp/stdin" \
16626 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16627$as_echo "$as_me: error: could not create $ac_file" >&2;}
16628 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16629 esac
16630 ;;
80992638 16631 esac
8106cdd5 16632
7a197a62 16633 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16635 X"$ac_file" : 'X\(//\)[^/]' \| \
16636 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16638$as_echo X"$ac_file" |
7a197a62
AK
16639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16640 s//\1/
16641 q
16642 }
16643 /^X\(\/\/\)[^/].*/{
16644 s//\1/
16645 q
16646 }
16647 /^X\(\/\/\)$/{
16648 s//\1/
16649 q
16650 }
16651 /^X\(\/\).*/{
16652 s//\1/
16653 q
16654 }
16655 s/.*/./; q'`
16656 { as_dir="$ac_dir"
16657 case $as_dir in #(
16658 -*) as_dir=./$as_dir;;
16659 esac
16660 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16661 as_dirs=
7a197a62
AK
16662 while :; do
16663 case $as_dir in #(
ec6a6fbe 16664 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16665 *) as_qdir=$as_dir;;
16666 esac
16667 as_dirs="'$as_qdir' $as_dirs"
16668 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16669$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16670 X"$as_dir" : 'X\(//\)[^/]' \| \
16671 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16672 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16673$as_echo X"$as_dir" |
7a197a62
AK
16674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16675 s//\1/
16676 q
16677 }
16678 /^X\(\/\/\)[^/].*/{
16679 s//\1/
16680 q
16681 }
16682 /^X\(\/\/\)$/{
16683 s//\1/
16684 q
16685 }
16686 /^X\(\/\).*/{
16687 s//\1/
16688 q
16689 }
16690 s/.*/./; q'`
16691 test -d "$as_dir" && break
ad6254c5 16692 done
7a197a62 16693 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16694 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16695$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16696 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16697 ac_builddir=.
16698
7a197a62
AK
16699case "$ac_dir" in
16700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16701*)
ec6a6fbe 16702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16703 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16705 case $ac_top_builddir_sub in
16706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16708 esac ;;
16709esac
16710ac_abs_top_builddir=$ac_pwd
16711ac_abs_builddir=$ac_pwd$ac_dir_suffix
16712# for backward compatibility:
16713ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16714
16715case $srcdir in
7a197a62 16716 .) # We are building in place.
ad6254c5 16717 ac_srcdir=.
7a197a62
AK
16718 ac_top_srcdir=$ac_top_builddir_sub
16719 ac_abs_top_srcdir=$ac_pwd ;;
16720 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16721 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16722 ac_top_srcdir=$srcdir
16723 ac_abs_top_srcdir=$srcdir ;;
16724 *) # Relative name.
16725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16726 ac_top_srcdir=$ac_top_build_prefix$srcdir
16727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16728esac
7a197a62 16729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16730
ad6254c5 16731
7a197a62
AK
16732 case $ac_mode in
16733 :F)
16734 #
16735 # CONFIG_FILE
16736 #
ad6254c5
AK
16737
16738 case $INSTALL in
16739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16741 esac
fddafd51
ZK
16742 ac_MKDIR_P=$MKDIR_P
16743 case $MKDIR_P in
16744 [\\/$]* | ?:[\\/]* ) ;;
16745 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16746 esac
7a197a62 16747_ACEOF
795ca3e5 16748
ec6a6fbe 16749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16750# If the template does not know about datarootdir, expand it.
16751# FIXME: This hack should be removed a few years after 2.60.
16752ac_datarootdir_hack=; ac_datarootdir_seen=
16753
ec6a6fbe
AK
16754ac_sed_dataroot='
16755/datarootdir/ {
7a197a62
AK
16756 p
16757 q
16758}
16759/@datadir@/p
16760/@docdir@/p
16761/@infodir@/p
16762/@localedir@/p
16763/@mandir@/p
ec6a6fbe
AK
16764'
16765case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16766*datarootdir*) ac_datarootdir_seen=yes;;
16767*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16768 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16769$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16770_ACEOF
ec6a6fbe 16771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16772 ac_datarootdir_hack='
16773 s&@datadir@&$datadir&g
16774 s&@docdir@&$docdir&g
16775 s&@infodir@&$infodir&g
16776 s&@localedir@&$localedir&g
16777 s&@mandir@&$mandir&g
16778 s&\\\${datarootdir}&$datarootdir&g' ;;
16779esac
16780_ACEOF
16781
16782# Neutralize VPATH when `$srcdir' = `.'.
16783# Shell code in configure.ac might set extrasub.
16784# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16786ac_sed_extra="$ac_vpsub
ad6254c5
AK
16787$extrasub
16788_ACEOF
ec6a6fbe 16789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16790:t
16791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16792s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16793s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16794s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16795s&@srcdir@&$ac_srcdir&;t t
16796s&@abs_srcdir@&$ac_abs_srcdir&;t t
16797s&@top_srcdir@&$ac_top_srcdir&;t t
16798s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16799s&@builddir@&$ac_builddir&;t t
16800s&@abs_builddir@&$ac_abs_builddir&;t t
16801s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16802s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16803s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16804$ac_datarootdir_hack
ec6a6fbe
AK
16805"
16806eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16807 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16808$as_echo "$as_me: error: could not create $ac_file" >&2;}
16809 { (exit 1); exit 1; }; }
7a197a62
AK
16810
16811test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16812 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16813 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16814 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16815which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16816$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16817which seems to be undefined. Please make sure it is defined." >&2;}
16818
16819 rm -f "$tmp/stdin"
72b2cb61 16820 case $ac_file in
ec6a6fbe
AK
16821 -) cat "$tmp/out" && rm -f "$tmp/out";;
16822 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16823 esac \
16824 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16825$as_echo "$as_me: error: could not create $ac_file" >&2;}
16826 { (exit 1); exit 1; }; }
7a197a62
AK
16827 ;;
16828 :H)
16829 #
16830 # CONFIG_HEADER
16831 #
72b2cb61 16832 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16833 {
16834 $as_echo "/* $configure_input */" \
16835 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16836 } >"$tmp/config.h" \
16837 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16838$as_echo "$as_me: error: could not create $ac_file" >&2;}
16839 { (exit 1); exit 1; }; }
16840 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16841 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16842$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16843 else
ec6a6fbe
AK
16844 rm -f "$ac_file"
16845 mv "$tmp/config.h" "$ac_file" \
16846 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16847$as_echo "$as_me: error: could not create $ac_file" >&2;}
16848 { (exit 1); exit 1; }; }
72b2cb61
AK
16849 fi
16850 else
ec6a6fbe
AK
16851 $as_echo "/* $configure_input */" \
16852 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16853 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16854$as_echo "$as_me: error: could not create -" >&2;}
16855 { (exit 1); exit 1; }; }
72b2cb61 16856 fi
7a197a62
AK
16857 ;;
16858
16859
16860 esac
16861
16862done # for ac_tag
795ca3e5 16863
795ca3e5 16864
ad6254c5
AK
16865{ (exit 0); exit 0; }
16866_ACEOF
795ca3e5 16867chmod +x $CONFIG_STATUS
ad6254c5
AK
16868ac_clean_files=$ac_clean_files_save
16869
ec6a6fbe
AK
16870test $ac_write_fail = 0 ||
16871 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16872$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16873 { (exit 1); exit 1; }; }
16874
ad6254c5
AK
16875
16876# configure is writing to config.log, and then calls config.status.
16877# config.status does its own redirection, appending to config.log.
16878# Unfortunately, on DOS this fails, as config.log is still kept open
16879# by configure, so config.status won't be able to write to it; its
16880# output is simply discarded. So we exec the FD to /dev/null,
16881# effectively closing config.log, so it can be properly (re)opened and
16882# appended to by config.status. When coming back to configure, we
16883# need to make the FD available again.
16884if test "$no_create" != yes; then
16885 ac_cs_success=:
16886 ac_config_status_args=
16887 test "$silent" = yes &&
16888 ac_config_status_args="$ac_config_status_args --quiet"
16889 exec 5>/dev/null
16890 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16891 exec 5>>config.log
16892 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16893 # would make configure fail if this is the last instruction.
16894 $ac_cs_success || { (exit 1); exit 1; }
16895fi
ec6a6fbe
AK
16896if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16897 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16898$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16899fi
795ca3e5 16900
2dc95e1c
AK
16901
16902if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16903 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16904$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16905fi
This page took 2.044633 seconds and 5 git commands to generate.