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