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