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