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