]> sourceware.org Git - lvm2.git/blame - configure
Remove pv segments line from backport.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
8106cdd5 3# Generated by GNU Autoconf 2.57.
795ca3e5 4#
8106cdd5
AK
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# 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.
8106cdd5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
795ca3e5 185
8106cdd5
AK
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
795ca3e5 253ac_default_prefix=/usr/local
8106cdd5
AK
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="lib/device/dev-cache.h"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
795ca3e5 311ac_default_prefix=/usr
1a9ea74d 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MSGFMT JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LD_DEPS LD_FLAGS SOFLAG LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL FSADM LIBOBJS LTLIBOBJS'
8106cdd5 313ac_subst_files=''
795ca3e5
AK
314
315# Initialize some variables set by options.
8106cdd5
AK
316ac_init_help=
317ac_init_version=false
795ca3e5
AK
318# The variables have the same names as the options, with
319# dashes changed to underlines.
8106cdd5 320cache_file=/dev/null
795ca3e5 321exec_prefix=NONE
795ca3e5 322no_create=
795ca3e5
AK
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
795ca3e5
AK
331verbose=
332x_includes=NONE
333x_libraries=NONE
8106cdd5
AK
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
795ca3e5
AK
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
795ca3e5
AK
353ac_prev=
354for ac_option
355do
795ca3e5
AK
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
8106cdd5 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
795ca3e5
AK
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
8106cdd5 367 case $ac_option in
795ca3e5
AK
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8106cdd5 372 bindir=$ac_optarg ;;
795ca3e5
AK
373
374 -build | --build | --buil | --bui | --bu)
8106cdd5 375 ac_prev=build_alias ;;
795ca3e5 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8106cdd5 377 build_alias=$ac_optarg ;;
795ca3e5
AK
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8106cdd5
AK
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
795ca3e5
AK
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
8106cdd5 393 datadir=$ac_optarg ;;
795ca3e5
AK
394
395 -disable-* | --disable-*)
8106cdd5 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 397 # Reject names that are not valid shell variable names.
8106cdd5
AK
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
795ca3e5
AK
403
404 -enable-* | --enable-*)
8106cdd5 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 406 # Reject names that are not valid shell variable names.
8106cdd5
AK
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
413 *) ac_optarg=yes ;;
414 esac
8106cdd5 415 eval "enable_$ac_feature='$ac_optarg'" ;;
795ca3e5
AK
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
8106cdd5 424 exec_prefix=$ac_optarg ;;
795ca3e5
AK
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
8106cdd5
AK
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
795ca3e5
AK
436
437 -host | --host | --hos | --ho)
8106cdd5 438 ac_prev=host_alias ;;
795ca3e5 439 -host=* | --host=* | --hos=* | --ho=*)
8106cdd5 440 host_alias=$ac_optarg ;;
795ca3e5
AK
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
8106cdd5 447 includedir=$ac_optarg ;;
795ca3e5
AK
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8106cdd5 452 infodir=$ac_optarg ;;
795ca3e5
AK
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
8106cdd5 457 libdir=$ac_optarg ;;
795ca3e5
AK
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
8106cdd5 464 libexecdir=$ac_optarg ;;
795ca3e5
AK
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
8106cdd5 473 localstatedir=$ac_optarg ;;
795ca3e5
AK
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
8106cdd5 478 mandir=$ac_optarg ;;
795ca3e5
AK
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8106cdd5 485 | --no-cr | --no-c | -n)
795ca3e5
AK
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
8106cdd5 499 oldincludedir=$ac_optarg ;;
795ca3e5
AK
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8106cdd5 504 prefix=$ac_optarg ;;
795ca3e5
AK
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
8106cdd5 511 program_prefix=$ac_optarg ;;
795ca3e5
AK
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
8106cdd5 518 program_suffix=$ac_optarg ;;
795ca3e5
AK
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
8106cdd5 535 program_transform_name=$ac_optarg ;;
795ca3e5
AK
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
8106cdd5 545 sbindir=$ac_optarg ;;
795ca3e5
AK
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
8106cdd5 556 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
8106cdd5 561 site=$ac_optarg ;;
795ca3e5
AK
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8106cdd5 566 srcdir=$ac_optarg ;;
795ca3e5
AK
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8106cdd5 573 sysconfdir=$ac_optarg ;;
795ca3e5
AK
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
8106cdd5 576 ac_prev=target_alias ;;
795ca3e5 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
8106cdd5 578 target_alias=$ac_optarg ;;
795ca3e5
AK
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
8106cdd5
AK
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
795ca3e5
AK
585
586 -with-* | --with-*)
8106cdd5 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 588 # Reject names that are not valid shell variable names.
8106cdd5
AK
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
795ca3e5 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
8106cdd5
AK
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
595 *) ac_optarg=yes ;;
596 esac
8106cdd5 597 eval "with_$ac_package='$ac_optarg'" ;;
795ca3e5
AK
598
599 -without-* | --without-*)
8106cdd5 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 601 # Reject names that are not valid shell variable names.
8106cdd5
AK
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
795ca3e5
AK
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
8106cdd5 617 x_includes=$ac_optarg ;;
795ca3e5
AK
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
8106cdd5 624 x_libraries=$ac_optarg ;;
795ca3e5 625
8106cdd5
AK
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
795ca3e5
AK
629 ;;
630
8106cdd5
AK
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
795ca3e5 641 *)
8106cdd5
AK
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
8106cdd5
AK
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
795ca3e5 656fi
795ca3e5 657
8106cdd5
AK
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
795ca3e5 668
8106cdd5
AK
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
795ca3e5 672do
8106cdd5
AK
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
795ca3e5
AK
678 esac
679done
680
8106cdd5
AK
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
795ca3e5 698
8106cdd5
AK
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
795ca3e5 703
795ca3e5
AK
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
8106cdd5
AK
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
795ca3e5
AK
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
8106cdd5
AK
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
795ca3e5 732 else
8106cdd5
AK
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
795ca3e5
AK
735 fi
736fi
8106cdd5
AK
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7d1552c9
AK
848 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
849 device-mapper is missing from the kernel
8106cdd5
AK
850 --enable-jobs=NUM Number of jobs to run simultaneously
851 --enable-static_link Use this to link the tools to their libraries
852 statically. Default is dynamic linking
853 --enable-readline Enable readline support
854 --enable-debug Enable debugging
855 --disable-devmapper Disable device-mapper interaction
856 --disable-o_direct Disable O_DIRECT
857 --enable-cmdlib Build shared command library
809fae91 858 --enable-fsadm Enable fsadm
8106cdd5
AK
859 --enable-nls Enable Native Language Support
860
861Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-user=USER Set the owner of installed files
865 --with-group=GROUP Set the group owner of installed files
866 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
867 TYPE=internal
60329273 868 --with-pool=TYPE GFS pool read-only support: internal/shared/none
d8ac0fbc 869 TYPE=internal
4922197a
AK
870 --with-snapshots=TYPE Snapshot support: internal/shared/none
871 TYPE=internal
872 --with-mirrors=TYPE Mirror support: internal/shared/none
873 TYPE=internal
8106cdd5 874 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
0a62c911
AK
875 --with-confdir=DIR Configuration files in DIR /etc
876 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
8106cdd5
AK
877
878Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
886
887Use these variables to override the choices made by `configure' or to help
888it to find libraries and programs with nonstandard names/locations.
889
890_ACEOF
891fi
892
893if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
899
900if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904else
905 ac_dir_suffix= ac_top_builddir=
906fi
907
908case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922esac
923# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924# absolute.
925ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
927ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930 cd $ac_dir
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
933 echo
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
936 echo
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
940 echo
941 $ac_configure --help
942 else
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944 fi
945 cd $ac_popdir
946 done
947fi
948
949test -n "$ac_init_help" && exit 0
950if $ac_init_version; then
951 cat <<\_ACEOF
952
953Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954Free Software Foundation, Inc.
955This configure script is free software; the Free Software Foundation
956gives unlimited permission to copy, distribute and modify it.
957_ACEOF
958 exit 0
959fi
960exec 5>config.log
961cat >&5 <<_ACEOF
962This file contains any messages produced by compilers while
963running configure, to aid debugging if configure makes a mistake.
964
965It was created by $as_me, which was
966generated by GNU Autoconf 2.57. Invocation command line was
967
968 $ $0 $@
969
970_ACEOF
971{
972cat <<_ASUNAME
973## --------- ##
974## Platform. ##
975## --------- ##
976
977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978uname -m = `(uname -m) 2>/dev/null || echo unknown`
979uname -r = `(uname -r) 2>/dev/null || echo unknown`
980uname -s = `(uname -s) 2>/dev/null || echo unknown`
981uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
985
986/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
993
994_ASUNAME
995
996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997for as_dir in $PATH
998do
999 IFS=$as_save_IFS
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1002done
1003
1004} >&5
1005
1006cat >&5 <<_ACEOF
1007
1008
1009## ----------- ##
1010## Core tests. ##
1011## ----------- ##
1012
1013_ACEOF
1014
1015
1016# Keep a trace of the command line.
1017# Strip out --no-create and --no-recursion so they do not pile up.
1018# Strip out --silent because we don't want to record it for future runs.
1019# Also quote any args containing shell meta-characters.
1020# Make two passes to allow for proper duplicate-argument suppression.
1021ac_configure_args=
1022ac_configure_args0=
1023ac_configure_args1=
1024ac_sep=
1025ac_must_keep_next=false
1026for ac_pass in 1 2
1027do
1028 for ac_arg
1029 do
1030 case $ac_arg in
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 continue ;;
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 esac
1038 case $ac_pass in
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 2)
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1044 else
1045 case $ac_arg in
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052 esac
1053 ;;
1054 -* ) ac_must_keep_next=true ;;
1055 esac
1056 fi
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1059 ac_sep=" "
1060 ;;
1061 esac
1062 done
1063done
1064$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067# When interrupted or exit'd, cleanup temporary files, and complete
1068# config.log. We remove comments because anyway the quotes in there
1069# would cause problems or look ugly.
1070# WARNING: Be sure not to use single quotes in there, as some shells,
1071# such as our DU 5.0 friend, will then `close' the trap.
1072trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1074 {
1075 echo
1076
1077 cat <<\_ASBOX
1078## ---------------- ##
1079## Cache variables. ##
1080## ---------------- ##
1081_ASBOX
1082 echo
1083 # The following way of writing the cache mishandles newlines in values,
1084{
1085 (set) 2>&1 |
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087 *ac_space=\ *)
1088 sed -n \
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091 ;;
1092 *)
1093 sed -n \
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 ;;
1096 esac;
1097}
1098 echo
1099
1100 cat <<\_ASBOX
1101## ----------------- ##
1102## Output variables. ##
1103## ----------------- ##
1104_ASBOX
1105 echo
1106 for ac_var in $ac_subst_vars
1107 do
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1110 done | sort
1111 echo
1112
1113 if test -n "$ac_subst_files"; then
1114 cat <<\_ASBOX
1115## ------------- ##
1116## Output files. ##
1117## ------------- ##
1118_ASBOX
1119 echo
1120 for ac_var in $ac_subst_files
1121 do
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1126 fi
1127
1128 if test -s confdefs.h; then
1129 cat <<\_ASBOX
1130## ----------- ##
1131## confdefs.h. ##
1132## ----------- ##
1133_ASBOX
1134 echo
1135 sed "/^$/d" confdefs.h | sort
1136 echo
1137 fi
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1141 } >&5
1142 rm -f core core.* *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144 exit $exit_status
1145 ' 0
1146for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148done
1149ac_signal=0
1150
1151# confdefs.h avoids OS command line length limits that DEFS can exceed.
1152rm -rf conftest* confdefs.h
1153# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154echo >confdefs.h
1155
1156# Predefined preprocessor variables.
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_NAME "$PACKAGE_NAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_VERSION "$PACKAGE_VERSION"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_STRING "$PACKAGE_STRING"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180_ACEOF
795ca3e5 1181
8106cdd5
AK
1182
1183# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1184# Prefer explicitly selected file to automatically selected ones.
1185if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 else
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190 fi
1191fi
1192for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
8106cdd5
AK
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1197 . "$ac_site_file"
1198 fi
1199done
1200
1201if test -r "$cache_file"; then
8106cdd5
AK
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206echo "$as_me: loading cache $cache_file" >&6;}
1207 case $cache_file in
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1210 esac
1211 fi
795ca3e5 1212else
8106cdd5
AK
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214echo "$as_me: creating cache $cache_file" >&6;}
1215 >$cache_file
1216fi
1217
1218# Check that the precious variables saved in the cache have kept the same
1219# value.
1220ac_cache_corrupted=false
1221for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1228 set,)
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1232 ,set)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,);;
1237 *)
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1246 fi;;
1247 esac
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1250 case $ac_new_val in
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1254 esac
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258 esac
1259 fi
1260done
1261if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
795ca3e5
AK
1267fi
1268
1269ac_ext=c
795ca3e5 1270ac_cpp='$CPP $CPPFLAGS'
8106cdd5
AK
1271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
795ca3e5
AK
1291
1292
1293
1294ac_aux_dir=
1295for ac_dir in autoconf $srcdir/autoconf; do
1296 if test -f $ac_dir/install-sh; then
1297 ac_aux_dir=$ac_dir
1298 ac_install_sh="$ac_aux_dir/install-sh -c"
1299 break
1300 elif test -f $ac_dir/install.sh; then
1301 ac_aux_dir=$ac_dir
1302 ac_install_sh="$ac_aux_dir/install.sh -c"
1303 break
8106cdd5
AK
1304 elif test -f $ac_dir/shtool; then
1305 ac_aux_dir=$ac_dir
1306 ac_install_sh="$ac_aux_dir/shtool install -c"
1307 break
795ca3e5
AK
1308 fi
1309done
1310if test -z "$ac_aux_dir"; then
8106cdd5
AK
1311 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1312echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1313 { (exit 1); exit 1; }; }
795ca3e5 1314fi
8106cdd5
AK
1315ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1316ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1317ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1318
795ca3e5 1319
2dc95e1c 1320for ac_prog in gawk mawk nawk awk
795ca3e5 1321do
8106cdd5 1322 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1323set dummy $ac_prog; ac_word=$2
8106cdd5
AK
1324echo "$as_me:$LINENO: checking for $ac_word" >&5
1325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326if test "${ac_cv_prog_AWK+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1328else
1329 if test -n "$AWK"; then
1330 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1331else
8106cdd5
AK
1332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333for as_dir in $PATH
1334do
1335 IFS=$as_save_IFS
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_AWK="$ac_prog"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 break 2
1342 fi
1343done
1344done
1345
795ca3e5
AK
1346fi
1347fi
8106cdd5 1348AWK=$ac_cv_prog_AWK
795ca3e5 1349if test -n "$AWK"; then
8106cdd5
AK
1350 echo "$as_me:$LINENO: result: $AWK" >&5
1351echo "${ECHO_T}$AWK" >&6
795ca3e5 1352else
8106cdd5
AK
1353 echo "$as_me:$LINENO: result: no" >&5
1354echo "${ECHO_T}no" >&6
795ca3e5
AK
1355fi
1356
8106cdd5 1357 test -n "$AWK" && break
795ca3e5
AK
1358done
1359
8106cdd5
AK
1360ac_ext=c
1361ac_cpp='$CPP $CPPFLAGS'
1362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365if test -n "$ac_tool_prefix"; then
1366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1367set dummy ${ac_tool_prefix}gcc; ac_word=$2
1368echo "$as_me:$LINENO: checking for $ac_word" >&5
1369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370if test "${ac_cv_prog_CC+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1372else
1373 if test -n "$CC"; then
1374 ac_cv_prog_CC="$CC" # Let the user override the test.
1375else
8106cdd5
AK
1376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377for as_dir in $PATH
1378do
1379 IFS=$as_save_IFS
1380 test -z "$as_dir" && as_dir=.
1381 for ac_exec_ext in '' $ac_executable_extensions; do
1382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1385 break 2
1386 fi
1387done
1388done
1389
1390fi
1391fi
1392CC=$ac_cv_prog_CC
1393if test -n "$CC"; then
1394 echo "$as_me:$LINENO: result: $CC" >&5
1395echo "${ECHO_T}$CC" >&6
1396else
1397 echo "$as_me:$LINENO: result: no" >&5
1398echo "${ECHO_T}no" >&6
1399fi
1400
1401fi
1402if test -z "$ac_cv_prog_CC"; then
1403 ac_ct_CC=$CC
1404 # Extract the first word of "gcc", so it can be a program name with args.
1405set dummy gcc; ac_word=$2
1406echo "$as_me:$LINENO: checking for $ac_word" >&5
1407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1413else
1414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415for as_dir in $PATH
1416do
1417 IFS=$as_save_IFS
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_ac_ct_CC="gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 break 2
1424 fi
1425done
1426done
1427
1428fi
1429fi
1430ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431if test -n "$ac_ct_CC"; then
1432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433echo "${ECHO_T}$ac_ct_CC" >&6
1434else
1435 echo "$as_me:$LINENO: result: no" >&5
1436echo "${ECHO_T}no" >&6
1437fi
1438
1439 CC=$ac_ct_CC
1440else
1441 CC="$ac_cv_prog_CC"
1442fi
1443
1444if test -z "$CC"; then
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1447set dummy ${ac_tool_prefix}cc; ac_word=$2
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452else
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1455else
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC="${ac_tool_prefix}cc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 break 2
1466 fi
1467done
1468done
1469
1470fi
1471fi
1472CC=$ac_cv_prog_CC
1473if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475echo "${ECHO_T}$CC" >&6
1476else
1477 echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481fi
1482if test -z "$ac_cv_prog_CC"; then
1483 ac_ct_CC=$CC
1484 # Extract the first word of "cc", so it can be a program name with args.
1485set dummy cc; ac_word=$2
1486echo "$as_me:$LINENO: checking for $ac_word" >&5
1487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490else
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493else
1494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495for as_dir in $PATH
1496do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC="cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 break 2
1504 fi
1505done
1506done
1507
1508fi
1509fi
1510ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513echo "${ECHO_T}$ac_ct_CC" >&6
1514else
1515 echo "$as_me:$LINENO: result: no" >&5
1516echo "${ECHO_T}no" >&6
1517fi
1518
1519 CC=$ac_ct_CC
795ca3e5 1520else
8106cdd5 1521 CC="$ac_cv_prog_CC"
795ca3e5
AK
1522fi
1523
8106cdd5 1524fi
795ca3e5
AK
1525if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527set dummy cc; ac_word=$2
8106cdd5
AK
1528echo "$as_me:$LINENO: checking for $ac_word" >&5
1529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1532else
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1535else
795ca3e5 1536 ac_prog_rejected=no
8106cdd5
AK
1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538for as_dir in $PATH
1539do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1545 ac_prog_rejected=yes
1546 continue
1547 fi
1548 ac_cv_prog_CC="cc"
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 break 2
1551 fi
1552done
1553done
1554
795ca3e5
AK
1555if test $ac_prog_rejected = yes; then
1556 # We found a bogon in the path, so make sure we never use it.
1557 set dummy $ac_cv_prog_CC
1558 shift
8106cdd5 1559 if test $# != 0; then
795ca3e5
AK
1560 # We chose a different compiler from the bogus one.
1561 # However, it has the same basename, so the bogon will be chosen
1562 # first if we set CC to just the basename; use the full file name.
1563 shift
8106cdd5 1564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1565 fi
1566fi
1567fi
1568fi
8106cdd5 1569CC=$ac_cv_prog_CC
795ca3e5 1570if test -n "$CC"; then
8106cdd5
AK
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572echo "${ECHO_T}$CC" >&6
795ca3e5 1573else
8106cdd5
AK
1574 echo "$as_me:$LINENO: result: no" >&5
1575echo "${ECHO_T}no" >&6
795ca3e5
AK
1576fi
1577
8106cdd5
AK
1578fi
1579if test -z "$CC"; then
1580 if test -n "$ac_tool_prefix"; then
1581 for ac_prog in cl
1582 do
1583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1589else
1590 if test -n "$CC"; then
1591 ac_cv_prog_CC="$CC" # Let the user override the test.
1592else
8106cdd5
AK
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1603 fi
1604done
1605done
1606
795ca3e5
AK
1607fi
1608fi
8106cdd5 1609CC=$ac_cv_prog_CC
795ca3e5 1610if test -n "$CC"; then
8106cdd5
AK
1611 echo "$as_me:$LINENO: result: $CC" >&5
1612echo "${ECHO_T}$CC" >&6
795ca3e5 1613else
8106cdd5
AK
1614 echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
795ca3e5 1616fi
8106cdd5
AK
1617
1618 test -n "$CC" && break
1619 done
1620fi
1621if test -z "$CC"; then
1622 ac_ct_CC=$CC
1623 for ac_prog in cl
1624do
1625 # Extract the first word of "$ac_prog", so it can be a program name with args.
1626set dummy $ac_prog; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 if test -n "$ac_ct_CC"; then
1633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1634else
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_CC="$ac_prog"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
795ca3e5 1645 fi
8106cdd5
AK
1646done
1647done
1648
1649fi
1650fi
1651ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652if test -n "$ac_ct_CC"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654echo "${ECHO_T}$ac_ct_CC" >&6
1655else
1656 echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
795ca3e5
AK
1658fi
1659
8106cdd5
AK
1660 test -n "$ac_ct_CC" && break
1661done
795ca3e5 1662
8106cdd5
AK
1663 CC=$ac_ct_CC
1664fi
1665
1666fi
1667
1668
1669test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1670See \`config.log' for more details." >&5
1671echo "$as_me: error: no acceptable C compiler found in \$PATH
1672See \`config.log' for more details." >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675# Provide some information about the compiler.
1676echo "$as_me:$LINENO:" \
1677 "checking for C compiler version" >&5
1678ac_compiler=`set X $ac_compile; echo $2`
1679{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1680 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 ac_status=$?
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }
1684{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1685 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 ac_status=$?
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1689{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1690 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694
1695cat >conftest.$ac_ext <<_ACEOF
1696#line $LINENO "configure"
1697/* confdefs.h. */
1698_ACEOF
1699cat confdefs.h >>conftest.$ac_ext
1700cat >>conftest.$ac_ext <<_ACEOF
1701/* end confdefs.h. */
1702
1703int
1704main ()
1705{
1706
1707 ;
1708 return 0;
1709}
1710_ACEOF
1711ac_clean_files_save=$ac_clean_files
1712ac_clean_files="$ac_clean_files a.out a.exe b.out"
1713# Try to create an executable without -o first, disregard a.out.
1714# It will help us diagnose broken compilers, and finding out an intuition
1715# of exeext.
1716echo "$as_me:$LINENO: checking for C compiler default output" >&5
1717echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1718ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1719if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1720 (eval $ac_link_default) 2>&5
1721 ac_status=$?
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }; then
1724 # Find the output, starting from the most likely. This scheme is
1725# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1726# resort.
1727
1728# Be careful to initialize this variable, since it used to be cached.
1729# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1730ac_cv_exeext=
1731# b.out is created by i960 compilers.
1732for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1733do
1734 test -f "$ac_file" || continue
1735 case $ac_file in
1736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1737 ;;
1738 conftest.$ac_ext )
1739 # This is the source file.
1740 ;;
1741 [ab].out )
1742 # We found the default executable, but exeext='' is most
1743 # certainly right.
1744 break;;
1745 *.* )
1746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1747 # FIXME: I believe we export ac_cv_exeext for Libtool,
1748 # but it would be cool to find out if it's true. Does anybody
1749 # maintain Libtool? --akim.
1750 export ac_cv_exeext
1751 break;;
1752 * )
1753 break;;
1754 esac
1755done
1756else
1757 echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1761See \`config.log' for more details." >&5
1762echo "$as_me: error: C compiler cannot create executables
1763See \`config.log' for more details." >&2;}
1764 { (exit 77); exit 77; }; }
1765fi
1766
1767ac_exeext=$ac_cv_exeext
1768echo "$as_me:$LINENO: result: $ac_file" >&5
1769echo "${ECHO_T}$ac_file" >&6
1770
1771# Check the compiler produces executables we can run. If not, either
1772# the compiler is broken, or we cross compile.
1773echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1774echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1775# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1776# If not cross compiling, check that we can run a simple program.
1777if test "$cross_compiling" != yes; then
1778 if { ac_try='./$ac_file'
1779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1780 (eval $ac_try) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }; }; then
1784 cross_compiling=no
795ca3e5 1785 else
8106cdd5
AK
1786 if test "$cross_compiling" = maybe; then
1787 cross_compiling=yes
1788 else
1789 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1790If you meant to cross compile, use \`--host'.
1791See \`config.log' for more details." >&5
1792echo "$as_me: error: cannot run C compiled programs.
1793If you meant to cross compile, use \`--host'.
1794See \`config.log' for more details." >&2;}
1795 { (exit 1); exit 1; }; }
1796 fi
795ca3e5 1797 fi
795ca3e5 1798fi
8106cdd5
AK
1799echo "$as_me:$LINENO: result: yes" >&5
1800echo "${ECHO_T}yes" >&6
1801
1802rm -f a.out a.exe conftest$ac_cv_exeext b.out
1803ac_clean_files=$ac_clean_files_save
1804# Check the compiler produces executables we can run. If not, either
1805# the compiler is broken, or we cross compile.
1806echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1807echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1808echo "$as_me:$LINENO: result: $cross_compiling" >&5
1809echo "${ECHO_T}$cross_compiling" >&6
1810
1811echo "$as_me:$LINENO: checking for suffix of executables" >&5
1812echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1814 (eval $ac_link) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1819# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1820# work properly (i.e., refer to `conftest.exe'), while it won't with
1821# `rm'.
1822for ac_file in conftest.exe conftest conftest.*; do
1823 test -f "$ac_file" || continue
1824 case $ac_file in
1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1826 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827 export ac_cv_exeext
1828 break;;
1829 * ) break;;
1830 esac
1831done
795ca3e5 1832else
8106cdd5
AK
1833 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1834See \`config.log' for more details." >&5
1835echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1836See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }
1838fi
1839
1840rm -f conftest$ac_cv_exeext
1841echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1842echo "${ECHO_T}$ac_cv_exeext" >&6
1843
1844rm -f conftest.$ac_ext
1845EXEEXT=$ac_cv_exeext
1846ac_exeext=$EXEEXT
1847echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1849if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852 cat >conftest.$ac_ext <<_ACEOF
1853#line $LINENO "configure"
1854/* confdefs.h. */
1855_ACEOF
1856cat confdefs.h >>conftest.$ac_ext
1857cat >>conftest.$ac_ext <<_ACEOF
1858/* end confdefs.h. */
1859
1860int
1861main ()
1862{
1863
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868rm -f conftest.o conftest.obj
1869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>&5
1871 ac_status=$?
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1875 case $ac_file in
1876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1878 break;;
1879 esac
1880done
1881else
1882 echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1886See \`config.log' for more details." >&5
1887echo "$as_me: error: cannot compute suffix of object files: cannot compile
1888See \`config.log' for more details." >&2;}
1889 { (exit 1); exit 1; }; }
1890fi
1891
1892rm -f conftest.$ac_cv_objext conftest.$ac_ext
1893fi
1894echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1895echo "${ECHO_T}$ac_cv_objext" >&6
1896OBJEXT=$ac_cv_objext
1897ac_objext=$OBJEXT
1898echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1899echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903 cat >conftest.$ac_ext <<_ACEOF
1904#line $LINENO "configure"
1905/* confdefs.h. */
1906_ACEOF
1907cat confdefs.h >>conftest.$ac_ext
1908cat >>conftest.$ac_ext <<_ACEOF
1909/* end confdefs.h. */
1910
1911int
1912main ()
1913{
1914#ifndef __GNUC__
1915 choke me
1916#endif
795ca3e5 1917
8106cdd5
AK
1918 ;
1919 return 0;
1920}
1921_ACEOF
1922rm -f conftest.$ac_objext
1923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -s conftest.$ac_objext'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930 (eval $ac_try) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1934 ac_compiler_gnu=yes
795ca3e5 1935else
8106cdd5
AK
1936 echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939ac_compiler_gnu=no
795ca3e5 1940fi
8106cdd5
AK
1941rm -f conftest.$ac_objext conftest.$ac_ext
1942ac_cv_c_compiler_gnu=$ac_compiler_gnu
795ca3e5 1943
8106cdd5
AK
1944fi
1945echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1946echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947GCC=`test $ac_compiler_gnu = yes && echo yes`
1948ac_test_CFLAGS=${CFLAGS+set}
1949ac_save_CFLAGS=$CFLAGS
1950CFLAGS="-g"
1951echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1952echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953if test "${ac_cv_prog_cc_g+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 1955else
8106cdd5
AK
1956 cat >conftest.$ac_ext <<_ACEOF
1957#line $LINENO "configure"
1958/* confdefs.h. */
1959_ACEOF
1960cat confdefs.h >>conftest.$ac_ext
1961cat >>conftest.$ac_ext <<_ACEOF
1962/* end confdefs.h. */
1963
1964int
1965main ()
1966{
1967
1968 ;
1969 return 0;
1970}
1971_ACEOF
1972rm -f conftest.$ac_objext
1973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974 (eval $ac_compile) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); } &&
1978 { ac_try='test -s conftest.$ac_objext'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980 (eval $ac_try) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; }; then
795ca3e5
AK
1984 ac_cv_prog_cc_g=yes
1985else
8106cdd5
AK
1986 echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 1988
8106cdd5 1989ac_cv_prog_cc_g=no
795ca3e5 1990fi
8106cdd5
AK
1991rm -f conftest.$ac_objext conftest.$ac_ext
1992fi
1993echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1994echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 1995if test "$ac_test_CFLAGS" = set; then
8106cdd5 1996 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
1997elif test $ac_cv_prog_cc_g = yes; then
1998 if test "$GCC" = yes; then
1999 CFLAGS="-g -O2"
2000 else
2001 CFLAGS="-g"
2002 fi
2003else
2004 if test "$GCC" = yes; then
2005 CFLAGS="-O2"
2006 else
2007 CFLAGS=
2008 fi
2009fi
8106cdd5
AK
2010echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2011echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2012if test "${ac_cv_prog_cc_stdc+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015 ac_cv_prog_cc_stdc=no
2016ac_save_CC=$CC
2017cat >conftest.$ac_ext <<_ACEOF
2018#line $LINENO "configure"
2019/* confdefs.h. */
2020_ACEOF
2021cat confdefs.h >>conftest.$ac_ext
2022cat >>conftest.$ac_ext <<_ACEOF
2023/* end confdefs.h. */
2024#include <stdarg.h>
2025#include <stdio.h>
2026#include <sys/types.h>
2027#include <sys/stat.h>
2028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2029struct buf { int x; };
2030FILE * (*rcsopen) (struct buf *, struct stat *, int);
2031static char *e (p, i)
2032 char **p;
2033 int i;
2034{
2035 return p[i];
2036}
2037static char *f (char * (*g) (char **, int), char **p, ...)
2038{
2039 char *s;
2040 va_list v;
2041 va_start (v,p);
2042 s = g (p, va_arg (v,int));
2043 va_end (v);
2044 return s;
2045}
2046int test (int i, double x);
2047struct s1 {int (*f) (int a);};
2048struct s2 {int (*f) (double a);};
2049int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2050int argc;
2051char **argv;
2052int
2053main ()
2054{
2055return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060# Don't try gcc -ansi; that turns off useful extensions and
2061# breaks some systems' header files.
2062# AIX -qlanglvl=ansi
2063# Ultrix and OSF/1 -std1
2064# HP-UX 10.20 and later -Ae
2065# HP-UX older versions -Aa -D_HPUX_SOURCE
2066# SVR4 -Xc -D__EXTENSIONS__
2067for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2068do
2069 CC="$ac_save_CC $ac_arg"
2070 rm -f conftest.$ac_objext
2071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078 (eval $ac_try) 2>&5
2079 ac_status=$?
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2082 ac_cv_prog_cc_stdc=$ac_arg
2083break
2084else
2085 echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088fi
2089rm -f conftest.$ac_objext
2090done
2091rm -f conftest.$ac_ext conftest.$ac_objext
2092CC=$ac_save_CC
2093
2094fi
2095
2096case "x$ac_cv_prog_cc_stdc" in
2097 x|xno)
2098 echo "$as_me:$LINENO: result: none needed" >&5
2099echo "${ECHO_T}none needed" >&6 ;;
2100 *)
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2102echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2103 CC="$CC $ac_cv_prog_cc_stdc" ;;
2104esac
2105
2106# Some people use a C++ compiler to compile C. Since we use `exit',
2107# in C++ we need to declare it. In case someone uses the same compiler
2108# for both compiling C and C++ we need to have the C++ compiler decide
2109# the declaration of exit, since it's the most demanding environment.
2110cat >conftest.$ac_ext <<_ACEOF
2111#ifndef __cplusplus
2112 choke me
2113#endif
2114_ACEOF
2115rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 for ac_declaration in \
2128 ''\
2129 '#include <stdlib.h>' \
2130 'extern "C" void std::exit (int) throw (); using std::exit;' \
2131 'extern "C" void std::exit (int); using std::exit;' \
2132 'extern "C" void exit (int) throw ();' \
2133 'extern "C" void exit (int);' \
2134 'void exit (int);'
2135do
2136 cat >conftest.$ac_ext <<_ACEOF
2137#line $LINENO "configure"
2138/* confdefs.h. */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
2142/* end confdefs.h. */
2143#include <stdlib.h>
2144$ac_declaration
2145int
2146main ()
2147{
2148exit (42);
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153rm -f conftest.$ac_objext
2154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 :
2166else
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170continue
2171fi
2172rm -f conftest.$ac_objext conftest.$ac_ext
2173 cat >conftest.$ac_ext <<_ACEOF
2174#line $LINENO "configure"
2175/* confdefs.h. */
2176_ACEOF
2177cat confdefs.h >>conftest.$ac_ext
2178cat >>conftest.$ac_ext <<_ACEOF
2179/* end confdefs.h. */
2180$ac_declaration
2181int
2182main ()
2183{
2184exit (42);
2185 ;
2186 return 0;
2187}
2188_ACEOF
2189rm -f conftest.$ac_objext
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 break
2202else
2203 echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206fi
2207rm -f conftest.$ac_objext conftest.$ac_ext
2208done
2209rm -f conftest*
2210if test -n "$ac_declaration"; then
2211 echo '#ifdef __cplusplus' >>confdefs.h
2212 echo $ac_declaration >>confdefs.h
2213 echo '#endif' >>confdefs.h
2214fi
2215
2216else
2217 echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220fi
2221rm -f conftest.$ac_objext conftest.$ac_ext
2222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2227
2228# Find a good install program. We prefer a C program (faster),
2229# so one script is as good as another. But avoid the broken or
2230# incompatible versions:
2231# SysV /etc/install, /usr/sbin/install
2232# SunOS /usr/etc/install
2233# IRIX /sbin/install
2234# AIX /bin/install
8106cdd5 2235# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2236# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2237# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2238# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2239# ./install, which can be erroneously created by make from ./install.sh.
8106cdd5
AK
2240echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2241echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2242if test -z "$INSTALL"; then
8106cdd5
AK
2243if test "${ac_cv_path_install+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247for as_dir in $PATH
2248do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 # Account for people who put trailing slashes in PATH elements.
2252case $as_dir/ in
2253 ./ | .// | /cC/* | \
2254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2255 /usr/ucb/* ) ;;
2256 *)
2257 # OSF1 and SCO ODT 3.0 have their own names for install.
2258 # Don't use installbsd from OSF since it installs stuff as root
2259 # by default.
2260 for ac_prog in ginstall scoinst install; do
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2263 if test $ac_prog = install &&
2264 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265 # AIX install. It has an incompatible calling convention.
2266 :
2267 elif test $ac_prog = install &&
2268 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269 # program-specific install script used by HP pwplus--don't use.
2270 :
2271 else
2272 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2273 break 3
2274 fi
2275 fi
795ca3e5 2276 done
8106cdd5
AK
2277 done
2278 ;;
2279esac
2280done
2281
795ca3e5
AK
2282
2283fi
2284 if test "${ac_cv_path_install+set}" = set; then
8106cdd5 2285 INSTALL=$ac_cv_path_install
795ca3e5
AK
2286 else
2287 # As a last resort, use the slow shell script. We don't cache a
2288 # path for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the path is relative.
8106cdd5 2291 INSTALL=$ac_install_sh
795ca3e5
AK
2292 fi
2293fi
8106cdd5
AK
2294echo "$as_me:$LINENO: result: $INSTALL" >&5
2295echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2296
2297# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298# It thinks the first close brace ends the variable substitution.
2299test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2300
8106cdd5 2301test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2302
2303test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2304
8106cdd5
AK
2305echo "$as_me:$LINENO: checking whether ln -s works" >&5
2306echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2307LN_S=$as_ln_s
2308if test "$LN_S" = "ln -s"; then
2309 echo "$as_me:$LINENO: result: yes" >&5
2310echo "${ECHO_T}yes" >&6
795ca3e5 2311else
8106cdd5
AK
2312 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2313echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2314fi
2315
8106cdd5
AK
2316echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2317echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2318set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2319if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2321else
8106cdd5 2322 cat >conftest.make <<\_ACEOF
795ca3e5 2323all:
8106cdd5
AK
2324 @echo 'ac_maketemp="$(MAKE)"'
2325_ACEOF
795ca3e5 2326# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8106cdd5 2327eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2328if test -n "$ac_maketemp"; then
2329 eval ac_cv_prog_make_${ac_make}_set=yes
2330else
2331 eval ac_cv_prog_make_${ac_make}_set=no
2332fi
8106cdd5 2333rm -f conftest.make
795ca3e5
AK
2334fi
2335if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8106cdd5
AK
2336 echo "$as_me:$LINENO: result: yes" >&5
2337echo "${ECHO_T}yes" >&6
795ca3e5
AK
2338 SET_MAKE=
2339else
8106cdd5
AK
2340 echo "$as_me:$LINENO: result: no" >&5
2341echo "${ECHO_T}no" >&6
795ca3e5
AK
2342 SET_MAKE="MAKE=${MAKE-make}"
2343fi
2344
8106cdd5
AK
2345if test -n "$ac_tool_prefix"; then
2346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2347set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2348echo "$as_me:$LINENO: checking for $ac_word" >&5
2349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2350if test "${ac_cv_prog_RANLIB+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2352else
2353 if test -n "$RANLIB"; then
2354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2355else
8106cdd5
AK
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 break 2
2366 fi
2367done
2368done
2369
795ca3e5
AK
2370fi
2371fi
8106cdd5 2372RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2373if test -n "$RANLIB"; then
8106cdd5
AK
2374 echo "$as_me:$LINENO: result: $RANLIB" >&5
2375echo "${ECHO_T}$RANLIB" >&6
2376else
2377 echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6
2379fi
2380
2381fi
2382if test -z "$ac_cv_prog_RANLIB"; then
2383 ac_ct_RANLIB=$RANLIB
2384 # Extract the first word of "ranlib", so it can be a program name with args.
2385set dummy ranlib; ac_word=$2
2386echo "$as_me:$LINENO: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2390else
8106cdd5
AK
2391 if test -n "$ac_ct_RANLIB"; then
2392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_ac_ct_RANLIB="ranlib"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405done
2406done
2407
2408 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2409fi
2410fi
2411ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2412if test -n "$ac_ct_RANLIB"; then
2413 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2414echo "${ECHO_T}$ac_ct_RANLIB" >&6
2415else
2416 echo "$as_me:$LINENO: result: no" >&5
2417echo "${ECHO_T}no" >&6
2418fi
2419
2420 RANLIB=$ac_ct_RANLIB
2421else
2422 RANLIB="$ac_cv_prog_RANLIB"
795ca3e5
AK
2423fi
2424
2425
8106cdd5
AK
2426
2427
2428
2429
2430
2431
795ca3e5 2432ac_header_dirent=no
8106cdd5
AK
2433for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2434 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2435echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2436echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2437if eval "test \"\${$as_ac_Header+set}\" = set"; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 cat >conftest.$ac_ext <<_ACEOF
2441#line $LINENO "configure"
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h. */
795ca3e5
AK
2447#include <sys/types.h>
2448#include <$ac_hdr>
8106cdd5
AK
2449
2450int
2451main ()
2452{
2453if ((DIR *) 0)
2454return 0;
2455 ;
2456 return 0;
2457}
2458_ACEOF
2459rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 eval "$as_ac_Header=yes"
2472else
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476eval "$as_ac_Header=no"
795ca3e5 2477fi
8106cdd5 2478rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 2479fi
8106cdd5
AK
2480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2482if test `eval echo '${'$as_ac_Header'}'` = yes; then
2483 cat >>confdefs.h <<_ACEOF
2484#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2485_ACEOF
2486
2487ac_header_dirent=$ac_hdr; break
795ca3e5 2488fi
8106cdd5 2489
795ca3e5
AK
2490done
2491# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2492if test $ac_header_dirent = dirent.h; then
8106cdd5
AK
2493 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2494echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2495if test "${ac_cv_search_opendir+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498 ac_func_search_save_LIBS=$LIBS
2499ac_cv_search_opendir=no
2500cat >conftest.$ac_ext <<_ACEOF
2501#line $LINENO "configure"
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
2507
795ca3e5 2508/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
2509#ifdef __cplusplus
2510extern "C"
2511#endif
795ca3e5 2512/* We use char because int might match the return type of a gcc2
8106cdd5
AK
2513 builtin and then its argument prototype would still apply. */
2514char opendir ();
2515int
2516main ()
2517{
2518opendir ();
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523rm -f conftest.$ac_objext conftest$ac_exeext
2524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2525 (eval $ac_link) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest$ac_exeext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 ac_cv_search_opendir="none required"
2536else
2537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2542if test "$ac_cv_search_opendir" = no; then
2543 for ac_lib in dir; do
2544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2545 cat >conftest.$ac_ext <<_ACEOF
2546#line $LINENO "configure"
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
795ca3e5 2552
8106cdd5
AK
2553/* Override any gcc2 internal prototype to avoid an error. */
2554#ifdef __cplusplus
2555extern "C"
2556#endif
2557/* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559char opendir ();
2560int
2561main ()
2562{
2563opendir ();
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext conftest$ac_exeext
2569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570 (eval $ac_link) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -s conftest$ac_exeext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 ac_cv_search_opendir="-l$ac_lib"
2581break
795ca3e5 2582else
8106cdd5
AK
2583 echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586fi
2587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2588 done
2589fi
2590LIBS=$ac_func_search_save_LIBS
2591fi
2592echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2593echo "${ECHO_T}$ac_cv_search_opendir" >&6
2594if test "$ac_cv_search_opendir" != no; then
2595 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2596
795ca3e5
AK
2597fi
2598
2599else
8106cdd5
AK
2600 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2601echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2602if test "${ac_cv_search_opendir+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2604else
8106cdd5
AK
2605 ac_func_search_save_LIBS=$LIBS
2606ac_cv_search_opendir=no
2607cat >conftest.$ac_ext <<_ACEOF
2608#line $LINENO "configure"
2609/* confdefs.h. */
2610_ACEOF
2611cat confdefs.h >>conftest.$ac_ext
2612cat >>conftest.$ac_ext <<_ACEOF
2613/* end confdefs.h. */
2614
795ca3e5 2615/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
2616#ifdef __cplusplus
2617extern "C"
2618#endif
795ca3e5 2619/* We use char because int might match the return type of a gcc2
8106cdd5
AK
2620 builtin and then its argument prototype would still apply. */
2621char opendir ();
2622int
2623main ()
2624{
2625opendir ();
2626 ;
2627 return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext conftest$ac_exeext
2631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2632 (eval $ac_link) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -s conftest$ac_exeext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 ac_cv_search_opendir="none required"
2643else
2644 echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647fi
2648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2649if test "$ac_cv_search_opendir" = no; then
2650 for ac_lib in x; do
2651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2652 cat >conftest.$ac_ext <<_ACEOF
2653#line $LINENO "configure"
2654/* confdefs.h. */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h. */
795ca3e5 2659
8106cdd5
AK
2660/* Override any gcc2 internal prototype to avoid an error. */
2661#ifdef __cplusplus
2662extern "C"
2663#endif
2664/* We use char because int might match the return type of a gcc2
2665 builtin and then its argument prototype would still apply. */
2666char opendir ();
2667int
2668main ()
2669{
2670opendir ();
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext conftest$ac_exeext
2676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2677 (eval $ac_link) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -s conftest$ac_exeext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 (eval $ac_try) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 ac_cv_search_opendir="-l$ac_lib"
2688break
795ca3e5 2689else
8106cdd5
AK
2690 echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693fi
2694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2695 done
2696fi
2697LIBS=$ac_func_search_save_LIBS
2698fi
2699echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2700echo "${ECHO_T}$ac_cv_search_opendir" >&6
2701if test "$ac_cv_search_opendir" != no; then
2702 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2703
795ca3e5
AK
2704fi
2705
2706fi
2707
8106cdd5
AK
2708ac_ext=c
2709ac_cpp='$CPP $CPPFLAGS'
2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2714echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
795ca3e5
AK
2715# On Suns, sometimes $CPP names a directory.
2716if test -n "$CPP" && test -d "$CPP"; then
2717 CPP=
2718fi
2719if test -z "$CPP"; then
8106cdd5
AK
2720 if test "${ac_cv_prog_CPP+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2722else
8106cdd5
AK
2723 # Double quotes because CPP needs to be expanded
2724 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2725 do
2726 ac_preproc_ok=false
2727for ac_c_preproc_warn_flag in '' yes
2728do
2729 # Use a header file that comes with gcc, so configuring glibc
2730 # with a fresh cross-compiler works.
2731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2732 # <limits.h> exists even on freestanding compilers.
795ca3e5 2733 # On the NeXT, cc -E runs the code through the compiler's parser,
8106cdd5
AK
2734 # not just through cpp. "Syntax error" is here to catch this case.
2735 cat >conftest.$ac_ext <<_ACEOF
2736#line $LINENO "configure"
2737/* confdefs.h. */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h. */
2742#ifdef __STDC__
2743# include <limits.h>
2744#else
2745# include <assert.h>
2746#endif
2747 Syntax error
2748_ACEOF
2749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } >/dev/null; then
2757 if test -s conftest.err; then
2758 ac_cpp_err=$ac_c_preproc_warn_flag
2759 else
2760 ac_cpp_err=
2761 fi
795ca3e5 2762else
8106cdd5
AK
2763 ac_cpp_err=yes
2764fi
2765if test -z "$ac_cpp_err"; then
795ca3e5
AK
2766 :
2767else
8106cdd5
AK
2768 echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 # Broken: fails on valid input.
2772continue
2773fi
2774rm -f conftest.err conftest.$ac_ext
2775
2776 # OK, works on sane cases. Now check whether non-existent headers
2777 # can be detected and how.
2778 cat >conftest.$ac_ext <<_ACEOF
2779#line $LINENO "configure"
2780/* confdefs.h. */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h. */
2785#include <ac_nonexistent.h>
2786_ACEOF
2787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null; then
2795 if test -s conftest.err; then
2796 ac_cpp_err=$ac_c_preproc_warn_flag
2797 else
2798 ac_cpp_err=
2799 fi
795ca3e5 2800else
8106cdd5 2801 ac_cpp_err=yes
795ca3e5 2802fi
8106cdd5
AK
2803if test -z "$ac_cpp_err"; then
2804 # Broken: success on invalid input.
2805continue
2806else
2807 echo "$as_me: failed program was:" >&5
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 # Passes both tests.
2811ac_preproc_ok=:
2812break
795ca3e5 2813fi
8106cdd5
AK
2814rm -f conftest.err conftest.$ac_ext
2815
2816done
2817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2818rm -f conftest.err conftest.$ac_ext
2819if $ac_preproc_ok; then
2820 break
795ca3e5 2821fi
8106cdd5
AK
2822
2823 done
2824 ac_cv_prog_CPP=$CPP
2825
2826fi
2827 CPP=$ac_cv_prog_CPP
2828else
2829 ac_cv_prog_CPP=$CPP
2830fi
2831echo "$as_me:$LINENO: result: $CPP" >&5
2832echo "${ECHO_T}$CPP" >&6
2833ac_preproc_ok=false
2834for ac_c_preproc_warn_flag in '' yes
2835do
2836 # Use a header file that comes with gcc, so configuring glibc
2837 # with a fresh cross-compiler works.
2838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2839 # <limits.h> exists even on freestanding compilers.
2840 # On the NeXT, cc -E runs the code through the compiler's parser,
2841 # not just through cpp. "Syntax error" is here to catch this case.
2842 cat >conftest.$ac_ext <<_ACEOF
2843#line $LINENO "configure"
2844/* confdefs.h. */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h. */
2849#ifdef __STDC__
2850# include <limits.h>
2851#else
2852# include <assert.h>
2853#endif
2854 Syntax error
2855_ACEOF
2856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } >/dev/null; then
2864 if test -s conftest.err; then
2865 ac_cpp_err=$ac_c_preproc_warn_flag
2866 else
2867 ac_cpp_err=
2868 fi
2869else
2870 ac_cpp_err=yes
2871fi
2872if test -z "$ac_cpp_err"; then
2873 :
2874else
2875 echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 # Broken: fails on valid input.
2879continue
2880fi
2881rm -f conftest.err conftest.$ac_ext
2882
2883 # OK, works on sane cases. Now check whether non-existent headers
2884 # can be detected and how.
2885 cat >conftest.$ac_ext <<_ACEOF
2886#line $LINENO "configure"
2887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
2892#include <ac_nonexistent.h>
2893_ACEOF
2894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2896 ac_status=$?
2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } >/dev/null; then
2902 if test -s conftest.err; then
2903 ac_cpp_err=$ac_c_preproc_warn_flag
2904 else
2905 ac_cpp_err=
2906 fi
2907else
2908 ac_cpp_err=yes
2909fi
2910if test -z "$ac_cpp_err"; then
2911 # Broken: success on invalid input.
2912continue
2913else
2914 echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
2917 # Passes both tests.
2918ac_preproc_ok=:
2919break
2920fi
2921rm -f conftest.err conftest.$ac_ext
2922
2923done
2924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2925rm -f conftest.err conftest.$ac_ext
2926if $ac_preproc_ok; then
2927 :
2928else
2929 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2930See \`config.log' for more details." >&5
2931echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2932See \`config.log' for more details." >&2;}
2933 { (exit 1); exit 1; }; }
795ca3e5 2934fi
8106cdd5
AK
2935
2936ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941
2942
2943echo "$as_me:$LINENO: checking for egrep" >&5
2944echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2945if test "${ac_cv_prog_egrep+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2947else
8106cdd5
AK
2948 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2949 then ac_cv_prog_egrep='grep -E'
2950 else ac_cv_prog_egrep='egrep'
2951 fi
795ca3e5 2952fi
8106cdd5
AK
2953echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2954echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2955 EGREP=$ac_cv_prog_egrep
795ca3e5 2956
8106cdd5
AK
2957
2958echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2959echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2960if test "${ac_cv_header_stdc+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2962else
8106cdd5
AK
2963 cat >conftest.$ac_ext <<_ACEOF
2964#line $LINENO "configure"
2965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h. */
795ca3e5
AK
2970#include <stdlib.h>
2971#include <stdarg.h>
2972#include <string.h>
2973#include <float.h>
8106cdd5
AK
2974
2975int
2976main ()
2977{
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983rm -f conftest.$ac_objext
2984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985 (eval $ac_compile) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
795ca3e5
AK
2995 ac_cv_header_stdc=yes
2996else
8106cdd5
AK
2997 echo "$as_me: failed program was:" >&5
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
3000ac_cv_header_stdc=no
795ca3e5 3001fi
8106cdd5 3002rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5
AK
3003
3004if test $ac_cv_header_stdc = yes; then
3005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8106cdd5
AK
3006 cat >conftest.$ac_ext <<_ACEOF
3007#line $LINENO "configure"
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
795ca3e5 3013#include <string.h>
8106cdd5
AK
3014
3015_ACEOF
795ca3e5 3016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 3017 $EGREP "memchr" >/dev/null 2>&1; then
795ca3e5
AK
3018 :
3019else
795ca3e5
AK
3020 ac_cv_header_stdc=no
3021fi
3022rm -f conftest*
3023
3024fi
3025
3026if test $ac_cv_header_stdc = yes; then
3027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8106cdd5
AK
3028 cat >conftest.$ac_ext <<_ACEOF
3029#line $LINENO "configure"
3030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
795ca3e5 3035#include <stdlib.h>
8106cdd5
AK
3036
3037_ACEOF
795ca3e5 3038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 3039 $EGREP "free" >/dev/null 2>&1; then
795ca3e5
AK
3040 :
3041else
795ca3e5
AK
3042 ac_cv_header_stdc=no
3043fi
3044rm -f conftest*
3045
3046fi
3047
3048if test $ac_cv_header_stdc = yes; then
3049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8106cdd5 3050 if test "$cross_compiling" = yes; then
795ca3e5
AK
3051 :
3052else
8106cdd5
AK
3053 cat >conftest.$ac_ext <<_ACEOF
3054#line $LINENO "configure"
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
795ca3e5 3060#include <ctype.h>
8106cdd5
AK
3061#if ((' ' & 0x0FF) == 0x020)
3062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3064#else
3065# define ISLOWER(c) \
3066 (('a' <= (c) && (c) <= 'i') \
3067 || ('j' <= (c) && (c) <= 'r') \
3068 || ('s' <= (c) && (c) <= 'z'))
3069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3070#endif
795ca3e5 3071
8106cdd5
AK
3072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3073int
3074main ()
3075{
3076 int i;
3077 for (i = 0; i < 256; i++)
3078 if (XOR (islower (i), ISLOWER (i))
3079 || toupper (i) != TOUPPER (i))
3080 exit(2);
3081 exit (0);
3082}
3083_ACEOF
3084rm -f conftest$ac_exeext
3085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086 (eval $ac_link) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
795ca3e5
AK
3095 :
3096else
8106cdd5
AK
3097 echo "$as_me: program exited with status $ac_status" >&5
3098echo "$as_me: failed program was:" >&5
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101( exit $ac_status )
3102ac_cv_header_stdc=no
795ca3e5 3103fi
8106cdd5 3104rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
795ca3e5 3105fi
795ca3e5
AK
3106fi
3107fi
8106cdd5
AK
3108echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3109echo "${ECHO_T}$ac_cv_header_stdc" >&6
795ca3e5 3110if test $ac_cv_header_stdc = yes; then
8106cdd5
AK
3111
3112cat >>confdefs.h <<\_ACEOF
795ca3e5 3113#define STDC_HEADERS 1
8106cdd5 3114_ACEOF
795ca3e5
AK
3115
3116fi
3117
8106cdd5
AK
3118# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3129 inttypes.h stdint.h unistd.h
795ca3e5 3130do
8106cdd5
AK
3131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3132echo "$as_me:$LINENO: checking for $ac_header" >&5
3133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3134if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136else
3137 cat >conftest.$ac_ext <<_ACEOF
3138#line $LINENO "configure"
3139/* confdefs.h. */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h. */
3144$ac_includes_default
3145
3146#include <$ac_header>
3147_ACEOF
3148rm -f conftest.$ac_objext
3149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 (eval $ac_try) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 eval "$as_ac_Header=yes"
3161else
3162 echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165eval "$as_ac_Header=no"
795ca3e5 3166fi
8106cdd5
AK
3167rm -f conftest.$ac_objext conftest.$ac_ext
3168fi
3169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3171if test `eval echo '${'$as_ac_Header'}'` = yes; then
3172 cat >>confdefs.h <<_ACEOF
3173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3174_ACEOF
3175
3176fi
3177
3178done
3179
3180
3181
3182
3183
3184
3185for ac_header in fcntl.h malloc.h sys/ioctl.h unistd.h
3186do
3187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3188if eval "test \"\${$as_ac_Header+set}\" = set"; then
3189 echo "$as_me:$LINENO: checking for $ac_header" >&5
3190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3191if eval "test \"\${$as_ac_Header+set}\" = set"; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193fi
3194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3196else
3197 # Is the header compilable?
3198echo "$as_me:$LINENO: checking $ac_header usability" >&5
3199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3200cat >conftest.$ac_ext <<_ACEOF
3201#line $LINENO "configure"
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207$ac_includes_default
3208#include <$ac_header>
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
3222 ac_header_compiler=yes
3223else
3224 echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227ac_header_compiler=no
3228fi
3229rm -f conftest.$ac_objext conftest.$ac_ext
3230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3231echo "${ECHO_T}$ac_header_compiler" >&6
3232
3233# Is the header present?
3234echo "$as_me:$LINENO: checking $ac_header presence" >&5
3235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3236cat >conftest.$ac_ext <<_ACEOF
3237#line $LINENO "configure"
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#include <$ac_header>
3244_ACEOF
3245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 else
3256 ac_cpp_err=
3257 fi
3258else
3259 ac_cpp_err=yes
795ca3e5 3260fi
8106cdd5
AK
3261if test -z "$ac_cpp_err"; then
3262 ac_header_preproc=yes
795ca3e5 3263else
8106cdd5
AK
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 ac_header_preproc=no
3268fi
3269rm -f conftest.err conftest.$ac_ext
3270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3271echo "${ECHO_T}$ac_header_preproc" >&6
3272
3273# So? What about this header?
3274case $ac_header_compiler:$ac_header_preproc in
3275 yes:no )
3276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3280 (
3281 cat <<\_ASBOX
3282## ------------------------------------ ##
3283## Report this to bug-autoconf@gnu.org. ##
3284## ------------------------------------ ##
3285_ASBOX
3286 ) |
3287 sed "s/^/$as_me: WARNING: /" >&2
3288 ;;
3289 no:yes )
3290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3296 (
3297 cat <<\_ASBOX
3298## ------------------------------------ ##
3299## Report this to bug-autoconf@gnu.org. ##
3300## ------------------------------------ ##
3301_ASBOX
3302 ) |
3303 sed "s/^/$as_me: WARNING: /" >&2
3304 ;;
3305esac
3306echo "$as_me:$LINENO: checking for $ac_header" >&5
3307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3308if eval "test \"\${$as_ac_Header+set}\" = set"; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311 eval "$as_ac_Header=$ac_header_preproc"
3312fi
3313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3315
3316fi
3317if test `eval echo '${'$as_ac_Header'}'` = yes; then
3318 cat >>confdefs.h <<_ACEOF
3319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3320_ACEOF
3321
795ca3e5 3322fi
8106cdd5 3323
795ca3e5
AK
3324done
3325
3326
8106cdd5
AK
3327echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3328echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3329if test "${ac_cv_c_const+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332 cat >conftest.$ac_ext <<_ACEOF
3333#line $LINENO "configure"
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339
3340int
3341main ()
3342{
3343/* FIXME: Include the comments suggested by Paul. */
3344#ifndef __cplusplus
3345 /* Ultrix mips cc rejects this. */
3346 typedef int charset[2];
3347 const charset x;
3348 /* SunOS 4.1.1 cc rejects this. */
3349 char const *const *ccp;
3350 char **p;
3351 /* NEC SVR4.0.2 mips cc rejects this. */
3352 struct point {int x, y;};
3353 static struct point const zero = {0,0};
3354 /* AIX XL C 1.02.0.0 rejects this.
3355 It does not let you subtract one const X* pointer from another in
3356 an arm of an if-expression whose if-part is not a constant
3357 expression */
3358 const char *g = "string";
3359 ccp = &g + (g ? g-g : 0);
3360 /* HPUX 7.0 cc rejects these. */
3361 ++ccp;
3362 p = (char**) ccp;
3363 ccp = (char const *const *) p;
3364 { /* SCO 3.2v4 cc rejects this. */
3365 char *t;
3366 char const *s = 0 ? (char *) 0 : (char const *) 0;
3367
3368 *t++ = 0;
3369 }
3370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3371 int x[] = {25, 17};
3372 const int *foo = &x[0];
3373 ++foo;
3374 }
3375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3376 typedef const int *iptr;
3377 iptr p = 0;
3378 ++p;
3379 }
3380 { /* AIX XL C 1.02.0.0 rejects this saying
3381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3382 struct s { int j; const int *ap[3]; };
3383 struct s *b; b->j = 5;
3384 }
3385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3386 const int foo = 10;
3387 }
3388#endif
795ca3e5 3389
8106cdd5
AK
3390 ;
3391 return 0;
3392}
3393_ACEOF
3394rm -f conftest.$ac_objext
3395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
795ca3e5
AK
3406 ac_cv_c_const=yes
3407else
8106cdd5
AK
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411ac_cv_c_const=no
795ca3e5 3412fi
8106cdd5 3413rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3414fi
8106cdd5
AK
3415echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3416echo "${ECHO_T}$ac_cv_c_const" >&6
795ca3e5 3417if test $ac_cv_c_const = no; then
8106cdd5
AK
3418
3419cat >>confdefs.h <<\_ACEOF
3420#define const
3421_ACEOF
795ca3e5
AK
3422
3423fi
3424
8106cdd5
AK
3425echo "$as_me:$LINENO: checking for inline" >&5
3426echo $ECHO_N "checking for inline... $ECHO_C" >&6
3427if test "${ac_cv_c_inline+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
3429else
3430 ac_cv_c_inline=no
3431for ac_kw in inline __inline__ __inline; do
8106cdd5
AK
3432 cat >conftest.$ac_ext <<_ACEOF
3433#line $LINENO "configure"
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#ifndef __cplusplus
3440typedef int foo_t;
3441static $ac_kw foo_t static_foo () {return 0; }
3442$ac_kw foo_t foo () {return 0; }
3443#endif
3444
3445_ACEOF
3446rm -f conftest.$ac_objext
3447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
795ca3e5
AK
3458 ac_cv_c_inline=$ac_kw; break
3459else
8106cdd5
AK
3460 echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
795ca3e5 3463fi
8106cdd5 3464rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5
AK
3465done
3466
3467fi
8106cdd5
AK
3468echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3469echo "${ECHO_T}$ac_cv_c_inline" >&6
3470case $ac_cv_c_inline in
795ca3e5 3471 inline | yes) ;;
8106cdd5
AK
3472 no)
3473cat >>confdefs.h <<\_ACEOF
3474#define inline
3475_ACEOF
795ca3e5 3476 ;;
8106cdd5 3477 *) cat >>confdefs.h <<_ACEOF
795ca3e5 3478#define inline $ac_cv_c_inline
8106cdd5 3479_ACEOF
795ca3e5
AK
3480 ;;
3481esac
3482
8106cdd5
AK
3483echo "$as_me:$LINENO: checking for off_t" >&5
3484echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3485if test "${ac_cv_type_off_t+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3487else
8106cdd5
AK
3488 cat >conftest.$ac_ext <<_ACEOF
3489#line $LINENO "configure"
3490/* confdefs.h. */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
3494/* end confdefs.h. */
3495$ac_includes_default
3496int
3497main ()
3498{
3499if ((off_t *) 0)
3500 return 0;
3501if (sizeof (off_t))
3502 return 0;
3503 ;
3504 return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
795ca3e5
AK
3519 ac_cv_type_off_t=yes
3520else
8106cdd5
AK
3521 echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3523
8106cdd5 3524ac_cv_type_off_t=no
795ca3e5 3525fi
8106cdd5
AK
3526rm -f conftest.$ac_objext conftest.$ac_ext
3527fi
3528echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3529echo "${ECHO_T}$ac_cv_type_off_t" >&6
3530if test $ac_cv_type_off_t = yes; then
3531 :
3532else
3533
3534cat >>confdefs.h <<_ACEOF
795ca3e5 3535#define off_t long
8106cdd5 3536_ACEOF
795ca3e5
AK
3537
3538fi
3539
8106cdd5
AK
3540echo "$as_me:$LINENO: checking for pid_t" >&5
3541echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3542if test "${ac_cv_type_pid_t+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3544else
8106cdd5
AK
3545 cat >conftest.$ac_ext <<_ACEOF
3546#line $LINENO "configure"
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552$ac_includes_default
3553int
3554main ()
3555{
3556if ((pid_t *) 0)
3557 return 0;
3558if (sizeof (pid_t))
3559 return 0;
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
795ca3e5
AK
3576 ac_cv_type_pid_t=yes
3577else
8106cdd5
AK
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3580
8106cdd5 3581ac_cv_type_pid_t=no
795ca3e5 3582fi
8106cdd5
AK
3583rm -f conftest.$ac_objext conftest.$ac_ext
3584fi
3585echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3586echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3587if test $ac_cv_type_pid_t = yes; then
3588 :
3589else
3590
3591cat >>confdefs.h <<_ACEOF
795ca3e5 3592#define pid_t int
8106cdd5 3593_ACEOF
795ca3e5
AK
3594
3595fi
3596
8106cdd5
AK
3597echo "$as_me:$LINENO: checking for size_t" >&5
3598echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3599if test "${ac_cv_type_size_t+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3601else
8106cdd5
AK
3602 cat >conftest.$ac_ext <<_ACEOF
3603#line $LINENO "configure"
3604/* confdefs.h. */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h. */
3609$ac_includes_default
3610int
3611main ()
3612{
3613if ((size_t *) 0)
3614 return 0;
3615if (sizeof (size_t))
3616 return 0;
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621rm -f conftest.$ac_objext
3622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623 (eval $ac_compile) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
795ca3e5
AK
3633 ac_cv_type_size_t=yes
3634else
8106cdd5
AK
3635 echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3637
8106cdd5 3638ac_cv_type_size_t=no
795ca3e5 3639fi
8106cdd5
AK
3640rm -f conftest.$ac_objext conftest.$ac_ext
3641fi
3642echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3643echo "${ECHO_T}$ac_cv_type_size_t" >&6
3644if test $ac_cv_type_size_t = yes; then
3645 :
3646else
3647
3648cat >>confdefs.h <<_ACEOF
795ca3e5 3649#define size_t unsigned
8106cdd5 3650_ACEOF
795ca3e5
AK
3651
3652fi
3653
8106cdd5
AK
3654
3655echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
3656echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
3657if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3659else
8106cdd5
AK
3660 cat >conftest.$ac_ext <<_ACEOF
3661#line $LINENO "configure"
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667$ac_includes_default
3668int
3669main ()
3670{
3671static struct stat ac_aggr;
3672if (ac_aggr.st_rdev)
3673return 0;
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678rm -f conftest.$ac_objext
3679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 (eval $ac_try) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_cv_member_struct_stat_st_rdev=yes
3691else
3692 echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695cat >conftest.$ac_ext <<_ACEOF
3696#line $LINENO "configure"
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
3702$ac_includes_default
3703int
3704main ()
3705{
3706static struct stat ac_aggr;
3707if (sizeof ac_aggr.st_rdev)
3708return 0;
3709 ;
3710 return 0;
3711}
3712_ACEOF
3713rm -f conftest.$ac_objext
3714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -s conftest.$ac_objext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_member_struct_stat_st_rdev=yes
3726else
3727 echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730ac_cv_member_struct_stat_st_rdev=no
795ca3e5 3731fi
8106cdd5
AK
3732rm -f conftest.$ac_objext conftest.$ac_ext
3733fi
3734rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3735fi
8106cdd5
AK
3736echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
3737echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
3738if test $ac_cv_member_struct_stat_st_rdev = yes; then
795ca3e5 3739
8106cdd5
AK
3740cat >>confdefs.h <<_ACEOF
3741#define HAVE_STRUCT_STAT_ST_RDEV 1
3742_ACEOF
3743
3744
3745cat >>confdefs.h <<\_ACEOF
795ca3e5 3746#define HAVE_ST_RDEV 1
8106cdd5 3747_ACEOF
795ca3e5
AK
3748
3749fi
3750
8106cdd5
AK
3751
3752echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3753echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3754if test "${ac_cv_header_time+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3756else
8106cdd5
AK
3757 cat >conftest.$ac_ext <<_ACEOF
3758#line $LINENO "configure"
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
795ca3e5
AK
3764#include <sys/types.h>
3765#include <sys/time.h>
3766#include <time.h>
8106cdd5
AK
3767
3768int
3769main ()
3770{
3771if ((struct tm *) 0)
3772return 0;
3773 ;
3774 return 0;
3775}
3776_ACEOF
3777rm -f conftest.$ac_objext
3778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
795ca3e5
AK
3789 ac_cv_header_time=yes
3790else
8106cdd5
AK
3791 echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
3793
3794ac_cv_header_time=no
795ca3e5 3795fi
8106cdd5 3796rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3797fi
8106cdd5
AK
3798echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3799echo "${ECHO_T}$ac_cv_header_time" >&6
795ca3e5 3800if test $ac_cv_header_time = yes; then
8106cdd5
AK
3801
3802cat >>confdefs.h <<\_ACEOF
795ca3e5 3803#define TIME_WITH_SYS_TIME 1
8106cdd5 3804_ACEOF
795ca3e5
AK
3805
3806fi
3807
3808
b896caa1 3809# Make sure we can run config.sub.
8106cdd5
AK
3810$ac_config_sub sun4 >/dev/null 2>&1 ||
3811 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3812echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3813 { (exit 1); exit 1; }; }
3814
3815echo "$as_me:$LINENO: checking build system type" >&5
3816echo $ECHO_N "checking build system type... $ECHO_C" >&6
3817if test "${ac_cv_build+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820 ac_cv_build_alias=$build_alias
3821test -z "$ac_cv_build_alias" &&
3822 ac_cv_build_alias=`$ac_config_guess`
3823test -z "$ac_cv_build_alias" &&
3824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3825echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3826 { (exit 1); exit 1; }; }
3827ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3828 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3829echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3830 { (exit 1); exit 1; }; }
3831
3832fi
3833echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3834echo "${ECHO_T}$ac_cv_build" >&6
3835build=$ac_cv_build
3836build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3837build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3838build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3839
3840
3841echo "$as_me:$LINENO: checking host system type" >&5
3842echo $ECHO_N "checking host system type... $ECHO_C" >&6
3843if test "${ac_cv_host+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846 ac_cv_host_alias=$host_alias
3847test -z "$ac_cv_host_alias" &&
3848 ac_cv_host_alias=$ac_cv_build_alias
3849ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3850 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3851echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3852 { (exit 1); exit 1; }; }
3853
3854fi
3855echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3856echo "${ECHO_T}$ac_cv_host" >&6
3857host=$ac_cv_host
3858host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3859host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3860host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3861
3862
3863echo "$as_me:$LINENO: checking target system type" >&5
3864echo $ECHO_N "checking target system type... $ECHO_C" >&6
3865if test "${ac_cv_target+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 ac_cv_target_alias=$target_alias
3869test "x$ac_cv_target_alias" = "x" &&
3870 ac_cv_target_alias=$ac_cv_host_alias
3871ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3872 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3873echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3874 { (exit 1); exit 1; }; }
b896caa1 3875
8106cdd5
AK
3876fi
3877echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3878echo "${ECHO_T}$ac_cv_target" >&6
3879target=$ac_cv_target
3880target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3881target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3882target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b896caa1 3883
b896caa1 3884
8106cdd5
AK
3885# The aliases save the names the user supplied, while $host etc.
3886# will get canonicalized.
3887test -n "$target_alias" &&
b896caa1
AK
3888 test "$program_prefix$program_suffix$program_transform_name" = \
3889 NONENONEs,x,x, &&
3890 program_prefix=${target_alias}-
3891
b896caa1
AK
3892case "$host_os" in
3893 linux*)
8106cdd5
AK
3894 CFLAGS=
3895 CLDFLAGS="-Wl,--version-script,.export.sym"
3896 CLDWHOLEARCHIVE="-Wl,-whole-archive"
3897 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
3898 LD_DEPS=".export.sym"
d68a82ec 3899 LD_FLAGS="-Wl,--export-dynamic"
8106cdd5
AK
3900 SOFLAG="-shared"
3901 DEVMAPPER=yes
1a9ea74d 3902 ODIRECT=yes
809fae91 3903 FSADM=no ;;
8106cdd5
AK
3904 darwin*)
3905 CFLAGS="-no-cpp-precomp -fno-common"
3906 CLDFLAGS=
3907 CLDWHOLEARCHIVE="-all_load"
3908 CLDNOWHOLEARCHIVE=
3909 LD_DEPS=
d68a82ec 3910 LD_FLAGS=
8106cdd5
AK
3911 SOFLAG="-dynamiclib"
3912 DEVMAPPER=no
1a9ea74d
AK
3913 ODIRECT=no
3914 FSADM=no ;;
b896caa1
AK
3915esac
3916
3917
795ca3e5 3918
a38df97f
AK
3919OWNER="root"
3920GROUP="root"
3921
8106cdd5 3922
795ca3e5
AK
3923# Check whether --with-user or --without-user was given.
3924if test "${with_user+set}" = set; then
3925 withval="$with_user"
8106cdd5 3926 OWNER="$withval"
8106cdd5 3927fi;
795ca3e5 3928
a38df97f
AK
3929if test x$OWNER != x; then
3930 OWNER="-o $OWNER"
3931fi
3932
795ca3e5
AK
3933
3934# Check whether --with-group or --without-group was given.
3935if test "${with_group+set}" = set; then
3936 withval="$with_group"
8106cdd5 3937 GROUP="$withval"
8106cdd5 3938fi;
795ca3e5 3939
a38df97f
AK
3940if test x$GROUP != x; then
3941 GROUP="-g $GROUP"
3942fi
3943
7d1552c9
AK
3944# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
3945if test "${enable_lvm1_fallback+set}" = set; then
3946 enableval="$enable_lvm1_fallback"
3947 LVM1_FALLBACK=$enableval
3948else
3949 LVM1_FALLBACK=no
3950fi;
3951
3952if test x$LVM1_FALLBACK = xyes; then
3953 CFLAGS="$CFLAGS -DLVM1_FALLBACK"
3954fi
3955
795ca3e5 3956
5a52dca9
AK
3957# Check whether --with-lvm1 or --without-lvm1 was given.
3958if test "${with_lvm1+set}" = set; then
3959 withval="$with_lvm1"
8106cdd5 3960 LVM1="$withval"
5a52dca9 3961else
8106cdd5
AK
3962 LVM1="internal"
3963fi;
5a52dca9
AK
3964
3965if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8106cdd5
AK
3966 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
3967" >&5
3968echo "$as_me: error: --with-lvm1 parameter invalid
3969" >&2;}
3970 { (exit 1); exit 1; }; }
5a52dca9
AK
3971 exit
3972fi;
3973
b896caa1
AK
3974if test x$LVM1 = xinternal; then
3975 CFLAGS="$CFLAGS -DLVM1_INTERNAL"
3976fi
3977
d8ac0fbc
AK
3978
3979# Check whether --with-pool or --without-pool was given.
3980if test "${with_pool+set}" = set; then
3981 withval="$with_pool"
3982 POOL="$withval"
3983else
3984 POOL="internal"
3985fi;
3986
3987if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
3988 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
3989" >&5
3990echo "$as_me: error: --with-pool parameter invalid
3991" >&2;}
3992 { (exit 1); exit 1; }; }
3993 exit
3994fi;
3995
3996if test x$POOL = xinternal; then
3997 CFLAGS="$CFLAGS -DPOOL_INTERNAL"
3998fi
3999
4000
795ca3e5
AK
4001# Check whether --enable-jobs or --disable-jobs was given.
4002if test "${enable_jobs+set}" = set; then
4003 enableval="$enable_jobs"
4004 JOBS=-j$enableval
4005else
8ef2b021 4006 JOBS=-j2
8106cdd5 4007fi;
795ca3e5 4008
4922197a
AK
4009
4010# Check whether --with-snapshots or --without-snapshots was given.
4011if test "${with_snapshots+set}" = set; then
4012 withval="$with_snapshots"
4013 SNAPSHOTS="$withval"
4014else
4015 SNAPSHOTS="internal"
4016fi;
4017
4018if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
4019 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
4020" >&5
4021echo "$as_me: error: --with-snapshots parameter invalid
4022" >&2;}
4023 { (exit 1); exit 1; }; }
4024 exit
4025fi;
4026
4027if test x$SNAPSHOTS = xinternal; then
4028 CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL"
4029fi
4030
4031
4032# Check whether --with-mirrors or --without-mirrors was given.
4033if test "${with_mirrors+set}" = set; then
4034 withval="$with_mirrors"
4035 MIRRORS="$withval"
4036else
4037 MIRRORS="internal"
4038fi;
4039
4040if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
4041 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
4042" >&5
4043echo "$as_me: error: --with-mirrors parameter invalid
4044" >&2;}
4045 { (exit 1); exit 1; }; }
4046 exit
4047fi;
4048
4049if test x$MIRRORS = xinternal; then
4050 CFLAGS="$CFLAGS -DMIRRORED_INTERNAL"
4051fi
4052
795ca3e5
AK
4053# Check whether --enable-static_link or --disable-static_link was given.
4054if test "${enable_static_link+set}" = set; then
4055 enableval="$enable_static_link"
4056 STATIC_LINK=$enableval
4057else
4058 STATIC_LINK=no
8106cdd5 4059fi;
795ca3e5
AK
4060
4061# Check whether --enable-readline or --disable-readline was given.
4062if test "${enable_readline+set}" = set; then
4063 enableval="$enable_readline"
4064 \
4065READLINE=$enableval
4066else
5a52dca9 4067 READLINE=no
8106cdd5 4068fi;
795ca3e5 4069
b896caa1
AK
4070if test x$READLINE = xyes; then
4071 CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
4072fi
4073
69792976 4074echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
8ef2b021
AK
4075# Check whether --enable-debug or --disable-debug was given.
4076if test "${enable_debug+set}" = set; then
4077 enableval="$enable_debug"
4078 \
4079DEBUG=yes
4080else
4081 DEBUG=no
8106cdd5 4082fi;
69792976 4083echo "$ac_t""$DEBUG" 1>&6
8ef2b021 4084
69792976 4085echo $ac_n "checking whether to enable device-mapper""... $ac_c" 1>&6
199e490e
AK
4086# Check whether --enable-devmapper or --disable-devmapper was given.
4087if test "${enable_devmapper+set}" = set; then
4088 enableval="$enable_devmapper"
4089 \
4090DEVMAPPER=no
8106cdd5 4091fi;
69792976 4092echo "$ac_t""$DEVMAPPER" 1>&6
199e490e 4093
b896caa1
AK
4094if test x$DEVMAPPER = xyes; then
4095 CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
4096fi
4097
69792976 4098echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6
2dc95e1c
AK
4099# Check whether --enable-o_direct or --disable-o_direct was given.
4100if test "${enable_o_direct+set}" = set; then
4101 enableval="$enable_o_direct"
4102 \
4103ODIRECT=no
8106cdd5 4104fi;
69792976 4105echo "$ac_t""$ODIRECT" 1>&6
2dc95e1c
AK
4106
4107if test x$ODIRECT = xyes; then
4108 CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
4109fi
4110
8106cdd5
AK
4111echo $ac_n "checking whether to compile liblvm2cmd.so""... $ac_c" 1>&6
4112# Check whether --enable-cmdlib or --disable-cmdlib was given.
4113if test "${enable_cmdlib+set}" = set; then
4114 enableval="$enable_cmdlib"
4115 \
4116CMDLIB=yes
4117else
4118 CMDLIB=no
4119fi;
4120echo "$ac_t""$CMDLIB" 1>&6
4121
4122if test x$CMDLIB = xyes; then
4123 CFLAGS="$CFLAGS -DCMDLIB"
4124fi
4125
809fae91
AK
4126echo $ac_n "checking whether to enable fsadm""... $ac_c" 1>&6
4127# Check whether --enable-fsadm or --disable-fsadm was given.
4128if test "${enable_fsadm+set}" = set; then
4129 enableval="$enable_fsadm"
4130 FSADM=yes
4131fi;
4132echo "$ac_t""$FSADM" 1>&6
4133
795ca3e5
AK
4134if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
4135 then exec_prefix="";
4136fi;
4137
8106cdd5
AK
4138if test $ac_cv_c_compiler_gnu = yes; then
4139 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4141if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
4143else
4144 ac_pattern="Autoconf.*'x'"
8106cdd5
AK
4145 cat >conftest.$ac_ext <<_ACEOF
4146#line $LINENO "configure"
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h. */
795ca3e5
AK
4152#include <sgtty.h>
4153Autoconf TIOCGETP
8106cdd5 4154_ACEOF
795ca3e5 4155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 4156 $EGREP "$ac_pattern" >/dev/null 2>&1; then
795ca3e5
AK
4157 ac_cv_prog_gcc_traditional=yes
4158else
795ca3e5
AK
4159 ac_cv_prog_gcc_traditional=no
4160fi
4161rm -f conftest*
4162
4163
4164 if test $ac_cv_prog_gcc_traditional = no; then
8106cdd5
AK
4165 cat >conftest.$ac_ext <<_ACEOF
4166#line $LINENO "configure"
4167/* confdefs.h. */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h. */
795ca3e5
AK
4172#include <termio.h>
4173Autoconf TCGETA
8106cdd5 4174_ACEOF
795ca3e5 4175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 4176 $EGREP "$ac_pattern" >/dev/null 2>&1; then
795ca3e5
AK
4177 ac_cv_prog_gcc_traditional=yes
4178fi
4179rm -f conftest*
4180
4181 fi
4182fi
8106cdd5
AK
4183echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4184echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
795ca3e5
AK
4185 if test $ac_cv_prog_gcc_traditional = yes; then
4186 CC="$CC -traditional"
4187 fi
4188fi
4189
8106cdd5
AK
4190echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4191echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4192if test "${ac_cv_type_signal+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4194else
8106cdd5
AK
4195 cat >conftest.$ac_ext <<_ACEOF
4196#line $LINENO "configure"
4197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h. */
795ca3e5
AK
4202#include <sys/types.h>
4203#include <signal.h>
4204#ifdef signal
8106cdd5 4205# undef signal
795ca3e5
AK
4206#endif
4207#ifdef __cplusplus
4208extern "C" void (*signal (int, void (*)(int)))(int);
4209#else
4210void (*signal ()) ();
4211#endif
4212
8106cdd5
AK
4213int
4214main ()
4215{
795ca3e5 4216int i;
8106cdd5
AK
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
795ca3e5
AK
4233 ac_cv_type_signal=void
4234else
8106cdd5
AK
4235 echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238ac_cv_type_signal=int
795ca3e5 4239fi
8106cdd5 4240rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 4241fi
8106cdd5
AK
4242echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4243echo "${ECHO_T}$ac_cv_type_signal" >&6
795ca3e5 4244
8106cdd5 4245cat >>confdefs.h <<_ACEOF
795ca3e5 4246#define RETSIGTYPE $ac_cv_type_signal
8106cdd5 4247_ACEOF
795ca3e5
AK
4248
4249
8106cdd5
AK
4250
4251for ac_func in vprintf
4252do
4253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4254echo "$as_me:$LINENO: checking for $ac_func" >&5
4255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4256if eval "test \"\${$as_ac_var+set}\" = set"; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4258else
8106cdd5
AK
4259 cat >conftest.$ac_ext <<_ACEOF
4260#line $LINENO "configure"
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
795ca3e5 4266/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
4267 which can conflict with char $ac_func (); below.
4268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 <limits.h> exists even on freestanding compilers. */
4270#ifdef __STDC__
4271# include <limits.h>
4272#else
4273# include <assert.h>
4274#endif
795ca3e5 4275/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4276#ifdef __cplusplus
4277extern "C"
4278{
4279#endif
795ca3e5 4280/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4281 builtin and then its argument prototype would still apply. */
4282char $ac_func ();
795ca3e5
AK
4283/* The GNU C library defines this for functions which it implements
4284 to always fail with ENOSYS. Some functions are actually named
4285 something starting with __ and the normal name is an alias. */
8106cdd5 4286#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
4287choke me
4288#else
8106cdd5
AK
4289char (*f) () = $ac_func;
4290#endif
4291#ifdef __cplusplus
4292}
795ca3e5
AK
4293#endif
4294
8106cdd5
AK
4295int
4296main ()
4297{
4298return f != $ac_func;
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext conftest$ac_exeext
4304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -s conftest$ac_exeext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 (eval $ac_try) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 eval "$as_ac_var=yes"
795ca3e5 4316else
8106cdd5
AK
4317 echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4319
8106cdd5 4320eval "$as_ac_var=no"
795ca3e5 4321fi
8106cdd5
AK
4322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4323fi
4324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4326if test `eval echo '${'$as_ac_var'}'` = yes; then
4327 cat >>confdefs.h <<_ACEOF
4328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4329_ACEOF
795ca3e5 4330
8106cdd5
AK
4331echo "$as_me:$LINENO: checking for _doprnt" >&5
4332echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4333if test "${ac_cv_func__doprnt+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4335else
8106cdd5
AK
4336 cat >conftest.$ac_ext <<_ACEOF
4337#line $LINENO "configure"
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
795ca3e5 4343/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
4344 which can conflict with char _doprnt (); below.
4345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 <limits.h> exists even on freestanding compilers. */
4347#ifdef __STDC__
4348# include <limits.h>
4349#else
4350# include <assert.h>
4351#endif
795ca3e5 4352/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4353#ifdef __cplusplus
4354extern "C"
4355{
4356#endif
795ca3e5 4357/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4358 builtin and then its argument prototype would still apply. */
4359char _doprnt ();
795ca3e5
AK
4360/* The GNU C library defines this for functions which it implements
4361 to always fail with ENOSYS. Some functions are actually named
4362 something starting with __ and the normal name is an alias. */
4363#if defined (__stub__doprnt) || defined (__stub____doprnt)
4364choke me
4365#else
8106cdd5
AK
4366char (*f) () = _doprnt;
4367#endif
4368#ifdef __cplusplus
4369}
795ca3e5
AK
4370#endif
4371
8106cdd5
AK
4372int
4373main ()
4374{
4375return f != _doprnt;
4376 ;
4377 return 0;
4378}
4379_ACEOF
4380rm -f conftest.$ac_objext conftest$ac_exeext
4381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382 (eval $ac_link) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -s conftest$ac_exeext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 (eval $ac_try) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_func__doprnt=yes
795ca3e5 4393else
8106cdd5
AK
4394 echo "$as_me: failed program was:" >&5
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
4397ac_cv_func__doprnt=no
795ca3e5 4398fi
8106cdd5 4399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 4400fi
8106cdd5
AK
4401echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4402echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4403if test $ac_cv_func__doprnt = yes; then
795ca3e5 4404
8106cdd5 4405cat >>confdefs.h <<\_ACEOF
795ca3e5 4406#define HAVE_DOPRNT 1
8106cdd5 4407_ACEOF
795ca3e5 4408
795ca3e5
AK
4409fi
4410
4411fi
8106cdd5
AK
4412done
4413
4414
4415
4416
795ca3e5
AK
4417
4418for ac_func in mkdir rmdir uname
4419do
8106cdd5
AK
4420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4421echo "$as_me:$LINENO: checking for $ac_func" >&5
4422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4423if eval "test \"\${$as_ac_var+set}\" = set"; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 cat >conftest.$ac_ext <<_ACEOF
4427#line $LINENO "configure"
4428/* confdefs.h. */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h. */
795ca3e5 4433/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
4434 which can conflict with char $ac_func (); below.
4435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4436 <limits.h> exists even on freestanding compilers. */
4437#ifdef __STDC__
4438# include <limits.h>
4439#else
4440# include <assert.h>
4441#endif
795ca3e5 4442/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4443#ifdef __cplusplus
4444extern "C"
4445{
4446#endif
795ca3e5 4447/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4448 builtin and then its argument prototype would still apply. */
4449char $ac_func ();
795ca3e5
AK
4450/* The GNU C library defines this for functions which it implements
4451 to always fail with ENOSYS. Some functions are actually named
4452 something starting with __ and the normal name is an alias. */
4453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4454choke me
4455#else
8106cdd5
AK
4456char (*f) () = $ac_func;
4457#endif
4458#ifdef __cplusplus
4459}
795ca3e5
AK
4460#endif
4461
8106cdd5
AK
4462int
4463main ()
4464{
4465return f != $ac_func;
4466 ;
4467 return 0;
4468}
4469_ACEOF
4470rm -f conftest.$ac_objext conftest$ac_exeext
4471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472 (eval $ac_link) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -s conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 eval "$as_ac_var=yes"
795ca3e5 4483else
8106cdd5
AK
4484 echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487eval "$as_ac_var=no"
795ca3e5 4488fi
8106cdd5 4489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 4490fi
8106cdd5
AK
4491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4493if test `eval echo '${'$as_ac_var'}'` = yes; then
4494 cat >>confdefs.h <<_ACEOF
4495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4496_ACEOF
795ca3e5 4497
795ca3e5
AK
4498fi
4499done
4500
4501
4502if test x$READLINE = xyes; then
8106cdd5
AK
4503 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
4504echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
4505if test "${ac_cv_search_tgetent+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 ac_func_search_save_LIBS=$LIBS
4509ac_cv_search_tgetent=no
4510cat >conftest.$ac_ext <<_ACEOF
4511#line $LINENO "configure"
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
4517
795ca3e5 4518/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4519#ifdef __cplusplus
4520extern "C"
4521#endif
795ca3e5 4522/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4523 builtin and then its argument prototype would still apply. */
4524char tgetent ();
4525int
4526main ()
4527{
4528tgetent ();
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext conftest$ac_exeext
4534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535 (eval $ac_link) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
795ca3e5
AK
4545 ac_cv_search_tgetent="none required"
4546else
8106cdd5
AK
4547 echo "$as_me: failed program was:" >&5
4548sed 's/^/| /' conftest.$ac_ext >&5
4549
4550fi
4551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4552if test "$ac_cv_search_tgetent" = no; then
4553 for ac_lib in ncurses curses termcap termlib; do
4554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4555 cat >conftest.$ac_ext <<_ACEOF
4556#line $LINENO "configure"
4557/* confdefs.h. */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h. */
4562
795ca3e5 4563/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4564#ifdef __cplusplus
4565extern "C"
4566#endif
795ca3e5 4567/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4568 builtin and then its argument prototype would still apply. */
4569char tgetent ();
4570int
4571main ()
4572{
4573tgetent ();
4574 ;
4575 return 0;
4576}
4577_ACEOF
4578rm -f conftest.$ac_objext conftest$ac_exeext
4579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4580 (eval $ac_link) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -s conftest$ac_exeext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 (eval $ac_try) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 ac_cv_search_tgetent="-l$ac_lib"
795ca3e5
AK
4591break
4592else
8106cdd5
AK
4593 echo "$as_me: failed program was:" >&5
4594sed 's/^/| /' conftest.$ac_ext >&5
4595
795ca3e5 4596fi
8106cdd5
AK
4597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4598 done
795ca3e5 4599fi
8106cdd5
AK
4600LIBS=$ac_func_search_save_LIBS
4601fi
4602echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
4603echo "${ECHO_T}$ac_cv_search_tgetent" >&6
4604if test "$ac_cv_search_tgetent" != no; then
795ca3e5 4605 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8106cdd5
AK
4606
4607else
4608 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
4609--enable-readline option (which is enabled by default). Either disable readline
4610support with --disable-readline or download and install termcap from:
4611 ftp.gnu.org/gnu/termcap
4612Note: if you are using precompiled packages you will also need the development
4613 package as well (which may be called termcap-devel or something similar).
4614Note: (n)curses also seems to work as a substitute for termcap. This was
4615 not found either - but you could try installing that as well.
4616" >&5
4617echo "$as_me: error: termcap could not be found which is required for the
795ca3e5
AK
4618--enable-readline option (which is enabled by default). Either disable readline
4619support with --disable-readline or download and install termcap from:
4620 ftp.gnu.org/gnu/termcap
4621Note: if you are using precompiled packages you will also need the development
4622 package as well (which may be called termcap-devel or something similar).
4623Note: (n)curses also seems to work as a substitute for termcap. This was
4624 not found either - but you could try installing that as well.
8106cdd5
AK
4625" >&2;}
4626 { (exit 1); exit 1; }; }
795ca3e5 4627 exit
8106cdd5 4628
795ca3e5 4629fi
8106cdd5 4630
795ca3e5
AK
4631fi
4632
8106cdd5
AK
4633echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4634echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4635if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 4637else
8106cdd5 4638 ac_check_lib_save_LIBS=$LIBS
26e7f2e0 4639LIBS="-ldl $LIBS"
8106cdd5
AK
4640cat >conftest.$ac_ext <<_ACEOF
4641#line $LINENO "configure"
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647
26e7f2e0 4648/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4649#ifdef __cplusplus
4650extern "C"
4651#endif
26e7f2e0 4652/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4653 builtin and then its argument prototype would still apply. */
4654char dlopen ();
4655int
4656main ()
4657{
4658dlopen ();
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
4664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665 (eval $ac_link) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_lib_dl_dlopen=yes
4676else
4677 echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
26e7f2e0 4679
8106cdd5 4680ac_cv_lib_dl_dlopen=no
26e7f2e0 4681fi
8106cdd5
AK
4682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4683LIBS=$ac_check_lib_save_LIBS
4684fi
4685echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4686echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4687if test $ac_cv_lib_dl_dlopen = yes; then
26e7f2e0
AK
4688 HAVE_LIBDL=yes
4689else
8106cdd5 4690 HAVE_LIBDL=no
26e7f2e0
AK
4691fi
4692
4693
74583a91 4694if [ "x$HAVE_LIBDL" = xyes -a "x$STATIC_LINK" = xno ]; then
b896caa1 4695 CFLAGS="$CFLAGS -DHAVE_LIBDL"
26e7f2e0 4696 LIBS="-ldl $LIBS"
d68a82ec
AK
4697else
4698 HAVE_LIBDL=no
26e7f2e0
AK
4699fi
4700
d8ac0fbc 4701if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o \
4922197a
AK
4702 "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
4703 \) -a "x$STATIC_LINK" = xyes ];
036f273a 4704 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
d68a82ec 4705" >&5
036f273a 4706echo "$as_me: error: Features cannot be 'shared' when building statically
d68a82ec
AK
4707" >&2;}
4708 { (exit 1); exit 1; }; }
4709 exit
036f273a
AK
4710fi
4711
4712echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4713echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
4714if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717 ac_check_lib_save_LIBS=$LIBS
4718LIBS="-lselinux $LIBS"
4719cat >conftest.$ac_ext <<_ACEOF
4720#line $LINENO "configure"
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726
4727/* Override any gcc2 internal prototype to avoid an error. */
4728#ifdef __cplusplus
4729extern "C"
4730#endif
4731/* We use char because int might match the return type of a gcc2
4732 builtin and then its argument prototype would still apply. */
4733char is_selinux_enabled ();
4734int
4735main ()
4736{
4737is_selinux_enabled ();
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742rm -f conftest.$ac_objext conftest$ac_exeext
4743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -s conftest$ac_exeext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_lib_selinux_is_selinux_enabled=yes
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759ac_cv_lib_selinux_is_selinux_enabled=no
4760fi
4761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4762LIBS=$ac_check_lib_save_LIBS
4763fi
4764echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4765echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
4766if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4767 HAVE_SELINUX=yes
4768else
4769 HAVE_SELINUX=no
4770fi
4771
4772
4773if test x$HAVE_SELINUX = xyes; then
4774 CFLAGS="$CFLAGS -DHAVE_SELINUX"
4775 LIBS="-lselinux $LIBS"
4776fi
d68a82ec 4777
8106cdd5
AK
4778
4779for ac_header in getopt.h
b896caa1 4780do
8106cdd5
AK
4781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo "$as_me:$LINENO: checking for $ac_header" >&5
4784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787fi
4788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4790else
4791 # Is the header compilable?
4792echo "$as_me:$LINENO: checking $ac_header usability" >&5
4793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4794cat >conftest.$ac_ext <<_ACEOF
4795#line $LINENO "configure"
4796/* confdefs.h. */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h. */
4801$ac_includes_default
4802#include <$ac_header>
4803_ACEOF
4804rm -f conftest.$ac_objext
4805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_header_compiler=yes
4817else
4818 echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821ac_header_compiler=no
4822fi
4823rm -f conftest.$ac_objext conftest.$ac_ext
4824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4825echo "${ECHO_T}$ac_header_compiler" >&6
4826
4827# Is the header present?
4828echo "$as_me:$LINENO: checking $ac_header presence" >&5
4829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4830cat >conftest.$ac_ext <<_ACEOF
4831#line $LINENO "configure"
4832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h. */
4837#include <$ac_header>
4838_ACEOF
4839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_c_preproc_warn_flag
4849 else
4850 ac_cpp_err=
4851 fi
4852else
4853 ac_cpp_err=yes
b896caa1 4854fi
8106cdd5
AK
4855if test -z "$ac_cpp_err"; then
4856 ac_header_preproc=yes
4857else
4858 echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 ac_header_preproc=no
4862fi
4863rm -f conftest.err conftest.$ac_ext
4864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4865echo "${ECHO_T}$ac_header_preproc" >&6
4866
4867# So? What about this header?
4868case $ac_header_compiler:$ac_header_preproc in
4869 yes:no )
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4874 (
4875 cat <<\_ASBOX
4876## ------------------------------------ ##
4877## Report this to bug-autoconf@gnu.org. ##
4878## ------------------------------------ ##
4879_ASBOX
4880 ) |
4881 sed "s/^/$as_me: WARNING: /" >&2
4882 ;;
4883 no:yes )
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4890 (
4891 cat <<\_ASBOX
4892## ------------------------------------ ##
4893## Report this to bug-autoconf@gnu.org. ##
4894## ------------------------------------ ##
4895_ASBOX
4896 ) |
4897 sed "s/^/$as_me: WARNING: /" >&2
4898 ;;
4899esac
4900echo "$as_me:$LINENO: checking for $ac_header" >&5
4901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 eval "$as_ac_Header=$ac_header_preproc"
4906fi
4907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
b896caa1 4910fi
8106cdd5
AK
4911if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914_ACEOF
b896caa1 4915 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
b896caa1 4916fi
8106cdd5 4917
b896caa1
AK
4918done
4919
4920
795ca3e5 4921if test x$READLINE = xyes; then
8106cdd5
AK
4922
4923echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4924echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4925if test "${ac_cv_lib_readline_readline+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4927else
8106cdd5 4928 ac_check_lib_save_LIBS=$LIBS
795ca3e5 4929LIBS="-lreadline $LIBS"
8106cdd5
AK
4930cat >conftest.$ac_ext <<_ACEOF
4931#line $LINENO "configure"
4932/* confdefs.h. */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h. */
4937
795ca3e5 4938/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4939#ifdef __cplusplus
4940extern "C"
4941#endif
795ca3e5 4942/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4943 builtin and then its argument prototype would still apply. */
4944char readline ();
4945int
4946main ()
4947{
4948readline ();
4949 ;
4950 return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext conftest$ac_exeext
4954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_lib_readline_readline=yes
4966else
4967 echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4969
8106cdd5 4970ac_cv_lib_readline_readline=no
795ca3e5 4971fi
8106cdd5
AK
4972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973LIBS=$ac_check_lib_save_LIBS
4974fi
4975echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4976echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4977if test $ac_cv_lib_readline_readline = yes; then
4978 cat >>confdefs.h <<_ACEOF
4979#define HAVE_LIBREADLINE 1
4980_ACEOF
795ca3e5
AK
4981
4982 LIBS="-lreadline $LIBS"
4983
4984else
8106cdd5
AK
4985 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
4986--enable-readline option (which is enabled by default). Either disable readline
4987support with --disable-readline or download and install readline from:
4988 ftp.gnu.org/gnu/readline
4989Note: if you are using precompiled packages you will also need the development
4990package as well (which may be called readline-devel or something similar).
4991" >&5
4992echo "$as_me: error: GNU Readline could not be found which is required for the
795ca3e5
AK
4993--enable-readline option (which is enabled by default). Either disable readline
4994support with --disable-readline or download and install readline from:
4995 ftp.gnu.org/gnu/readline
4996Note: if you are using precompiled packages you will also need the development
4997package as well (which may be called readline-devel or something similar).
8106cdd5
AK
4998" >&2;}
4999 { (exit 1); exit 1; }; }
795ca3e5 5000 exit
8106cdd5 5001
795ca3e5
AK
5002fi
5003
8106cdd5
AK
5004 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
5005echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
5006if test "${ac_cv_func_rl_completion_matches+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
83912faa 5008else
8106cdd5
AK
5009 cat >conftest.$ac_ext <<_ACEOF
5010#line $LINENO "configure"
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
83912faa 5016/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
5017 which can conflict with char rl_completion_matches (); below.
5018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 <limits.h> exists even on freestanding compilers. */
5020#ifdef __STDC__
5021# include <limits.h>
5022#else
5023# include <assert.h>
5024#endif
83912faa 5025/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
5026#ifdef __cplusplus
5027extern "C"
5028{
5029#endif
83912faa 5030/* We use char because int might match the return type of a gcc2
8106cdd5
AK
5031 builtin and then its argument prototype would still apply. */
5032char rl_completion_matches ();
83912faa
AK
5033/* The GNU C library defines this for functions which it implements
5034 to always fail with ENOSYS. Some functions are actually named
5035 something starting with __ and the normal name is an alias. */
5036#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
5037choke me
5038#else
8106cdd5
AK
5039char (*f) () = rl_completion_matches;
5040#endif
5041#ifdef __cplusplus
5042}
83912faa
AK
5043#endif
5044
8106cdd5
AK
5045int
5046main ()
5047{
5048return f != rl_completion_matches;
5049 ;
5050 return 0;
5051}
5052_ACEOF
5053rm -f conftest.$ac_objext conftest$ac_exeext
5054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5055 (eval $ac_link) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -s conftest$ac_exeext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_func_rl_completion_matches=yes
83912faa 5066else
8106cdd5
AK
5067 echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070ac_cv_func_rl_completion_matches=no
83912faa 5071fi
8106cdd5 5072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 5073fi
8106cdd5
AK
5074echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
5075echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
5076if test $ac_cv_func_rl_completion_matches = yes; then
b896caa1 5077 CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES"
83912faa
AK
5078fi
5079
8106cdd5 5080
69792976
AK
5081fi
5082
5083echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6
5084# Check whether --enable-nls or --disable-nls was given.
5085if test "${enable_nls+set}" = set; then
5086 enableval="$enable_nls"
5087 \
5088 INTL=yes
5089else
5090 INTL=no
8106cdd5 5091fi;
69792976
AK
5092echo "$ac_t""$INTL" 1>&6
5093
5094if test x$INTL = xyes; then
5095 INTL_PACKAGE="lvm2"
5096 # Extract the first word of "msgfmt", so it can be a program name with args.
5097set dummy msgfmt; ac_word=$2
8106cdd5
AK
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_path_MSGFMT+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 5102else
8106cdd5
AK
5103 case $MSGFMT in
5104 [\\/]* | ?:[\\/]*)
69792976
AK
5105 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5106 ;;
69792976 5107 *)
8106cdd5
AK
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120done
5121
69792976
AK
5122 ;;
5123esac
5124fi
8106cdd5
AK
5125MSGFMT=$ac_cv_path_MSGFMT
5126
69792976 5127if test -n "$MSGFMT"; then
8106cdd5
AK
5128 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5129echo "${ECHO_T}$MSGFMT" >&6
69792976 5130else
8106cdd5
AK
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
69792976
AK
5133fi
5134
5135 if [ "x$MSGFMT" == x ];
8106cdd5
AK
5136 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
5137 " >&5
5138echo "$as_me: error: msgfmt not found in path $PATH
5139 " >&2;}
5140 { (exit 1); exit 1; }; }
5141 exit
69792976
AK
5142 fi;
5143
8106cdd5
AK
5144
5145# Check whether --with-localedir or --without-localedir was given.
69792976
AK
5146if test "${with_localedir+set}" = set; then
5147 withval="$with_localedir"
8106cdd5 5148 LOCALEDIR="$withval"
69792976 5149else
8106cdd5
AK
5150 LOCALEDIR='${prefix}/share/locale'
5151fi;
83912faa
AK
5152fi
5153
4a7f3eb2
AK
5154
5155# Check whether --with-confdir or --without-confdir was given.
5156if test "${with_confdir+set}" = set; then
5157 withval="$with_confdir"
5158 CONFDIR="$withval"
5159else
0a62c911 5160 CONFDIR='/etc'
4a7f3eb2
AK
5161fi;
5162
0a62c911
AK
5163
5164# Check whether --with-staticdir or --without-staticdir was given.
5165if test "${with_staticdir+set}" = set; then
5166 withval="$with_staticdir"
5167 STATICDIR="$withval"
5168else
5169 STATICDIR='${exec_prefix}/sbin'
5170fi;
5171
5172
fae0c576
AK
5173if test "-f VERSION"; then
5174 LVM_VERSION="\"`cat VERSION`\""
5175else
5176 LVM_VERSION="Unknown"
5177fi
5178
5179
83912faa 5180
795ca3e5
AK
5181
5182
5183
5184
5185
5186
5a52dca9 5187
8ef2b021 5188
199e490e 5189
69792976
AK
5190
5191
5192
5193
8106cdd5
AK
5194
5195
5196
5197
5198
d68a82ec 5199
036f273a 5200
7d1552c9 5201
8106cdd5 5202
0a62c911 5203
8106cdd5 5204
4a7f3eb2 5205
4922197a
AK
5206
5207
d8ac0fbc 5208
1a9ea74d
AK
5209
5210 ac_config_files="$ac_config_files Makefile make.tmpl doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile"
8106cdd5 5211cat >confcache <<\_ACEOF
795ca3e5
AK
5212# This file is a shell script that caches the results of configure
5213# tests run on this system so they can be shared between configure
8106cdd5
AK
5214# scripts and configure runs, see configure's option --config-cache.
5215# It is not useful on other systems. If it contains results you don't
5216# want to keep, you may remove or edit it.
795ca3e5 5217#
8106cdd5
AK
5218# config.status only pays attention to the cache file if you give it
5219# the --recheck option to rerun configure.
795ca3e5 5220#
8106cdd5
AK
5221# `ac_cv_env_foo' variables (set or unset) will be overridden when
5222# loading this file, other *unset* `ac_cv_foo' will be assigned the
5223# following values.
5224
5225_ACEOF
5226
795ca3e5
AK
5227# The following way of writing the cache mishandles newlines in values,
5228# but we know of no workaround that is simple, portable, and efficient.
5229# So, don't put newlines in cache variables' values.
5230# Ultrix sh set writes to stderr and can't be redirected directly,
5231# and sets the high bit in the cache file unless we assign to the vars.
8106cdd5
AK
5232{
5233 (set) 2>&1 |
5234 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5235 *ac_space=\ *)
5236 # `set' does not quote correctly, so add quotes (double-quote
5237 # substitution turns \\\\ into \\, and sed turns \\ into \).
5238 sed -n \
5239 "s/'/'\\\\''/g;
5240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5241 ;;
5242 *)
5243 # `set' quotes correctly as required by POSIX, so do not add quotes.
5244 sed -n \
5245 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5246 ;;
5247 esac;
5248} |
5249 sed '
5250 t clear
5251 : clear
5252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5253 t end
5254 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5255 : end' >>confcache
5256if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 5257 if test -w $cache_file; then
8106cdd5
AK
5258 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5259 cat confcache >$cache_file
795ca3e5
AK
5260 else
5261 echo "not updating unwritable cache $cache_file"
5262 fi
5263fi
5264rm -f confcache
5265
795ca3e5
AK
5266test "x$prefix" = xNONE && prefix=$ac_default_prefix
5267# Let make expand exec_prefix.
5268test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5269
8106cdd5
AK
5270# VPATH may cause trouble with some makes, so we remove $(srcdir),
5271# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5272# trailing colons and then remove the whole line if VPATH becomes empty
5273# (actually we leave an empty line to preserve line numbers).
795ca3e5 5274if test "x$srcdir" = x.; then
8106cdd5
AK
5275 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5276s/:*\$(srcdir):*/:/;
5277s/:*\${srcdir}:*/:/;
5278s/:*@srcdir@:*/:/;
5279s/^\([^=]*=[ ]*\):*/\1/;
5280s/:*$//;
5281s/^[^=]*=[ ]*$//;
5282}'
795ca3e5
AK
5283fi
5284
795ca3e5
AK
5285# Transform confdefs.h into DEFS.
5286# Protect against shell expansion while executing Makefile rules.
5287# Protect against Makefile macro expansion.
8106cdd5
AK
5288#
5289# If the first sed substitution is executed (which looks for macros that
5290# take arguments), then we branch to the quote section. Otherwise,
5291# look for a macro that doesn't take arguments.
5292cat >confdef2opt.sed <<\_ACEOF
5293t clear
5294: clear
5295s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5296t quote
5297s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5298t quote
5299d
5300: quote
5301s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5302s,\[,\\&,g
5303s,\],\\&,g
5304s,\$,$$,g
5305p
5306_ACEOF
5307# We use echo to avoid assuming a particular line-breaking character.
5308# The extra dot is to prevent the shell from consuming trailing
5309# line-breaks from the sub-command output. A line-break within
5310# single-quotes doesn't work because, if this script is created in a
5311# platform that uses two characters for line-breaks (e.g., DOS), tr
5312# would break.
5313ac_LF_and_DOT=`echo; echo .`
5314DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5315rm -f confdef2opt.sed
5316
5317
5318ac_libobjs=
5319ac_ltlibobjs=
5320for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5321 # 1. Remove the extension, and $U if already installed.
5322 ac_i=`echo "$ac_i" |
5323 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5324 # 2. Add them.
5325 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5326 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5327done
5328LIBOBJS=$ac_libobjs
795ca3e5 5329
8106cdd5
AK
5330LTLIBOBJS=$ac_ltlibobjs
5331
5332
5333
5334: ${CONFIG_STATUS=./config.status}
5335ac_clean_files_save=$ac_clean_files
5336ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5337{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5338echo "$as_me: creating $CONFIG_STATUS" >&6;}
5339cat >$CONFIG_STATUS <<_ACEOF
5340#! $SHELL
5341# Generated by $as_me.
795ca3e5 5342# Run this file to recreate the current configuration.
795ca3e5 5343# Compiler output produced by configure, useful for debugging
8106cdd5
AK
5344# configure, is in config.log if it exists.
5345
5346debug=false
5347ac_cs_recheck=false
5348ac_cs_silent=false
5349SHELL=\${CONFIG_SHELL-$SHELL}
5350_ACEOF
5351
5352cat >>$CONFIG_STATUS <<\_ACEOF
5353## --------------------- ##
5354## M4sh Initialization. ##
5355## --------------------- ##
5356
5357# Be Bourne compatible
5358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5359 emulate sh
5360 NULLCMD=:
5361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5362 # is contrary to our usage. Disable this feature.
5363 alias -g '${1+"$@"}'='"$@"'
5364elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5365 set -o posix
5366fi
5367
5368# Support unset when possible.
5369if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5370 as_unset=unset
5371else
5372 as_unset=false
5373fi
795ca3e5 5374
8106cdd5
AK
5375
5376# Work around bugs in pre-3.0 UWIN ksh.
5377$as_unset ENV MAIL MAILPATH
5378PS1='$ '
5379PS2='> '
5380PS4='+ '
5381
5382# NLS nuisances.
5383for as_var in \
5384 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5385 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5386 LC_TELEPHONE LC_TIME
795ca3e5 5387do
8106cdd5
AK
5388 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5389 eval $as_var=C; export $as_var
5390 else
5391 $as_unset $as_var
5392 fi
795ca3e5
AK
5393done
5394
8106cdd5
AK
5395# Required to use basename.
5396if expr a : '\(a\)' >/dev/null 2>&1; then
5397 as_expr=expr
5398else
5399 as_expr=false
5400fi
795ca3e5 5401
8106cdd5
AK
5402if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5403 as_basename=basename
5404else
5405 as_basename=false
5406fi
5407
5408
5409# Name of the executable.
5410as_me=`$as_basename "$0" ||
5411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5412 X"$0" : 'X\(//\)$' \| \
5413 X"$0" : 'X\(/\)$' \| \
5414 . : '\(.\)' 2>/dev/null ||
5415echo X/"$0" |
5416 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5417 /^X\/\(\/\/\)$/{ s//\1/; q; }
5418 /^X\/\(\/\).*/{ s//\1/; q; }
5419 s/.*/./; q'`
5420
5421
5422# PATH needs CR, and LINENO needs CR and PATH.
5423# Avoid depending upon Character Ranges.
5424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5427as_cr_digits='0123456789'
5428as_cr_alnum=$as_cr_Letters$as_cr_digits
5429
5430# The user is always right.
5431if test "${PATH_SEPARATOR+set}" != set; then
5432 echo "#! /bin/sh" >conf$$.sh
5433 echo "exit 0" >>conf$$.sh
5434 chmod +x conf$$.sh
5435 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5436 PATH_SEPARATOR=';'
795ca3e5 5437 else
8106cdd5 5438 PATH_SEPARATOR=:
795ca3e5 5439 fi
8106cdd5
AK
5440 rm -f conf$$.sh
5441fi
5442
5443
5444 as_lineno_1=$LINENO
5445 as_lineno_2=$LINENO
5446 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5447 test "x$as_lineno_1" != "x$as_lineno_2" &&
5448 test "x$as_lineno_3" = "x$as_lineno_2" || {
5449 # Find who we are. Look in the path if we contain no path at all
5450 # relative or not.
5451 case $0 in
5452 *[\\/]* ) as_myself=$0 ;;
5453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5459done
5460
5461 ;;
5462 esac
5463 # We did not find ourselves, most probably we were run as `sh COMMAND'
5464 # in which case we are not to be found in the path.
5465 if test "x$as_myself" = x; then
5466 as_myself=$0
5467 fi
5468 if test ! -f "$as_myself"; then
5469 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5470echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5471 { (exit 1); exit 1; }; }
795ca3e5 5472 fi
8106cdd5
AK
5473 case $CONFIG_SHELL in
5474 '')
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5477do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for as_base in sh bash ksh sh5; do
5481 case $as_dir in
5482 /*)
5483 if ("$as_dir/$as_base" -c '
5484 as_lineno_1=$LINENO
5485 as_lineno_2=$LINENO
5486 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5487 test "x$as_lineno_1" != "x$as_lineno_2" &&
5488 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5489 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5490 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5491 CONFIG_SHELL=$as_dir/$as_base
5492 export CONFIG_SHELL
5493 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5494 fi;;
5495 esac
5496 done
795ca3e5 5497done
8106cdd5 5498;;
795ca3e5
AK
5499 esac
5500
8106cdd5
AK
5501 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5502 # uniformly replaced by the line number. The first 'sed' inserts a
5503 # line-number line before each line; the second 'sed' does the real
5504 # work. The second script uses 'N' to pair each line-number line
5505 # with the numbered line, and appends trailing '-' during
5506 # substitution so that $LINENO is not a special case at line end.
5507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5508 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5509 sed '=' <$as_myself |
5510 sed '
5511 N
5512 s,$,-,
5513 : loop
5514 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5515 t loop
5516 s,-$,,
5517 s,^['$as_cr_digits']*\n,,
5518 ' >$as_me.lineno &&
5519 chmod +x $as_me.lineno ||
5520 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5521echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5522 { (exit 1); exit 1; }; }
5523
5524 # Don't try to exec as it changes $[0], causing all sort of problems
5525 # (the dirname of $[0] is not the place where we might find the
5526 # original and so on. Autoconf is especially sensible to this).
5527 . ./$as_me.lineno
5528 # Exit status is that of the last command.
5529 exit
5530}
5531
795ca3e5 5532
8106cdd5
AK
5533case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5534 *c*,-n*) ECHO_N= ECHO_C='
5535' ECHO_T=' ' ;;
5536 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5537 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5538esac
5539
5540if expr a : '\(a\)' >/dev/null 2>&1; then
5541 as_expr=expr
5542else
5543 as_expr=false
5544fi
5545
5546rm -f conf$$ conf$$.exe conf$$.file
5547echo >conf$$.file
5548if ln -s conf$$.file conf$$ 2>/dev/null; then
5549 # We could just check for DJGPP; but this test a) works b) is more generic
5550 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5551 if test -f conf$$.exe; then
5552 # Don't use ln at all; we don't have any links
5553 as_ln_s='cp -p'
795ca3e5 5554 else
8106cdd5 5555 as_ln_s='ln -s'
795ca3e5 5556 fi
8106cdd5
AK
5557elif ln conf$$.file conf$$ 2>/dev/null; then
5558 as_ln_s=ln
5559else
5560 as_ln_s='cp -p'
5561fi
5562rm -f conf$$ conf$$.exe conf$$.file
795ca3e5 5563
8106cdd5
AK
5564if mkdir -p . 2>/dev/null; then
5565 as_mkdir_p=:
5566else
5567 as_mkdir_p=false
5568fi
5569
5570as_executable_p="test -f"
5571
5572# Sed expression to map a string onto a valid CPP name.
5573as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5574
5575# Sed expression to map a string onto a valid variable name.
5576as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5577
5578
5579# IFS
5580# We need space, tab and new line, in precisely that order.
5581as_nl='
5582'
5583IFS=" $as_nl"
5584
5585# CDPATH.
5586$as_unset CDPATH
5587
5588exec 6>&1
5589
5590# Open the log real soon, to keep \$[0] and so on meaningful, and to
5591# report actual input values of CONFIG_FILES etc. instead of their
5592# values after options handling. Logging --version etc. is OK.
5593exec 5>>config.log
5594{
5595 echo
5596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5597## Running $as_me. ##
5598_ASBOX
5599} >&5
5600cat >&5 <<_CSEOF
5601
5602This file was extended by $as_me, which was
5603generated by GNU Autoconf 2.57. Invocation command line was
5604
5605 CONFIG_FILES = $CONFIG_FILES
5606 CONFIG_HEADERS = $CONFIG_HEADERS
5607 CONFIG_LINKS = $CONFIG_LINKS
5608 CONFIG_COMMANDS = $CONFIG_COMMANDS
5609 $ $0 $@
5610
5611_CSEOF
5612echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5613echo >&5
5614_ACEOF
5615
5616# Files that config.status was made for.
5617if test -n "$ac_config_files"; then
5618 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5619fi
5620
5621if test -n "$ac_config_headers"; then
5622 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5623fi
5624
5625if test -n "$ac_config_links"; then
5626 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5627fi
5628
5629if test -n "$ac_config_commands"; then
5630 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5631fi
5632
5633cat >>$CONFIG_STATUS <<\_ACEOF
5634
5635ac_cs_usage="\
5636\`$as_me' instantiates files from templates according to the
5637current configuration.
5638
5639Usage: $0 [OPTIONS] [FILE]...
5640
5641 -h, --help print this help, then exit
5642 -V, --version print version number, then exit
5643 -q, --quiet do not print progress messages
5644 -d, --debug don't remove temporary files
5645 --recheck update $as_me by reconfiguring in the same conditions
5646 --file=FILE[:TEMPLATE]
5647 instantiate the configuration file FILE
5648
5649Configuration files:
5650$config_files
5651
5652Report bugs to <bug-autoconf@gnu.org>."
5653_ACEOF
5654
5655cat >>$CONFIG_STATUS <<_ACEOF
5656ac_cs_version="\\
5657config.status
5658configured by $0, generated by GNU Autoconf 2.57,
5659 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5660
5661Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5662Free Software Foundation, Inc.
5663This config.status script is free software; the Free Software Foundation
5664gives unlimited permission to copy, distribute and modify it."
5665srcdir=$srcdir
5666INSTALL="$INSTALL"
5667_ACEOF
5668
5669cat >>$CONFIG_STATUS <<\_ACEOF
5670# If no file are specified by the user, then we need to provide default
5671# value. By we need to know if files were specified by the user.
5672ac_need_defaults=:
5673while test $# != 0
5674do
5675 case $1 in
5676 --*=*)
5677 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5678 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5679 ac_shift=:
5680 ;;
5681 -*)
5682 ac_option=$1
5683 ac_optarg=$2
5684 ac_shift=shift
5685 ;;
5686 *) # This is not an option, so the user has probably given explicit
5687 # arguments.
5688 ac_option=$1
5689 ac_need_defaults=false;;
5690 esac
5691
5692 case $ac_option in
5693 # Handling of the options.
5694_ACEOF
5695cat >>$CONFIG_STATUS <<\_ACEOF
5696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5697 ac_cs_recheck=: ;;
5698 --version | --vers* | -V )
5699 echo "$ac_cs_version"; exit 0 ;;
5700 --he | --h)
5701 # Conflict between --help and --header
5702 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5703Try \`$0 --help' for more information." >&5
5704echo "$as_me: error: ambiguous option: $1
5705Try \`$0 --help' for more information." >&2;}
5706 { (exit 1); exit 1; }; };;
5707 --help | --hel | -h )
5708 echo "$ac_cs_usage"; exit 0 ;;
5709 --debug | --d* | -d )
5710 debug=: ;;
5711 --file | --fil | --fi | --f )
5712 $ac_shift
5713 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5714 ac_need_defaults=false;;
5715 --header | --heade | --head | --hea )
5716 $ac_shift
5717 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5718 ac_need_defaults=false;;
5719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5721 ac_cs_silent=: ;;
5722
5723 # This is an error.
5724 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5725Try \`$0 --help' for more information." >&5
5726echo "$as_me: error: unrecognized option: $1
5727Try \`$0 --help' for more information." >&2;}
5728 { (exit 1); exit 1; }; } ;;
5729
5730 *) ac_config_targets="$ac_config_targets $1" ;;
5731
5732 esac
5733 shift
5734done
5735
5736ac_configure_extra_args=
5737
5738if $ac_cs_silent; then
5739 exec 6>/dev/null
5740 ac_configure_extra_args="$ac_configure_extra_args --silent"
5741fi
5742
5743_ACEOF
5744cat >>$CONFIG_STATUS <<_ACEOF
5745if \$ac_cs_recheck; then
5746 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5747 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5748fi
5749
5750_ACEOF
5751
5752
5753
5754
5755
5756cat >>$CONFIG_STATUS <<\_ACEOF
5757for ac_config_target in $ac_config_targets
5758do
5759 case "$ac_config_target" in
5760 # Handling of arguments.
5761 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5762 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
4a7f3eb2 5763 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8106cdd5
AK
5764 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5765 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5766 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
d8ac0fbc 5767 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
4922197a
AK
5768 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
5769 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
8106cdd5
AK
5770 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5771 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
5772 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
5773 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
1a9ea74d 5774 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
8106cdd5
AK
5775 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
5776 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
5777 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
5778 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
5779 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
5780 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5781echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5782 { (exit 1); exit 1; }; };;
795ca3e5 5783 esac
8106cdd5
AK
5784done
5785
5786# If the user did not use the arguments to specify the items to instantiate,
5787# then the envvar interface is used. Set only those that are not.
5788# We use the long form for the default assignment because of an extremely
5789# bizarre bug on SunOS 4.1.3.
5790if $ac_need_defaults; then
5791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5792fi
5793
5794# Have a temporary directory for convenience. Make it in the build tree
5795# simply because there is no reason to put it here, and in addition,
5796# creating and moving files from /tmp can sometimes cause problems.
5797# Create a temporary directory, and hook for its removal unless debugging.
5798$debug ||
5799{
5800 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5801 trap '{ (exit 1); exit 1; }' 1 2 13 15
5802}
5803
5804# Create a (secure) tmp directory for tmp files.
5805
5806{
5807 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5808 test -n "$tmp" && test -d "$tmp"
5809} ||
5810{
5811 tmp=./confstat$$-$RANDOM
5812 (umask 077 && mkdir $tmp)
5813} ||
5814{
5815 echo "$me: cannot create a temporary directory in ." >&2
5816 { (exit 1); exit 1; }
5817}
5818
5819_ACEOF
5820
5821cat >>$CONFIG_STATUS <<_ACEOF
795ca3e5 5822
8106cdd5
AK
5823#
5824# CONFIG_FILES section.
5825#
5826
5827# No need to generate the scripts if there are no CONFIG_FILES.
5828# This happens for instance when ./config.status config.h
5829if test -n "\$CONFIG_FILES"; then
5830 # Protect against being on the right side of a sed subst in config.status.
5831 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5832 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5833s,@SHELL@,$SHELL,;t t
5834s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5835s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5836s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5837s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5838s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5839s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5840s,@exec_prefix@,$exec_prefix,;t t
5841s,@prefix@,$prefix,;t t
5842s,@program_transform_name@,$program_transform_name,;t t
5843s,@bindir@,$bindir,;t t
5844s,@sbindir@,$sbindir,;t t
5845s,@libexecdir@,$libexecdir,;t t
5846s,@datadir@,$datadir,;t t
5847s,@sysconfdir@,$sysconfdir,;t t
5848s,@sharedstatedir@,$sharedstatedir,;t t
5849s,@localstatedir@,$localstatedir,;t t
5850s,@libdir@,$libdir,;t t
5851s,@includedir@,$includedir,;t t
5852s,@oldincludedir@,$oldincludedir,;t t
5853s,@infodir@,$infodir,;t t
5854s,@mandir@,$mandir,;t t
5855s,@build_alias@,$build_alias,;t t
5856s,@host_alias@,$host_alias,;t t
5857s,@target_alias@,$target_alias,;t t
5858s,@DEFS@,$DEFS,;t t
5859s,@ECHO_C@,$ECHO_C,;t t
5860s,@ECHO_N@,$ECHO_N,;t t
5861s,@ECHO_T@,$ECHO_T,;t t
5862s,@LIBS@,$LIBS,;t t
5863s,@AWK@,$AWK,;t t
5864s,@CC@,$CC,;t t
5865s,@CFLAGS@,$CFLAGS,;t t
5866s,@LDFLAGS@,$LDFLAGS,;t t
5867s,@CPPFLAGS@,$CPPFLAGS,;t t
5868s,@ac_ct_CC@,$ac_ct_CC,;t t
5869s,@EXEEXT@,$EXEEXT,;t t
5870s,@OBJEXT@,$OBJEXT,;t t
5871s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5872s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5873s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5874s,@LN_S@,$LN_S,;t t
5875s,@SET_MAKE@,$SET_MAKE,;t t
5876s,@RANLIB@,$RANLIB,;t t
5877s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5878s,@CPP@,$CPP,;t t
5879s,@EGREP@,$EGREP,;t t
5880s,@build@,$build,;t t
5881s,@build_cpu@,$build_cpu,;t t
5882s,@build_vendor@,$build_vendor,;t t
5883s,@build_os@,$build_os,;t t
5884s,@host@,$host,;t t
5885s,@host_cpu@,$host_cpu,;t t
5886s,@host_vendor@,$host_vendor,;t t
5887s,@host_os@,$host_os,;t t
5888s,@target@,$target,;t t
5889s,@target_cpu@,$target_cpu,;t t
5890s,@target_vendor@,$target_vendor,;t t
5891s,@target_os@,$target_os,;t t
5892s,@MSGFMT@,$MSGFMT,;t t
5893s,@JOBS@,$JOBS,;t t
5894s,@STATIC_LINK@,$STATIC_LINK,;t t
5895s,@LVM1@,$LVM1,;t t
d8ac0fbc 5896s,@POOL@,$POOL,;t t
4922197a
AK
5897s,@SNAPSHOTS@,$SNAPSHOTS,;t t
5898s,@MIRRORS@,$MIRRORS,;t t
8106cdd5
AK
5899s,@OWNER@,$OWNER,;t t
5900s,@GROUP@,$GROUP,;t t
5901s,@CLDFLAGS@,$CLDFLAGS,;t t
5902s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
5903s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
5904s,@LD_DEPS@,$LD_DEPS,;t t
d68a82ec 5905s,@LD_FLAGS@,$LD_FLAGS,;t t
8106cdd5
AK
5906s,@SOFLAG@,$SOFLAG,;t t
5907s,@LVM_VERSION@,$LVM_VERSION,;t t
7d1552c9 5908s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
8106cdd5
AK
5909s,@DEBUG@,$DEBUG,;t t
5910s,@DEVMAPPER@,$DEVMAPPER,;t t
5911s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
036f273a 5912s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
8106cdd5
AK
5913s,@CMDLIB@,$CMDLIB,;t t
5914s,@LOCALEDIR@,$LOCALEDIR,;t t
4a7f3eb2 5915s,@CONFDIR@,$CONFDIR,;t t
0a62c911 5916s,@STATICDIR@,$STATICDIR,;t t
8106cdd5
AK
5917s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
5918s,@INTL@,$INTL,;t t
1a9ea74d 5919s,@FSADM@,$FSADM,;t t
8106cdd5
AK
5920s,@LIBOBJS@,$LIBOBJS,;t t
5921s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5922CEOF
5923
5924_ACEOF
5925
5926 cat >>$CONFIG_STATUS <<\_ACEOF
5927 # Split the substitutions into bite-sized pieces for seds with
5928 # small command number limits, like on Digital OSF/1 and HP-UX.
5929 ac_max_sed_lines=48
5930 ac_sed_frag=1 # Number of current file.
5931 ac_beg=1 # First line for current file.
5932 ac_end=$ac_max_sed_lines # Line after last line for current file.
5933 ac_more_lines=:
5934 ac_sed_cmds=
5935 while $ac_more_lines; do
5936 if test $ac_beg -gt 1; then
5937 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5938 else
5939 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5940 fi
5941 if test ! -s $tmp/subs.frag; then
5942 ac_more_lines=false
5943 else
5944 # The purpose of the label and of the branching condition is to
5945 # speed up the sed processing (if there are no `@' at all, there
5946 # is no need to browse any of the substitutions).
5947 # These are the two extra sed commands mentioned above.
5948 (echo ':t
5949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5950 if test -z "$ac_sed_cmds"; then
5951 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5952 else
5953 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5954 fi
5955 ac_sed_frag=`expr $ac_sed_frag + 1`
5956 ac_beg=$ac_end
5957 ac_end=`expr $ac_end + $ac_max_sed_lines`
5958 fi
5959 done
5960 if test -z "$ac_sed_cmds"; then
5961 ac_sed_cmds=cat
5962 fi
5963fi # test -n "$CONFIG_FILES"
5964
5965_ACEOF
5966cat >>$CONFIG_STATUS <<\_ACEOF
5967for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5969 case $ac_file in
5970 - | *:- | *:-:* ) # input from stdin
5971 cat >$tmp/stdin
5972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5976 * ) ac_file_in=$ac_file.in ;;
795ca3e5
AK
5977 esac
5978
8106cdd5
AK
5979 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5980 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5981$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5982 X"$ac_file" : 'X\(//\)[^/]' \| \
5983 X"$ac_file" : 'X\(//\)$' \| \
5984 X"$ac_file" : 'X\(/\)' \| \
5985 . : '\(.\)' 2>/dev/null ||
5986echo X"$ac_file" |
5987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5989 /^X\(\/\/\)$/{ s//\1/; q; }
5990 /^X\(\/\).*/{ s//\1/; q; }
5991 s/.*/./; q'`
5992 { if $as_mkdir_p; then
5993 mkdir -p "$ac_dir"
5994 else
5995 as_dir="$ac_dir"
5996 as_dirs=
5997 while test ! -d "$as_dir"; do
5998 as_dirs="$as_dir $as_dirs"
5999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6001 X"$as_dir" : 'X\(//\)[^/]' \| \
6002 X"$as_dir" : 'X\(//\)$' \| \
6003 X"$as_dir" : 'X\(/\)' \| \
6004 . : '\(.\)' 2>/dev/null ||
6005echo X"$as_dir" |
6006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6008 /^X\(\/\/\)$/{ s//\1/; q; }
6009 /^X\(\/\).*/{ s//\1/; q; }
6010 s/.*/./; q'`
6011 done
6012 test ! -n "$as_dirs" || mkdir $as_dirs
6013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6014echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6015 { (exit 1); exit 1; }; }; }
6016
6017 ac_builddir=.
6018
6019if test "$ac_dir" != .; then
6020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6021 # A "../" for each directory in $ac_dir_suffix.
6022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6023else
6024 ac_dir_suffix= ac_top_builddir=
6025fi
6026
6027case $srcdir in
6028 .) # No --srcdir option. We are building in place.
6029 ac_srcdir=.
6030 if test -z "$ac_top_builddir"; then
6031 ac_top_srcdir=.
6032 else
6033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6034 fi ;;
6035 [\\/]* | ?:[\\/]* ) # Absolute path.
6036 ac_srcdir=$srcdir$ac_dir_suffix;
6037 ac_top_srcdir=$srcdir ;;
6038 *) # Relative path.
6039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6040 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6041esac
6042# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6043# absolute.
6044ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6045ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6046ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6047ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6048
6049
6050 case $INSTALL in
6051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6052 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
6053 esac
6054
8106cdd5
AK
6055 if test x"$ac_file" != x-; then
6056 { echo "$as_me:$LINENO: creating $ac_file" >&5
6057echo "$as_me: creating $ac_file" >&6;}
6058 rm -f "$ac_file"
6059 fi
6060 # Let's still pretend it is `configure' which instantiates (i.e., don't
6061 # use $as_me), people would be surprised to read:
6062 # /* config.h. Generated by config.status. */
6063 if test x"$ac_file" = x-; then
6064 configure_input=
6065 else
6066 configure_input="$ac_file. "
6067 fi
6068 configure_input=$configure_input"Generated from `echo $ac_file_in |
6069 sed 's,.*/,,'` by configure."
6070
6071 # First look for the input files in the build tree, otherwise in the
6072 # src tree.
6073 ac_file_inputs=`IFS=:
6074 for f in $ac_file_in; do
6075 case $f in
6076 -) echo $tmp/stdin ;;
6077 [\\/$]*)
6078 # Absolute (can't be DOS-style, as IFS=:)
6079 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6080echo "$as_me: error: cannot find input file: $f" >&2;}
6081 { (exit 1); exit 1; }; }
6082 echo $f;;
6083 *) # Relative
6084 if test -f "$f"; then
6085 # Build tree
6086 echo $f
6087 elif test -f "$srcdir/$f"; then
6088 # Source tree
6089 echo $srcdir/$f
6090 else
6091 # /dev/null tree
6092 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6093echo "$as_me: error: cannot find input file: $f" >&2;}
6094 { (exit 1); exit 1; }; }
6095 fi;;
6096 esac
6097 done` || { (exit 1); exit 1; }
6098_ACEOF
6099cat >>$CONFIG_STATUS <<_ACEOF
6100 sed "$ac_vpsub
6101$extrasub
6102_ACEOF
6103cat >>$CONFIG_STATUS <<\_ACEOF
6104:t
6105/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6106s,@configure_input@,$configure_input,;t t
6107s,@srcdir@,$ac_srcdir,;t t
6108s,@abs_srcdir@,$ac_abs_srcdir,;t t
6109s,@top_srcdir@,$ac_top_srcdir,;t t
6110s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6111s,@builddir@,$ac_builddir,;t t
6112s,@abs_builddir@,$ac_abs_builddir,;t t
6113s,@top_builddir@,$ac_top_builddir,;t t
6114s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6115s,@INSTALL@,$ac_INSTALL,;t t
6116" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6117 rm -f $tmp/stdin
6118 if test x"$ac_file" != x-; then
6119 mv $tmp/out $ac_file
6120 else
6121 cat $tmp/out
6122 rm -f $tmp/out
6123 fi
795ca3e5 6124
8106cdd5
AK
6125done
6126_ACEOF
795ca3e5 6127
8106cdd5 6128cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 6129
8106cdd5
AK
6130{ (exit 0); exit 0; }
6131_ACEOF
795ca3e5 6132chmod +x $CONFIG_STATUS
8106cdd5
AK
6133ac_clean_files=$ac_clean_files_save
6134
6135
6136# configure is writing to config.log, and then calls config.status.
6137# config.status does its own redirection, appending to config.log.
6138# Unfortunately, on DOS this fails, as config.log is still kept open
6139# by configure, so config.status won't be able to write to it; its
6140# output is simply discarded. So we exec the FD to /dev/null,
6141# effectively closing config.log, so it can be properly (re)opened and
6142# appended to by config.status. When coming back to configure, we
6143# need to make the FD available again.
6144if test "$no_create" != yes; then
6145 ac_cs_success=:
6146 ac_config_status_args=
6147 test "$silent" = yes &&
6148 ac_config_status_args="$ac_config_status_args --quiet"
6149 exec 5>/dev/null
6150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6151 exec 5>>config.log
6152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6153 # would make configure fail if this is the last instruction.
6154 $ac_cs_success || { (exit 1); exit 1; }
6155fi
795ca3e5 6156
2dc95e1c
AK
6157
6158if test x$ODIRECT != xyes; then
6159 echo
6160 echo Warning: O_DIRECT disabled.
6161 echo Use of pvmove may cause machine to lock up under low memory conditions.
6162 echo
6163fi
809fae91
AK
6164
6165if test x$FSADM == xyes; then
6166 echo
6167 echo Warning: fsadm support is untested.
6168 echo
6169fi
This page took 0.687291 seconds and 5 git commands to generate.