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