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