]> sourceware.org Git - lvm2.git/blame - configure
Update makefiles (incl. cmdlib).
[lvm2.git] / configure
CommitLineData
795ca3e5
AK
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=/usr
15ac_help="$ac_help
16 --with-user=USER Set the owner of installed files "
17ac_help="$ac_help
18 --with-group=GROUP Set the group owner of installed files "
5a52dca9
AK
19ac_help="$ac_help
20 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
21 [TYPE=internal] "
795ca3e5
AK
22ac_help="$ac_help
23 --enable-jobs=NUM Number of jobs to run simultaneously"
24ac_help="$ac_help
25 --enable-static_link Use this to link the tools to the liblvm library
26 statically. Default is dynamic linking"
27ac_help="$ac_help
5a52dca9 28 --enable-readline Enable readline support"
8ef2b021
AK
29ac_help="$ac_help
30 --enable-debug Enable debugging"
199e490e
AK
31ac_help="$ac_help
32 --disable-devmapper Disable device-mapper interaction"
2dc95e1c
AK
33ac_help="$ac_help
34 --disable-o_direct Disable O_DIRECT"
69792976
AK
35ac_help="$ac_help
36 --enable-nls Enable Native Language Support"
37ac_help="$ac_help
38 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]"
795ca3e5
AK
39
40# Initialize some variables set by options.
41# The variables have the same names as the options, with
42# dashes changed to underlines.
43build=NONE
44cache_file=./config.cache
45exec_prefix=NONE
46host=NONE
47no_create=
48nonopt=NONE
49no_recursion=
50prefix=NONE
51program_prefix=NONE
52program_suffix=NONE
53program_transform_name=s,x,x,
54silent=
55site=
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
90 fi
91
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
96
97 # Accept the important Cygnus configure options, so we can diagnose typos.
98
99 case "$ac_option" in
100
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
105
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
110
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
117
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
123
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
132
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 fi
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
145
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
154
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
158
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
162 cat << EOF
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
195EOF
196 cat << EOF
197Host type:
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
208EOF
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
211 fi
212 exit 0 ;;
213
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
218
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
225
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
230
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
235
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
242
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
251
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
256
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
260
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
264
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
268
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
277
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
282
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
289
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
296
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
313
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
317
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
323
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
334
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
339
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
344
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
351
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
356
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
359
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
363
364 -with-* | --with-*)
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 fi
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "with_${ac_package}='$ac_optarg'" ;;
376
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
385
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
389
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
396
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
403
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 ;;
406
407 *)
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 fi
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 fi
414 nonopt="$ac_option"
415 ;;
416
417 esac
418done
419
420if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422fi
423
424trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425
426# File descriptor usage:
427# 0 standard input
428# 1 file creation
429# 2 errors and warnings
430# 3 some systems may open it to /dev/tty
431# 4 used on the Kubota Titan
432# 6 checking for... messages and results
433# 5 compiler messages saved in config.log
434if test "$silent" = yes; then
435 exec 6>/dev/null
436else
437 exec 6>&1
438fi
439exec 5>./config.log
440
441echo "\
442This file contains any messages produced by compilers while
443running configure, to aid debugging if configure makes a mistake.
444" 1>&5
445
446# Strip out --no-create and --no-recursion so they do not pile up.
447# Also quote any args containing shell metacharacters.
448ac_configure_args=
449for ac_arg
450do
451 case "$ac_arg" in
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 esac
460done
461
462# NLS nuisances.
463# Only set these to C if already set. These must not be set unconditionally
464# because not all systems understand e.g. LANG=C (notably SCO).
465# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466# Non-C LC_CTYPE values break the ctype check.
467if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471
472# confdefs.h avoids OS command line length limits that DEFS can exceed.
473rm -rf conftest* confdefs.h
474# AIX cpp loses on an empty file, so make sure it contains at least a newline.
475echo > confdefs.h
476
477# A filename unique to this package, relative to the directory that
478# configure is in, which we can look for to find out if srcdir is correct.
13c7b701 479ac_unique_file=lib/device/dev-cache.h
795ca3e5
AK
480
481# Find the source files, if location was not specified.
482if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
485 ac_prog=$0
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 srcdir=$ac_confdir
489 if test ! -r $srcdir/$ac_unique_file; then
490 srcdir=..
491 fi
492else
493 ac_srcdir_defaulted=no
494fi
495if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 else
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 fi
501fi
502srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503
504# Prefer explicitly selected file to automatically selected ones.
505if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 else
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 fi
511fi
512for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
515 . "$ac_site_file"
516 fi
517done
518
519if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522else
523 echo "creating cache $cache_file"
524 > $cache_file
525fi
526
527ac_ext=c
528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529ac_cpp='$CPP $CPPFLAGS'
530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532cross_compiling=$ac_cv_prog_cc_cross
533
534ac_exeext=
535ac_objext=o
536if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='
540' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
543 fi
544else
545 ac_n= ac_c='\c' ac_t=
546fi
547
548
549
550ac_aux_dir=
551for ac_dir in autoconf $srcdir/autoconf; do
552 if test -f $ac_dir/install-sh; then
553 ac_aux_dir=$ac_dir
554 ac_install_sh="$ac_aux_dir/install-sh -c"
555 break
556 elif test -f $ac_dir/install.sh; then
557 ac_aux_dir=$ac_dir
558 ac_install_sh="$ac_aux_dir/install.sh -c"
559 break
560 fi
561done
562if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
564fi
565ac_config_guess=$ac_aux_dir/config.guess
566ac_config_sub=$ac_aux_dir/config.sub
567ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568
569
2dc95e1c 570for ac_prog in gawk mawk nawk awk
795ca3e5
AK
571do
572# Extract the first word of "$ac_prog", so it can be a program name with args.
573set dummy $ac_prog; ac_word=$2
574echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69792976 575echo "configure:576: checking for $ac_word" >&5
795ca3e5
AK
576if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
577 echo $ac_n "(cached) $ac_c" 1>&6
578else
579 if test -n "$AWK"; then
580 ac_cv_prog_AWK="$AWK" # Let the user override the test.
581else
582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
583 ac_dummy="$PATH"
584 for ac_dir in $ac_dummy; do
585 test -z "$ac_dir" && ac_dir=.
586 if test -f $ac_dir/$ac_word; then
587 ac_cv_prog_AWK="$ac_prog"
588 break
589 fi
590 done
591 IFS="$ac_save_ifs"
592fi
593fi
594AWK="$ac_cv_prog_AWK"
595if test -n "$AWK"; then
596 echo "$ac_t""$AWK" 1>&6
597else
598 echo "$ac_t""no" 1>&6
599fi
600
601test -n "$AWK" && break
602done
603
604# Extract the first word of "gcc", so it can be a program name with args.
605set dummy gcc; ac_word=$2
606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69792976 607echo "configure:608: checking for $ac_word" >&5
795ca3e5
AK
608if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
609 echo $ac_n "(cached) $ac_c" 1>&6
610else
611 if test -n "$CC"; then
612 ac_cv_prog_CC="$CC" # Let the user override the test.
613else
614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
615 ac_dummy="$PATH"
616 for ac_dir in $ac_dummy; do
617 test -z "$ac_dir" && ac_dir=.
618 if test -f $ac_dir/$ac_word; then
619 ac_cv_prog_CC="gcc"
620 break
621 fi
622 done
623 IFS="$ac_save_ifs"
624fi
625fi
626CC="$ac_cv_prog_CC"
627if test -n "$CC"; then
628 echo "$ac_t""$CC" 1>&6
629else
630 echo "$ac_t""no" 1>&6
631fi
632
633if test -z "$CC"; then
634 # Extract the first word of "cc", so it can be a program name with args.
635set dummy cc; ac_word=$2
636echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69792976 637echo "configure:638: checking for $ac_word" >&5
795ca3e5
AK
638if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
640else
641 if test -n "$CC"; then
642 ac_cv_prog_CC="$CC" # Let the user override the test.
643else
644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 ac_prog_rejected=no
646 ac_dummy="$PATH"
647 for ac_dir in $ac_dummy; do
648 test -z "$ac_dir" && ac_dir=.
649 if test -f $ac_dir/$ac_word; then
650 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
651 ac_prog_rejected=yes
652 continue
653 fi
654 ac_cv_prog_CC="cc"
655 break
656 fi
657 done
658 IFS="$ac_save_ifs"
659if test $ac_prog_rejected = yes; then
660 # We found a bogon in the path, so make sure we never use it.
661 set dummy $ac_cv_prog_CC
662 shift
663 if test $# -gt 0; then
664 # We chose a different compiler from the bogus one.
665 # However, it has the same basename, so the bogon will be chosen
666 # first if we set CC to just the basename; use the full file name.
667 shift
668 set dummy "$ac_dir/$ac_word" "$@"
669 shift
670 ac_cv_prog_CC="$@"
671 fi
672fi
673fi
674fi
675CC="$ac_cv_prog_CC"
676if test -n "$CC"; then
677 echo "$ac_t""$CC" 1>&6
678else
679 echo "$ac_t""no" 1>&6
680fi
681
682 if test -z "$CC"; then
683 case "`uname -s`" in
684 *win32* | *WIN32*)
685 # Extract the first word of "cl", so it can be a program name with args.
686set dummy cl; ac_word=$2
687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69792976 688echo "configure:689: checking for $ac_word" >&5
795ca3e5
AK
689if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
691else
692 if test -n "$CC"; then
693 ac_cv_prog_CC="$CC" # Let the user override the test.
694else
695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
696 ac_dummy="$PATH"
697 for ac_dir in $ac_dummy; do
698 test -z "$ac_dir" && ac_dir=.
699 if test -f $ac_dir/$ac_word; then
700 ac_cv_prog_CC="cl"
701 break
702 fi
703 done
704 IFS="$ac_save_ifs"
705fi
706fi
707CC="$ac_cv_prog_CC"
708if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
710else
711 echo "$ac_t""no" 1>&6
712fi
713 ;;
714 esac
715 fi
716 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
717fi
718
719echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
69792976 720echo "configure:721: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
795ca3e5
AK
721
722ac_ext=c
723# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
724ac_cpp='$CPP $CPPFLAGS'
725ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
726ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
727cross_compiling=$ac_cv_prog_cc_cross
728
729cat > conftest.$ac_ext << EOF
730
69792976 731#line 732 "configure"
795ca3e5
AK
732#include "confdefs.h"
733
734main(){return(0);}
735EOF
69792976 736if { (eval echo configure:737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
737 ac_cv_prog_cc_works=yes
738 # If we can't run a trivial program, we are probably using a cross compiler.
739 if (./conftest; exit) 2>/dev/null; then
740 ac_cv_prog_cc_cross=no
741 else
742 ac_cv_prog_cc_cross=yes
743 fi
744else
745 echo "configure: failed program was:" >&5
746 cat conftest.$ac_ext >&5
747 ac_cv_prog_cc_works=no
748fi
749rm -fr conftest*
750ac_ext=c
751# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752ac_cpp='$CPP $CPPFLAGS'
753ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755cross_compiling=$ac_cv_prog_cc_cross
756
757echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
758if test $ac_cv_prog_cc_works = no; then
759 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
760fi
761echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
69792976 762echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
795ca3e5
AK
763echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
764cross_compiling=$ac_cv_prog_cc_cross
765
766echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
69792976 767echo "configure:768: checking whether we are using GNU C" >&5
795ca3e5
AK
768if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770else
771 cat > conftest.c <<EOF
772#ifdef __GNUC__
773 yes;
774#endif
775EOF
69792976 776if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
795ca3e5
AK
777 ac_cv_prog_gcc=yes
778else
779 ac_cv_prog_gcc=no
780fi
781fi
782
783echo "$ac_t""$ac_cv_prog_gcc" 1>&6
784
785if test $ac_cv_prog_gcc = yes; then
786 GCC=yes
787else
788 GCC=
789fi
790
791ac_test_CFLAGS="${CFLAGS+set}"
792ac_save_CFLAGS="$CFLAGS"
793CFLAGS=
794echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
69792976 795echo "configure:796: checking whether ${CC-cc} accepts -g" >&5
795ca3e5
AK
796if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
798else
799 echo 'void f(){}' > conftest.c
800if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
801 ac_cv_prog_cc_g=yes
802else
803 ac_cv_prog_cc_g=no
804fi
805rm -f conftest*
806
807fi
808
809echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
810if test "$ac_test_CFLAGS" = set; then
811 CFLAGS="$ac_save_CFLAGS"
812elif test $ac_cv_prog_cc_g = yes; then
813 if test "$GCC" = yes; then
814 CFLAGS="-g -O2"
815 else
816 CFLAGS="-g"
817 fi
818else
819 if test "$GCC" = yes; then
820 CFLAGS="-O2"
821 else
822 CFLAGS=
823 fi
824fi
825
826# Find a good install program. We prefer a C program (faster),
827# so one script is as good as another. But avoid the broken or
828# incompatible versions:
829# SysV /etc/install, /usr/sbin/install
830# SunOS /usr/etc/install
831# IRIX /sbin/install
832# AIX /bin/install
833# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
834# AFS /usr/afsws/bin/install, which mishandles nonexistent args
835# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
836# ./install, which can be erroneously created by make from ./install.sh.
837echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
69792976 838echo "configure:839: checking for a BSD compatible install" >&5
795ca3e5
AK
839if test -z "$INSTALL"; then
840if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842else
843 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
844 for ac_dir in $PATH; do
845 # Account for people who put trailing slashes in PATH elements.
846 case "$ac_dir/" in
847 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
848 *)
849 # OSF1 and SCO ODT 3.0 have their own names for install.
850 # Don't use installbsd from OSF since it installs stuff as root
851 # by default.
852 for ac_prog in ginstall scoinst install; do
853 if test -f $ac_dir/$ac_prog; then
854 if test $ac_prog = install &&
855 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
856 # AIX install. It has an incompatible calling convention.
857 :
858 else
859 ac_cv_path_install="$ac_dir/$ac_prog -c"
860 break 2
861 fi
862 fi
863 done
864 ;;
865 esac
866 done
867 IFS="$ac_save_IFS"
868
869fi
870 if test "${ac_cv_path_install+set}" = set; then
871 INSTALL="$ac_cv_path_install"
872 else
873 # As a last resort, use the slow shell script. We don't cache a
874 # path for INSTALL within a source directory, because that will
875 # break other packages using the cache if that directory is
876 # removed, or if the path is relative.
877 INSTALL="$ac_install_sh"
878 fi
879fi
880echo "$ac_t""$INSTALL" 1>&6
881
882# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
883# It thinks the first close brace ends the variable substitution.
884test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
885
886test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
887
888test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
889
890echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
69792976 891echo "configure:892: checking whether ln -s works" >&5
795ca3e5
AK
892if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
894else
895 rm -f conftestdata
896if ln -s X conftestdata 2>/dev/null
897then
898 rm -f conftestdata
899 ac_cv_prog_LN_S="ln -s"
900else
901 ac_cv_prog_LN_S=ln
902fi
903fi
904LN_S="$ac_cv_prog_LN_S"
905if test "$ac_cv_prog_LN_S" = "ln -s"; then
906 echo "$ac_t""yes" 1>&6
907else
908 echo "$ac_t""no" 1>&6
909fi
910
911echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
69792976 912echo "configure:913: checking whether ${MAKE-make} sets \${MAKE}" >&5
795ca3e5
AK
913set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
914if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
916else
917 cat > conftestmake <<\EOF
918all:
919 @echo 'ac_maketemp="${MAKE}"'
920EOF
921# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
922eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
923if test -n "$ac_maketemp"; then
924 eval ac_cv_prog_make_${ac_make}_set=yes
925else
926 eval ac_cv_prog_make_${ac_make}_set=no
927fi
928rm -f conftestmake
929fi
930if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
931 echo "$ac_t""yes" 1>&6
932 SET_MAKE=
933else
934 echo "$ac_t""no" 1>&6
935 SET_MAKE="MAKE=${MAKE-make}"
936fi
937
938# Extract the first word of "ranlib", so it can be a program name with args.
939set dummy ranlib; ac_word=$2
940echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69792976 941echo "configure:942: checking for $ac_word" >&5
795ca3e5
AK
942if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
944else
945 if test -n "$RANLIB"; then
946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
947else
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
949 ac_dummy="$PATH"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB="ranlib"
954 break
955 fi
956 done
957 IFS="$ac_save_ifs"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
959fi
960fi
961RANLIB="$ac_cv_prog_RANLIB"
962if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
964else
965 echo "$ac_t""no" 1>&6
966fi
967
968
969ac_header_dirent=no
970for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
971do
972ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
973echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
69792976 974echo "configure:975: checking for $ac_hdr that defines DIR" >&5
795ca3e5
AK
975if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977else
978 cat > conftest.$ac_ext <<EOF
69792976 979#line 980 "configure"
795ca3e5
AK
980#include "confdefs.h"
981#include <sys/types.h>
982#include <$ac_hdr>
983int main() {
984DIR *dirp = 0;
985; return 0; }
986EOF
69792976 987if { (eval echo configure:988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
988 rm -rf conftest*
989 eval "ac_cv_header_dirent_$ac_safe=yes"
990else
991 echo "configure: failed program was:" >&5
992 cat conftest.$ac_ext >&5
993 rm -rf conftest*
994 eval "ac_cv_header_dirent_$ac_safe=no"
995fi
996rm -f conftest*
997fi
998if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1001 cat >> confdefs.h <<EOF
1002#define $ac_tr_hdr 1
1003EOF
1004 ac_header_dirent=$ac_hdr; break
1005else
1006 echo "$ac_t""no" 1>&6
1007fi
1008done
1009# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1010if test $ac_header_dirent = dirent.h; then
1011echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
69792976 1012echo "configure:1013: checking for opendir in -ldir" >&5
795ca3e5
AK
1013ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1014if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016else
1017 ac_save_LIBS="$LIBS"
1018LIBS="-ldir $LIBS"
1019cat > conftest.$ac_ext <<EOF
69792976 1020#line 1021 "configure"
795ca3e5
AK
1021#include "confdefs.h"
1022/* Override any gcc2 internal prototype to avoid an error. */
1023/* We use char because int might match the return type of a gcc2
1024 builtin and then its argument prototype would still apply. */
1025char opendir();
1026
1027int main() {
1028opendir()
1029; return 0; }
1030EOF
69792976 1031if { (eval echo configure:1032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1032 rm -rf conftest*
1033 eval "ac_cv_lib_$ac_lib_var=yes"
1034else
1035 echo "configure: failed program was:" >&5
1036 cat conftest.$ac_ext >&5
1037 rm -rf conftest*
1038 eval "ac_cv_lib_$ac_lib_var=no"
1039fi
1040rm -f conftest*
1041LIBS="$ac_save_LIBS"
1042
1043fi
1044if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1045 echo "$ac_t""yes" 1>&6
1046 LIBS="$LIBS -ldir"
1047else
1048 echo "$ac_t""no" 1>&6
1049fi
1050
1051else
1052echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
69792976 1053echo "configure:1054: checking for opendir in -lx" >&5
795ca3e5
AK
1054ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1057else
1058 ac_save_LIBS="$LIBS"
1059LIBS="-lx $LIBS"
1060cat > conftest.$ac_ext <<EOF
69792976 1061#line 1062 "configure"
795ca3e5
AK
1062#include "confdefs.h"
1063/* Override any gcc2 internal prototype to avoid an error. */
1064/* We use char because int might match the return type of a gcc2
1065 builtin and then its argument prototype would still apply. */
1066char opendir();
1067
1068int main() {
1069opendir()
1070; return 0; }
1071EOF
69792976 1072if { (eval echo configure:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1073 rm -rf conftest*
1074 eval "ac_cv_lib_$ac_lib_var=yes"
1075else
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1078 rm -rf conftest*
1079 eval "ac_cv_lib_$ac_lib_var=no"
1080fi
1081rm -f conftest*
1082LIBS="$ac_save_LIBS"
1083
1084fi
1085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1086 echo "$ac_t""yes" 1>&6
1087 LIBS="$LIBS -lx"
1088else
1089 echo "$ac_t""no" 1>&6
1090fi
1091
1092fi
1093
1094echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
69792976 1095echo "configure:1096: checking how to run the C preprocessor" >&5
795ca3e5
AK
1096# On Suns, sometimes $CPP names a directory.
1097if test -n "$CPP" && test -d "$CPP"; then
1098 CPP=
1099fi
1100if test -z "$CPP"; then
1101if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103else
1104 # This must be in double quotes, not single quotes, because CPP may get
1105 # substituted into the Makefile and "${CC-cc}" will confuse make.
1106 CPP="${CC-cc} -E"
1107 # On the NeXT, cc -E runs the code through the compiler's parser,
1108 # not just through cpp.
1109 cat > conftest.$ac_ext <<EOF
69792976 1110#line 1111 "configure"
795ca3e5
AK
1111#include "confdefs.h"
1112#include <assert.h>
1113Syntax Error
1114EOF
1115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69792976 1116{ (eval echo configure:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1117ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1118if test -z "$ac_err"; then
1119 :
1120else
1121 echo "$ac_err" >&5
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1124 rm -rf conftest*
1125 CPP="${CC-cc} -E -traditional-cpp"
1126 cat > conftest.$ac_ext <<EOF
69792976 1127#line 1128 "configure"
795ca3e5
AK
1128#include "confdefs.h"
1129#include <assert.h>
1130Syntax Error
1131EOF
1132ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69792976 1133{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1134ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1135if test -z "$ac_err"; then
1136 :
1137else
1138 echo "$ac_err" >&5
1139 echo "configure: failed program was:" >&5
1140 cat conftest.$ac_ext >&5
1141 rm -rf conftest*
1142 CPP="${CC-cc} -nologo -E"
1143 cat > conftest.$ac_ext <<EOF
69792976 1144#line 1145 "configure"
795ca3e5
AK
1145#include "confdefs.h"
1146#include <assert.h>
1147Syntax Error
1148EOF
1149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69792976 1150{ (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1152if test -z "$ac_err"; then
1153 :
1154else
1155 echo "$ac_err" >&5
1156 echo "configure: failed program was:" >&5
1157 cat conftest.$ac_ext >&5
1158 rm -rf conftest*
1159 CPP=/lib/cpp
1160fi
1161rm -f conftest*
1162fi
1163rm -f conftest*
1164fi
1165rm -f conftest*
1166 ac_cv_prog_CPP="$CPP"
1167fi
1168 CPP="$ac_cv_prog_CPP"
1169else
1170 ac_cv_prog_CPP="$CPP"
1171fi
1172echo "$ac_t""$CPP" 1>&6
1173
1174echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
69792976 1175echo "configure:1176: checking for ANSI C header files" >&5
795ca3e5
AK
1176if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178else
1179 cat > conftest.$ac_ext <<EOF
69792976 1180#line 1181 "configure"
795ca3e5
AK
1181#include "confdefs.h"
1182#include <stdlib.h>
1183#include <stdarg.h>
1184#include <string.h>
1185#include <float.h>
1186EOF
1187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69792976 1188{ (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1190if test -z "$ac_err"; then
1191 rm -rf conftest*
1192 ac_cv_header_stdc=yes
1193else
1194 echo "$ac_err" >&5
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1197 rm -rf conftest*
1198 ac_cv_header_stdc=no
1199fi
1200rm -f conftest*
1201
1202if test $ac_cv_header_stdc = yes; then
1203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1204cat > conftest.$ac_ext <<EOF
69792976 1205#line 1206 "configure"
795ca3e5
AK
1206#include "confdefs.h"
1207#include <string.h>
1208EOF
1209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1210 egrep "memchr" >/dev/null 2>&1; then
1211 :
1212else
1213 rm -rf conftest*
1214 ac_cv_header_stdc=no
1215fi
1216rm -f conftest*
1217
1218fi
1219
1220if test $ac_cv_header_stdc = yes; then
1221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1222cat > conftest.$ac_ext <<EOF
69792976 1223#line 1224 "configure"
795ca3e5
AK
1224#include "confdefs.h"
1225#include <stdlib.h>
1226EOF
1227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1228 egrep "free" >/dev/null 2>&1; then
1229 :
1230else
1231 rm -rf conftest*
1232 ac_cv_header_stdc=no
1233fi
1234rm -f conftest*
1235
1236fi
1237
1238if test $ac_cv_header_stdc = yes; then
1239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1240if test "$cross_compiling" = yes; then
1241 :
1242else
1243 cat > conftest.$ac_ext <<EOF
69792976 1244#line 1245 "configure"
795ca3e5
AK
1245#include "confdefs.h"
1246#include <ctype.h>
1247#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1248#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1250int main () { int i; for (i = 0; i < 256; i++)
1251if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1252exit (0); }
1253
1254EOF
69792976 1255if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
795ca3e5
AK
1256then
1257 :
1258else
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 rm -fr conftest*
1262 ac_cv_header_stdc=no
1263fi
1264rm -fr conftest*
1265fi
1266
1267fi
1268fi
1269
1270echo "$ac_t""$ac_cv_header_stdc" 1>&6
1271if test $ac_cv_header_stdc = yes; then
1272 cat >> confdefs.h <<\EOF
1273#define STDC_HEADERS 1
1274EOF
1275
1276fi
1277
1278for ac_hdr in fcntl.h malloc.h sys/ioctl.h unistd.h
1279do
1280ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1281echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69792976 1282echo "configure:1283: checking for $ac_hdr" >&5
795ca3e5
AK
1283if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1285else
1286 cat > conftest.$ac_ext <<EOF
69792976 1287#line 1288 "configure"
795ca3e5
AK
1288#include "confdefs.h"
1289#include <$ac_hdr>
1290EOF
1291ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69792976 1292{ (eval echo configure:1293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1293ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1294if test -z "$ac_err"; then
1295 rm -rf conftest*
1296 eval "ac_cv_header_$ac_safe=yes"
1297else
1298 echo "$ac_err" >&5
1299 echo "configure: failed program was:" >&5
1300 cat conftest.$ac_ext >&5
1301 rm -rf conftest*
1302 eval "ac_cv_header_$ac_safe=no"
1303fi
1304rm -f conftest*
1305fi
1306if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1308 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1309 cat >> confdefs.h <<EOF
1310#define $ac_tr_hdr 1
1311EOF
1312
1313else
1314 echo "$ac_t""no" 1>&6
1315fi
1316done
1317
1318
1319echo $ac_n "checking for working const""... $ac_c" 1>&6
69792976 1320echo "configure:1321: checking for working const" >&5
795ca3e5
AK
1321if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1323else
1324 cat > conftest.$ac_ext <<EOF
69792976 1325#line 1326 "configure"
795ca3e5
AK
1326#include "confdefs.h"
1327
1328int main() {
1329
1330/* Ultrix mips cc rejects this. */
2dc95e1c 1331typedef int charset[2]; const charset x;
795ca3e5
AK
1332/* SunOS 4.1.1 cc rejects this. */
1333char const *const *ccp;
1334char **p;
1335/* NEC SVR4.0.2 mips cc rejects this. */
1336struct point {int x, y;};
1337static struct point const zero = {0,0};
1338/* AIX XL C 1.02.0.0 rejects this.
1339 It does not let you subtract one const X* pointer from another in an arm
1340 of an if-expression whose if-part is not a constant expression */
1341const char *g = "string";
1342ccp = &g + (g ? g-g : 0);
1343/* HPUX 7.0 cc rejects these. */
1344++ccp;
1345p = (char**) ccp;
1346ccp = (char const *const *) p;
1347{ /* SCO 3.2v4 cc rejects this. */
1348 char *t;
1349 char const *s = 0 ? (char *) 0 : (char const *) 0;
1350
1351 *t++ = 0;
1352}
1353{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1354 int x[] = {25, 17};
1355 const int *foo = &x[0];
1356 ++foo;
1357}
1358{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1359 typedef const int *iptr;
1360 iptr p = 0;
1361 ++p;
1362}
1363{ /* AIX XL C 1.02.0.0 rejects this saying
1364 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1365 struct s { int j; const int *ap[3]; };
1366 struct s *b; b->j = 5;
1367}
1368{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1369 const int foo = 10;
1370}
1371
1372; return 0; }
1373EOF
69792976 1374if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1375 rm -rf conftest*
1376 ac_cv_c_const=yes
1377else
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1380 rm -rf conftest*
1381 ac_cv_c_const=no
1382fi
1383rm -f conftest*
1384fi
1385
1386echo "$ac_t""$ac_cv_c_const" 1>&6
1387if test $ac_cv_c_const = no; then
1388 cat >> confdefs.h <<\EOF
1389#define const
1390EOF
1391
1392fi
1393
1394echo $ac_n "checking for inline""... $ac_c" 1>&6
69792976 1395echo "configure:1396: checking for inline" >&5
795ca3e5
AK
1396if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398else
1399 ac_cv_c_inline=no
1400for ac_kw in inline __inline__ __inline; do
1401 cat > conftest.$ac_ext <<EOF
69792976 1402#line 1403 "configure"
795ca3e5
AK
1403#include "confdefs.h"
1404
1405int main() {
2dc95e1c 1406} $ac_kw foo() {
795ca3e5
AK
1407; return 0; }
1408EOF
69792976 1409if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1410 rm -rf conftest*
1411 ac_cv_c_inline=$ac_kw; break
1412else
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1415fi
1416rm -f conftest*
1417done
1418
1419fi
1420
1421echo "$ac_t""$ac_cv_c_inline" 1>&6
1422case "$ac_cv_c_inline" in
1423 inline | yes) ;;
1424 no) cat >> confdefs.h <<\EOF
1425#define inline
1426EOF
1427 ;;
1428 *) cat >> confdefs.h <<EOF
1429#define inline $ac_cv_c_inline
1430EOF
1431 ;;
1432esac
1433
1434echo $ac_n "checking for off_t""... $ac_c" 1>&6
69792976 1435echo "configure:1436: checking for off_t" >&5
795ca3e5
AK
1436if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1438else
1439 cat > conftest.$ac_ext <<EOF
69792976 1440#line 1441 "configure"
795ca3e5
AK
1441#include "confdefs.h"
1442#include <sys/types.h>
1443#if STDC_HEADERS
1444#include <stdlib.h>
1445#include <stddef.h>
1446#endif
1447EOF
1448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1449 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1450 rm -rf conftest*
1451 ac_cv_type_off_t=yes
1452else
1453 rm -rf conftest*
1454 ac_cv_type_off_t=no
1455fi
1456rm -f conftest*
1457
1458fi
1459echo "$ac_t""$ac_cv_type_off_t" 1>&6
1460if test $ac_cv_type_off_t = no; then
1461 cat >> confdefs.h <<\EOF
1462#define off_t long
1463EOF
1464
1465fi
1466
1467echo $ac_n "checking for pid_t""... $ac_c" 1>&6
69792976 1468echo "configure:1469: checking for pid_t" >&5
795ca3e5
AK
1469if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471else
1472 cat > conftest.$ac_ext <<EOF
69792976 1473#line 1474 "configure"
795ca3e5
AK
1474#include "confdefs.h"
1475#include <sys/types.h>
1476#if STDC_HEADERS
1477#include <stdlib.h>
1478#include <stddef.h>
1479#endif
1480EOF
1481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1482 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1483 rm -rf conftest*
1484 ac_cv_type_pid_t=yes
1485else
1486 rm -rf conftest*
1487 ac_cv_type_pid_t=no
1488fi
1489rm -f conftest*
1490
1491fi
1492echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1493if test $ac_cv_type_pid_t = no; then
1494 cat >> confdefs.h <<\EOF
1495#define pid_t int
1496EOF
1497
1498fi
1499
1500echo $ac_n "checking for size_t""... $ac_c" 1>&6
69792976 1501echo "configure:1502: checking for size_t" >&5
795ca3e5
AK
1502if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1504else
1505 cat > conftest.$ac_ext <<EOF
69792976 1506#line 1507 "configure"
795ca3e5
AK
1507#include "confdefs.h"
1508#include <sys/types.h>
1509#if STDC_HEADERS
1510#include <stdlib.h>
1511#include <stddef.h>
1512#endif
1513EOF
1514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1515 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1516 rm -rf conftest*
1517 ac_cv_type_size_t=yes
1518else
1519 rm -rf conftest*
1520 ac_cv_type_size_t=no
1521fi
1522rm -f conftest*
1523
1524fi
1525echo "$ac_t""$ac_cv_type_size_t" 1>&6
1526if test $ac_cv_type_size_t = no; then
1527 cat >> confdefs.h <<\EOF
1528#define size_t unsigned
1529EOF
1530
1531fi
1532
1533echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
69792976 1534echo "configure:1535: checking for st_rdev in struct stat" >&5
795ca3e5
AK
1535if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1537else
1538 cat > conftest.$ac_ext <<EOF
69792976 1539#line 1540 "configure"
795ca3e5
AK
1540#include "confdefs.h"
1541#include <sys/types.h>
1542#include <sys/stat.h>
1543int main() {
1544struct stat s; s.st_rdev;
1545; return 0; }
1546EOF
69792976 1547if { (eval echo configure:1548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1548 rm -rf conftest*
1549 ac_cv_struct_st_rdev=yes
1550else
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1553 rm -rf conftest*
1554 ac_cv_struct_st_rdev=no
1555fi
1556rm -f conftest*
1557fi
1558
1559echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1560if test $ac_cv_struct_st_rdev = yes; then
1561 cat >> confdefs.h <<\EOF
1562#define HAVE_ST_RDEV 1
1563EOF
1564
1565fi
1566
1567echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
69792976 1568echo "configure:1569: checking whether time.h and sys/time.h may both be included" >&5
795ca3e5
AK
1569if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571else
1572 cat > conftest.$ac_ext <<EOF
69792976 1573#line 1574 "configure"
795ca3e5
AK
1574#include "confdefs.h"
1575#include <sys/types.h>
1576#include <sys/time.h>
1577#include <time.h>
1578int main() {
1579struct tm *tp;
1580; return 0; }
1581EOF
69792976 1582if { (eval echo configure:1583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1583 rm -rf conftest*
1584 ac_cv_header_time=yes
1585else
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 rm -rf conftest*
1589 ac_cv_header_time=no
1590fi
1591rm -f conftest*
1592fi
1593
1594echo "$ac_t""$ac_cv_header_time" 1>&6
1595if test $ac_cv_header_time = yes; then
1596 cat >> confdefs.h <<\EOF
1597#define TIME_WITH_SYS_TIME 1
1598EOF
1599
1600fi
1601
1602
1603
b896caa1
AK
1604# Do some error checking and defaulting for the host and target type.
1605# The inputs are:
1606# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1607#
1608# The rules are:
1609# 1. You are not allowed to specify --host, --target, and nonopt at the
1610# same time.
1611# 2. Host defaults to nonopt.
1612# 3. If nonopt is not specified, then host defaults to the current host,
1613# as determined by config.guess.
1614# 4. Target and build default to nonopt.
1615# 5. If nonopt is not specified, then target and build default to host.
1616
1617# The aliases save the names the user supplied, while $host etc.
1618# will get canonicalized.
1619case $host---$target---$nonopt in
1620NONE---*---* | *---NONE---* | *---*---NONE) ;;
1621*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1622esac
1623
1624
1625# Make sure we can run config.sub.
1626if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1627else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1628fi
1629
1630echo $ac_n "checking host system type""... $ac_c" 1>&6
69792976 1631echo "configure:1632: checking host system type" >&5
b896caa1
AK
1632
1633host_alias=$host
1634case "$host_alias" in
1635NONE)
1636 case $nonopt in
1637 NONE)
1638 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1639 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1640 fi ;;
1641 *) host_alias=$nonopt ;;
1642 esac ;;
1643esac
1644
1645host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1646host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649echo "$ac_t""$host" 1>&6
1650
1651echo $ac_n "checking target system type""... $ac_c" 1>&6
69792976 1652echo "configure:1653: checking target system type" >&5
b896caa1
AK
1653
1654target_alias=$target
1655case "$target_alias" in
1656NONE)
1657 case $nonopt in
1658 NONE) target_alias=$host_alias ;;
1659 *) target_alias=$nonopt ;;
1660 esac ;;
1661esac
1662
1663target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1664target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667echo "$ac_t""$target" 1>&6
1668
1669echo $ac_n "checking build system type""... $ac_c" 1>&6
69792976 1670echo "configure:1671: checking build system type" >&5
b896caa1
AK
1671
1672build_alias=$build
1673case "$build_alias" in
1674NONE)
1675 case $nonopt in
1676 NONE) build_alias=$host_alias ;;
1677 *) build_alias=$nonopt ;;
1678 esac ;;
1679esac
1680
1681build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1682build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685echo "$ac_t""$build" 1>&6
1686
1687test "$host_alias" != "$target_alias" &&
1688 test "$program_prefix$program_suffix$program_transform_name" = \
1689 NONENONEs,x,x, &&
1690 program_prefix=${target_alias}-
1691
1692
1693case "$host_os" in
1694 linux*)
1695 CFLAGS= ;;
1696esac
1697
1698
795ca3e5
AK
1699
1700# Check whether --with-user or --without-user was given.
1701if test "${with_user+set}" = set; then
1702 withval="$with_user"
1703 OWNER="$withval"
1704else
1705 OWNER="root"
1706fi
1707
1708
1709# Check whether --with-group or --without-group was given.
1710if test "${with_group+set}" = set; then
1711 withval="$with_group"
1712 GROUP="$withval"
1713else
1714 GROUP="root"
1715fi
1716
1717
5a52dca9
AK
1718# Check whether --with-lvm1 or --without-lvm1 was given.
1719if test "${with_lvm1+set}" = set; then
1720 withval="$with_lvm1"
1721 LVM1="$withval"
1722else
1723 LVM1="internal"
1724fi
1725
1726
1727if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
1728 then { echo "configure: error: --with-lvm1 parameter invalid
1729" 1>&2; exit 1; }
1730 exit
1731fi;
1732
b896caa1
AK
1733if test x$LVM1 = xinternal; then
1734 CFLAGS="$CFLAGS -DLVM1_INTERNAL"
1735fi
1736
795ca3e5
AK
1737# Check whether --enable-jobs or --disable-jobs was given.
1738if test "${enable_jobs+set}" = set; then
1739 enableval="$enable_jobs"
1740 JOBS=-j$enableval
1741else
8ef2b021 1742 JOBS=-j2
795ca3e5
AK
1743fi
1744
1745
1746# Check whether --enable-static_link or --disable-static_link was given.
1747if test "${enable_static_link+set}" = set; then
1748 enableval="$enable_static_link"
1749 STATIC_LINK=$enableval
1750else
1751 STATIC_LINK=no
1752fi
1753
1754
1755# Check whether --enable-readline or --disable-readline was given.
1756if test "${enable_readline+set}" = set; then
1757 enableval="$enable_readline"
1758 \
1759READLINE=$enableval
1760else
5a52dca9 1761 READLINE=no
795ca3e5
AK
1762fi
1763
1764
b896caa1
AK
1765if test x$READLINE = xyes; then
1766 CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
1767fi
1768
69792976 1769echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
8ef2b021
AK
1770# Check whether --enable-debug or --disable-debug was given.
1771if test "${enable_debug+set}" = set; then
1772 enableval="$enable_debug"
1773 \
1774DEBUG=yes
1775else
1776 DEBUG=no
1777fi
1778
69792976 1779echo "$ac_t""$DEBUG" 1>&6
8ef2b021 1780
69792976 1781echo $ac_n "checking whether to enable device-mapper""... $ac_c" 1>&6
199e490e
AK
1782# Check whether --enable-devmapper or --disable-devmapper was given.
1783if test "${enable_devmapper+set}" = set; then
1784 enableval="$enable_devmapper"
1785 \
1786DEVMAPPER=no
1787else
1788 DEVMAPPER=yes
1789fi
1790
69792976 1791echo "$ac_t""$DEVMAPPER" 1>&6
199e490e 1792
b896caa1
AK
1793if test x$DEVMAPPER = xyes; then
1794 CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
1795fi
1796
69792976 1797echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6
2dc95e1c
AK
1798# Check whether --enable-o_direct or --disable-o_direct was given.
1799if test "${enable_o_direct+set}" = set; then
1800 enableval="$enable_o_direct"
1801 \
1802ODIRECT=no
1803else
1804 ODIRECT=yes
1805fi
1806
69792976 1807echo "$ac_t""$ODIRECT" 1>&6
2dc95e1c
AK
1808
1809if test x$ODIRECT = xyes; then
1810 CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
1811fi
1812
795ca3e5
AK
1813if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
1814 then exec_prefix="";
1815fi;
1816
1817if test $ac_cv_prog_gcc = yes; then
1818 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
69792976 1819echo "configure:1820: checking whether ${CC-cc} needs -traditional" >&5
795ca3e5
AK
1820if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1822else
1823 ac_pattern="Autoconf.*'x'"
1824 cat > conftest.$ac_ext <<EOF
69792976 1825#line 1826 "configure"
795ca3e5
AK
1826#include "confdefs.h"
1827#include <sgtty.h>
1828Autoconf TIOCGETP
1829EOF
1830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1831 egrep "$ac_pattern" >/dev/null 2>&1; then
1832 rm -rf conftest*
1833 ac_cv_prog_gcc_traditional=yes
1834else
1835 rm -rf conftest*
1836 ac_cv_prog_gcc_traditional=no
1837fi
1838rm -f conftest*
1839
1840
1841 if test $ac_cv_prog_gcc_traditional = no; then
1842 cat > conftest.$ac_ext <<EOF
69792976 1843#line 1844 "configure"
795ca3e5
AK
1844#include "confdefs.h"
1845#include <termio.h>
1846Autoconf TCGETA
1847EOF
1848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1849 egrep "$ac_pattern" >/dev/null 2>&1; then
1850 rm -rf conftest*
1851 ac_cv_prog_gcc_traditional=yes
1852fi
1853rm -f conftest*
1854
1855 fi
1856fi
1857
1858echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1859 if test $ac_cv_prog_gcc_traditional = yes; then
1860 CC="$CC -traditional"
1861 fi
1862fi
1863
1864echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
69792976 1865echo "configure:1866: checking return type of signal handlers" >&5
795ca3e5
AK
1866if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868else
1869 cat > conftest.$ac_ext <<EOF
69792976 1870#line 1871 "configure"
795ca3e5
AK
1871#include "confdefs.h"
1872#include <sys/types.h>
1873#include <signal.h>
1874#ifdef signal
1875#undef signal
1876#endif
1877#ifdef __cplusplus
1878extern "C" void (*signal (int, void (*)(int)))(int);
1879#else
1880void (*signal ()) ();
1881#endif
1882
1883int main() {
1884int i;
1885; return 0; }
1886EOF
69792976 1887if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1888 rm -rf conftest*
1889 ac_cv_type_signal=void
1890else
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1893 rm -rf conftest*
1894 ac_cv_type_signal=int
1895fi
1896rm -f conftest*
1897fi
1898
1899echo "$ac_t""$ac_cv_type_signal" 1>&6
1900cat >> confdefs.h <<EOF
1901#define RETSIGTYPE $ac_cv_type_signal
1902EOF
1903
1904
1905echo $ac_n "checking for vprintf""... $ac_c" 1>&6
69792976 1906echo "configure:1907: checking for vprintf" >&5
795ca3e5
AK
1907if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1909else
1910 cat > conftest.$ac_ext <<EOF
69792976 1911#line 1912 "configure"
795ca3e5
AK
1912#include "confdefs.h"
1913/* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char vprintf(); below. */
1915#include <assert.h>
1916/* Override any gcc2 internal prototype to avoid an error. */
1917/* We use char because int might match the return type of a gcc2
1918 builtin and then its argument prototype would still apply. */
1919char vprintf();
1920
1921int main() {
1922
1923/* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926#if defined (__stub_vprintf) || defined (__stub___vprintf)
1927choke me
1928#else
1929vprintf();
1930#endif
1931
1932; return 0; }
1933EOF
69792976 1934if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1935 rm -rf conftest*
1936 eval "ac_cv_func_vprintf=yes"
1937else
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1940 rm -rf conftest*
1941 eval "ac_cv_func_vprintf=no"
1942fi
1943rm -f conftest*
1944fi
1945
1946if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 cat >> confdefs.h <<\EOF
1949#define HAVE_VPRINTF 1
1950EOF
1951
1952else
1953 echo "$ac_t""no" 1>&6
1954fi
1955
1956if test "$ac_cv_func_vprintf" != yes; then
1957echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
69792976 1958echo "configure:1959: checking for _doprnt" >&5
795ca3e5
AK
1959if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1961else
1962 cat > conftest.$ac_ext <<EOF
69792976 1963#line 1964 "configure"
795ca3e5
AK
1964#include "confdefs.h"
1965/* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char _doprnt(); below. */
1967#include <assert.h>
1968/* Override any gcc2 internal prototype to avoid an error. */
1969/* We use char because int might match the return type of a gcc2
1970 builtin and then its argument prototype would still apply. */
1971char _doprnt();
1972
1973int main() {
1974
1975/* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978#if defined (__stub__doprnt) || defined (__stub____doprnt)
1979choke me
1980#else
1981_doprnt();
1982#endif
1983
1984; return 0; }
1985EOF
69792976 1986if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1987 rm -rf conftest*
1988 eval "ac_cv_func__doprnt=yes"
1989else
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 rm -rf conftest*
1993 eval "ac_cv_func__doprnt=no"
1994fi
1995rm -f conftest*
1996fi
1997
1998if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 cat >> confdefs.h <<\EOF
2001#define HAVE_DOPRNT 1
2002EOF
2003
2004else
2005 echo "$ac_t""no" 1>&6
2006fi
2007
2008fi
2009
2010for ac_func in mkdir rmdir uname
2011do
2012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
69792976 2013echo "configure:2014: checking for $ac_func" >&5
795ca3e5
AK
2014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2016else
2017 cat > conftest.$ac_ext <<EOF
69792976 2018#line 2019 "configure"
795ca3e5
AK
2019#include "confdefs.h"
2020/* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $ac_func(); below. */
2022#include <assert.h>
2023/* Override any gcc2 internal prototype to avoid an error. */
2024/* We use char because int might match the return type of a gcc2
2025 builtin and then its argument prototype would still apply. */
2026char $ac_func();
2027
2028int main() {
2029
2030/* The GNU C library defines this for functions which it implements
2031 to always fail with ENOSYS. Some functions are actually named
2032 something starting with __ and the normal name is an alias. */
2033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2034choke me
2035#else
2036$ac_func();
2037#endif
2038
2039; return 0; }
2040EOF
69792976 2041if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
2042 rm -rf conftest*
2043 eval "ac_cv_func_$ac_func=yes"
2044else
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2047 rm -rf conftest*
2048 eval "ac_cv_func_$ac_func=no"
2049fi
2050rm -f conftest*
2051fi
2052
2053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2056 cat >> confdefs.h <<EOF
2057#define $ac_tr_func 1
2058EOF
2059
2060else
2061 echo "$ac_t""no" 1>&6
2062fi
2063done
2064
2065
2066if test x$READLINE = xyes; then
2067
2068echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
69792976 2069echo "configure:2070: checking for library containing tgetent" >&5
795ca3e5
AK
2070if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072else
2073 ac_func_search_save_LIBS="$LIBS"
2074ac_cv_search_tgetent="no"
2075cat > conftest.$ac_ext <<EOF
69792976 2076#line 2077 "configure"
795ca3e5
AK
2077#include "confdefs.h"
2078/* Override any gcc2 internal prototype to avoid an error. */
2079/* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2081char tgetent();
2082
2083int main() {
2084tgetent()
2085; return 0; }
2086EOF
69792976 2087if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
2088 rm -rf conftest*
2089 ac_cv_search_tgetent="none required"
2090else
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093fi
2094rm -f conftest*
2095test "$ac_cv_search_tgetent" = "no" && for i in ncurses curses termcap termlib; do
2096LIBS="-l$i $ac_func_search_save_LIBS"
2097cat > conftest.$ac_ext <<EOF
69792976 2098#line 2099 "configure"
795ca3e5
AK
2099#include "confdefs.h"
2100/* Override any gcc2 internal prototype to avoid an error. */
2101/* We use char because int might match the return type of a gcc2
2102 builtin and then its argument prototype would still apply. */
2103char tgetent();
2104
2105int main() {
2106tgetent()
2107; return 0; }
2108EOF
69792976 2109if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
2110 rm -rf conftest*
2111 ac_cv_search_tgetent="-l$i"
2112break
2113else
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116fi
2117rm -f conftest*
2118done
2119LIBS="$ac_func_search_save_LIBS"
2120fi
2121
2122echo "$ac_t""$ac_cv_search_tgetent" 1>&6
2123if test "$ac_cv_search_tgetent" != "no"; then
2124 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
2125
2126else :
2127 { echo "configure: error: termcap could not be found which is required for the
2128--enable-readline option (which is enabled by default). Either disable readline
2129support with --disable-readline or download and install termcap from:
2130 ftp.gnu.org/gnu/termcap
2131Note: if you are using precompiled packages you will also need the development
2132 package as well (which may be called termcap-devel or something similar).
2133Note: (n)curses also seems to work as a substitute for termcap. This was
2134 not found either - but you could try installing that as well.
2135" 1>&2; exit 1; }
2136 exit
2137
2138fi
2139fi
2140
26e7f2e0 2141echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
69792976 2142echo "configure:2143: checking for dlopen in -ldl" >&5
26e7f2e0
AK
2143ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146else
2147 ac_save_LIBS="$LIBS"
2148LIBS="-ldl $LIBS"
2149cat > conftest.$ac_ext <<EOF
69792976 2150#line 2151 "configure"
26e7f2e0
AK
2151#include "confdefs.h"
2152/* Override any gcc2 internal prototype to avoid an error. */
2153/* We use char because int might match the return type of a gcc2
2154 builtin and then its argument prototype would still apply. */
2155char dlopen();
2156
2157int main() {
2158dlopen()
2159; return 0; }
2160EOF
69792976 2161if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
26e7f2e0
AK
2162 rm -rf conftest*
2163 eval "ac_cv_lib_$ac_lib_var=yes"
2164else
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 rm -rf conftest*
2168 eval "ac_cv_lib_$ac_lib_var=no"
2169fi
2170rm -f conftest*
2171LIBS="$ac_save_LIBS"
2172
2173fi
2174if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 HAVE_LIBDL=yes
2177else
2178 echo "$ac_t""no" 1>&6
2179HAVE_LIBDL=no
2180fi
2181
2182
2183if test x$HAVE_LIBDL = xyes; then
b896caa1 2184 CFLAGS="$CFLAGS -DHAVE_LIBDL"
26e7f2e0
AK
2185 LIBS="-ldl $LIBS"
2186fi
2187
b896caa1
AK
2188for ac_hdr in getopt.h
2189do
2190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69792976 2192echo "configure:2193: checking for $ac_hdr" >&5
b896caa1
AK
2193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2195else
2196 cat > conftest.$ac_ext <<EOF
69792976 2197#line 2198 "configure"
b896caa1
AK
2198#include "confdefs.h"
2199#include <$ac_hdr>
2200EOF
2201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69792976 2202{ (eval echo configure:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
b896caa1
AK
2203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2204if test -z "$ac_err"; then
2205 rm -rf conftest*
2206 eval "ac_cv_header_$ac_safe=yes"
2207else
2208 echo "$ac_err" >&5
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 rm -rf conftest*
2212 eval "ac_cv_header_$ac_safe=no"
2213fi
2214rm -f conftest*
2215fi
2216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2219 cat >> confdefs.h <<EOF
2220#define $ac_tr_hdr 1
2221EOF
2222 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
2223else
2224 echo "$ac_t""no" 1>&6
2225fi
2226done
2227
2228
795ca3e5
AK
2229if test x$READLINE = xyes; then
2230 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
69792976 2231echo "configure:2232: checking for readline in -lreadline" >&5
795ca3e5
AK
2232ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2233if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235else
2236 ac_save_LIBS="$LIBS"
2237LIBS="-lreadline $LIBS"
2238cat > conftest.$ac_ext <<EOF
69792976 2239#line 2240 "configure"
795ca3e5
AK
2240#include "confdefs.h"
2241/* Override any gcc2 internal prototype to avoid an error. */
2242/* We use char because int might match the return type of a gcc2
2243 builtin and then its argument prototype would still apply. */
2244char readline();
2245
2246int main() {
2247readline()
2248; return 0; }
2249EOF
69792976 2250if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
2251 rm -rf conftest*
2252 eval "ac_cv_lib_$ac_lib_var=yes"
2253else
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 rm -rf conftest*
2257 eval "ac_cv_lib_$ac_lib_var=no"
2258fi
2259rm -f conftest*
2260LIBS="$ac_save_LIBS"
2261
2262fi
2263if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2267 cat >> confdefs.h <<EOF
2268#define $ac_tr_lib 1
2269EOF
2270
2271 LIBS="-lreadline $LIBS"
2272
2273else
2274 echo "$ac_t""no" 1>&6
2275{ echo "configure: error: GNU Readline could not be found which is required for the
2276--enable-readline option (which is enabled by default). Either disable readline
2277support with --disable-readline or download and install readline from:
2278 ftp.gnu.org/gnu/readline
2279Note: if you are using precompiled packages you will also need the development
2280package as well (which may be called readline-devel or something similar).
2281" 1>&2; exit 1; }
2282 exit
2283
2284fi
2285
83912faa 2286 echo $ac_n "checking for rl_completion_matches""... $ac_c" 1>&6
69792976 2287echo "configure:2288: checking for rl_completion_matches" >&5
83912faa
AK
2288if eval "test \"`echo '$''{'ac_cv_func_rl_completion_matches'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2290else
2291 cat > conftest.$ac_ext <<EOF
69792976 2292#line 2293 "configure"
83912faa
AK
2293#include "confdefs.h"
2294/* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char rl_completion_matches(); below. */
2296#include <assert.h>
2297/* Override any gcc2 internal prototype to avoid an error. */
2298/* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300char rl_completion_matches();
2301
2302int main() {
2303
2304/* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
2308choke me
2309#else
2310rl_completion_matches();
2311#endif
2312
2313; return 0; }
2314EOF
69792976 2315if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83912faa
AK
2316 rm -rf conftest*
2317 eval "ac_cv_func_rl_completion_matches=yes"
2318else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 eval "ac_cv_func_rl_completion_matches=no"
2323fi
2324rm -f conftest*
795ca3e5
AK
2325fi
2326
83912faa
AK
2327if eval "test \"`echo '$ac_cv_func_'rl_completion_matches`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
b896caa1 2329 CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES"
83912faa
AK
2330else
2331 echo "$ac_t""no" 1>&6
83912faa
AK
2332fi
2333
b896caa1 2334
69792976
AK
2335fi
2336
2337echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6
2338# Check whether --enable-nls or --disable-nls was given.
2339if test "${enable_nls+set}" = set; then
2340 enableval="$enable_nls"
2341 \
2342 INTL=yes
2343else
2344 INTL=no
2345fi
2346
2347echo "$ac_t""$INTL" 1>&6
2348
2349if test x$INTL = xyes; then
2350 INTL_PACKAGE="lvm2"
2351 # Extract the first word of "msgfmt", so it can be a program name with args.
2352set dummy msgfmt; ac_word=$2
2353echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2354echo "configure:2355: checking for $ac_word" >&5
2355if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2357else
2358 case "$MSGFMT" in
2359 /*)
2360 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2361 ;;
2362 ?:/*)
2363 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2364 ;;
2365 *)
2366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2367 ac_dummy="$PATH"
2368 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 if test -f $ac_dir/$ac_word; then
2371 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2372 break
2373 fi
2374 done
2375 IFS="$ac_save_ifs"
2376 ;;
2377esac
2378fi
2379MSGFMT="$ac_cv_path_MSGFMT"
2380if test -n "$MSGFMT"; then
2381 echo "$ac_t""$MSGFMT" 1>&6
2382else
2383 echo "$ac_t""no" 1>&6
2384fi
2385
2386 if [ "x$MSGFMT" == x ];
2387 then { echo "configure: error: msgfmt not found in path $PATH
2388 " 1>&2; exit 1; }
2389 exit
2390 fi;
2391
2392 # Check whether --with-localedir or --without-localedir was given.
2393if test "${with_localedir+set}" = set; then
2394 withval="$with_localedir"
2395 LOCALEDIR="$withval"
2396else
2397 LOCALEDIR='${prefix}/share/locale'
2398fi
2399
83912faa
AK
2400fi
2401
fae0c576
AK
2402if test "-f VERSION"; then
2403 LVM_VERSION="\"`cat VERSION`\""
2404else
2405 LVM_VERSION="Unknown"
2406fi
2407
2408
83912faa 2409
795ca3e5
AK
2410
2411
2412
2413
2414
2415
5a52dca9 2416
8ef2b021 2417
199e490e 2418
69792976
AK
2419
2420
2421
2422
795ca3e5
AK
2423trap '' 1 2 15
2424cat > confcache <<\EOF
2425# This file is a shell script that caches the results of configure
2426# tests run on this system so they can be shared between configure
2427# scripts and configure runs. It is not useful on other systems.
2428# If it contains results you don't want to keep, you may remove or edit it.
2429#
2430# By default, configure uses ./config.cache as the cache file,
2431# creating it if it does not exist already. You can give configure
2432# the --cache-file=FILE option to use a different cache file; that is
2433# what configure does when it calls configure scripts in
2434# subdirectories, so they share the cache.
2435# Giving --cache-file=/dev/null disables caching, for debugging configure.
2436# config.status only pays attention to the cache file if you give it the
2437# --recheck option to rerun configure.
2438#
2439EOF
2440# The following way of writing the cache mishandles newlines in values,
2441# but we know of no workaround that is simple, portable, and efficient.
2442# So, don't put newlines in cache variables' values.
2443# Ultrix sh set writes to stderr and can't be redirected directly,
2444# and sets the high bit in the cache file unless we assign to the vars.
2445(set) 2>&1 |
2446 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2447 *ac_space=\ *)
2448 # `set' does not quote correctly, so add quotes (double-quote substitution
2449 # turns \\\\ into \\, and sed turns \\ into \).
2450 sed -n \
2451 -e "s/'/'\\\\''/g" \
2452 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2453 ;;
2454 *)
2455 # `set' quotes correctly as required by POSIX, so do not add quotes.
2456 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2457 ;;
2458 esac >> confcache
2459if cmp -s $cache_file confcache; then
2460 :
2461else
2462 if test -w $cache_file; then
2463 echo "updating cache $cache_file"
2464 cat confcache > $cache_file
2465 else
2466 echo "not updating unwritable cache $cache_file"
2467 fi
2468fi
2469rm -f confcache
2470
2471trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2472
2473test "x$prefix" = xNONE && prefix=$ac_default_prefix
2474# Let make expand exec_prefix.
2475test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2476
2477# Any assignment to VPATH causes Sun make to only execute
2478# the first set of double-colon rules, so remove it if not needed.
2479# If there is a colon in the path, we need to keep it.
2480if test "x$srcdir" = x.; then
2481 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2482fi
2483
2484trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2485
2486# Transform confdefs.h into DEFS.
2487# Protect against shell expansion while executing Makefile rules.
2488# Protect against Makefile macro expansion.
2489cat > conftest.defs <<\EOF
2490s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2491s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2492s%\[%\\&%g
2493s%\]%\\&%g
2494s%\$%$$%g
2495EOF
2496DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2497rm -f conftest.defs
2498
2499
2500# Without the "./", some shells look in PATH for config.status.
2501: ${CONFIG_STATUS=./config.status}
2502
2503echo creating $CONFIG_STATUS
2504rm -f $CONFIG_STATUS
2505cat > $CONFIG_STATUS <<EOF
2506#! /bin/sh
2507# Generated automatically by configure.
2508# Run this file to recreate the current configuration.
2509# This directory was configured as follows,
2510# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2511#
2512# $0 $ac_configure_args
2513#
2514# Compiler output produced by configure, useful for debugging
2515# configure, is in ./config.log if it exists.
2516
2517ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2518for ac_option
2519do
2520 case "\$ac_option" in
2521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2522 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2523 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2524 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2525 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2526 exit 0 ;;
2527 -help | --help | --hel | --he | --h)
2528 echo "\$ac_cs_usage"; exit 0 ;;
2529 *) echo "\$ac_cs_usage"; exit 1 ;;
2530 esac
2531done
2532
2533ac_given_srcdir=$srcdir
2534ac_given_INSTALL="$INSTALL"
2535
2536trap 'rm -fr `echo "\
2537Makefile \
2538make.tmpl \
fa42e649 2539include/Makefile \
795ca3e5 2540lib/Makefile \
5a52dca9 2541lib/format1/Makefile \
795ca3e5 2542man/Makefile \
69792976 2543po/Makefile \
795ca3e5 2544tools/Makefile \
fae0c576 2545tools/version.h \
e6efb2b0 2546test/mm/Makefile \
43b7b8cf 2547test/device/Makefile \
e0304b58 2548test/format1/Makefile \
d1b28647 2549test/regex/Makefile \
291ec3b6 2550test/filters/Makefile \
795ca3e5
AK
2551" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2552EOF
2553cat >> $CONFIG_STATUS <<EOF
2554
2555# Protect against being on the right side of a sed subst in config.status.
2556sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2558$ac_vpsub
2559$extrasub
2560s%@SHELL@%$SHELL%g
2561s%@CFLAGS@%$CFLAGS%g
2562s%@CPPFLAGS@%$CPPFLAGS%g
2563s%@CXXFLAGS@%$CXXFLAGS%g
2564s%@FFLAGS@%$FFLAGS%g
2565s%@DEFS@%$DEFS%g
2566s%@LDFLAGS@%$LDFLAGS%g
2567s%@LIBS@%$LIBS%g
2568s%@exec_prefix@%$exec_prefix%g
2569s%@prefix@%$prefix%g
2570s%@program_transform_name@%$program_transform_name%g
2571s%@bindir@%$bindir%g
2572s%@sbindir@%$sbindir%g
2573s%@libexecdir@%$libexecdir%g
2574s%@datadir@%$datadir%g
2575s%@sysconfdir@%$sysconfdir%g
2576s%@sharedstatedir@%$sharedstatedir%g
2577s%@localstatedir@%$localstatedir%g
2578s%@libdir@%$libdir%g
2579s%@includedir@%$includedir%g
2580s%@oldincludedir@%$oldincludedir%g
2581s%@infodir@%$infodir%g
2582s%@mandir@%$mandir%g
2583s%@AWK@%$AWK%g
2584s%@CC@%$CC%g
2585s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2586s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2587s%@INSTALL_DATA@%$INSTALL_DATA%g
2588s%@LN_S@%$LN_S%g
2589s%@SET_MAKE@%$SET_MAKE%g
2590s%@RANLIB@%$RANLIB%g
2591s%@CPP@%$CPP%g
b896caa1
AK
2592s%@host@%$host%g
2593s%@host_alias@%$host_alias%g
2594s%@host_cpu@%$host_cpu%g
2595s%@host_vendor@%$host_vendor%g
2596s%@host_os@%$host_os%g
2597s%@target@%$target%g
2598s%@target_alias@%$target_alias%g
2599s%@target_cpu@%$target_cpu%g
2600s%@target_vendor@%$target_vendor%g
2601s%@target_os@%$target_os%g
2602s%@build@%$build%g
2603s%@build_alias@%$build_alias%g
2604s%@build_cpu@%$build_cpu%g
2605s%@build_vendor@%$build_vendor%g
2606s%@build_os@%$build_os%g
69792976 2607s%@MSGFMT@%$MSGFMT%g
795ca3e5
AK
2608s%@JOBS@%$JOBS%g
2609s%@STATIC_LINK@%$STATIC_LINK%g
5a52dca9 2610s%@LVM1@%$LVM1%g
795ca3e5
AK
2611s%@OWNER@%$OWNER%g
2612s%@GROUP@%$GROUP%g
fae0c576 2613s%@LVM_VERSION@%$LVM_VERSION%g
8ef2b021 2614s%@DEBUG@%$DEBUG%g
199e490e 2615s%@DEVMAPPER@%$DEVMAPPER%g
26e7f2e0 2616s%@HAVE_LIBDL@%$HAVE_LIBDL%g
69792976
AK
2617s%@LOCALEDIR@%$LOCALEDIR%g
2618s%@INTL_PACKAGE@%$INTL_PACKAGE%g
2619s%@INTL@%$INTL%g
795ca3e5
AK
2620
2621CEOF
2622EOF
2623
2624cat >> $CONFIG_STATUS <<\EOF
2625
2626# Split the substitutions into bite-sized pieces for seds with
2627# small command number limits, like on Digital OSF/1 and HP-UX.
2628ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2629ac_file=1 # Number of current file.
2630ac_beg=1 # First line for current file.
2631ac_end=$ac_max_sed_cmds # Line after last line for current file.
2632ac_more_lines=:
2633ac_sed_cmds=""
2634while $ac_more_lines; do
2635 if test $ac_beg -gt 1; then
2636 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2637 else
2638 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2639 fi
2640 if test ! -s conftest.s$ac_file; then
2641 ac_more_lines=false
2642 rm -f conftest.s$ac_file
2643 else
2644 if test -z "$ac_sed_cmds"; then
2645 ac_sed_cmds="sed -f conftest.s$ac_file"
2646 else
2647 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2648 fi
2649 ac_file=`expr $ac_file + 1`
2650 ac_beg=$ac_end
2651 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2652 fi
2653done
2654if test -z "$ac_sed_cmds"; then
2655 ac_sed_cmds=cat
2656fi
2657EOF
2658
2659cat >> $CONFIG_STATUS <<EOF
2660
2661CONFIG_FILES=\${CONFIG_FILES-"\
2662Makefile \
2663make.tmpl \
fa42e649 2664include/Makefile \
795ca3e5 2665lib/Makefile \
5a52dca9 2666lib/format1/Makefile \
795ca3e5 2667man/Makefile \
69792976 2668po/Makefile \
795ca3e5 2669tools/Makefile \
fae0c576 2670tools/version.h \
e6efb2b0 2671test/mm/Makefile \
43b7b8cf 2672test/device/Makefile \
e0304b58 2673test/format1/Makefile \
d1b28647 2674test/regex/Makefile \
291ec3b6 2675test/filters/Makefile \
795ca3e5
AK
2676"}
2677EOF
2678cat >> $CONFIG_STATUS <<\EOF
2679for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2681 case "$ac_file" in
2682 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2683 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2684 *) ac_file_in="${ac_file}.in" ;;
2685 esac
2686
2687 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2688
2689 # Remove last slash and all that follows it. Not all systems have dirname.
2690 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2691 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2692 # The file is in a subdirectory.
2693 test ! -d "$ac_dir" && mkdir "$ac_dir"
2694 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2695 # A "../" for each directory in $ac_dir_suffix.
2696 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2697 else
2698 ac_dir_suffix= ac_dots=
2699 fi
2700
2701 case "$ac_given_srcdir" in
2702 .) srcdir=.
2703 if test -z "$ac_dots"; then top_srcdir=.
2704 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2705 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2706 *) # Relative path.
2707 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2708 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2709 esac
2710
2711 case "$ac_given_INSTALL" in
2712 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2713 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2714 esac
2715
2716 echo creating "$ac_file"
2717 rm -f "$ac_file"
2718 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2719 case "$ac_file" in
2720 *Makefile*) ac_comsub="1i\\
2721# $configure_input" ;;
2722 *) ac_comsub= ;;
2723 esac
2724
2725 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2726 sed -e "$ac_comsub
2727s%@configure_input@%$configure_input%g
2728s%@srcdir@%$srcdir%g
2729s%@top_srcdir@%$top_srcdir%g
2730s%@INSTALL@%$INSTALL%g
2731" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2732fi; done
2733rm -f conftest.s*
2734
2735EOF
2736cat >> $CONFIG_STATUS <<EOF
2737
2738EOF
2739cat >> $CONFIG_STATUS <<\EOF
2740
2741exit 0
2742EOF
2743chmod +x $CONFIG_STATUS
2744rm -fr confdefs* $ac_clean_files
2745test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2746
2dc95e1c
AK
2747
2748if test x$ODIRECT != xyes; then
2749 echo
2750 echo Warning: O_DIRECT disabled.
2751 echo Use of pvmove may cause machine to lock up under low memory conditions.
2752 echo
2753fi
This page took 0.299619 seconds and 5 git commands to generate.