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