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