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