]>
Commit | Line | Data |
---|---|---|
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: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_default_prefix=/usr | |
15 | ac_help="$ac_help | |
16 | --with-user=USER Set the owner of installed files " | |
17 | ac_help="$ac_help | |
18 | --with-group=GROUP Set the group owner of installed files " | |
19 | ac_help="$ac_help | |
20 | --with-kernel_dir=DIR linux kernel source in DIR [/usr/src/linux]" | |
21 | ac_help="$ac_help | |
22 | --enable-jobs=NUM Number of jobs to run simultaneously" | |
23 | ac_help="$ac_help | |
24 | --enable-static_link Use this to link the tools to the liblvm library | |
25 | statically. Default is dynamic linking" | |
26 | ac_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. | |
32 | build=NONE | |
33 | cache_file=./config.cache | |
34 | exec_prefix=NONE | |
35 | host=NONE | |
36 | no_create= | |
37 | nonopt=NONE | |
38 | no_recursion= | |
39 | prefix=NONE | |
40 | program_prefix=NONE | |
41 | program_suffix=NONE | |
42 | program_transform_name=s,x,x, | |
43 | silent= | |
44 | site= | |
45 | srcdir= | |
46 | target=NONE | |
47 | verbose= | |
48 | x_includes=NONE | |
49 | x_libraries=NONE | |
50 | bindir='${exec_prefix}/bin' | |
51 | sbindir='${exec_prefix}/sbin' | |
52 | libexecdir='${exec_prefix}/libexec' | |
53 | datadir='${prefix}/share' | |
54 | sysconfdir='${prefix}/etc' | |
55 | sharedstatedir='${prefix}/com' | |
56 | localstatedir='${prefix}/var' | |
57 | libdir='${exec_prefix}/lib' | |
58 | includedir='${prefix}/include' | |
59 | oldincludedir='/usr/include' | |
60 | infodir='${prefix}/info' | |
61 | mandir='${prefix}/man' | |
62 | ||
63 | # Initialize some other variables. | |
64 | subdirs= | |
65 | MFLAGS= MAKEFLAGS= | |
66 | SHELL=${CONFIG_SHELL-/bin/sh} | |
67 | # Maximum number of lines to put in a shell here document. | |
68 | ac_max_here_lines=12 | |
69 | ||
70 | ac_prev= | |
71 | for ac_option | |
72 | do | |
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 | |
152 | Usage: configure [options] [host] | |
153 | Options: [defaults in brackets after descriptions] | |
154 | Configuration: | |
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 | |
160 | Directory 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 | |
184 | EOF | |
185 | cat << EOF | |
186 | Host 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] | |
190 | Features 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 | |
197 | EOF | |
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 | |
407 | done | |
408 | ||
409 | if test -n "$ac_prev"; then | |
410 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
411 | fi | |
412 | ||
413 | trap '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 | |
423 | if test "$silent" = yes; then | |
424 | exec 6>/dev/null | |
425 | else | |
426 | exec 6>&1 | |
427 | fi | |
428 | exec 5>./config.log | |
429 | ||
430 | echo "\ | |
431 | This file contains any messages produced by compilers while | |
432 | running 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. | |
437 | ac_configure_args= | |
438 | for ac_arg | |
439 | do | |
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 | |
449 | done | |
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. | |
456 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
457 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
458 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
459 | if 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. | |
462 | rm -rf conftest* confdefs.h | |
463 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
464 | echo > 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. | |
468 | ac_unique_file=lib/dev-mgr/dev-manager.h | |
469 | ||
470 | # Find the source files, if location was not specified. | |
471 | if 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 | |
481 | else | |
482 | ac_srcdir_defaulted=no | |
483 | fi | |
484 | if 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 | |
490 | fi | |
491 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
492 | ||
493 | # Prefer explicitly selected file to automatically selected ones. | |
494 | if 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 | |
500 | fi | |
501 | for 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 | |
506 | done | |
507 | ||
508 | if test -r "$cache_file"; then | |
509 | echo "loading cache $cache_file" | |
510 | . $cache_file | |
511 | else | |
512 | echo "creating cache $cache_file" | |
513 | > $cache_file | |
514 | fi | |
515 | ||
516 | ac_ext=c | |
517 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
518 | ac_cpp='$CPP $CPPFLAGS' | |
519 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
520 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
521 | cross_compiling=$ac_cv_prog_cc_cross | |
522 | ||
523 | ac_exeext= | |
524 | ac_objext=o | |
525 | if (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 | |
533 | else | |
534 | ac_n= ac_c='\c' ac_t= | |
535 | fi | |
536 | ||
537 | ||
538 | ||
539 | ac_aux_dir= | |
540 | for 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 | |
550 | done | |
551 | if 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; } | |
553 | fi | |
554 | ac_config_guess=$ac_aux_dir/config.guess | |
555 | ac_config_sub=$ac_aux_dir/config.sub | |
556 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
557 | ||
558 | ||
559 | for ac_prog in gawk mawk nawk awk | |
560 | do | |
561 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
562 | set dummy $ac_prog; ac_word=$2 | |
563 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
564 | echo "configure:565: checking for $ac_word" >&5 | |
565 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then | |
566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
567 | else | |
568 | if test -n "$AWK"; then | |
569 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
570 | else | |
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" | |
581 | fi | |
582 | fi | |
583 | AWK="$ac_cv_prog_AWK" | |
584 | if test -n "$AWK"; then | |
585 | echo "$ac_t""$AWK" 1>&6 | |
586 | else | |
587 | echo "$ac_t""no" 1>&6 | |
588 | fi | |
589 | ||
590 | test -n "$AWK" && break | |
591 | done | |
592 | ||
593 | # Extract the first word of "gcc", so it can be a program name with args. | |
594 | set dummy gcc; ac_word=$2 | |
595 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
596 | echo "configure:597: checking for $ac_word" >&5 | |
597 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
599 | else | |
600 | if test -n "$CC"; then | |
601 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
602 | else | |
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" | |
613 | fi | |
614 | fi | |
615 | CC="$ac_cv_prog_CC" | |
616 | if test -n "$CC"; then | |
617 | echo "$ac_t""$CC" 1>&6 | |
618 | else | |
619 | echo "$ac_t""no" 1>&6 | |
620 | fi | |
621 | ||
622 | if test -z "$CC"; then | |
623 | # Extract the first word of "cc", so it can be a program name with args. | |
624 | set dummy cc; ac_word=$2 | |
625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
626 | echo "configure:627: checking for $ac_word" >&5 | |
627 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
629 | else | |
630 | if test -n "$CC"; then | |
631 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
632 | else | |
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" | |
648 | if 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 | |
661 | fi | |
662 | fi | |
663 | fi | |
664 | CC="$ac_cv_prog_CC" | |
665 | if test -n "$CC"; then | |
666 | echo "$ac_t""$CC" 1>&6 | |
667 | else | |
668 | echo "$ac_t""no" 1>&6 | |
669 | fi | |
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. | |
675 | set dummy cl; ac_word=$2 | |
676 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
677 | echo "configure:678: checking for $ac_word" >&5 | |
678 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
680 | else | |
681 | if test -n "$CC"; then | |
682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
683 | else | |
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" | |
694 | fi | |
695 | fi | |
696 | CC="$ac_cv_prog_CC" | |
697 | if test -n "$CC"; then | |
698 | echo "$ac_t""$CC" 1>&6 | |
699 | else | |
700 | echo "$ac_t""no" 1>&6 | |
701 | fi | |
702 | ;; | |
703 | esac | |
704 | fi | |
705 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
706 | fi | |
707 | ||
708 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
709 | echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
710 | ||
711 | ac_ext=c | |
712 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
713 | ac_cpp='$CPP $CPPFLAGS' | |
714 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
715 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
716 | cross_compiling=$ac_cv_prog_cc_cross | |
717 | ||
718 | cat > conftest.$ac_ext << EOF | |
719 | ||
720 | #line 721 "configure" | |
721 | #include "confdefs.h" | |
722 | ||
723 | main(){return(0);} | |
724 | EOF | |
725 | if { (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 | |
733 | else | |
734 | echo "configure: failed program was:" >&5 | |
735 | cat conftest.$ac_ext >&5 | |
736 | ac_cv_prog_cc_works=no | |
737 | fi | |
738 | rm -fr conftest* | |
739 | ac_ext=c | |
740 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
741 | ac_cpp='$CPP $CPPFLAGS' | |
742 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
743 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
744 | cross_compiling=$ac_cv_prog_cc_cross | |
745 | ||
746 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
747 | if 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; } | |
749 | fi | |
750 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
751 | echo "configure:752: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
752 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
753 | cross_compiling=$ac_cv_prog_cc_cross | |
754 | ||
755 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
756 | echo "configure:757: checking whether we are using GNU C" >&5 | |
757 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
759 | else | |
760 | cat > conftest.c <<EOF | |
761 | #ifdef __GNUC__ | |
762 | yes; | |
763 | #endif | |
764 | EOF | |
765 | if { 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 | |
767 | else | |
768 | ac_cv_prog_gcc=no | |
769 | fi | |
770 | fi | |
771 | ||
772 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
773 | ||
774 | if test $ac_cv_prog_gcc = yes; then | |
775 | GCC=yes | |
776 | else | |
777 | GCC= | |
778 | fi | |
779 | ||
780 | ac_test_CFLAGS="${CFLAGS+set}" | |
781 | ac_save_CFLAGS="$CFLAGS" | |
782 | CFLAGS= | |
783 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
784 | echo "configure:785: checking whether ${CC-cc} accepts -g" >&5 | |
785 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
787 | else | |
788 | echo 'void f(){}' > conftest.c | |
789 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
790 | ac_cv_prog_cc_g=yes | |
791 | else | |
792 | ac_cv_prog_cc_g=no | |
793 | fi | |
794 | rm -f conftest* | |
795 | ||
796 | fi | |
797 | ||
798 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
799 | if test "$ac_test_CFLAGS" = set; then | |
800 | CFLAGS="$ac_save_CFLAGS" | |
801 | elif 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 | |
807 | else | |
808 | if test "$GCC" = yes; then | |
809 | CFLAGS="-O2" | |
810 | else | |
811 | CFLAGS= | |
812 | fi | |
813 | fi | |
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. | |
826 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
827 | echo "configure:828: checking for a BSD compatible install" >&5 | |
828 | if test -z "$INSTALL"; then | |
829 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
831 | else | |
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 | ||
858 | fi | |
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 | |
868 | fi | |
869 | echo "$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. | |
873 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
874 | ||
875 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
876 | ||
877 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
878 | ||
879 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
880 | echo "configure:881: checking whether ln -s works" >&5 | |
881 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
883 | else | |
884 | rm -f conftestdata | |
885 | if ln -s X conftestdata 2>/dev/null | |
886 | then | |
887 | rm -f conftestdata | |
888 | ac_cv_prog_LN_S="ln -s" | |
889 | else | |
890 | ac_cv_prog_LN_S=ln | |
891 | fi | |
892 | fi | |
893 | LN_S="$ac_cv_prog_LN_S" | |
894 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
895 | echo "$ac_t""yes" 1>&6 | |
896 | else | |
897 | echo "$ac_t""no" 1>&6 | |
898 | fi | |
899 | ||
900 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
901 | echo "configure:902: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
902 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
903 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
905 | else | |
906 | cat > conftestmake <<\EOF | |
907 | all: | |
908 | @echo 'ac_maketemp="${MAKE}"' | |
909 | EOF | |
910 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
911 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
912 | if test -n "$ac_maketemp"; then | |
913 | eval ac_cv_prog_make_${ac_make}_set=yes | |
914 | else | |
915 | eval ac_cv_prog_make_${ac_make}_set=no | |
916 | fi | |
917 | rm -f conftestmake | |
918 | fi | |
919 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
920 | echo "$ac_t""yes" 1>&6 | |
921 | SET_MAKE= | |
922 | else | |
923 | echo "$ac_t""no" 1>&6 | |
924 | SET_MAKE="MAKE=${MAKE-make}" | |
925 | fi | |
926 | ||
927 | # Extract the first word of "ranlib", so it can be a program name with args. | |
928 | set dummy ranlib; ac_word=$2 | |
929 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
930 | echo "configure:931: checking for $ac_word" >&5 | |
931 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
933 | else | |
934 | if test -n "$RANLIB"; then | |
935 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
936 | else | |
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=":" | |
948 | fi | |
949 | fi | |
950 | RANLIB="$ac_cv_prog_RANLIB" | |
951 | if test -n "$RANLIB"; then | |
952 | echo "$ac_t""$RANLIB" 1>&6 | |
953 | else | |
954 | echo "$ac_t""no" 1>&6 | |
955 | fi | |
956 | ||
957 | ||
958 | ac_header_dirent=no | |
959 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
960 | do | |
961 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
962 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
963 | echo "configure:964: checking for $ac_hdr that defines DIR" >&5 | |
964 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then | |
965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
966 | else | |
967 | cat > conftest.$ac_ext <<EOF | |
968 | #line 969 "configure" | |
969 | #include "confdefs.h" | |
970 | #include <sys/types.h> | |
971 | #include <$ac_hdr> | |
972 | int main() { | |
973 | DIR *dirp = 0; | |
974 | ; return 0; } | |
975 | EOF | |
976 | if { (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" | |
979 | else | |
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" | |
984 | fi | |
985 | rm -f conftest* | |
986 | fi | |
987 | if 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 | |
992 | EOF | |
993 | ac_header_dirent=$ac_hdr; break | |
994 | else | |
995 | echo "$ac_t""no" 1>&6 | |
996 | fi | |
997 | done | |
998 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
999 | if test $ac_header_dirent = dirent.h; then | |
1000 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
1001 | echo "configure:1002: checking for opendir in -ldir" >&5 | |
1002 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` | |
1003 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1005 | else | |
1006 | ac_save_LIBS="$LIBS" | |
1007 | LIBS="-ldir $LIBS" | |
1008 | cat > 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. */ | |
1014 | char opendir(); | |
1015 | ||
1016 | int main() { | |
1017 | opendir() | |
1018 | ; return 0; } | |
1019 | EOF | |
1020 | if { (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" | |
1023 | else | |
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" | |
1028 | fi | |
1029 | rm -f conftest* | |
1030 | LIBS="$ac_save_LIBS" | |
1031 | ||
1032 | fi | |
1033 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1034 | echo "$ac_t""yes" 1>&6 | |
1035 | LIBS="$LIBS -ldir" | |
1036 | else | |
1037 | echo "$ac_t""no" 1>&6 | |
1038 | fi | |
1039 | ||
1040 | else | |
1041 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
1042 | echo "configure:1043: checking for opendir in -lx" >&5 | |
1043 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` | |
1044 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1046 | else | |
1047 | ac_save_LIBS="$LIBS" | |
1048 | LIBS="-lx $LIBS" | |
1049 | cat > 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. */ | |
1055 | char opendir(); | |
1056 | ||
1057 | int main() { | |
1058 | opendir() | |
1059 | ; return 0; } | |
1060 | EOF | |
1061 | if { (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" | |
1064 | else | |
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" | |
1069 | fi | |
1070 | rm -f conftest* | |
1071 | LIBS="$ac_save_LIBS" | |
1072 | ||
1073 | fi | |
1074 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1075 | echo "$ac_t""yes" 1>&6 | |
1076 | LIBS="$LIBS -lx" | |
1077 | else | |
1078 | echo "$ac_t""no" 1>&6 | |
1079 | fi | |
1080 | ||
1081 | fi | |
1082 | ||
1083 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
1084 | echo "configure:1085: checking how to run the C preprocessor" >&5 | |
1085 | # On Suns, sometimes $CPP names a directory. | |
1086 | if test -n "$CPP" && test -d "$CPP"; then | |
1087 | CPP= | |
1088 | fi | |
1089 | if test -z "$CPP"; then | |
1090 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1092 | else | |
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> | |
1102 | Syntax Error | |
1103 | EOF | |
1104 | ac_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; } | |
1106 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1107 | if test -z "$ac_err"; then | |
1108 | : | |
1109 | else | |
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> | |
1119 | Syntax Error | |
1120 | EOF | |
1121 | ac_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; } | |
1123 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1124 | if test -z "$ac_err"; then | |
1125 | : | |
1126 | else | |
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> | |
1136 | Syntax Error | |
1137 | EOF | |
1138 | ac_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; } | |
1140 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1141 | if test -z "$ac_err"; then | |
1142 | : | |
1143 | else | |
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 | |
1149 | fi | |
1150 | rm -f conftest* | |
1151 | fi | |
1152 | rm -f conftest* | |
1153 | fi | |
1154 | rm -f conftest* | |
1155 | ac_cv_prog_CPP="$CPP" | |
1156 | fi | |
1157 | CPP="$ac_cv_prog_CPP" | |
1158 | else | |
1159 | ac_cv_prog_CPP="$CPP" | |
1160 | fi | |
1161 | echo "$ac_t""$CPP" 1>&6 | |
1162 | ||
1163 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
1164 | echo "configure:1165: checking for ANSI C header files" >&5 | |
1165 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
1166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1167 | else | |
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> | |
1175 | EOF | |
1176 | ac_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; } | |
1178 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1179 | if test -z "$ac_err"; then | |
1180 | rm -rf conftest* | |
1181 | ac_cv_header_stdc=yes | |
1182 | else | |
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 | |
1188 | fi | |
1189 | rm -f conftest* | |
1190 | ||
1191 | if test $ac_cv_header_stdc = yes; then | |
1192 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1193 | cat > conftest.$ac_ext <<EOF | |
1194 | #line 1195 "configure" | |
1195 | #include "confdefs.h" | |
1196 | #include <string.h> | |
1197 | EOF | |
1198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1199 | egrep "memchr" >/dev/null 2>&1; then | |
1200 | : | |
1201 | else | |
1202 | rm -rf conftest* | |
1203 | ac_cv_header_stdc=no | |
1204 | fi | |
1205 | rm -f conftest* | |
1206 | ||
1207 | fi | |
1208 | ||
1209 | if test $ac_cv_header_stdc = yes; then | |
1210 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1211 | cat > conftest.$ac_ext <<EOF | |
1212 | #line 1213 "configure" | |
1213 | #include "confdefs.h" | |
1214 | #include <stdlib.h> | |
1215 | EOF | |
1216 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1217 | egrep "free" >/dev/null 2>&1; then | |
1218 | : | |
1219 | else | |
1220 | rm -rf conftest* | |
1221 | ac_cv_header_stdc=no | |
1222 | fi | |
1223 | rm -f conftest* | |
1224 | ||
1225 | fi | |
1226 | ||
1227 | if test $ac_cv_header_stdc = yes; then | |
1228 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1229 | if test "$cross_compiling" = yes; then | |
1230 | : | |
1231 | else | |
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))) | |
1239 | int main () { int i; for (i = 0; i < 256; i++) | |
1240 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1241 | exit (0); } | |
1242 | ||
1243 | EOF | |
1244 | if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1245 | then | |
1246 | : | |
1247 | else | |
1248 | echo "configure: failed program was:" >&5 | |
1249 | cat conftest.$ac_ext >&5 | |
1250 | rm -fr conftest* | |
1251 | ac_cv_header_stdc=no | |
1252 | fi | |
1253 | rm -fr conftest* | |
1254 | fi | |
1255 | ||
1256 | fi | |
1257 | fi | |
1258 | ||
1259 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1260 | if test $ac_cv_header_stdc = yes; then | |
1261 | cat >> confdefs.h <<\EOF | |
1262 | #define STDC_HEADERS 1 | |
1263 | EOF | |
1264 | ||
1265 | fi | |
1266 | ||
1267 | for ac_hdr in fcntl.h malloc.h sys/ioctl.h unistd.h | |
1268 | do | |
1269 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1270 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1271 | echo "configure:1272: checking for $ac_hdr" >&5 | |
1272 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1274 | else | |
1275 | cat > conftest.$ac_ext <<EOF | |
1276 | #line 1277 "configure" | |
1277 | #include "confdefs.h" | |
1278 | #include <$ac_hdr> | |
1279 | EOF | |
1280 | ac_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; } | |
1282 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1283 | if test -z "$ac_err"; then | |
1284 | rm -rf conftest* | |
1285 | eval "ac_cv_header_$ac_safe=yes" | |
1286 | else | |
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" | |
1292 | fi | |
1293 | rm -f conftest* | |
1294 | fi | |
1295 | if 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 | |
1300 | EOF | |
1301 | ||
1302 | else | |
1303 | echo "$ac_t""no" 1>&6 | |
1304 | fi | |
1305 | done | |
1306 | ||
1307 | ||
1308 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
1309 | echo "configure:1310: checking for working const" >&5 | |
1310 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
1311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1312 | else | |
1313 | cat > conftest.$ac_ext <<EOF | |
1314 | #line 1315 "configure" | |
1315 | #include "confdefs.h" | |
1316 | ||
1317 | int main() { | |
1318 | ||
1319 | /* Ultrix mips cc rejects this. */ | |
1320 | typedef int charset[2]; const charset x; | |
1321 | /* SunOS 4.1.1 cc rejects this. */ | |
1322 | char const *const *ccp; | |
1323 | char **p; | |
1324 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1325 | struct point {int x, y;}; | |
1326 | static 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 */ | |
1330 | const char *g = "string"; | |
1331 | ccp = &g + (g ? g-g : 0); | |
1332 | /* HPUX 7.0 cc rejects these. */ | |
1333 | ++ccp; | |
1334 | p = (char**) ccp; | |
1335 | ccp = (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; } | |
1362 | EOF | |
1363 | if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1364 | rm -rf conftest* | |
1365 | ac_cv_c_const=yes | |
1366 | else | |
1367 | echo "configure: failed program was:" >&5 | |
1368 | cat conftest.$ac_ext >&5 | |
1369 | rm -rf conftest* | |
1370 | ac_cv_c_const=no | |
1371 | fi | |
1372 | rm -f conftest* | |
1373 | fi | |
1374 | ||
1375 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
1376 | if test $ac_cv_c_const = no; then | |
1377 | cat >> confdefs.h <<\EOF | |
1378 | #define const | |
1379 | EOF | |
1380 | ||
1381 | fi | |
1382 | ||
1383 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
1384 | echo "configure:1385: checking for inline" >&5 | |
1385 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
1386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1387 | else | |
1388 | ac_cv_c_inline=no | |
1389 | for ac_kw in inline __inline__ __inline; do | |
1390 | cat > conftest.$ac_ext <<EOF | |
1391 | #line 1392 "configure" | |
1392 | #include "confdefs.h" | |
1393 | ||
1394 | int main() { | |
1395 | } $ac_kw foo() { | |
1396 | ; return 0; } | |
1397 | EOF | |
1398 | if { (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 | |
1401 | else | |
1402 | echo "configure: failed program was:" >&5 | |
1403 | cat conftest.$ac_ext >&5 | |
1404 | fi | |
1405 | rm -f conftest* | |
1406 | done | |
1407 | ||
1408 | fi | |
1409 | ||
1410 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
1411 | case "$ac_cv_c_inline" in | |
1412 | inline | yes) ;; | |
1413 | no) cat >> confdefs.h <<\EOF | |
1414 | #define inline | |
1415 | EOF | |
1416 | ;; | |
1417 | *) cat >> confdefs.h <<EOF | |
1418 | #define inline $ac_cv_c_inline | |
1419 | EOF | |
1420 | ;; | |
1421 | esac | |
1422 | ||
1423 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
1424 | echo "configure:1425: checking for off_t" >&5 | |
1425 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
1426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1427 | else | |
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 | |
1436 | EOF | |
1437 | if (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 | |
1441 | else | |
1442 | rm -rf conftest* | |
1443 | ac_cv_type_off_t=no | |
1444 | fi | |
1445 | rm -f conftest* | |
1446 | ||
1447 | fi | |
1448 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
1449 | if test $ac_cv_type_off_t = no; then | |
1450 | cat >> confdefs.h <<\EOF | |
1451 | #define off_t long | |
1452 | EOF | |
1453 | ||
1454 | fi | |
1455 | ||
1456 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
1457 | echo "configure:1458: checking for pid_t" >&5 | |
1458 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
1459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1460 | else | |
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 | |
1469 | EOF | |
1470 | if (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 | |
1474 | else | |
1475 | rm -rf conftest* | |
1476 | ac_cv_type_pid_t=no | |
1477 | fi | |
1478 | rm -f conftest* | |
1479 | ||
1480 | fi | |
1481 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
1482 | if test $ac_cv_type_pid_t = no; then | |
1483 | cat >> confdefs.h <<\EOF | |
1484 | #define pid_t int | |
1485 | EOF | |
1486 | ||
1487 | fi | |
1488 | ||
1489 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
1490 | echo "configure:1491: checking for size_t" >&5 | |
1491 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
1492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1493 | else | |
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 | |
1502 | EOF | |
1503 | if (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 | |
1507 | else | |
1508 | rm -rf conftest* | |
1509 | ac_cv_type_size_t=no | |
1510 | fi | |
1511 | rm -f conftest* | |
1512 | ||
1513 | fi | |
1514 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
1515 | if test $ac_cv_type_size_t = no; then | |
1516 | cat >> confdefs.h <<\EOF | |
1517 | #define size_t unsigned | |
1518 | EOF | |
1519 | ||
1520 | fi | |
1521 | ||
1522 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 | |
1523 | echo "configure:1524: checking for st_rdev in struct stat" >&5 | |
1524 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then | |
1525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1526 | else | |
1527 | cat > conftest.$ac_ext <<EOF | |
1528 | #line 1529 "configure" | |
1529 | #include "confdefs.h" | |
1530 | #include <sys/types.h> | |
1531 | #include <sys/stat.h> | |
1532 | int main() { | |
1533 | struct stat s; s.st_rdev; | |
1534 | ; return 0; } | |
1535 | EOF | |
1536 | if { (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 | |
1539 | else | |
1540 | echo "configure: failed program was:" >&5 | |
1541 | cat conftest.$ac_ext >&5 | |
1542 | rm -rf conftest* | |
1543 | ac_cv_struct_st_rdev=no | |
1544 | fi | |
1545 | rm -f conftest* | |
1546 | fi | |
1547 | ||
1548 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 | |
1549 | if test $ac_cv_struct_st_rdev = yes; then | |
1550 | cat >> confdefs.h <<\EOF | |
1551 | #define HAVE_ST_RDEV 1 | |
1552 | EOF | |
1553 | ||
1554 | fi | |
1555 | ||
1556 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
1557 | echo "configure:1558: checking whether time.h and sys/time.h may both be included" >&5 | |
1558 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | |
1559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1560 | else | |
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> | |
1567 | int main() { | |
1568 | struct tm *tp; | |
1569 | ; return 0; } | |
1570 | EOF | |
1571 | if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1572 | rm -rf conftest* | |
1573 | ac_cv_header_time=yes | |
1574 | else | |
1575 | echo "configure: failed program was:" >&5 | |
1576 | cat conftest.$ac_ext >&5 | |
1577 | rm -rf conftest* | |
1578 | ac_cv_header_time=no | |
1579 | fi | |
1580 | rm -f conftest* | |
1581 | fi | |
1582 | ||
1583 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1584 | if test $ac_cv_header_time = yes; then | |
1585 | cat >> confdefs.h <<\EOF | |
1586 | #define TIME_WITH_SYS_TIME 1 | |
1587 | EOF | |
1588 | ||
1589 | fi | |
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | # Check whether --with-user or --without-user was given. | |
1595 | if test "${with_user+set}" = set; then | |
1596 | withval="$with_user" | |
1597 | OWNER="$withval" | |
1598 | else | |
1599 | OWNER="root" | |
1600 | fi | |
1601 | ||
1602 | ||
1603 | # Check whether --with-group or --without-group was given. | |
1604 | if test "${with_group+set}" = set; then | |
1605 | withval="$with_group" | |
1606 | GROUP="$withval" | |
1607 | else | |
1608 | GROUP="root" | |
1609 | fi | |
1610 | ||
1611 | ||
1612 | # Check whether --with-kernel_dir or --without-kernel_dir was given. | |
1613 | if test "${with_kernel_dir+set}" = set; then | |
1614 | withval="$with_kernel_dir" | |
1615 | kernel_dir="$withval" | |
1616 | else | |
1617 | kernel_dir=/usr/src/linux | |
1618 | fi | |
1619 | ||
1620 | ||
1621 | # Check whether --enable-jobs or --disable-jobs was given. | |
1622 | if test "${enable_jobs+set}" = set; then | |
1623 | enableval="$enable_jobs" | |
1624 | JOBS=-j$enableval | |
1625 | else | |
1626 | JOBS= | |
1627 | fi | |
1628 | ||
1629 | ||
1630 | # Check whether --enable-static_link or --disable-static_link was given. | |
1631 | if test "${enable_static_link+set}" = set; then | |
1632 | enableval="$enable_static_link" | |
1633 | STATIC_LINK=$enableval | |
1634 | else | |
1635 | STATIC_LINK=no | |
1636 | fi | |
1637 | ||
1638 | ||
1639 | # Check whether --enable-readline or --disable-readline was given. | |
1640 | if test "${enable_readline+set}" = set; then | |
1641 | enableval="$enable_readline" | |
1642 | \ | |
1643 | READLINE=$enableval | |
1644 | else | |
1645 | READLINE=yes | |
1646 | fi | |
1647 | ||
1648 | ||
1649 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
1650 | then exec_prefix=""; | |
1651 | fi; | |
1652 | ||
1653 | if test $ac_cv_prog_gcc = yes; then | |
1654 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
1655 | echo "configure:1656: checking whether ${CC-cc} needs -traditional" >&5 | |
1656 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
1657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1658 | else | |
1659 | ac_pattern="Autoconf.*'x'" | |
1660 | cat > conftest.$ac_ext <<EOF | |
1661 | #line 1662 "configure" | |
1662 | #include "confdefs.h" | |
1663 | #include <sgtty.h> | |
1664 | Autoconf TIOCGETP | |
1665 | EOF | |
1666 | if (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 | |
1670 | else | |
1671 | rm -rf conftest* | |
1672 | ac_cv_prog_gcc_traditional=no | |
1673 | fi | |
1674 | rm -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> | |
1682 | Autoconf TCGETA | |
1683 | EOF | |
1684 | if (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 | |
1688 | fi | |
1689 | rm -f conftest* | |
1690 | ||
1691 | fi | |
1692 | fi | |
1693 | ||
1694 | echo "$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 | |
1698 | fi | |
1699 | ||
1700 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
1701 | echo "configure:1702: checking return type of signal handlers" >&5 | |
1702 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | |
1703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1704 | else | |
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 | |
1714 | extern "C" void (*signal (int, void (*)(int)))(int); | |
1715 | #else | |
1716 | void (*signal ()) (); | |
1717 | #endif | |
1718 | ||
1719 | int main() { | |
1720 | int i; | |
1721 | ; return 0; } | |
1722 | EOF | |
1723 | if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1724 | rm -rf conftest* | |
1725 | ac_cv_type_signal=void | |
1726 | else | |
1727 | echo "configure: failed program was:" >&5 | |
1728 | cat conftest.$ac_ext >&5 | |
1729 | rm -rf conftest* | |
1730 | ac_cv_type_signal=int | |
1731 | fi | |
1732 | rm -f conftest* | |
1733 | fi | |
1734 | ||
1735 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
1736 | cat >> confdefs.h <<EOF | |
1737 | #define RETSIGTYPE $ac_cv_type_signal | |
1738 | EOF | |
1739 | ||
1740 | ||
1741 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
1742 | echo "configure:1743: checking for vprintf" >&5 | |
1743 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
1744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1745 | else | |
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. */ | |
1755 | char vprintf(); | |
1756 | ||
1757 | int 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) | |
1763 | choke me | |
1764 | #else | |
1765 | vprintf(); | |
1766 | #endif | |
1767 | ||
1768 | ; return 0; } | |
1769 | EOF | |
1770 | if { (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" | |
1773 | else | |
1774 | echo "configure: failed program was:" >&5 | |
1775 | cat conftest.$ac_ext >&5 | |
1776 | rm -rf conftest* | |
1777 | eval "ac_cv_func_vprintf=no" | |
1778 | fi | |
1779 | rm -f conftest* | |
1780 | fi | |
1781 | ||
1782 | if 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 | |
1786 | EOF | |
1787 | ||
1788 | else | |
1789 | echo "$ac_t""no" 1>&6 | |
1790 | fi | |
1791 | ||
1792 | if test "$ac_cv_func_vprintf" != yes; then | |
1793 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
1794 | echo "configure:1795: checking for _doprnt" >&5 | |
1795 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
1796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1797 | else | |
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. */ | |
1807 | char _doprnt(); | |
1808 | ||
1809 | int 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) | |
1815 | choke me | |
1816 | #else | |
1817 | _doprnt(); | |
1818 | #endif | |
1819 | ||
1820 | ; return 0; } | |
1821 | EOF | |
1822 | if { (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" | |
1825 | else | |
1826 | echo "configure: failed program was:" >&5 | |
1827 | cat conftest.$ac_ext >&5 | |
1828 | rm -rf conftest* | |
1829 | eval "ac_cv_func__doprnt=no" | |
1830 | fi | |
1831 | rm -f conftest* | |
1832 | fi | |
1833 | ||
1834 | if 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 | |
1838 | EOF | |
1839 | ||
1840 | else | |
1841 | echo "$ac_t""no" 1>&6 | |
1842 | fi | |
1843 | ||
1844 | fi | |
1845 | ||
1846 | for ac_func in mkdir rmdir uname | |
1847 | do | |
1848 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1849 | echo "configure:1850: checking for $ac_func" >&5 | |
1850 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1852 | else | |
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. */ | |
1862 | char $ac_func(); | |
1863 | ||
1864 | int 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) | |
1870 | choke me | |
1871 | #else | |
1872 | $ac_func(); | |
1873 | #endif | |
1874 | ||
1875 | ; return 0; } | |
1876 | EOF | |
1877 | if { (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" | |
1880 | else | |
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" | |
1885 | fi | |
1886 | rm -f conftest* | |
1887 | fi | |
1888 | ||
1889 | if 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 | |
1894 | EOF | |
1895 | ||
1896 | else | |
1897 | echo "$ac_t""no" 1>&6 | |
1898 | fi | |
1899 | done | |
1900 | ||
1901 | ||
1902 | if test x$READLINE = xyes; then | |
1903 | ||
1904 | echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6 | |
1905 | echo "configure:1906: checking for library containing tgetent" >&5 | |
1906 | if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then | |
1907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1908 | else | |
1909 | ac_func_search_save_LIBS="$LIBS" | |
1910 | ac_cv_search_tgetent="no" | |
1911 | cat > 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. */ | |
1917 | char tgetent(); | |
1918 | ||
1919 | int main() { | |
1920 | tgetent() | |
1921 | ; return 0; } | |
1922 | EOF | |
1923 | if { (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" | |
1926 | else | |
1927 | echo "configure: failed program was:" >&5 | |
1928 | cat conftest.$ac_ext >&5 | |
1929 | fi | |
1930 | rm -f conftest* | |
1931 | test "$ac_cv_search_tgetent" = "no" && for i in ncurses curses termcap termlib; do | |
1932 | LIBS="-l$i $ac_func_search_save_LIBS" | |
1933 | cat > 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. */ | |
1939 | char tgetent(); | |
1940 | ||
1941 | int main() { | |
1942 | tgetent() | |
1943 | ; return 0; } | |
1944 | EOF | |
1945 | if { (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" | |
1948 | break | |
1949 | else | |
1950 | echo "configure: failed program was:" >&5 | |
1951 | cat conftest.$ac_ext >&5 | |
1952 | fi | |
1953 | rm -f conftest* | |
1954 | done | |
1955 | LIBS="$ac_func_search_save_LIBS" | |
1956 | fi | |
1957 | ||
1958 | echo "$ac_t""$ac_cv_search_tgetent" 1>&6 | |
1959 | if test "$ac_cv_search_tgetent" != "no"; then | |
1960 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
1961 | ||
1962 | else : | |
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 | |
1965 | support with --disable-readline or download and install termcap from: | |
1966 | ftp.gnu.org/gnu/termcap | |
1967 | Note: 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). | |
1969 | Note: (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 | ||
1974 | fi | |
1975 | fi | |
1976 | ||
1977 | if test x$READLINE = xyes; then | |
1978 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 | |
1979 | echo "configure:1980: checking for readline in -lreadline" >&5 | |
1980 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` | |
1981 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1983 | else | |
1984 | ac_save_LIBS="$LIBS" | |
1985 | LIBS="-lreadline $LIBS" | |
1986 | cat > 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. */ | |
1992 | char readline(); | |
1993 | ||
1994 | int main() { | |
1995 | readline() | |
1996 | ; return 0; } | |
1997 | EOF | |
1998 | if { (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" | |
2001 | else | |
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" | |
2006 | fi | |
2007 | rm -f conftest* | |
2008 | LIBS="$ac_save_LIBS" | |
2009 | ||
2010 | fi | |
2011 | if 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 | |
2017 | EOF | |
2018 | ||
2019 | LIBS="-lreadline $LIBS" | |
2020 | ||
2021 | else | |
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 | |
2025 | support with --disable-readline or download and install readline from: | |
2026 | ftp.gnu.org/gnu/readline | |
2027 | Note: if you are using precompiled packages you will also need the development | |
2028 | package as well (which may be called readline-devel or something similar). | |
2029 | " 1>&2; exit 1; } | |
2030 | exit | |
2031 | ||
2032 | fi | |
2033 | ||
2034 | fi | |
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | trap '' 1 2 15 | |
2043 | cat > 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 | # | |
2058 | EOF | |
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 | |
2078 | if cmp -s $cache_file confcache; then | |
2079 | : | |
2080 | else | |
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 | |
2087 | fi | |
2088 | rm -f confcache | |
2089 | ||
2090 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2091 | ||
2092 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2093 | # Let make expand exec_prefix. | |
2094 | test "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. | |
2099 | if test "x$srcdir" = x.; then | |
2100 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2101 | fi | |
2102 | ||
2103 | trap '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. | |
2108 | cat > conftest.defs <<\EOF | |
2109 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
2110 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
2111 | s%\[%\\&%g | |
2112 | s%\]%\\&%g | |
2113 | s%\$%$$%g | |
2114 | EOF | |
2115 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
2116 | rm -f conftest.defs | |
2117 | ||
2118 | ||
2119 | # Without the "./", some shells look in PATH for config.status. | |
2120 | : ${CONFIG_STATUS=./config.status} | |
2121 | ||
2122 | echo creating $CONFIG_STATUS | |
2123 | rm -f $CONFIG_STATUS | |
2124 | cat > $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 | ||
2136 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2137 | for ac_option | |
2138 | do | |
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 | |
2150 | done | |
2151 | ||
2152 | ac_given_srcdir=$srcdir | |
2153 | ac_given_INSTALL="$INSTALL" | |
2154 | ||
2155 | trap 'rm -fr `echo "\ | |
2156 | Makefile \ | |
2157 | make.tmpl \ | |
2158 | lib/Makefile \ | |
2159 | man/Makefile \ | |
2160 | tools/Makefile \ | |
2161 | " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
2162 | EOF | |
2163 | cat >> $CONFIG_STATUS <<EOF | |
2164 | ||
2165 | # Protect against being on the right side of a sed subst in config.status. | |
2166 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2167 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2168 | $ac_vpsub | |
2169 | $extrasub | |
2170 | s%@SHELL@%$SHELL%g | |
2171 | s%@CFLAGS@%$CFLAGS%g | |
2172 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2173 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2174 | s%@FFLAGS@%$FFLAGS%g | |
2175 | s%@DEFS@%$DEFS%g | |
2176 | s%@LDFLAGS@%$LDFLAGS%g | |
2177 | s%@LIBS@%$LIBS%g | |
2178 | s%@exec_prefix@%$exec_prefix%g | |
2179 | s%@prefix@%$prefix%g | |
2180 | s%@program_transform_name@%$program_transform_name%g | |
2181 | s%@bindir@%$bindir%g | |
2182 | s%@sbindir@%$sbindir%g | |
2183 | s%@libexecdir@%$libexecdir%g | |
2184 | s%@datadir@%$datadir%g | |
2185 | s%@sysconfdir@%$sysconfdir%g | |
2186 | s%@sharedstatedir@%$sharedstatedir%g | |
2187 | s%@localstatedir@%$localstatedir%g | |
2188 | s%@libdir@%$libdir%g | |
2189 | s%@includedir@%$includedir%g | |
2190 | s%@oldincludedir@%$oldincludedir%g | |
2191 | s%@infodir@%$infodir%g | |
2192 | s%@mandir@%$mandir%g | |
2193 | s%@AWK@%$AWK%g | |
2194 | s%@CC@%$CC%g | |
2195 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2196 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
2197 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2198 | s%@LN_S@%$LN_S%g | |
2199 | s%@SET_MAKE@%$SET_MAKE%g | |
2200 | s%@RANLIB@%$RANLIB%g | |
2201 | s%@CPP@%$CPP%g | |
2202 | s%@JOBS@%$JOBS%g | |
2203 | s%@STATIC_LINK@%$STATIC_LINK%g | |
2204 | s%@READLINE@%$READLINE%g | |
2205 | s%@kernel_dir@%$kernel_dir%g | |
2206 | s%@OWNER@%$OWNER%g | |
2207 | s%@GROUP@%$GROUP%g | |
2208 | ||
2209 | CEOF | |
2210 | EOF | |
2211 | ||
2212 | cat >> $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. | |
2216 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2217 | ac_file=1 # Number of current file. | |
2218 | ac_beg=1 # First line for current file. | |
2219 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2220 | ac_more_lines=: | |
2221 | ac_sed_cmds="" | |
2222 | while $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 | |
2241 | done | |
2242 | if test -z "$ac_sed_cmds"; then | |
2243 | ac_sed_cmds=cat | |
2244 | fi | |
2245 | EOF | |
2246 | ||
2247 | cat >> $CONFIG_STATUS <<EOF | |
2248 | ||
2249 | CONFIG_FILES=\${CONFIG_FILES-"\ | |
2250 | Makefile \ | |
2251 | make.tmpl \ | |
2252 | lib/Makefile \ | |
2253 | man/Makefile \ | |
2254 | tools/Makefile \ | |
2255 | "} | |
2256 | EOF | |
2257 | cat >> $CONFIG_STATUS <<\EOF | |
2258 | for 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 | |
2306 | s%@configure_input@%$configure_input%g | |
2307 | s%@srcdir@%$srcdir%g | |
2308 | s%@top_srcdir@%$top_srcdir%g | |
2309 | s%@INSTALL@%$INSTALL%g | |
2310 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
2311 | fi; done | |
2312 | rm -f conftest.s* | |
2313 | ||
2314 | EOF | |
2315 | cat >> $CONFIG_STATUS <<EOF | |
2316 | ||
2317 | EOF | |
2318 | cat >> $CONFIG_STATUS <<\EOF | |
2319 | ||
2320 | exit 0 | |
2321 | EOF | |
2322 | chmod +x $CONFIG_STATUS | |
2323 | rm -fr confdefs* $ac_clean_files | |
2324 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2325 |