]>
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" |
1917875f TT |
24 | ac_help="$ac_help |
25 | --enable-compression enable EXPERIMENTAL compression support" | |
ff6dbcca TT |
26 | ac_help="$ac_help |
27 | --enable-old-evms use EVMS 1.0 ABI (instead of EVMS 1.1)" | |
50e1e10f | 28 | ac_help="$ac_help |
a4d09610 | 29 | --enable-dll-shlibs select DLL libraries" |
50e1e10f | 30 | ac_help="$ac_help |
a4d09610 | 31 | --enable-elf-shlibs select ELF shared libraries" |
50e1e10f | 32 | ac_help="$ac_help |
a4d09610 | 33 | --enable-bsd-shlibs select BSD shared libraries" |
80bfaa3e | 34 | ac_help="$ac_help |
cdf186e4 | 35 | --enable-profile build profiling libraries" |
877eb6d9 | 36 | ac_help="$ac_help |
cdf186e4 | 37 | --enable-checker build checker libraries" |
a64c9c13 | 38 | ac_help="$ac_help |
cdf186e4 | 39 | --enable-jfs-debug enable journal debugging" |
a64c9c13 | 40 | ac_help="$ac_help |
cdf186e4 | 41 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
a64c9c13 | 42 | ac_help="$ac_help |
cdf186e4 | 43 | --disable-debugfs disable support of debugfs program" |
50e1e10f | 44 | ac_help="$ac_help |
cdf186e4 | 45 | --disable-imager disable support of e2image program" |
50e1e10f | 46 | ac_help="$ac_help |
cdf186e4 | 47 | --disable-resizer disable support of e2resize program" |
a4d09610 TT |
48 | ac_help="$ac_help |
49 | --enable-dynamic-e2fsck build e2fsck dynamically" | |
fc6d9d51 TT |
50 | ac_help="$ac_help |
51 | --enable-fsck build fsck wrapper program" | |
52 | ac_help="$ac_help | |
53 | --enable-old-bitops Use old (non-standard but native) bitmask operations" | |
cdf186e4 TT |
54 | ac_help="$ac_help |
55 | --enable-nls Turn on Native Language Support" | |
56 | ac_help="$ac_help | |
57 | --with-included-gettext use the GNU gettext library included here" | |
58 | ac_help="$ac_help | |
59 | --with-catgets use catgets functions if available" | |
50e1e10f TT |
60 | |
61 | # Initialize some variables set by options. | |
62 | # The variables have the same names as the options, with | |
63 | # dashes changed to underlines. | |
64 | build=NONE | |
65 | cache_file=./config.cache | |
66 | exec_prefix=NONE | |
67 | host=NONE | |
68 | no_create= | |
69 | nonopt=NONE | |
70 | no_recursion= | |
71 | prefix=NONE | |
72 | program_prefix=NONE | |
73 | program_suffix=NONE | |
74 | program_transform_name=s,x,x, | |
75 | silent= | |
76 | site= | |
77 | srcdir= | |
78 | target=NONE | |
79 | verbose= | |
80 | x_includes=NONE | |
81 | x_libraries=NONE | |
21c84b71 TT |
82 | bindir='${exec_prefix}/bin' |
83 | sbindir='${exec_prefix}/sbin' | |
84 | libexecdir='${exec_prefix}/libexec' | |
85 | datadir='${prefix}/share' | |
86 | sysconfdir='${prefix}/etc' | |
87 | sharedstatedir='${prefix}/com' | |
88 | localstatedir='${prefix}/var' | |
89 | libdir='${exec_prefix}/lib' | |
90 | includedir='${prefix}/include' | |
91 | oldincludedir='/usr/include' | |
92 | infodir='${prefix}/info' | |
93 | mandir='${prefix}/man' | |
50e1e10f TT |
94 | |
95 | # Initialize some other variables. | |
96 | subdirs= | |
21c84b71 | 97 | MFLAGS= MAKEFLAGS= |
a4bf69d9 | 98 | SHELL=${CONFIG_SHELL-/bin/sh} |
21c84b71 TT |
99 | # Maximum number of lines to put in a shell here document. |
100 | ac_max_here_lines=12 | |
50e1e10f TT |
101 | |
102 | ac_prev= | |
103 | for ac_option | |
104 | do | |
105 | ||
106 | # If the previous option needs an argument, assign it. | |
107 | if test -n "$ac_prev"; then | |
108 | eval "$ac_prev=\$ac_option" | |
109 | ac_prev= | |
110 | continue | |
111 | fi | |
112 | ||
113 | case "$ac_option" in | |
114 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
115 | *) ac_optarg= ;; | |
116 | esac | |
117 | ||
118 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
119 | ||
120 | case "$ac_option" in | |
121 | ||
21c84b71 TT |
122 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
123 | ac_prev=bindir ;; | |
124 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
125 | bindir="$ac_optarg" ;; | |
126 | ||
127 | -build | --build | --buil | --bui | --bu) | |
50e1e10f | 128 | ac_prev=build ;; |
21c84b71 | 129 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
50e1e10f TT |
130 | build="$ac_optarg" ;; |
131 | ||
132 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
133 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
134 | ac_prev=cache_file ;; | |
135 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
136 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
137 | cache_file="$ac_optarg" ;; | |
138 | ||
21c84b71 TT |
139 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
140 | ac_prev=datadir ;; | |
141 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
142 | | --da=*) | |
143 | datadir="$ac_optarg" ;; | |
144 | ||
50e1e10f TT |
145 | -disable-* | --disable-*) |
146 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
147 | # Reject names that are not valid shell variable names. | |
148 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
149 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
150 | fi | |
151 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
152 | eval "enable_${ac_feature}=no" ;; | |
153 | ||
154 | -enable-* | --enable-*) | |
155 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
156 | # Reject names that are not valid shell variable names. | |
157 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
158 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
159 | fi | |
160 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
161 | case "$ac_option" in | |
162 | *=*) ;; | |
163 | *) ac_optarg=yes ;; | |
164 | esac | |
165 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
166 | ||
167 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
168 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
169 | | --exec | --exe | --ex) | |
170 | ac_prev=exec_prefix ;; | |
171 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
172 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
173 | | --exec=* | --exe=* | --ex=*) | |
174 | exec_prefix="$ac_optarg" ;; | |
175 | ||
176 | -gas | --gas | --ga | --g) | |
177 | # Obsolete; use --with-gas. | |
178 | with_gas=yes ;; | |
179 | ||
180 | -help | --help | --hel | --he) | |
181 | # Omit some internal or obsolete options to make the list less imposing. | |
182 | # This message is too long to be a string in the A/UX 3.1 sh. | |
183 | cat << EOF | |
184 | Usage: configure [options] [host] | |
185 | Options: [defaults in brackets after descriptions] | |
186 | Configuration: | |
187 | --cache-file=FILE cache test results in FILE | |
188 | --help print this message | |
189 | --no-create do not create output files | |
190 | --quiet, --silent do not print \`checking...' messages | |
191 | --version print the version of autoconf that created configure | |
192 | Directory and file names: | |
193 | --prefix=PREFIX install architecture-independent files in PREFIX | |
194 | [$ac_default_prefix] | |
21c84b71 | 195 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
50e1e10f | 196 | [same as prefix] |
21c84b71 TT |
197 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
198 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
199 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
200 | --datadir=DIR read-only architecture-independent data in DIR | |
201 | [PREFIX/share] | |
202 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
203 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
204 | [PREFIX/com] | |
205 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
206 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
207 | --includedir=DIR C header files in DIR [PREFIX/include] | |
208 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
209 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
210 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
50e1e10f TT |
211 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
212 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
213 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
21c84b71 TT |
214 | --program-transform-name=PROGRAM |
215 | run sed PROGRAM on installed program names | |
216 | EOF | |
217 | cat << EOF | |
50e1e10f TT |
218 | Host type: |
219 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
220 | --host=HOST configure for HOST [guessed] | |
221 | --target=TARGET configure for TARGET [TARGET=HOST] | |
222 | Features and packages: | |
223 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
224 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
225 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
226 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
227 | --x-includes=DIR X include files are in DIR | |
228 | --x-libraries=DIR X library files are in DIR | |
50e1e10f | 229 | EOF |
21c84b71 TT |
230 | if test -n "$ac_help"; then |
231 | echo "--enable and --with options recognized:$ac_help" | |
232 | fi | |
50e1e10f TT |
233 | exit 0 ;; |
234 | ||
235 | -host | --host | --hos | --ho) | |
236 | ac_prev=host ;; | |
237 | -host=* | --host=* | --hos=* | --ho=*) | |
238 | host="$ac_optarg" ;; | |
239 | ||
21c84b71 TT |
240 | -includedir | --includedir | --includedi | --included | --include \ |
241 | | --includ | --inclu | --incl | --inc) | |
242 | ac_prev=includedir ;; | |
243 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
244 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
245 | includedir="$ac_optarg" ;; | |
246 | ||
247 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
248 | ac_prev=infodir ;; | |
249 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
250 | infodir="$ac_optarg" ;; | |
251 | ||
252 | -libdir | --libdir | --libdi | --libd) | |
253 | ac_prev=libdir ;; | |
254 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
255 | libdir="$ac_optarg" ;; | |
256 | ||
257 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
258 | | --libexe | --libex | --libe) | |
259 | ac_prev=libexecdir ;; | |
260 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
261 | | --libexe=* | --libex=* | --libe=*) | |
262 | libexecdir="$ac_optarg" ;; | |
263 | ||
264 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
265 | | --localstate | --localstat | --localsta | --localst \ | |
266 | | --locals | --local | --loca | --loc | --lo) | |
267 | ac_prev=localstatedir ;; | |
268 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
269 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
270 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
271 | localstatedir="$ac_optarg" ;; | |
272 | ||
273 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
274 | ac_prev=mandir ;; | |
275 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
276 | mandir="$ac_optarg" ;; | |
277 | ||
50e1e10f TT |
278 | -nfp | --nfp | --nf) |
279 | # Obsolete; use --without-fp. | |
280 | with_fp=no ;; | |
281 | ||
282 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
283 | | --no-cr | --no-c) | |
284 | no_create=yes ;; | |
285 | ||
286 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
287 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
288 | no_recursion=yes ;; | |
289 | ||
21c84b71 TT |
290 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
291 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
292 | | --oldin | --oldi | --old | --ol | --o) | |
293 | ac_prev=oldincludedir ;; | |
294 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
295 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
296 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
297 | oldincludedir="$ac_optarg" ;; | |
298 | ||
50e1e10f TT |
299 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
300 | ac_prev=prefix ;; | |
301 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
302 | prefix="$ac_optarg" ;; | |
303 | ||
304 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
305 | | --program-pre | --program-pr | --program-p) | |
306 | ac_prev=program_prefix ;; | |
307 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
308 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
309 | program_prefix="$ac_optarg" ;; | |
310 | ||
311 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
312 | | --program-suf | --program-su | --program-s) | |
313 | ac_prev=program_suffix ;; | |
314 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
315 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
316 | program_suffix="$ac_optarg" ;; | |
317 | ||
318 | -program-transform-name | --program-transform-name \ | |
319 | | --program-transform-nam | --program-transform-na \ | |
320 | | --program-transform-n | --program-transform- \ | |
321 | | --program-transform | --program-transfor \ | |
322 | | --program-transfo | --program-transf \ | |
323 | | --program-trans | --program-tran \ | |
324 | | --progr-tra | --program-tr | --program-t) | |
325 | ac_prev=program_transform_name ;; | |
326 | -program-transform-name=* | --program-transform-name=* \ | |
327 | | --program-transform-nam=* | --program-transform-na=* \ | |
328 | | --program-transform-n=* | --program-transform-=* \ | |
329 | | --program-transform=* | --program-transfor=* \ | |
330 | | --program-transfo=* | --program-transf=* \ | |
331 | | --program-trans=* | --program-tran=* \ | |
332 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
333 | program_transform_name="$ac_optarg" ;; | |
334 | ||
335 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
336 | | -silent | --silent | --silen | --sile | --sil) | |
337 | silent=yes ;; | |
338 | ||
21c84b71 TT |
339 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
340 | ac_prev=sbindir ;; | |
341 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
342 | | --sbi=* | --sb=*) | |
343 | sbindir="$ac_optarg" ;; | |
344 | ||
345 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
346 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
347 | | --sharedst | --shareds | --shared | --share | --shar \ | |
348 | | --sha | --sh) | |
349 | ac_prev=sharedstatedir ;; | |
350 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
351 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
352 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
353 | | --sha=* | --sh=*) | |
354 | sharedstatedir="$ac_optarg" ;; | |
355 | ||
50e1e10f TT |
356 | -site | --site | --sit) |
357 | ac_prev=site ;; | |
358 | -site=* | --site=* | --sit=*) | |
359 | site="$ac_optarg" ;; | |
360 | ||
361 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
362 | ac_prev=srcdir ;; | |
363 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
364 | srcdir="$ac_optarg" ;; | |
365 | ||
21c84b71 TT |
366 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
367 | | --syscon | --sysco | --sysc | --sys | --sy) | |
368 | ac_prev=sysconfdir ;; | |
369 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
370 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
371 | sysconfdir="$ac_optarg" ;; | |
372 | ||
50e1e10f TT |
373 | -target | --target | --targe | --targ | --tar | --ta | --t) |
374 | ac_prev=target ;; | |
375 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
376 | target="$ac_optarg" ;; | |
377 | ||
378 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
379 | verbose=yes ;; | |
380 | ||
381 | -version | --version | --versio | --versi | --vers) | |
a4bf69d9 | 382 | echo "configure generated by autoconf version 2.13" |
50e1e10f TT |
383 | exit 0 ;; |
384 | ||
385 | -with-* | --with-*) | |
386 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
387 | # Reject names that are not valid shell variable names. | |
388 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
389 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
390 | fi | |
391 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
392 | case "$ac_option" in | |
393 | *=*) ;; | |
394 | *) ac_optarg=yes ;; | |
395 | esac | |
396 | eval "with_${ac_package}='$ac_optarg'" ;; | |
397 | ||
398 | -without-* | --without-*) | |
399 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
400 | # Reject names that are not valid shell variable names. | |
401 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
402 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
403 | fi | |
404 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
405 | eval "with_${ac_package}=no" ;; | |
406 | ||
407 | --x) | |
408 | # Obsolete; use --with-x. | |
409 | with_x=yes ;; | |
410 | ||
411 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
412 | | --x-incl | --x-inc | --x-in | --x-i) | |
413 | ac_prev=x_includes ;; | |
414 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
415 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
416 | x_includes="$ac_optarg" ;; | |
417 | ||
418 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
419 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
420 | ac_prev=x_libraries ;; | |
421 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
422 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
423 | x_libraries="$ac_optarg" ;; | |
424 | ||
425 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
426 | ;; | |
427 | ||
21c84b71 | 428 | *) |
50e1e10f TT |
429 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
430 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
431 | fi | |
432 | if test "x$nonopt" != xNONE; then | |
433 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
434 | fi | |
435 | nonopt="$ac_option" | |
436 | ;; | |
437 | ||
438 | esac | |
439 | done | |
440 | ||
441 | if test -n "$ac_prev"; then | |
442 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
443 | fi | |
444 | ||
445 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
446 | ||
447 | # File descriptor usage: | |
448 | # 0 standard input | |
449 | # 1 file creation | |
450 | # 2 errors and warnings | |
451 | # 3 some systems may open it to /dev/tty | |
452 | # 4 used on the Kubota Titan | |
453 | # 6 checking for... messages and results | |
454 | # 5 compiler messages saved in config.log | |
455 | if test "$silent" = yes; then | |
456 | exec 6>/dev/null | |
457 | else | |
458 | exec 6>&1 | |
459 | fi | |
460 | exec 5>./config.log | |
461 | ||
462 | echo "\ | |
463 | This file contains any messages produced by compilers while | |
464 | running configure, to aid debugging if configure makes a mistake. | |
465 | " 1>&5 | |
466 | ||
467 | # Strip out --no-create and --no-recursion so they do not pile up. | |
468 | # Also quote any args containing shell metacharacters. | |
469 | ac_configure_args= | |
470 | for ac_arg | |
471 | do | |
472 | case "$ac_arg" in | |
473 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
474 | | --no-cr | --no-c) ;; | |
475 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
476 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
477 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
478 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
479 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
480 | esac | |
481 | done | |
482 | ||
483 | # NLS nuisances. | |
21c84b71 TT |
484 | # Only set these to C if already set. These must not be set unconditionally |
485 | # because not all systems understand e.g. LANG=C (notably SCO). | |
486 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
487 | # Non-C LC_CTYPE values break the ctype check. | |
50e1e10f | 488 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
21c84b71 TT |
489 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
490 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
491 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
50e1e10f TT |
492 | |
493 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
494 | rm -rf conftest* confdefs.h | |
495 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
496 | echo > confdefs.h | |
497 | ||
498 | # A filename unique to this package, relative to the directory that | |
499 | # configure is in, which we can look for to find out if srcdir is correct. | |
500 | ac_unique_file=version.h | |
501 | ||
502 | # Find the source files, if location was not specified. | |
503 | if test -z "$srcdir"; then | |
504 | ac_srcdir_defaulted=yes | |
505 | # Try the directory containing this script, then its parent. | |
506 | ac_prog=$0 | |
507 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
508 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
509 | srcdir=$ac_confdir | |
510 | if test ! -r $srcdir/$ac_unique_file; then | |
511 | srcdir=.. | |
512 | fi | |
513 | else | |
514 | ac_srcdir_defaulted=no | |
515 | fi | |
516 | if test ! -r $srcdir/$ac_unique_file; then | |
517 | if test "$ac_srcdir_defaulted" = yes; then | |
518 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
519 | else | |
520 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
521 | fi | |
522 | fi | |
523 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
524 | ||
525 | # Prefer explicitly selected file to automatically selected ones. | |
526 | if test -z "$CONFIG_SITE"; then | |
527 | if test "x$prefix" != xNONE; then | |
528 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
529 | else | |
530 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
531 | fi | |
532 | fi | |
533 | for ac_site_file in $CONFIG_SITE; do | |
534 | if test -r "$ac_site_file"; then | |
535 | echo "loading site script $ac_site_file" | |
536 | . "$ac_site_file" | |
537 | fi | |
538 | done | |
539 | ||
540 | if test -r "$cache_file"; then | |
541 | echo "loading cache $cache_file" | |
542 | . $cache_file | |
543 | else | |
544 | echo "creating cache $cache_file" | |
545 | > $cache_file | |
546 | fi | |
547 | ||
548 | ac_ext=c | |
549 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
550 | ac_cpp='$CPP $CPPFLAGS' | |
21c84b71 | 551 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
a4bf69d9 | 552 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
21c84b71 | 553 | cross_compiling=$ac_cv_prog_cc_cross |
50e1e10f | 554 | |
a4bf69d9 TT |
555 | ac_exeext= |
556 | ac_objext=o | |
50e1e10f TT |
557 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
558 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
559 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
560 | ac_n= ac_c=' | |
561 | ' ac_t=' ' | |
562 | else | |
563 | ac_n=-n ac_c= ac_t= | |
564 | fi | |
565 | else | |
566 | ac_n= ac_c='\c' ac_t= | |
567 | fi | |
568 | ||
569 | ||
a4b2d3ce | 570 | |
50e1e10f TT |
571 | MCONFIG=./MCONFIG |
572 | ||
74becf3c TT |
573 | BINARY_TYPE=bin |
574 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
575 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
576 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
577 | | tr \" " "` | |
578 | MONTH=`echo $DATE | awk -F- '{print $2}'` | |
579 | YEAR=`echo $DATE | awk -F- '{print $3}'` | |
580 | ||
14790ed7 TT |
581 | if expr $YEAR ">" 1900 > /dev/null ; then |
582 | E2FSPROGS_YEAR=$YEAR | |
583 | elif expr $YEAR ">" 90 >/dev/null ; then | |
74becf3c TT |
584 | E2FSPROGS_YEAR=19$YEAR |
585 | else | |
586 | E2FSPROGS_YEAR=20$YEAR | |
587 | fi | |
588 | ||
589 | case $MONTH in | |
590 | Jan) E2FSPROGS_MONTH="January" ;; | |
591 | Feb) E2FSPROGS_MONTH="February" ;; | |
592 | Mar) E2FSPROGS_MONTH="March" ;; | |
593 | Apr) E2FSPROGS_MONTH="April" ;; | |
594 | May) E2FSPROGS_MONTH="May" ;; | |
595 | Jun) E2FSPROGS_MONTH="June" ;; | |
596 | Jul) E2FSPROGS_MONTH="July" ;; | |
597 | Aug) E2FSPROGS_MONTH="August" ;; | |
598 | Sep) E2FSPROGS_MONTH="September" ;; | |
599 | Oct) E2FSPROGS_MONTH="October" ;; | |
600 | Nov) E2FSPROGS_MONTH="November" ;; | |
601 | Dec) E2FSPROGS_MONTH="December" ;; | |
602 | *) echo "Unknown month $MONTH??" ;; | |
603 | esac | |
604 | ||
605 | unset DATE MONTH YEAR | |
606 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" | |
607 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" | |
608 | ||
609 | ||
610 | ||
fc6d9d51 TT |
611 | ac_aux_dir= |
612 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
613 | if test -f $ac_dir/install-sh; then | |
614 | ac_aux_dir=$ac_dir | |
615 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
616 | break | |
617 | elif test -f $ac_dir/install.sh; then | |
618 | ac_aux_dir=$ac_dir | |
619 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
620 | break | |
621 | fi | |
622 | done | |
623 | if test -z "$ac_aux_dir"; then | |
624 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
625 | fi | |
626 | ac_config_guess=$ac_aux_dir/config.guess | |
627 | ac_config_sub=$ac_aux_dir/config.sub | |
628 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
629 | ||
630 | ||
631 | # Make sure we can run config.sub. | |
a4bf69d9 | 632 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
fc6d9d51 TT |
633 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
634 | fi | |
635 | ||
636 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
ff6dbcca | 637 | echo "configure:638: checking host system type" >&5 |
fc6d9d51 TT |
638 | |
639 | host_alias=$host | |
640 | case "$host_alias" in | |
641 | NONE) | |
642 | case $nonopt in | |
643 | NONE) | |
a4bf69d9 | 644 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
fc6d9d51 TT |
645 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
646 | fi ;; | |
647 | *) host_alias=$nonopt ;; | |
648 | esac ;; | |
649 | esac | |
650 | ||
a4bf69d9 | 651 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
21c84b71 TT |
652 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
653 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
654 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
fc6d9d51 TT |
655 | echo "$ac_t""$host" 1>&6 |
656 | ||
74becf3c | 657 | # Check whether --with-cc or --without-cc was given. |
21c84b71 TT |
658 | if test "${with_cc+set}" = set; then |
659 | withval="$with_cc" | |
74becf3c TT |
660 | echo "$ac_t""CC=$withval" 1>&6 |
661 | CC=$withval | |
662 | else | |
663 | if test -z "$CC" ; then CC=cc; fi | |
664 | echo "$ac_t""CC defaults to $CC" 1>&6 | |
665 | fi | |
666 | export CC | |
667 | ||
73ae2d4a TT |
668 | # Extract the first word of "gcc", so it can be a program name with args. |
669 | set dummy gcc; ac_word=$2 | |
670 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 671 | echo "configure:672: checking for $ac_word" >&5 |
73ae2d4a TT |
672 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
674 | else | |
675 | if test -n "$CC"; then | |
676 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
677 | else | |
678 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
679 | ac_dummy="$PATH" | |
680 | for ac_dir in $ac_dummy; do | |
681 | test -z "$ac_dir" && ac_dir=. | |
682 | if test -f $ac_dir/$ac_word; then | |
683 | ac_cv_prog_CC="gcc" | |
684 | break | |
685 | fi | |
686 | done | |
687 | IFS="$ac_save_ifs" | |
688 | fi | |
689 | fi | |
690 | CC="$ac_cv_prog_CC" | |
691 | if test -n "$CC"; then | |
692 | echo "$ac_t""$CC" 1>&6 | |
693 | else | |
694 | echo "$ac_t""no" 1>&6 | |
695 | fi | |
696 | ||
697 | if test -z "$CC"; then | |
698 | # Extract the first word of "cc", so it can be a program name with args. | |
699 | set dummy cc; ac_word=$2 | |
700 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 701 | echo "configure:702: checking for $ac_word" >&5 |
73ae2d4a TT |
702 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
704 | else | |
705 | if test -n "$CC"; then | |
706 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
707 | else | |
708 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
709 | ac_prog_rejected=no | |
710 | ac_dummy="$PATH" | |
711 | for ac_dir in $ac_dummy; do | |
712 | test -z "$ac_dir" && ac_dir=. | |
713 | if test -f $ac_dir/$ac_word; then | |
714 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
715 | ac_prog_rejected=yes | |
716 | continue | |
717 | fi | |
718 | ac_cv_prog_CC="cc" | |
719 | break | |
720 | fi | |
721 | done | |
722 | IFS="$ac_save_ifs" | |
723 | if test $ac_prog_rejected = yes; then | |
724 | # We found a bogon in the path, so make sure we never use it. | |
725 | set dummy $ac_cv_prog_CC | |
726 | shift | |
727 | if test $# -gt 0; then | |
728 | # We chose a different compiler from the bogus one. | |
729 | # However, it has the same basename, so the bogon will be chosen | |
730 | # first if we set CC to just the basename; use the full file name. | |
731 | shift | |
732 | set dummy "$ac_dir/$ac_word" "$@" | |
733 | shift | |
734 | ac_cv_prog_CC="$@" | |
735 | fi | |
736 | fi | |
737 | fi | |
738 | fi | |
739 | CC="$ac_cv_prog_CC" | |
740 | if test -n "$CC"; then | |
741 | echo "$ac_t""$CC" 1>&6 | |
742 | else | |
743 | echo "$ac_t""no" 1>&6 | |
744 | fi | |
745 | ||
746 | if test -z "$CC"; then | |
747 | case "`uname -s`" in | |
748 | *win32* | *WIN32*) | |
749 | # Extract the first word of "cl", so it can be a program name with args. | |
750 | set dummy cl; ac_word=$2 | |
751 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 752 | echo "configure:753: checking for $ac_word" >&5 |
73ae2d4a TT |
753 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
755 | else | |
756 | if test -n "$CC"; then | |
757 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
758 | else | |
759 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
760 | ac_dummy="$PATH" | |
761 | for ac_dir in $ac_dummy; do | |
762 | test -z "$ac_dir" && ac_dir=. | |
763 | if test -f $ac_dir/$ac_word; then | |
764 | ac_cv_prog_CC="cl" | |
765 | break | |
766 | fi | |
767 | done | |
768 | IFS="$ac_save_ifs" | |
769 | fi | |
770 | fi | |
771 | CC="$ac_cv_prog_CC" | |
772 | if test -n "$CC"; then | |
773 | echo "$ac_t""$CC" 1>&6 | |
774 | else | |
775 | echo "$ac_t""no" 1>&6 | |
776 | fi | |
777 | ;; | |
778 | esac | |
779 | fi | |
780 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
781 | fi | |
782 | ||
783 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
ff6dbcca | 784 | echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
73ae2d4a TT |
785 | |
786 | ac_ext=c | |
787 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
788 | ac_cpp='$CPP $CPPFLAGS' | |
789 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
790 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
791 | cross_compiling=$ac_cv_prog_cc_cross | |
792 | ||
793 | cat > conftest.$ac_ext << EOF | |
794 | ||
ff6dbcca | 795 | #line 796 "configure" |
73ae2d4a TT |
796 | #include "confdefs.h" |
797 | ||
798 | main(){return(0);} | |
799 | EOF | |
ff6dbcca | 800 | if { (eval echo configure:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
73ae2d4a TT |
801 | ac_cv_prog_cc_works=yes |
802 | # If we can't run a trivial program, we are probably using a cross compiler. | |
803 | if (./conftest; exit) 2>/dev/null; then | |
804 | ac_cv_prog_cc_cross=no | |
805 | else | |
806 | ac_cv_prog_cc_cross=yes | |
807 | fi | |
808 | else | |
809 | echo "configure: failed program was:" >&5 | |
810 | cat conftest.$ac_ext >&5 | |
811 | ac_cv_prog_cc_works=no | |
812 | fi | |
813 | rm -fr conftest* | |
814 | ac_ext=c | |
815 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
816 | ac_cpp='$CPP $CPPFLAGS' | |
817 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
818 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
819 | cross_compiling=$ac_cv_prog_cc_cross | |
820 | ||
821 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
822 | if test $ac_cv_prog_cc_works = no; then | |
823 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
824 | fi | |
825 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
ff6dbcca | 826 | echo "configure:827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
73ae2d4a TT |
827 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
828 | cross_compiling=$ac_cv_prog_cc_cross | |
829 | ||
830 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
ff6dbcca | 831 | echo "configure:832: checking whether we are using GNU C" >&5 |
73ae2d4a TT |
832 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
834 | else | |
835 | cat > conftest.c <<EOF | |
836 | #ifdef __GNUC__ | |
837 | yes; | |
838 | #endif | |
839 | EOF | |
ff6dbcca | 840 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
73ae2d4a TT |
841 | ac_cv_prog_gcc=yes |
842 | else | |
843 | ac_cv_prog_gcc=no | |
844 | fi | |
845 | fi | |
846 | ||
847 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
848 | ||
849 | if test $ac_cv_prog_gcc = yes; then | |
850 | GCC=yes | |
851 | else | |
852 | GCC= | |
853 | fi | |
854 | ||
855 | ac_test_CFLAGS="${CFLAGS+set}" | |
856 | ac_save_CFLAGS="$CFLAGS" | |
857 | CFLAGS= | |
858 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
ff6dbcca | 859 | echo "configure:860: checking whether ${CC-cc} accepts -g" >&5 |
73ae2d4a TT |
860 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
862 | else | |
863 | echo 'void f(){}' > conftest.c | |
864 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
865 | ac_cv_prog_cc_g=yes | |
866 | else | |
867 | ac_cv_prog_cc_g=no | |
868 | fi | |
869 | rm -f conftest* | |
870 | ||
871 | fi | |
872 | ||
873 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
874 | if test "$ac_test_CFLAGS" = set; then | |
875 | CFLAGS="$ac_save_CFLAGS" | |
876 | elif test $ac_cv_prog_cc_g = yes; then | |
877 | if test "$GCC" = yes; then | |
878 | CFLAGS="-g -O2" | |
879 | else | |
880 | CFLAGS="-g" | |
881 | fi | |
882 | else | |
883 | if test "$GCC" = yes; then | |
884 | CFLAGS="-O2" | |
885 | else | |
886 | CFLAGS= | |
887 | fi | |
888 | fi | |
889 | ||
74becf3c | 890 | # Check whether --with-linker or --without-linker was given. |
21c84b71 TT |
891 | if test "${with_linker+set}" = set; then |
892 | withval="$with_linker" | |
74becf3c TT |
893 | echo "$ac_t""LD=$withval" 1>&6 |
894 | LD=$withval | |
895 | else | |
896 | if test -z "$LD" ; then LD=$CC; fi | |
897 | echo "$ac_t""LD defaults to $LD" 1>&6 | |
898 | fi | |
a64c9c13 TT |
899 | export LD |
900 | ||
901 | # Check whether --with-ccopts or --without-ccopts was given. | |
902 | if test "${with_ccopts+set}" = set; then | |
903 | withval="$with_ccopts" | |
904 | echo "$ac_t""CCOPTS is $withval" 1>&6 | |
877eb6d9 | 905 | CFLAGS=$withval |
a64c9c13 | 906 | fi |
a64c9c13 | 907 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
ff6dbcca | 908 | echo "configure:909: checking how to run the C preprocessor" >&5 |
a64c9c13 TT |
909 | # On Suns, sometimes $CPP names a directory. |
910 | if test -n "$CPP" && test -d "$CPP"; then | |
911 | CPP= | |
912 | fi | |
913 | if test -z "$CPP"; then | |
914 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
916 | else | |
917 | # This must be in double quotes, not single quotes, because CPP may get | |
918 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
919 | CPP="${CC-cc} -E" | |
920 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
921 | # not just through cpp. | |
922 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 923 | #line 924 "configure" |
a64c9c13 TT |
924 | #include "confdefs.h" |
925 | #include <assert.h> | |
926 | Syntax Error | |
927 | EOF | |
928 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 929 | { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
930 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
931 | if test -z "$ac_err"; then | |
932 | : | |
933 | else | |
934 | echo "$ac_err" >&5 | |
935 | echo "configure: failed program was:" >&5 | |
936 | cat conftest.$ac_ext >&5 | |
937 | rm -rf conftest* | |
938 | CPP="${CC-cc} -E -traditional-cpp" | |
939 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 940 | #line 941 "configure" |
a64c9c13 TT |
941 | #include "confdefs.h" |
942 | #include <assert.h> | |
943 | Syntax Error | |
944 | EOF | |
945 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 946 | { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
947 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
948 | if test -z "$ac_err"; then | |
949 | : | |
950 | else | |
951 | echo "$ac_err" >&5 | |
952 | echo "configure: failed program was:" >&5 | |
953 | cat conftest.$ac_ext >&5 | |
954 | rm -rf conftest* | |
955 | CPP="${CC-cc} -nologo -E" | |
956 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 957 | #line 958 "configure" |
a64c9c13 TT |
958 | #include "confdefs.h" |
959 | #include <assert.h> | |
960 | Syntax Error | |
961 | EOF | |
962 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 963 | { (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
964 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
965 | if test -z "$ac_err"; then | |
966 | : | |
967 | else | |
968 | echo "$ac_err" >&5 | |
969 | echo "configure: failed program was:" >&5 | |
970 | cat conftest.$ac_ext >&5 | |
971 | rm -rf conftest* | |
972 | CPP=/lib/cpp | |
973 | fi | |
974 | rm -f conftest* | |
975 | fi | |
976 | rm -f conftest* | |
977 | fi | |
978 | rm -f conftest* | |
979 | ac_cv_prog_CPP="$CPP" | |
980 | fi | |
981 | CPP="$ac_cv_prog_CPP" | |
982 | else | |
983 | ac_cv_prog_CPP="$CPP" | |
984 | fi | |
985 | echo "$ac_t""$CPP" 1>&6 | |
986 | ||
987 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` | |
988 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 | |
ff6dbcca | 989 | echo "configure:990: checking for linux/fs.h" >&5 |
a64c9c13 TT |
990 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
992 | else | |
993 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 994 | #line 995 "configure" |
a64c9c13 TT |
995 | #include "confdefs.h" |
996 | #include <linux/fs.h> | |
997 | EOF | |
998 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 999 | { (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
1000 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1001 | if test -z "$ac_err"; then | |
1002 | rm -rf conftest* | |
1003 | eval "ac_cv_header_$ac_safe=yes" | |
1004 | else | |
1005 | echo "$ac_err" >&5 | |
1006 | echo "configure: failed program was:" >&5 | |
1007 | cat conftest.$ac_ext >&5 | |
1008 | rm -rf conftest* | |
1009 | eval "ac_cv_header_$ac_safe=no" | |
1010 | fi | |
1011 | rm -f conftest* | |
1012 | fi | |
1013 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1014 | echo "$ac_t""yes" 1>&6 | |
1015 | linux_headers=yes | |
1016 | else | |
1017 | echo "$ac_t""no" 1>&6 | |
1018 | linux_headers=no | |
1019 | fi | |
1020 | ||
1021 | if test "$linux_headers" != yes; then | |
1022 | LINUX_INCLUDE='-I$(top_builddir)/include' | |
1023 | fi | |
1024 | ||
1025 | LIB_EXT=.a | |
1026 | STATIC_LIB_EXT=.a | |
1027 | PROFILE_LIB_EXT=.a | |
1028 | # Check whether --with-ldopts or --without-ldopts was given. | |
1029 | if test "${with_ldopts+set}" = set; then | |
1030 | withval="$with_ldopts" | |
1031 | echo "$ac_t""LDFLAGS is $withval" 1>&6 | |
1032 | LDFLAGS=$withval | |
1033 | else | |
1034 | LDFLAGS= | |
1035 | fi | |
1036 | ||
1037 | # Check whether --with-root-prefix or --without-root-prefix was given. | |
1038 | if test "${with_root_prefix+set}" = set; then | |
1039 | withval="$with_root_prefix" | |
1040 | root_prefix=$withval | |
1041 | else | |
1042 | root_prefix=NONE | |
1043 | fi | |
1917875f TT |
1044 | # Check whether --enable-compression or --disable-compression was given. |
1045 | if test "${enable_compression+set}" = set; then | |
1046 | enableval="$enable_compression" | |
1047 | if test "$enableval" = "no" | |
1048 | then | |
1049 | echo "Disabling compression support" | |
1050 | else | |
1051 | cat >> confdefs.h <<\EOF | |
1052 | #define ENABLE_COMPRESSION 1 | |
1053 | EOF | |
1054 | ||
1055 | echo "Enabling compression support" | |
1056 | echo "WARNING: Compression support is experimental" | |
1057 | fi | |
1058 | ||
1059 | else | |
1060 | echo "Disabling compression support by default" | |
1061 | ||
1062 | fi | |
1063 | ||
ff6dbcca TT |
1064 | # Check whether --enable-old-evms or --disable-old-evms was given. |
1065 | if test "${enable_old_evms+set}" = set; then | |
1066 | enableval="$enable_old_evms" | |
1067 | if test "$enableval" = "no" | |
1068 | then | |
1069 | echo "Using EVMS 1.1.0 ABI" | |
1070 | else | |
1071 | cat >> confdefs.h <<\EOF | |
1072 | #define ABI_EVMS_1_0 1 | |
1073 | EOF | |
1074 | ||
1075 | echo "Enabling EVMS 1.0.0 ABI" | |
1076 | fi | |
1077 | ||
1078 | else | |
1079 | echo "Using EVMS 1.1.0 ABI by default" | |
1080 | ||
1081 | fi | |
1082 | ||
a64c9c13 TT |
1083 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
1084 | if test "${enable_dll_shlibs+set}" = set; then | |
1085 | enableval="$enable_dll_shlibs" | |
1086 | if test "$enableval" = "no" | |
1087 | then | |
1088 | DLL_CMT=# | |
1089 | MAKEFILE_DLL=/dev/null | |
1090 | echo "Disabling DLL shared libraries" | |
1091 | else | |
1092 | DLL_CMT= | |
1093 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib | |
1094 | BINARY_TYPE=dllbin | |
1095 | LIB_EXT=.sa | |
1096 | echo "Enabling DLL shared libraries" | |
1097 | fi | |
1098 | ||
1099 | else | |
1100 | MAKEFILE_DLL=/dev/null | |
1101 | DLL_CMT=# | |
1102 | echo "Disabling DLL shared libraries by default" | |
1103 | ||
1104 | fi | |
1105 | ||
1106 | ||
1107 | ||
1108 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. | |
1109 | if test "${enable_elf_shlibs+set}" = set; then | |
1110 | enableval="$enable_elf_shlibs" | |
1111 | if test "$enableval" = "no" | |
1112 | then | |
1113 | ELF_CMT=# | |
1114 | MAKEFILE_ELF=/dev/null | |
1115 | echo "Disabling ELF shared libraries" | |
1116 | else | |
1117 | ELF_CMT= | |
1118 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
f5955dda TT |
1119 | case "$host_os" in |
1120 | solaris2.*) | |
1121 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
1122 | ;; | |
1123 | esac | |
a64c9c13 TT |
1124 | BINARY_TYPE=elfbin |
1125 | LIB_EXT=.so | |
1126 | echo "Enabling ELF shared libraries" | |
1127 | fi | |
1128 | ||
1129 | else | |
1130 | MAKEFILE_ELF=/dev/null | |
1131 | ELF_CMT=# | |
1132 | echo "Disabling ELF shared libraries by default" | |
1133 | ||
1134 | fi | |
1135 | ||
1136 | ||
1137 | ||
1138 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. | |
1139 | if test "${enable_bsd_shlibs+set}" = set; then | |
1140 | enableval="$enable_bsd_shlibs" | |
1141 | if test "$enableval" = "no" | |
1142 | then | |
1143 | BSDLIB_CMT=# | |
1144 | MAKEFILE_BSDLIB=/dev/null | |
1145 | echo "Disabling BSD shared libraries" | |
1146 | else | |
1147 | BSDLIB_CMT= | |
1148 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
1149 | LIB_EXT=.so | |
1150 | echo "Enabling BSD shared libraries" | |
1151 | fi | |
1152 | ||
1153 | else | |
1154 | MAKEFILE_BSDLIB=/dev/null | |
1155 | BSDLIB_CMT=# | |
1156 | echo "Disabling BSD shared libraries by default" | |
1157 | ||
1158 | fi | |
1159 | ||
1160 | ||
1161 | ||
cdf186e4 TT |
1162 | # Check whether --enable-profile or --disable-profile was given. |
1163 | if test "${enable_profile+set}" = set; then | |
1164 | enableval="$enable_profile" | |
1165 | if test "$enableval" = "no" | |
1166 | then | |
1167 | PROFILE_CMT=# | |
1168 | MAKEFILE_PROFILE=/dev/null | |
1169 | echo "Disabling profiling libraries" | |
1170 | else | |
1171 | PROFILE_CMT= | |
1172 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
1173 | PROFILED_LIB_EXT=_p.a | |
1174 | echo "Building profiling libraries" | |
1175 | fi | |
1176 | ||
1177 | else | |
1178 | PROFILE_CMT=# | |
1179 | MAKEFILE_PROFILE=/dev/null | |
1180 | echo "Disabling profiling libraries by default" | |
1181 | ||
1182 | fi | |
1183 | ||
1184 | ||
1185 | ||
1186 | # Check whether --enable-checker or --disable-checker was given. | |
1187 | if test "${enable_checker+set}" = set; then | |
1188 | enableval="$enable_checker" | |
1189 | if test "$enableval" = "no" | |
1190 | then | |
1191 | CHECKER_CMT=# | |
1192 | MAKEFILE_CHECKER=/dev/null | |
1193 | echo "Disabling checker libraries" | |
1194 | else | |
1195 | CHECKER_CMT= | |
1196 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | |
1197 | echo "Building checker libraries" | |
1198 | fi | |
1199 | ||
1200 | else | |
1201 | CHECKER_CMT=# | |
1202 | MAKEFILE_CHECKER=/dev/null | |
1203 | echo "Disabling checker libraries by default" | |
1204 | ||
1205 | fi | |
1206 | ||
1207 | ||
1208 | ||
1209 | ||
1210 | ||
1211 | ||
80bfaa3e TT |
1212 | # Check whether --enable-jfs-debug or --disable-jfs-debug was given. |
1213 | if test "${enable_jfs_debug+set}" = set; then | |
1214 | enableval="$enable_jfs_debug" | |
1215 | if test "$enableval" = "no" | |
1216 | then | |
1217 | echo "Disabling journal debugging" | |
1218 | else | |
1219 | cat >> confdefs.h <<\EOF | |
8cf93332 | 1220 | #define CONFIG_JBD_DEBUG 1 |
80bfaa3e TT |
1221 | EOF |
1222 | ||
1223 | echo "Enabling journal debugging" | |
1224 | fi | |
1225 | ||
1226 | else | |
1227 | echo "Disabling journal debugging by default" | |
1228 | ||
1229 | fi | |
1230 | ||
877eb6d9 TT |
1231 | # Check whether --enable-swapfs or --disable-swapfs was given. |
1232 | if test "${enable_swapfs+set}" = set; then | |
1233 | enableval="$enable_swapfs" | |
1234 | if test "$enableval" = "no" | |
1235 | then | |
1236 | echo "Disabling swapfs support" | |
877eb6d9 TT |
1237 | else |
1238 | cat >> confdefs.h <<\EOF | |
1239 | #define ENABLE_SWAPFS 1 | |
1240 | EOF | |
1241 | ||
877eb6d9 TT |
1242 | echo "Enabling swapfs support" |
1243 | fi | |
1244 | ||
1245 | else | |
1246 | echo "Enabling swapfs support by default" | |
1247 | cat >> confdefs.h <<\EOF | |
1248 | #define ENABLE_SWAPFS 1 | |
1249 | EOF | |
1250 | ||
877eb6d9 TT |
1251 | |
1252 | fi | |
1253 | ||
cdf186e4 TT |
1254 | # Check whether --enable-debugfs or --disable-debugfs was given. |
1255 | if test "${enable_debugfs+set}" = set; then | |
1256 | enableval="$enable_debugfs" | |
1257 | if test "$enableval" = "no" | |
1258 | then | |
1259 | echo "Disabling debugfs support" | |
1260 | DEBUGFS_CMT="#" | |
1261 | else | |
cdf186e4 TT |
1262 | DEBUGFS_CMT= |
1263 | echo "Enabling debugfs support" | |
1264 | fi | |
1265 | ||
1266 | else | |
1267 | echo "Enabling debugfs support by default" | |
cdf186e4 TT |
1268 | DEBUGFS_CMT= |
1269 | ||
1270 | fi | |
1271 | ||
1272 | ||
1273 | # Check whether --enable-imager or --disable-imager was given. | |
1274 | if test "${enable_imager+set}" = set; then | |
1275 | enableval="$enable_imager" | |
1276 | if test "$enableval" = "no" | |
1277 | then | |
1278 | echo "Disabling e2image support" | |
1279 | IMAGER_CMT="#" | |
1280 | else | |
cdf186e4 TT |
1281 | IMAGER_CMT= |
1282 | echo "Enabling e2image support" | |
1283 | fi | |
1284 | ||
1285 | else | |
1286 | echo "Enabling e2image support by default" | |
cdf186e4 TT |
1287 | IMAGER_CMT= |
1288 | ||
1289 | fi | |
1290 | ||
1291 | ||
1292 | # Check whether --enable-resizer or --disable-resizer was given. | |
1293 | if test "${enable_resizer+set}" = set; then | |
1294 | enableval="$enable_resizer" | |
1295 | if test "$enableval" = "no" | |
1296 | then | |
1297 | echo "Disabling e2resize support" | |
1298 | RESIZER_CMT="#" | |
1299 | else | |
cdf186e4 TT |
1300 | RESIZER_CMT= |
1301 | echo "Enabling e2resize support" | |
1302 | fi | |
1303 | ||
1304 | else | |
1305 | echo "Enabling e2resize support by default" | |
cdf186e4 TT |
1306 | RESIZER_CMT= |
1307 | ||
1308 | fi | |
1309 | ||
1310 | ||
1311 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. | |
1312 | if test "${enable_dynamic_e2fsck+set}" = set; then | |
1313 | enableval="$enable_dynamic_e2fsck" | |
1314 | if test "$enableval" = "no" | |
1315 | then | |
1316 | E2FSCK_TYPE=static | |
1317 | echo "Building e2fsck statically" | |
1318 | else | |
1319 | E2FSCK_TYPE=shared | |
1320 | echo "Building e2fsck dynamically" | |
1321 | fi | |
1322 | ||
1323 | else | |
1324 | E2FSCK_TYPE=static | |
1325 | echo "Building e2fsck statically by default" | |
1326 | ||
1327 | fi | |
1328 | ||
1329 | ||
1330 | # Check whether --enable-fsck or --disable-fsck was given. | |
1331 | if test "${enable_fsck+set}" = set; then | |
1332 | enableval="$enable_fsck" | |
1333 | if test "$enableval" = "no" | |
1334 | then | |
1335 | FSCK_PROG='' FSCK_MAN='' | |
1336 | echo "Not building fsck wrapper" | |
1337 | else | |
1338 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
1339 | echo "Building fsck wrapper" | |
1340 | fi | |
1341 | ||
1342 | else | |
1343 | case "$host_os" in | |
1344 | gnu*) | |
1345 | FSCK_PROG='' FSCK_MAN='' | |
1346 | echo "Not building fsck wrapper by default" | |
1347 | ;; | |
1348 | *) | |
1349 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
1350 | echo "Building fsck wrapper by default" | |
1351 | esac | |
1352 | ||
1353 | fi | |
1354 | ||
1355 | ||
1356 | ||
1357 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library | |
1358 | ||
1359 | # Check whether --enable-old-bitops or --disable-old-bitops was given. | |
1360 | if test "${enable_old_bitops+set}" = set; then | |
1361 | enableval="$enable_old_bitops" | |
1362 | if test "$enableval" = "no" | |
1363 | then | |
1364 | echo "Using new (standard) bitmask operations" | |
1365 | else | |
1366 | cat >> confdefs.h <<\EOF | |
1367 | #define EXT2_OLD_BITOPS 1 | |
1368 | EOF | |
1369 | ||
1370 | echo "Using old (native) bitmask operations" | |
1371 | ||
1372 | fi | |
1373 | ||
1374 | else | |
1375 | echo "Using standard bitmask operations by default" | |
1376 | ||
1377 | fi | |
877eb6d9 | 1378 | |
a64c9c13 TT |
1379 | PACKAGE=e2fsprogs |
1380 | VERSION="$E2FSPROGS_VERSION" | |
1381 | cat >> confdefs.h <<EOF | |
1382 | #define PACKAGE "$PACKAGE" | |
1383 | EOF | |
1384 | ||
1385 | cat >> confdefs.h <<EOF | |
1386 | #define VERSION "$VERSION" | |
1387 | EOF | |
1388 | ||
1389 | ||
1390 | ||
1391 | ||
6e71e67b | 1392 | ALL_LINGUAS="it nyc tr" |
a64c9c13 | 1393 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
ff6dbcca | 1394 | echo "configure:1395: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a64c9c13 TT |
1395 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1396 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1398 | else | |
1399 | cat > conftestmake <<\EOF | |
1400 | all: | |
1401 | @echo 'ac_maketemp="${MAKE}"' | |
1402 | EOF | |
1403 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1404 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1405 | if test -n "$ac_maketemp"; then | |
1406 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1407 | else | |
1408 | eval ac_cv_prog_make_${ac_make}_set=no | |
1409 | fi | |
1410 | rm -f conftestmake | |
1411 | fi | |
1412 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1413 | echo "$ac_t""yes" 1>&6 | |
1414 | SET_MAKE= | |
1415 | else | |
1416 | echo "$ac_t""no" 1>&6 | |
1417 | SET_MAKE="MAKE=${MAKE-make}" | |
1418 | fi | |
1419 | ||
1420 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1421 | set dummy ranlib; ac_word=$2 | |
1422 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 1423 | echo "configure:1424: checking for $ac_word" >&5 |
a64c9c13 TT |
1424 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1426 | else | |
1427 | if test -n "$RANLIB"; then | |
1428 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1429 | else | |
1430 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1431 | ac_dummy="$PATH" | |
1432 | for ac_dir in $ac_dummy; do | |
1433 | test -z "$ac_dir" && ac_dir=. | |
1434 | if test -f $ac_dir/$ac_word; then | |
1435 | ac_cv_prog_RANLIB="ranlib" | |
1436 | break | |
1437 | fi | |
1438 | done | |
1439 | IFS="$ac_save_ifs" | |
1440 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1441 | fi | |
1442 | fi | |
1443 | RANLIB="$ac_cv_prog_RANLIB" | |
1444 | if test -n "$RANLIB"; then | |
1445 | echo "$ac_t""$RANLIB" 1>&6 | |
1446 | else | |
1447 | echo "$ac_t""no" 1>&6 | |
1448 | fi | |
1449 | ||
1450 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
ff6dbcca | 1451 | echo "configure:1452: checking for POSIXized ISC" >&5 |
a64c9c13 TT |
1452 | if test -d /etc/conf/kconfig.d && |
1453 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
1454 | then | |
1455 | echo "$ac_t""yes" 1>&6 | |
1456 | ISC=yes # If later tests want to check for ISC. | |
1457 | cat >> confdefs.h <<\EOF | |
1458 | #define _POSIX_SOURCE 1 | |
1459 | EOF | |
1460 | ||
1461 | if test "$GCC" = yes; then | |
1462 | CC="$CC -posix" | |
1463 | else | |
1464 | CC="$CC -Xp" | |
1465 | fi | |
1466 | else | |
1467 | echo "$ac_t""no" 1>&6 | |
1468 | ISC= | |
1469 | fi | |
1470 | ||
1471 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
ff6dbcca | 1472 | echo "configure:1473: checking for ANSI C header files" >&5 |
a64c9c13 TT |
1473 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1475 | else | |
1476 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1477 | #line 1478 "configure" |
a64c9c13 TT |
1478 | #include "confdefs.h" |
1479 | #include <stdlib.h> | |
1480 | #include <stdarg.h> | |
1481 | #include <string.h> | |
1482 | #include <float.h> | |
1483 | EOF | |
1484 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 1485 | { (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
1486 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1487 | if test -z "$ac_err"; then | |
1488 | rm -rf conftest* | |
1489 | ac_cv_header_stdc=yes | |
1490 | else | |
1491 | echo "$ac_err" >&5 | |
1492 | echo "configure: failed program was:" >&5 | |
1493 | cat conftest.$ac_ext >&5 | |
1494 | rm -rf conftest* | |
1495 | ac_cv_header_stdc=no | |
1496 | fi | |
1497 | rm -f conftest* | |
1498 | ||
1499 | if test $ac_cv_header_stdc = yes; then | |
1500 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1501 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1502 | #line 1503 "configure" |
a64c9c13 TT |
1503 | #include "confdefs.h" |
1504 | #include <string.h> | |
1505 | EOF | |
1506 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1507 | egrep "memchr" >/dev/null 2>&1; then | |
1508 | : | |
1509 | else | |
1510 | rm -rf conftest* | |
1511 | ac_cv_header_stdc=no | |
1512 | fi | |
1513 | rm -f conftest* | |
1514 | ||
1515 | fi | |
1516 | ||
1517 | if test $ac_cv_header_stdc = yes; then | |
1518 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1519 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1520 | #line 1521 "configure" |
a64c9c13 TT |
1521 | #include "confdefs.h" |
1522 | #include <stdlib.h> | |
1523 | EOF | |
1524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1525 | egrep "free" >/dev/null 2>&1; then | |
1526 | : | |
1527 | else | |
1528 | rm -rf conftest* | |
1529 | ac_cv_header_stdc=no | |
1530 | fi | |
1531 | rm -f conftest* | |
1532 | ||
1533 | fi | |
1534 | ||
1535 | if test $ac_cv_header_stdc = yes; then | |
1536 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1537 | if test "$cross_compiling" = yes; then | |
1538 | : | |
1539 | else | |
1540 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1541 | #line 1542 "configure" |
a64c9c13 TT |
1542 | #include "confdefs.h" |
1543 | #include <ctype.h> | |
1544 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1545 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1546 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1547 | int main () { int i; for (i = 0; i < 256; i++) | |
1548 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1549 | exit (0); } | |
1550 | ||
1551 | EOF | |
ff6dbcca | 1552 | if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a64c9c13 TT |
1553 | then |
1554 | : | |
1555 | else | |
1556 | echo "configure: failed program was:" >&5 | |
1557 | cat conftest.$ac_ext >&5 | |
1558 | rm -fr conftest* | |
1559 | ac_cv_header_stdc=no | |
1560 | fi | |
1561 | rm -fr conftest* | |
1562 | fi | |
1563 | ||
1564 | fi | |
1565 | fi | |
1566 | ||
1567 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1568 | if test $ac_cv_header_stdc = yes; then | |
1569 | cat >> confdefs.h <<\EOF | |
1570 | #define STDC_HEADERS 1 | |
1571 | EOF | |
1572 | ||
1573 | fi | |
1574 | ||
1575 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
ff6dbcca | 1576 | echo "configure:1577: checking for working const" >&5 |
a64c9c13 TT |
1577 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1579 | else | |
1580 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1581 | #line 1582 "configure" |
a64c9c13 TT |
1582 | #include "confdefs.h" |
1583 | ||
1584 | int main() { | |
1585 | ||
1586 | /* Ultrix mips cc rejects this. */ | |
250f79f0 | 1587 | typedef int charset[2]; const charset x; |
a64c9c13 TT |
1588 | /* SunOS 4.1.1 cc rejects this. */ |
1589 | char const *const *ccp; | |
1590 | char **p; | |
1591 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1592 | struct point {int x, y;}; | |
1593 | static struct point const zero = {0,0}; | |
1594 | /* AIX XL C 1.02.0.0 rejects this. | |
1595 | It does not let you subtract one const X* pointer from another in an arm | |
1596 | of an if-expression whose if-part is not a constant expression */ | |
1597 | const char *g = "string"; | |
1598 | ccp = &g + (g ? g-g : 0); | |
1599 | /* HPUX 7.0 cc rejects these. */ | |
1600 | ++ccp; | |
1601 | p = (char**) ccp; | |
1602 | ccp = (char const *const *) p; | |
1603 | { /* SCO 3.2v4 cc rejects this. */ | |
1604 | char *t; | |
1605 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1606 | ||
1607 | *t++ = 0; | |
1608 | } | |
1609 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1610 | int x[] = {25, 17}; | |
1611 | const int *foo = &x[0]; | |
1612 | ++foo; | |
1613 | } | |
1614 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1615 | typedef const int *iptr; | |
1616 | iptr p = 0; | |
1617 | ++p; | |
1618 | } | |
1619 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1620 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1621 | struct s { int j; const int *ap[3]; }; | |
1622 | struct s *b; b->j = 5; | |
1623 | } | |
1624 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1625 | const int foo = 10; | |
1626 | } | |
1627 | ||
1628 | ; return 0; } | |
1629 | EOF | |
ff6dbcca | 1630 | if { (eval echo configure:1631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a64c9c13 TT |
1631 | rm -rf conftest* |
1632 | ac_cv_c_const=yes | |
1633 | else | |
1634 | echo "configure: failed program was:" >&5 | |
1635 | cat conftest.$ac_ext >&5 | |
1636 | rm -rf conftest* | |
1637 | ac_cv_c_const=no | |
1638 | fi | |
1639 | rm -f conftest* | |
1640 | fi | |
1641 | ||
1642 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
1643 | if test $ac_cv_c_const = no; then | |
1644 | cat >> confdefs.h <<\EOF | |
1645 | #define const | |
1646 | EOF | |
1647 | ||
1648 | fi | |
1649 | ||
1650 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
ff6dbcca | 1651 | echo "configure:1652: checking for inline" >&5 |
a64c9c13 TT |
1652 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
1653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1654 | else | |
1655 | ac_cv_c_inline=no | |
1656 | for ac_kw in inline __inline__ __inline; do | |
1657 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1658 | #line 1659 "configure" |
a64c9c13 TT |
1659 | #include "confdefs.h" |
1660 | ||
1661 | int main() { | |
250f79f0 | 1662 | } $ac_kw foo() { |
a64c9c13 TT |
1663 | ; return 0; } |
1664 | EOF | |
ff6dbcca | 1665 | if { (eval echo configure:1666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a64c9c13 TT |
1666 | rm -rf conftest* |
1667 | ac_cv_c_inline=$ac_kw; break | |
1668 | else | |
1669 | echo "configure: failed program was:" >&5 | |
1670 | cat conftest.$ac_ext >&5 | |
1671 | fi | |
1672 | rm -f conftest* | |
1673 | done | |
1674 | ||
1675 | fi | |
1676 | ||
1677 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
1678 | case "$ac_cv_c_inline" in | |
1679 | inline | yes) ;; | |
1680 | no) cat >> confdefs.h <<\EOF | |
1681 | #define inline | |
1682 | EOF | |
1683 | ;; | |
1684 | *) cat >> confdefs.h <<EOF | |
1685 | #define inline $ac_cv_c_inline | |
1686 | EOF | |
1687 | ;; | |
1688 | esac | |
1689 | ||
1690 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
ff6dbcca | 1691 | echo "configure:1692: checking for off_t" >&5 |
a64c9c13 TT |
1692 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
1693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1694 | else | |
1695 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1696 | #line 1697 "configure" |
a64c9c13 TT |
1697 | #include "confdefs.h" |
1698 | #include <sys/types.h> | |
1699 | #if STDC_HEADERS | |
1700 | #include <stdlib.h> | |
1701 | #include <stddef.h> | |
1702 | #endif | |
1703 | EOF | |
1704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1705 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1706 | rm -rf conftest* | |
1707 | ac_cv_type_off_t=yes | |
1708 | else | |
1709 | rm -rf conftest* | |
1710 | ac_cv_type_off_t=no | |
1711 | fi | |
1712 | rm -f conftest* | |
1713 | ||
1714 | fi | |
1715 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
1716 | if test $ac_cv_type_off_t = no; then | |
1717 | cat >> confdefs.h <<\EOF | |
1718 | #define off_t long | |
1719 | EOF | |
1720 | ||
1721 | fi | |
1722 | ||
1723 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
ff6dbcca | 1724 | echo "configure:1725: checking for size_t" >&5 |
a64c9c13 TT |
1725 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1727 | else | |
1728 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1729 | #line 1730 "configure" |
a64c9c13 TT |
1730 | #include "confdefs.h" |
1731 | #include <sys/types.h> | |
1732 | #if STDC_HEADERS | |
1733 | #include <stdlib.h> | |
1734 | #include <stddef.h> | |
1735 | #endif | |
1736 | EOF | |
1737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1738 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1739 | rm -rf conftest* | |
1740 | ac_cv_type_size_t=yes | |
1741 | else | |
1742 | rm -rf conftest* | |
1743 | ac_cv_type_size_t=no | |
1744 | fi | |
1745 | rm -f conftest* | |
1746 | ||
1747 | fi | |
1748 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
1749 | if test $ac_cv_type_size_t = no; then | |
1750 | cat >> confdefs.h <<\EOF | |
1751 | #define size_t unsigned | |
1752 | EOF | |
1753 | ||
1754 | fi | |
1755 | ||
1756 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
1757 | # for constant arguments. Useless! | |
1758 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
ff6dbcca | 1759 | echo "configure:1760: checking for working alloca.h" >&5 |
a64c9c13 TT |
1760 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
1761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1762 | else | |
1763 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1764 | #line 1765 "configure" |
a64c9c13 TT |
1765 | #include "confdefs.h" |
1766 | #include <alloca.h> | |
1767 | int main() { | |
250f79f0 | 1768 | char *p = alloca(2 * sizeof(int)); |
a64c9c13 TT |
1769 | ; return 0; } |
1770 | EOF | |
ff6dbcca | 1771 | if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
1772 | rm -rf conftest* |
1773 | ac_cv_header_alloca_h=yes | |
1774 | else | |
1775 | echo "configure: failed program was:" >&5 | |
1776 | cat conftest.$ac_ext >&5 | |
1777 | rm -rf conftest* | |
1778 | ac_cv_header_alloca_h=no | |
1779 | fi | |
1780 | rm -f conftest* | |
1781 | fi | |
1782 | ||
1783 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
1784 | if test $ac_cv_header_alloca_h = yes; then | |
1785 | cat >> confdefs.h <<\EOF | |
1786 | #define HAVE_ALLOCA_H 1 | |
1787 | EOF | |
1788 | ||
1789 | fi | |
1790 | ||
1791 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
ff6dbcca | 1792 | echo "configure:1793: checking for alloca" >&5 |
a64c9c13 TT |
1793 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
1794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1795 | else | |
1796 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1797 | #line 1798 "configure" |
a64c9c13 TT |
1798 | #include "confdefs.h" |
1799 | ||
1800 | #ifdef __GNUC__ | |
1801 | # define alloca __builtin_alloca | |
1802 | #else | |
1803 | # ifdef _MSC_VER | |
1804 | # include <malloc.h> | |
1805 | # define alloca _alloca | |
1806 | # else | |
1807 | # if HAVE_ALLOCA_H | |
1808 | # include <alloca.h> | |
1809 | # else | |
1810 | # ifdef _AIX | |
1811 | #pragma alloca | |
1812 | # else | |
1813 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
1814 | char *alloca (); | |
1815 | # endif | |
1816 | # endif | |
1817 | # endif | |
1818 | # endif | |
1819 | #endif | |
1820 | ||
1821 | int main() { | |
1822 | char *p = (char *) alloca(1); | |
1823 | ; return 0; } | |
1824 | EOF | |
ff6dbcca | 1825 | if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
1826 | rm -rf conftest* |
1827 | ac_cv_func_alloca_works=yes | |
1828 | else | |
1829 | echo "configure: failed program was:" >&5 | |
1830 | cat conftest.$ac_ext >&5 | |
1831 | rm -rf conftest* | |
1832 | ac_cv_func_alloca_works=no | |
1833 | fi | |
1834 | rm -f conftest* | |
1835 | fi | |
1836 | ||
1837 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
1838 | if test $ac_cv_func_alloca_works = yes; then | |
1839 | cat >> confdefs.h <<\EOF | |
1840 | #define HAVE_ALLOCA 1 | |
1841 | EOF | |
1842 | ||
1843 | fi | |
1844 | ||
1845 | if test $ac_cv_func_alloca_works = no; then | |
1846 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
1847 | # that cause trouble. Some versions do not even contain alloca or | |
1848 | # contain a buggy version. If you still want to use their alloca, | |
1849 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
1850 | ALLOCA=alloca.${ac_objext} | |
1851 | cat >> confdefs.h <<\EOF | |
1852 | #define C_ALLOCA 1 | |
1853 | EOF | |
1854 | ||
1855 | ||
1856 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
ff6dbcca | 1857 | echo "configure:1858: checking whether alloca needs Cray hooks" >&5 |
a64c9c13 TT |
1858 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
1859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1860 | else | |
1861 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1862 | #line 1863 "configure" |
a64c9c13 TT |
1863 | #include "confdefs.h" |
1864 | #if defined(CRAY) && ! defined(CRAY2) | |
1865 | webecray | |
1866 | #else | |
1867 | wenotbecray | |
1868 | #endif | |
1869 | ||
1870 | EOF | |
1871 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1872 | egrep "webecray" >/dev/null 2>&1; then | |
1873 | rm -rf conftest* | |
1874 | ac_cv_os_cray=yes | |
1875 | else | |
1876 | rm -rf conftest* | |
1877 | ac_cv_os_cray=no | |
1878 | fi | |
1879 | rm -f conftest* | |
1880 | ||
1881 | fi | |
1882 | ||
1883 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
1884 | if test $ac_cv_os_cray = yes; then | |
1885 | for ac_func in _getb67 GETB67 getb67; do | |
1886 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ff6dbcca | 1887 | echo "configure:1888: checking for $ac_func" >&5 |
a64c9c13 TT |
1888 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1890 | else | |
1891 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1892 | #line 1893 "configure" |
a64c9c13 TT |
1893 | #include "confdefs.h" |
1894 | /* System header to define __stub macros and hopefully few prototypes, | |
1895 | which can conflict with char $ac_func(); below. */ | |
1896 | #include <assert.h> | |
1897 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1898 | /* We use char because int might match the return type of a gcc2 | |
1899 | builtin and then its argument prototype would still apply. */ | |
1900 | char $ac_func(); | |
1901 | ||
1902 | int main() { | |
1903 | ||
1904 | /* The GNU C library defines this for functions which it implements | |
1905 | to always fail with ENOSYS. Some functions are actually named | |
1906 | something starting with __ and the normal name is an alias. */ | |
1907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1908 | choke me | |
1909 | #else | |
1910 | $ac_func(); | |
1911 | #endif | |
1912 | ||
1913 | ; return 0; } | |
1914 | EOF | |
ff6dbcca | 1915 | if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
1916 | rm -rf conftest* |
1917 | eval "ac_cv_func_$ac_func=yes" | |
1918 | else | |
1919 | echo "configure: failed program was:" >&5 | |
1920 | cat conftest.$ac_ext >&5 | |
1921 | rm -rf conftest* | |
1922 | eval "ac_cv_func_$ac_func=no" | |
1923 | fi | |
1924 | rm -f conftest* | |
1925 | fi | |
1926 | ||
1927 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1928 | echo "$ac_t""yes" 1>&6 | |
1929 | cat >> confdefs.h <<EOF | |
1930 | #define CRAY_STACKSEG_END $ac_func | |
1931 | EOF | |
1932 | ||
1933 | break | |
1934 | else | |
1935 | echo "$ac_t""no" 1>&6 | |
1936 | fi | |
1937 | ||
1938 | done | |
1939 | fi | |
1940 | ||
1941 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
ff6dbcca | 1942 | echo "configure:1943: checking stack direction for C alloca" >&5 |
a64c9c13 TT |
1943 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
1944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1945 | else | |
1946 | if test "$cross_compiling" = yes; then | |
1947 | ac_cv_c_stack_direction=0 | |
1948 | else | |
1949 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1950 | #line 1951 "configure" |
a64c9c13 TT |
1951 | #include "confdefs.h" |
1952 | find_stack_direction () | |
1953 | { | |
1954 | static char *addr = 0; | |
1955 | auto char dummy; | |
1956 | if (addr == 0) | |
1957 | { | |
1958 | addr = &dummy; | |
1959 | return find_stack_direction (); | |
1960 | } | |
1961 | else | |
1962 | return (&dummy > addr) ? 1 : -1; | |
1963 | } | |
1964 | main () | |
1965 | { | |
1966 | exit (find_stack_direction() < 0); | |
1967 | } | |
1968 | EOF | |
ff6dbcca | 1969 | if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a64c9c13 TT |
1970 | then |
1971 | ac_cv_c_stack_direction=1 | |
1972 | else | |
1973 | echo "configure: failed program was:" >&5 | |
1974 | cat conftest.$ac_ext >&5 | |
1975 | rm -fr conftest* | |
1976 | ac_cv_c_stack_direction=-1 | |
1977 | fi | |
1978 | rm -fr conftest* | |
1979 | fi | |
1980 | ||
1981 | fi | |
1982 | ||
1983 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
1984 | cat >> confdefs.h <<EOF | |
1985 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
1986 | EOF | |
1987 | ||
1988 | fi | |
1989 | ||
1990 | for ac_hdr in unistd.h | |
1991 | do | |
1992 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1993 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ff6dbcca | 1994 | echo "configure:1995: checking for $ac_hdr" >&5 |
a64c9c13 TT |
1995 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1997 | else | |
1998 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 1999 | #line 2000 "configure" |
a64c9c13 TT |
2000 | #include "confdefs.h" |
2001 | #include <$ac_hdr> | |
2002 | EOF | |
2003 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 2004 | { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
2005 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2006 | if test -z "$ac_err"; then | |
2007 | rm -rf conftest* | |
2008 | eval "ac_cv_header_$ac_safe=yes" | |
2009 | else | |
2010 | echo "$ac_err" >&5 | |
2011 | echo "configure: failed program was:" >&5 | |
2012 | cat conftest.$ac_ext >&5 | |
2013 | rm -rf conftest* | |
2014 | eval "ac_cv_header_$ac_safe=no" | |
2015 | fi | |
2016 | rm -f conftest* | |
2017 | fi | |
2018 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2019 | echo "$ac_t""yes" 1>&6 | |
2020 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2021 | cat >> confdefs.h <<EOF | |
2022 | #define $ac_tr_hdr 1 | |
2023 | EOF | |
2024 | ||
2025 | else | |
2026 | echo "$ac_t""no" 1>&6 | |
2027 | fi | |
2028 | done | |
2029 | ||
2030 | for ac_func in getpagesize | |
2031 | do | |
2032 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ff6dbcca | 2033 | echo "configure:2034: checking for $ac_func" >&5 |
a64c9c13 TT |
2034 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2036 | else | |
2037 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2038 | #line 2039 "configure" |
a64c9c13 TT |
2039 | #include "confdefs.h" |
2040 | /* System header to define __stub macros and hopefully few prototypes, | |
2041 | which can conflict with char $ac_func(); below. */ | |
2042 | #include <assert.h> | |
2043 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2044 | /* We use char because int might match the return type of a gcc2 | |
2045 | builtin and then its argument prototype would still apply. */ | |
2046 | char $ac_func(); | |
2047 | ||
2048 | int main() { | |
2049 | ||
2050 | /* The GNU C library defines this for functions which it implements | |
2051 | to always fail with ENOSYS. Some functions are actually named | |
2052 | something starting with __ and the normal name is an alias. */ | |
2053 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2054 | choke me | |
2055 | #else | |
2056 | $ac_func(); | |
2057 | #endif | |
2058 | ||
2059 | ; return 0; } | |
2060 | EOF | |
ff6dbcca | 2061 | if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2062 | rm -rf conftest* |
2063 | eval "ac_cv_func_$ac_func=yes" | |
2064 | else | |
2065 | echo "configure: failed program was:" >&5 | |
2066 | cat conftest.$ac_ext >&5 | |
2067 | rm -rf conftest* | |
2068 | eval "ac_cv_func_$ac_func=no" | |
2069 | fi | |
2070 | rm -f conftest* | |
2071 | fi | |
2072 | ||
2073 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2074 | echo "$ac_t""yes" 1>&6 | |
2075 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2076 | cat >> confdefs.h <<EOF | |
2077 | #define $ac_tr_func 1 | |
2078 | EOF | |
2079 | ||
2080 | else | |
2081 | echo "$ac_t""no" 1>&6 | |
2082 | fi | |
2083 | done | |
2084 | ||
2085 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
ff6dbcca | 2086 | echo "configure:2087: checking for working mmap" >&5 |
a64c9c13 TT |
2087 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2089 | else | |
2090 | if test "$cross_compiling" = yes; then | |
2091 | ac_cv_func_mmap_fixed_mapped=no | |
2092 | else | |
2093 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2094 | #line 2095 "configure" |
a64c9c13 TT |
2095 | #include "confdefs.h" |
2096 | ||
2097 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2098 | Here is a matrix of mmap possibilities: | |
2099 | mmap private not fixed | |
2100 | mmap private fixed at somewhere currently unmapped | |
2101 | mmap private fixed at somewhere already mapped | |
2102 | mmap shared not fixed | |
2103 | mmap shared fixed at somewhere currently unmapped | |
2104 | mmap shared fixed at somewhere already mapped | |
2105 | For private mappings, we should verify that changes cannot be read() | |
2106 | back from the file, nor mmap's back from the file at a different | |
2107 | address. (There have been systems where private was not correctly | |
2108 | implemented like the infamous i386 svr4.0, and systems where the | |
2109 | VM page cache was not coherent with the filesystem buffer cache | |
2110 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
2111 | For shared mappings, we should conversely verify that changes get | |
2112 | propogated back to all the places they're supposed to be. | |
2113 | ||
2114 | Grep wants private fixed already mapped. | |
2115 | The main things grep needs to know about mmap are: | |
2116 | * does it exist and is it safe to write into the mmap'd area | |
2117 | * how to use it (BSD variants) */ | |
2118 | #include <sys/types.h> | |
2119 | #include <fcntl.h> | |
2120 | #include <sys/mman.h> | |
2121 | ||
2122 | /* This mess was copied from the GNU getpagesize.h. */ | |
2123 | #ifndef HAVE_GETPAGESIZE | |
250f79f0 TT |
2124 | # ifdef HAVE_UNISTD_H |
2125 | # include <unistd.h> | |
2126 | # endif | |
a64c9c13 TT |
2127 | |
2128 | /* Assume that all systems that can run configure have sys/param.h. */ | |
2129 | # ifndef HAVE_SYS_PARAM_H | |
2130 | # define HAVE_SYS_PARAM_H 1 | |
2131 | # endif | |
2132 | ||
2133 | # ifdef _SC_PAGESIZE | |
2134 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2135 | # else /* no _SC_PAGESIZE */ | |
2136 | # ifdef HAVE_SYS_PARAM_H | |
2137 | # include <sys/param.h> | |
2138 | # ifdef EXEC_PAGESIZE | |
2139 | # define getpagesize() EXEC_PAGESIZE | |
2140 | # else /* no EXEC_PAGESIZE */ | |
2141 | # ifdef NBPG | |
2142 | # define getpagesize() NBPG * CLSIZE | |
2143 | # ifndef CLSIZE | |
2144 | # define CLSIZE 1 | |
2145 | # endif /* no CLSIZE */ | |
2146 | # else /* no NBPG */ | |
2147 | # ifdef NBPC | |
2148 | # define getpagesize() NBPC | |
2149 | # else /* no NBPC */ | |
2150 | # ifdef PAGESIZE | |
2151 | # define getpagesize() PAGESIZE | |
2152 | # endif /* PAGESIZE */ | |
2153 | # endif /* no NBPC */ | |
2154 | # endif /* no NBPG */ | |
2155 | # endif /* no EXEC_PAGESIZE */ | |
2156 | # else /* no HAVE_SYS_PARAM_H */ | |
2157 | # define getpagesize() 8192 /* punt totally */ | |
2158 | # endif /* no HAVE_SYS_PARAM_H */ | |
2159 | # endif /* no _SC_PAGESIZE */ | |
2160 | ||
2161 | #endif /* no HAVE_GETPAGESIZE */ | |
2162 | ||
2163 | #ifdef __cplusplus | |
2164 | extern "C" { void *malloc(unsigned); } | |
2165 | #else | |
2166 | char *malloc(); | |
2167 | #endif | |
2168 | ||
2169 | int | |
2170 | main() | |
2171 | { | |
2172 | char *data, *data2, *data3; | |
2173 | int i, pagesize; | |
2174 | int fd; | |
2175 | ||
2176 | pagesize = getpagesize(); | |
2177 | ||
2178 | /* | |
2179 | * First, make a file with some known garbage in it. | |
2180 | */ | |
250f79f0 | 2181 | data = malloc(pagesize); |
a64c9c13 TT |
2182 | if (!data) |
2183 | exit(1); | |
2184 | for (i = 0; i < pagesize; ++i) | |
2185 | *(data + i) = rand(); | |
2186 | umask(0); | |
2187 | fd = creat("conftestmmap", 0600); | |
2188 | if (fd < 0) | |
2189 | exit(1); | |
2190 | if (write(fd, data, pagesize) != pagesize) | |
2191 | exit(1); | |
2192 | close(fd); | |
2193 | ||
2194 | /* | |
2195 | * Next, try to mmap the file at a fixed address which | |
2196 | * already has something else allocated at it. If we can, | |
2197 | * also make sure that we see the same garbage. | |
2198 | */ | |
2199 | fd = open("conftestmmap", O_RDWR); | |
2200 | if (fd < 0) | |
2201 | exit(1); | |
250f79f0 | 2202 | data2 = malloc(2 * pagesize); |
a64c9c13 TT |
2203 | if (!data2) |
2204 | exit(1); | |
2205 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
2206 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
2207 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
2208 | exit(1); | |
2209 | for (i = 0; i < pagesize; ++i) | |
2210 | if (*(data + i) != *(data2 + i)) | |
2211 | exit(1); | |
2212 | ||
2213 | /* | |
2214 | * Finally, make sure that changes to the mapped area | |
2215 | * do not percolate back to the file as seen by read(). | |
2216 | * (This is a bug on some variants of i386 svr4.0.) | |
2217 | */ | |
2218 | for (i = 0; i < pagesize; ++i) | |
2219 | *(data2 + i) = *(data2 + i) + 1; | |
250f79f0 | 2220 | data3 = malloc(pagesize); |
a64c9c13 TT |
2221 | if (!data3) |
2222 | exit(1); | |
2223 | if (read(fd, data3, pagesize) != pagesize) | |
2224 | exit(1); | |
2225 | for (i = 0; i < pagesize; ++i) | |
2226 | if (*(data + i) != *(data3 + i)) | |
2227 | exit(1); | |
2228 | close(fd); | |
2229 | unlink("conftestmmap"); | |
2230 | exit(0); | |
2231 | } | |
2232 | ||
2233 | EOF | |
ff6dbcca | 2234 | if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a64c9c13 TT |
2235 | then |
2236 | ac_cv_func_mmap_fixed_mapped=yes | |
2237 | else | |
2238 | echo "configure: failed program was:" >&5 | |
2239 | cat conftest.$ac_ext >&5 | |
2240 | rm -fr conftest* | |
2241 | ac_cv_func_mmap_fixed_mapped=no | |
2242 | fi | |
2243 | rm -fr conftest* | |
2244 | fi | |
2245 | ||
2246 | fi | |
2247 | ||
2248 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
2249 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
2250 | cat >> confdefs.h <<\EOF | |
2251 | #define HAVE_MMAP 1 | |
2252 | EOF | |
2253 | ||
2254 | fi | |
2255 | ||
2256 | ||
2257 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
2258 | unistd.h sys/param.h | |
2259 | do | |
2260 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2261 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ff6dbcca | 2262 | echo "configure:2263: checking for $ac_hdr" >&5 |
a64c9c13 TT |
2263 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2265 | else | |
2266 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2267 | #line 2268 "configure" |
a64c9c13 TT |
2268 | #include "confdefs.h" |
2269 | #include <$ac_hdr> | |
2270 | EOF | |
2271 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 2272 | { (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
2273 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2274 | if test -z "$ac_err"; then | |
2275 | rm -rf conftest* | |
2276 | eval "ac_cv_header_$ac_safe=yes" | |
2277 | else | |
2278 | echo "$ac_err" >&5 | |
2279 | echo "configure: failed program was:" >&5 | |
2280 | cat conftest.$ac_ext >&5 | |
2281 | rm -rf conftest* | |
2282 | eval "ac_cv_header_$ac_safe=no" | |
2283 | fi | |
2284 | rm -f conftest* | |
2285 | fi | |
2286 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2287 | echo "$ac_t""yes" 1>&6 | |
2288 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2289 | cat >> confdefs.h <<EOF | |
2290 | #define $ac_tr_hdr 1 | |
2291 | EOF | |
2292 | ||
2293 | else | |
2294 | echo "$ac_t""no" 1>&6 | |
2295 | fi | |
2296 | done | |
2297 | ||
2298 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
2299 | strdup __argz_count __argz_stringify __argz_next | |
2300 | do | |
2301 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ff6dbcca | 2302 | echo "configure:2303: checking for $ac_func" >&5 |
a64c9c13 TT |
2303 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2305 | else | |
2306 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2307 | #line 2308 "configure" |
a64c9c13 TT |
2308 | #include "confdefs.h" |
2309 | /* System header to define __stub macros and hopefully few prototypes, | |
2310 | which can conflict with char $ac_func(); below. */ | |
2311 | #include <assert.h> | |
2312 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2313 | /* We use char because int might match the return type of a gcc2 | |
2314 | builtin and then its argument prototype would still apply. */ | |
2315 | char $ac_func(); | |
2316 | ||
2317 | int main() { | |
2318 | ||
2319 | /* The GNU C library defines this for functions which it implements | |
2320 | to always fail with ENOSYS. Some functions are actually named | |
2321 | something starting with __ and the normal name is an alias. */ | |
2322 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2323 | choke me | |
2324 | #else | |
2325 | $ac_func(); | |
2326 | #endif | |
2327 | ||
2328 | ; return 0; } | |
2329 | EOF | |
ff6dbcca | 2330 | if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2331 | rm -rf conftest* |
2332 | eval "ac_cv_func_$ac_func=yes" | |
2333 | else | |
2334 | echo "configure: failed program was:" >&5 | |
2335 | cat conftest.$ac_ext >&5 | |
2336 | rm -rf conftest* | |
2337 | eval "ac_cv_func_$ac_func=no" | |
2338 | fi | |
2339 | rm -f conftest* | |
2340 | fi | |
2341 | ||
2342 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2343 | echo "$ac_t""yes" 1>&6 | |
2344 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2345 | cat >> confdefs.h <<EOF | |
2346 | #define $ac_tr_func 1 | |
2347 | EOF | |
2348 | ||
2349 | else | |
2350 | echo "$ac_t""no" 1>&6 | |
2351 | fi | |
2352 | done | |
2353 | ||
2354 | ||
2355 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
2356 | for ac_func in stpcpy | |
2357 | do | |
2358 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ff6dbcca | 2359 | echo "configure:2360: checking for $ac_func" >&5 |
a64c9c13 TT |
2360 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2362 | else | |
2363 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2364 | #line 2365 "configure" |
a64c9c13 TT |
2365 | #include "confdefs.h" |
2366 | /* System header to define __stub macros and hopefully few prototypes, | |
2367 | which can conflict with char $ac_func(); below. */ | |
2368 | #include <assert.h> | |
2369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2370 | /* We use char because int might match the return type of a gcc2 | |
2371 | builtin and then its argument prototype would still apply. */ | |
2372 | char $ac_func(); | |
2373 | ||
2374 | int main() { | |
2375 | ||
2376 | /* The GNU C library defines this for functions which it implements | |
2377 | to always fail with ENOSYS. Some functions are actually named | |
2378 | something starting with __ and the normal name is an alias. */ | |
2379 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2380 | choke me | |
2381 | #else | |
2382 | $ac_func(); | |
2383 | #endif | |
2384 | ||
2385 | ; return 0; } | |
2386 | EOF | |
ff6dbcca | 2387 | if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2388 | rm -rf conftest* |
2389 | eval "ac_cv_func_$ac_func=yes" | |
2390 | else | |
2391 | echo "configure: failed program was:" >&5 | |
2392 | cat conftest.$ac_ext >&5 | |
2393 | rm -rf conftest* | |
2394 | eval "ac_cv_func_$ac_func=no" | |
2395 | fi | |
2396 | rm -f conftest* | |
2397 | fi | |
2398 | ||
2399 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2400 | echo "$ac_t""yes" 1>&6 | |
2401 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2402 | cat >> confdefs.h <<EOF | |
2403 | #define $ac_tr_func 1 | |
2404 | EOF | |
2405 | ||
2406 | else | |
2407 | echo "$ac_t""no" 1>&6 | |
2408 | fi | |
2409 | done | |
2410 | ||
2411 | fi | |
2412 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
2413 | cat >> confdefs.h <<\EOF | |
2414 | #define HAVE_STPCPY 1 | |
2415 | EOF | |
2416 | ||
2417 | fi | |
2418 | ||
2419 | if test $ac_cv_header_locale_h = yes; then | |
2420 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
ff6dbcca | 2421 | echo "configure:2422: checking for LC_MESSAGES" >&5 |
a64c9c13 TT |
2422 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
2423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2424 | else | |
2425 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2426 | #line 2427 "configure" |
a64c9c13 TT |
2427 | #include "confdefs.h" |
2428 | #include <locale.h> | |
2429 | int main() { | |
2430 | return LC_MESSAGES | |
2431 | ; return 0; } | |
2432 | EOF | |
ff6dbcca | 2433 | if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2434 | rm -rf conftest* |
2435 | am_cv_val_LC_MESSAGES=yes | |
2436 | else | |
2437 | echo "configure: failed program was:" >&5 | |
2438 | cat conftest.$ac_ext >&5 | |
2439 | rm -rf conftest* | |
2440 | am_cv_val_LC_MESSAGES=no | |
2441 | fi | |
2442 | rm -f conftest* | |
2443 | fi | |
2444 | ||
2445 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
2446 | if test $am_cv_val_LC_MESSAGES = yes; then | |
2447 | cat >> confdefs.h <<\EOF | |
2448 | #define HAVE_LC_MESSAGES 1 | |
2449 | EOF | |
2450 | ||
2451 | fi | |
2452 | fi | |
2453 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
ff6dbcca | 2454 | echo "configure:2455: checking whether NLS is requested" >&5 |
a64c9c13 TT |
2455 | # Check whether --enable-nls or --disable-nls was given. |
2456 | if test "${enable_nls+set}" = set; then | |
2457 | enableval="$enable_nls" | |
2458 | USE_NLS=$enableval | |
2459 | else | |
2460 | USE_NLS=no | |
2461 | fi | |
2462 | ||
2463 | echo "$ac_t""$USE_NLS" 1>&6 | |
2464 | ||
2465 | ||
2466 | USE_INCLUDED_LIBINTL=no | |
2467 | ||
2468 | if test "$USE_NLS" = "yes"; then | |
2469 | cat >> confdefs.h <<\EOF | |
2470 | #define ENABLE_NLS 1 | |
2471 | EOF | |
2472 | ||
2473 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
ff6dbcca | 2474 | echo "configure:2475: checking whether included gettext is requested" >&5 |
a64c9c13 TT |
2475 | # Check whether --with-included-gettext or --without-included-gettext was given. |
2476 | if test "${with_included_gettext+set}" = set; then | |
2477 | withval="$with_included_gettext" | |
2478 | nls_cv_force_use_gnu_gettext=$withval | |
2479 | else | |
2480 | nls_cv_force_use_gnu_gettext=no | |
2481 | fi | |
2482 | ||
2483 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
2484 | ||
2485 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
2486 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
2487 | nls_cv_header_intl= | |
2488 | nls_cv_header_libgt= | |
2489 | CATOBJEXT=NONE | |
2490 | ||
2491 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
2492 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
ff6dbcca | 2493 | echo "configure:2494: checking for libintl.h" >&5 |
a64c9c13 TT |
2494 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2496 | else | |
2497 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2498 | #line 2499 "configure" |
a64c9c13 TT |
2499 | #include "confdefs.h" |
2500 | #include <libintl.h> | |
2501 | EOF | |
2502 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 2503 | { (eval echo configure:2504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
2504 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2505 | if test -z "$ac_err"; then | |
2506 | rm -rf conftest* | |
2507 | eval "ac_cv_header_$ac_safe=yes" | |
2508 | else | |
2509 | echo "$ac_err" >&5 | |
2510 | echo "configure: failed program was:" >&5 | |
2511 | cat conftest.$ac_ext >&5 | |
2512 | rm -rf conftest* | |
2513 | eval "ac_cv_header_$ac_safe=no" | |
2514 | fi | |
2515 | rm -f conftest* | |
2516 | fi | |
2517 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2518 | echo "$ac_t""yes" 1>&6 | |
2519 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
ff6dbcca | 2520 | echo "configure:2521: checking for gettext in libc" >&5 |
a64c9c13 TT |
2521 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
2522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2523 | else | |
2524 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2525 | #line 2526 "configure" |
a64c9c13 TT |
2526 | #include "confdefs.h" |
2527 | #include <libintl.h> | |
2528 | int main() { | |
2529 | return (int) gettext ("") | |
2530 | ; return 0; } | |
2531 | EOF | |
ff6dbcca | 2532 | if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2533 | rm -rf conftest* |
2534 | gt_cv_func_gettext_libc=yes | |
2535 | else | |
2536 | echo "configure: failed program was:" >&5 | |
2537 | cat conftest.$ac_ext >&5 | |
2538 | rm -rf conftest* | |
2539 | gt_cv_func_gettext_libc=no | |
2540 | fi | |
2541 | rm -f conftest* | |
2542 | fi | |
2543 | ||
2544 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
2545 | ||
2546 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
2547 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
ff6dbcca | 2548 | echo "configure:2549: checking for bindtextdomain in -lintl" >&5 |
a64c9c13 TT |
2549 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
2550 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2552 | else | |
2553 | ac_save_LIBS="$LIBS" | |
2554 | LIBS="-lintl $LIBS" | |
2555 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2556 | #line 2557 "configure" |
a64c9c13 TT |
2557 | #include "confdefs.h" |
2558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2559 | /* We use char because int might match the return type of a gcc2 | |
2560 | builtin and then its argument prototype would still apply. */ | |
2561 | char bindtextdomain(); | |
2562 | ||
2563 | int main() { | |
2564 | bindtextdomain() | |
2565 | ; return 0; } | |
2566 | EOF | |
ff6dbcca | 2567 | if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2568 | rm -rf conftest* |
2569 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2570 | else | |
2571 | echo "configure: failed program was:" >&5 | |
2572 | cat conftest.$ac_ext >&5 | |
2573 | rm -rf conftest* | |
2574 | eval "ac_cv_lib_$ac_lib_var=no" | |
2575 | fi | |
2576 | rm -f conftest* | |
2577 | LIBS="$ac_save_LIBS" | |
2578 | ||
2579 | fi | |
2580 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2581 | echo "$ac_t""yes" 1>&6 | |
2582 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
ff6dbcca | 2583 | echo "configure:2584: checking for gettext in libintl" >&5 |
a64c9c13 TT |
2584 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
2585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2586 | else | |
2587 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
ff6dbcca | 2588 | echo "configure:2589: checking for gettext in -lintl" >&5 |
a64c9c13 TT |
2589 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
2590 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2592 | else | |
2593 | ac_save_LIBS="$LIBS" | |
2594 | LIBS="-lintl $LIBS" | |
2595 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2596 | #line 2597 "configure" |
a64c9c13 TT |
2597 | #include "confdefs.h" |
2598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2599 | /* We use char because int might match the return type of a gcc2 | |
2600 | builtin and then its argument prototype would still apply. */ | |
2601 | char gettext(); | |
2602 | ||
2603 | int main() { | |
2604 | gettext() | |
2605 | ; return 0; } | |
2606 | EOF | |
ff6dbcca | 2607 | if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2608 | rm -rf conftest* |
2609 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2610 | else | |
2611 | echo "configure: failed program was:" >&5 | |
2612 | cat conftest.$ac_ext >&5 | |
2613 | rm -rf conftest* | |
2614 | eval "ac_cv_lib_$ac_lib_var=no" | |
2615 | fi | |
2616 | rm -f conftest* | |
2617 | LIBS="$ac_save_LIBS" | |
2618 | ||
2619 | fi | |
2620 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2621 | echo "$ac_t""yes" 1>&6 | |
2622 | gt_cv_func_gettext_libintl=yes | |
2623 | else | |
2624 | echo "$ac_t""no" 1>&6 | |
2625 | gt_cv_func_gettext_libintl=no | |
2626 | fi | |
2627 | ||
2628 | fi | |
2629 | ||
2630 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
2631 | else | |
2632 | echo "$ac_t""no" 1>&6 | |
2633 | fi | |
2634 | ||
2635 | fi | |
2636 | ||
2637 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
2638 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
2639 | cat >> confdefs.h <<\EOF | |
2640 | #define HAVE_GETTEXT 1 | |
2641 | EOF | |
2642 | ||
2643 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
2644 | set dummy msgfmt; ac_word=$2 | |
2645 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 2646 | echo "configure:2647: checking for $ac_word" >&5 |
a64c9c13 TT |
2647 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
2648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2649 | else | |
2650 | case "$MSGFMT" in | |
2651 | /*) | |
2652 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
2653 | ;; | |
2654 | *) | |
2655 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2656 | for ac_dir in $PATH; do | |
2657 | test -z "$ac_dir" && ac_dir=. | |
2658 | if test -f $ac_dir/$ac_word; then | |
2659 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
2660 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
2661 | break | |
2662 | fi | |
2663 | fi | |
2664 | done | |
2665 | IFS="$ac_save_ifs" | |
2666 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
2667 | ;; | |
2668 | esac | |
2669 | fi | |
2670 | MSGFMT="$ac_cv_path_MSGFMT" | |
2671 | if test -n "$MSGFMT"; then | |
2672 | echo "$ac_t""$MSGFMT" 1>&6 | |
2673 | else | |
2674 | echo "$ac_t""no" 1>&6 | |
2675 | fi | |
2676 | if test "$MSGFMT" != "no"; then | |
2677 | for ac_func in dcgettext | |
2678 | do | |
2679 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ff6dbcca | 2680 | echo "configure:2681: checking for $ac_func" >&5 |
a64c9c13 TT |
2681 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2683 | else | |
2684 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2685 | #line 2686 "configure" |
a64c9c13 TT |
2686 | #include "confdefs.h" |
2687 | /* System header to define __stub macros and hopefully few prototypes, | |
2688 | which can conflict with char $ac_func(); below. */ | |
2689 | #include <assert.h> | |
2690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2691 | /* We use char because int might match the return type of a gcc2 | |
2692 | builtin and then its argument prototype would still apply. */ | |
2693 | char $ac_func(); | |
2694 | ||
2695 | int main() { | |
2696 | ||
2697 | /* The GNU C library defines this for functions which it implements | |
2698 | to always fail with ENOSYS. Some functions are actually named | |
2699 | something starting with __ and the normal name is an alias. */ | |
2700 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2701 | choke me | |
2702 | #else | |
2703 | $ac_func(); | |
2704 | #endif | |
2705 | ||
2706 | ; return 0; } | |
2707 | EOF | |
ff6dbcca | 2708 | if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2709 | rm -rf conftest* |
2710 | eval "ac_cv_func_$ac_func=yes" | |
2711 | else | |
2712 | echo "configure: failed program was:" >&5 | |
2713 | cat conftest.$ac_ext >&5 | |
2714 | rm -rf conftest* | |
2715 | eval "ac_cv_func_$ac_func=no" | |
2716 | fi | |
2717 | rm -f conftest* | |
2718 | fi | |
2719 | ||
2720 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2721 | echo "$ac_t""yes" 1>&6 | |
2722 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2723 | cat >> confdefs.h <<EOF | |
2724 | #define $ac_tr_func 1 | |
2725 | EOF | |
2726 | ||
2727 | else | |
2728 | echo "$ac_t""no" 1>&6 | |
2729 | fi | |
2730 | done | |
2731 | ||
2732 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
2733 | set dummy gmsgfmt; ac_word=$2 | |
2734 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 2735 | echo "configure:2736: checking for $ac_word" >&5 |
a64c9c13 TT |
2736 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
2737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2738 | else | |
2739 | case "$GMSGFMT" in | |
2740 | /*) | |
2741 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2742 | ;; | |
2743 | ?:/*) | |
2744 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
2745 | ;; | |
2746 | *) | |
2747 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2748 | ac_dummy="$PATH" | |
2749 | for ac_dir in $ac_dummy; do | |
2750 | test -z "$ac_dir" && ac_dir=. | |
2751 | if test -f $ac_dir/$ac_word; then | |
2752 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2753 | break | |
2754 | fi | |
2755 | done | |
2756 | IFS="$ac_save_ifs" | |
2757 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
2758 | ;; | |
2759 | esac | |
2760 | fi | |
2761 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
2762 | if test -n "$GMSGFMT"; then | |
2763 | echo "$ac_t""$GMSGFMT" 1>&6 | |
2764 | else | |
2765 | echo "$ac_t""no" 1>&6 | |
2766 | fi | |
2767 | ||
2768 | # Extract the first word of "xgettext", so it can be a program name with args. | |
2769 | set dummy xgettext; ac_word=$2 | |
2770 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 2771 | echo "configure:2772: checking for $ac_word" >&5 |
a64c9c13 TT |
2772 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
2773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2774 | else | |
2775 | case "$XGETTEXT" in | |
2776 | /*) | |
2777 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
2778 | ;; | |
2779 | *) | |
2780 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2781 | for ac_dir in $PATH; do | |
2782 | test -z "$ac_dir" && ac_dir=. | |
2783 | if test -f $ac_dir/$ac_word; then | |
2784 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
2785 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
2786 | break | |
2787 | fi | |
2788 | fi | |
2789 | done | |
2790 | IFS="$ac_save_ifs" | |
2791 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
2792 | ;; | |
2793 | esac | |
2794 | fi | |
2795 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
2796 | if test -n "$XGETTEXT"; then | |
2797 | echo "$ac_t""$XGETTEXT" 1>&6 | |
2798 | else | |
2799 | echo "$ac_t""no" 1>&6 | |
2800 | fi | |
2801 | ||
2802 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2803 | #line 2804 "configure" |
a64c9c13 TT |
2804 | #include "confdefs.h" |
2805 | ||
2806 | int main() { | |
2807 | extern int _nl_msg_cat_cntr; | |
2808 | return _nl_msg_cat_cntr | |
2809 | ; return 0; } | |
2810 | EOF | |
ff6dbcca | 2811 | if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2812 | rm -rf conftest* |
2813 | CATOBJEXT=.gmo | |
2814 | DATADIRNAME=share | |
2815 | else | |
2816 | echo "configure: failed program was:" >&5 | |
2817 | cat conftest.$ac_ext >&5 | |
2818 | rm -rf conftest* | |
2819 | CATOBJEXT=.mo | |
2820 | DATADIRNAME=lib | |
2821 | fi | |
2822 | rm -f conftest* | |
2823 | INSTOBJEXT=.mo | |
2824 | fi | |
2825 | fi | |
2826 | ||
2827 | else | |
2828 | echo "$ac_t""no" 1>&6 | |
2829 | fi | |
2830 | ||
2831 | ||
2832 | if test "$CATOBJEXT" = "NONE"; then | |
2833 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
ff6dbcca | 2834 | echo "configure:2835: checking whether catgets can be used" >&5 |
a64c9c13 TT |
2835 | # Check whether --with-catgets or --without-catgets was given. |
2836 | if test "${with_catgets+set}" = set; then | |
2837 | withval="$with_catgets" | |
2838 | nls_cv_use_catgets=$withval | |
2839 | else | |
2840 | nls_cv_use_catgets=no | |
2841 | fi | |
2842 | ||
2843 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
2844 | ||
2845 | if test "$nls_cv_use_catgets" = "yes"; then | |
2846 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
ff6dbcca | 2847 | echo "configure:2848: checking for main in -li" >&5 |
a64c9c13 TT |
2848 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
2849 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2851 | else | |
2852 | ac_save_LIBS="$LIBS" | |
2853 | LIBS="-li $LIBS" | |
2854 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2855 | #line 2856 "configure" |
a64c9c13 TT |
2856 | #include "confdefs.h" |
2857 | ||
2858 | int main() { | |
2859 | main() | |
2860 | ; return 0; } | |
2861 | EOF | |
ff6dbcca | 2862 | if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2863 | rm -rf conftest* |
2864 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2865 | else | |
2866 | echo "configure: failed program was:" >&5 | |
2867 | cat conftest.$ac_ext >&5 | |
2868 | rm -rf conftest* | |
2869 | eval "ac_cv_lib_$ac_lib_var=no" | |
2870 | fi | |
2871 | rm -f conftest* | |
2872 | LIBS="$ac_save_LIBS" | |
2873 | ||
2874 | fi | |
2875 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2876 | echo "$ac_t""yes" 1>&6 | |
2877 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2878 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2879 | cat >> confdefs.h <<EOF | |
2880 | #define $ac_tr_lib 1 | |
2881 | EOF | |
2882 | ||
2883 | LIBS="-li $LIBS" | |
2884 | ||
2885 | else | |
2886 | echo "$ac_t""no" 1>&6 | |
2887 | fi | |
2888 | ||
2889 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
ff6dbcca | 2890 | echo "configure:2891: checking for catgets" >&5 |
a64c9c13 TT |
2891 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
2892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2893 | else | |
2894 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 2895 | #line 2896 "configure" |
a64c9c13 TT |
2896 | #include "confdefs.h" |
2897 | /* System header to define __stub macros and hopefully few prototypes, | |
2898 | which can conflict with char catgets(); below. */ | |
2899 | #include <assert.h> | |
2900 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2901 | /* We use char because int might match the return type of a gcc2 | |
2902 | builtin and then its argument prototype would still apply. */ | |
2903 | char catgets(); | |
2904 | ||
2905 | int main() { | |
2906 | ||
2907 | /* The GNU C library defines this for functions which it implements | |
2908 | to always fail with ENOSYS. Some functions are actually named | |
2909 | something starting with __ and the normal name is an alias. */ | |
2910 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
2911 | choke me | |
2912 | #else | |
2913 | catgets(); | |
2914 | #endif | |
2915 | ||
2916 | ; return 0; } | |
2917 | EOF | |
ff6dbcca | 2918 | if { (eval echo configure:2919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2919 | rm -rf conftest* |
2920 | eval "ac_cv_func_catgets=yes" | |
2921 | else | |
2922 | echo "configure: failed program was:" >&5 | |
2923 | cat conftest.$ac_ext >&5 | |
2924 | rm -rf conftest* | |
2925 | eval "ac_cv_func_catgets=no" | |
2926 | fi | |
2927 | rm -f conftest* | |
2928 | fi | |
2929 | ||
2930 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
2931 | echo "$ac_t""yes" 1>&6 | |
2932 | cat >> confdefs.h <<\EOF | |
2933 | #define HAVE_CATGETS 1 | |
2934 | EOF | |
2935 | ||
2936 | INTLOBJS="\$(CATOBJS)" | |
2937 | # Extract the first word of "gencat", so it can be a program name with args. | |
2938 | set dummy gencat; ac_word=$2 | |
2939 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 2940 | echo "configure:2941: checking for $ac_word" >&5 |
a64c9c13 TT |
2941 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
2942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2943 | else | |
2944 | case "$GENCAT" in | |
2945 | /*) | |
2946 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
2947 | ;; | |
2948 | ?:/*) | |
2949 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
2950 | ;; | |
2951 | *) | |
2952 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2953 | ac_dummy="$PATH" | |
2954 | for ac_dir in $ac_dummy; do | |
2955 | test -z "$ac_dir" && ac_dir=. | |
2956 | if test -f $ac_dir/$ac_word; then | |
2957 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
2958 | break | |
2959 | fi | |
2960 | done | |
2961 | IFS="$ac_save_ifs" | |
2962 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
2963 | ;; | |
2964 | esac | |
2965 | fi | |
2966 | GENCAT="$ac_cv_path_GENCAT" | |
2967 | if test -n "$GENCAT"; then | |
2968 | echo "$ac_t""$GENCAT" 1>&6 | |
2969 | else | |
2970 | echo "$ac_t""no" 1>&6 | |
2971 | fi | |
2972 | if test "$GENCAT" != "no"; then | |
2973 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
2974 | set dummy gmsgfmt; ac_word=$2 | |
2975 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 2976 | echo "configure:2977: checking for $ac_word" >&5 |
a64c9c13 TT |
2977 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
2978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2979 | else | |
2980 | case "$GMSGFMT" in | |
2981 | /*) | |
2982 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2983 | ;; | |
2984 | ?:/*) | |
2985 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
2986 | ;; | |
2987 | *) | |
2988 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2989 | ac_dummy="$PATH" | |
2990 | for ac_dir in $ac_dummy; do | |
2991 | test -z "$ac_dir" && ac_dir=. | |
2992 | if test -f $ac_dir/$ac_word; then | |
2993 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2994 | break | |
2995 | fi | |
2996 | done | |
2997 | IFS="$ac_save_ifs" | |
2998 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
2999 | ;; | |
3000 | esac | |
3001 | fi | |
3002 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3003 | if test -n "$GMSGFMT"; then | |
3004 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3005 | else | |
3006 | echo "$ac_t""no" 1>&6 | |
3007 | fi | |
3008 | ||
3009 | if test "$GMSGFMT" = "no"; then | |
3010 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3011 | set dummy msgfmt; ac_word=$2 | |
3012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3013 | echo "configure:3014: checking for $ac_word" >&5 |
a64c9c13 TT |
3014 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
3015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3016 | else | |
3017 | case "$GMSGFMT" in | |
3018 | /*) | |
3019 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3020 | ;; | |
3021 | *) | |
3022 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3023 | for ac_dir in $PATH; do | |
3024 | test -z "$ac_dir" && ac_dir=. | |
3025 | if test -f $ac_dir/$ac_word; then | |
3026 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3027 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3028 | break | |
3029 | fi | |
3030 | fi | |
3031 | done | |
3032 | IFS="$ac_save_ifs" | |
3033 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
3034 | ;; | |
3035 | esac | |
3036 | fi | |
3037 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3038 | if test -n "$GMSGFMT"; then | |
3039 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3040 | else | |
3041 | echo "$ac_t""no" 1>&6 | |
3042 | fi | |
3043 | ||
3044 | fi | |
3045 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3046 | set dummy xgettext; ac_word=$2 | |
3047 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3048 | echo "configure:3049: checking for $ac_word" >&5 |
a64c9c13 TT |
3049 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
3050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3051 | else | |
3052 | case "$XGETTEXT" in | |
3053 | /*) | |
3054 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3055 | ;; | |
3056 | *) | |
3057 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3058 | for ac_dir in $PATH; do | |
3059 | test -z "$ac_dir" && ac_dir=. | |
3060 | if test -f $ac_dir/$ac_word; then | |
3061 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
3062 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
3063 | break | |
3064 | fi | |
3065 | fi | |
3066 | done | |
3067 | IFS="$ac_save_ifs" | |
3068 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3069 | ;; | |
3070 | esac | |
3071 | fi | |
3072 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
3073 | if test -n "$XGETTEXT"; then | |
3074 | echo "$ac_t""$XGETTEXT" 1>&6 | |
3075 | else | |
3076 | echo "$ac_t""no" 1>&6 | |
3077 | fi | |
3078 | ||
3079 | USE_INCLUDED_LIBINTL=yes | |
3080 | CATOBJEXT=.cat | |
3081 | INSTOBJEXT=.cat | |
3082 | DATADIRNAME=lib | |
3083 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
3084 | INTLLIBS=$INTLDEPS | |
3085 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
3086 | nls_cv_header_intl=intl/libintl.h | |
3087 | nls_cv_header_libgt=intl/libgettext.h | |
3088 | fi | |
3089 | else | |
3090 | echo "$ac_t""no" 1>&6 | |
3091 | fi | |
3092 | ||
3093 | fi | |
3094 | fi | |
3095 | ||
3096 | if test "$CATOBJEXT" = "NONE"; then | |
3097 | nls_cv_use_gnu_gettext=yes | |
3098 | fi | |
3099 | fi | |
3100 | ||
3101 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
3102 | INTLOBJS="\$(GETTOBJS)" | |
3103 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3104 | set dummy msgfmt; ac_word=$2 | |
3105 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3106 | echo "configure:3107: checking for $ac_word" >&5 |
a64c9c13 TT |
3107 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
3108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3109 | else | |
3110 | case "$MSGFMT" in | |
3111 | /*) | |
3112 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3113 | ;; | |
3114 | *) | |
3115 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3116 | for ac_dir in $PATH; do | |
3117 | test -z "$ac_dir" && ac_dir=. | |
3118 | if test -f $ac_dir/$ac_word; then | |
3119 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3120 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3121 | break | |
3122 | fi | |
3123 | fi | |
3124 | done | |
3125 | IFS="$ac_save_ifs" | |
3126 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
3127 | ;; | |
3128 | esac | |
3129 | fi | |
3130 | MSGFMT="$ac_cv_path_MSGFMT" | |
3131 | if test -n "$MSGFMT"; then | |
3132 | echo "$ac_t""$MSGFMT" 1>&6 | |
74becf3c | 3133 | else |
a64c9c13 | 3134 | echo "$ac_t""no" 1>&6 |
74becf3c TT |
3135 | fi |
3136 | ||
a64c9c13 TT |
3137 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
3138 | set dummy gmsgfmt; ac_word=$2 | |
3139 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3140 | echo "configure:3141: checking for $ac_word" >&5 |
a64c9c13 | 3141 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
f8bd9807 TT |
3142 | echo $ac_n "(cached) $ac_c" 1>&6 |
3143 | else | |
a64c9c13 TT |
3144 | case "$GMSGFMT" in |
3145 | /*) | |
3146 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3147 | ;; | |
3148 | ?:/*) | |
3149 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3150 | ;; | |
3151 | *) | |
3152 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3153 | ac_dummy="$PATH" | |
3154 | for ac_dir in $ac_dummy; do | |
3155 | test -z "$ac_dir" && ac_dir=. | |
3156 | if test -f $ac_dir/$ac_word; then | |
3157 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3158 | break | |
3159 | fi | |
3160 | done | |
3161 | IFS="$ac_save_ifs" | |
3162 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3163 | ;; | |
3164 | esac | |
f8bd9807 | 3165 | fi |
a64c9c13 TT |
3166 | GMSGFMT="$ac_cv_path_GMSGFMT" |
3167 | if test -n "$GMSGFMT"; then | |
3168 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3169 | else | |
3170 | echo "$ac_t""no" 1>&6 | |
f8bd9807 | 3171 | fi |
a64c9c13 TT |
3172 | |
3173 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3174 | set dummy xgettext; ac_word=$2 | |
3175 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3176 | echo "configure:3177: checking for $ac_word" >&5 |
a64c9c13 TT |
3177 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
3178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3179 | else | |
3180 | case "$XGETTEXT" in | |
3181 | /*) | |
3182 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3183 | ;; | |
3184 | *) | |
3185 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3186 | for ac_dir in $PATH; do | |
3187 | test -z "$ac_dir" && ac_dir=. | |
3188 | if test -f $ac_dir/$ac_word; then | |
3189 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
3190 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
3191 | break | |
3192 | fi | |
3193 | fi | |
3194 | done | |
3195 | IFS="$ac_save_ifs" | |
3196 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3197 | ;; | |
3198 | esac | |
f8bd9807 | 3199 | fi |
a64c9c13 TT |
3200 | XGETTEXT="$ac_cv_path_XGETTEXT" |
3201 | if test -n "$XGETTEXT"; then | |
3202 | echo "$ac_t""$XGETTEXT" 1>&6 | |
f8bd9807 | 3203 | else |
a64c9c13 | 3204 | echo "$ac_t""no" 1>&6 |
f8bd9807 | 3205 | fi |
f8bd9807 | 3206 | |
a64c9c13 TT |
3207 | |
3208 | USE_INCLUDED_LIBINTL=yes | |
3209 | CATOBJEXT=.gmo | |
3210 | INSTOBJEXT=.mo | |
3211 | DATADIRNAME=share | |
3212 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
3213 | INTLLIBS=$INTLDEPS | |
3214 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
3215 | nls_cv_header_intl=intl/libintl.h | |
3216 | nls_cv_header_libgt=intl/libgettext.h | |
3217 | fi | |
3218 | ||
3219 | if test "$XGETTEXT" != ":"; then | |
3220 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
3221 | : ; | |
3222 | else | |
3223 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
3224 | XGETTEXT=":" | |
3225 | fi | |
3226 | fi | |
3227 | ||
3228 | # We need to process the po/ directory. | |
3229 | POSUB=po | |
3230 | else | |
3231 | DATADIRNAME=share | |
3232 | nls_cv_header_intl=intl/libintl.h | |
3233 | nls_cv_header_libgt=intl/libgettext.h | |
3234 | fi | |
3235 | ||
3236 | ||
3237 | ||
3238 | ||
3239 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
3240 | # because some of the sources are only built for this goal. | |
3241 | if test "$PACKAGE" = gettext; then | |
3242 | USE_NLS=yes | |
3243 | USE_INCLUDED_LIBINTL=yes | |
3244 | fi | |
3245 | ||
3246 | for lang in $ALL_LINGUAS; do | |
3247 | GMOFILES="$GMOFILES $lang.gmo" | |
3248 | POFILES="$POFILES $lang.po" | |
3249 | done | |
3250 | ||
3251 | ||
3252 | ||
3253 | ||
3254 | ||
3255 | ||
3256 | ||
3257 | ||
3258 | ||
3259 | ||
3260 | ||
3261 | ||
3262 | ||
3263 | ||
3264 | if test "x$CATOBJEXT" != "x"; then | |
3265 | if test "x$ALL_LINGUAS" = "x"; then | |
3266 | LINGUAS= | |
3267 | else | |
3268 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
ff6dbcca | 3269 | echo "configure:3270: checking for catalogs to be installed" >&5 |
a64c9c13 TT |
3270 | NEW_LINGUAS= |
3271 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
3272 | case "$ALL_LINGUAS" in | |
3273 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
3274 | esac | |
3275 | done | |
3276 | LINGUAS=$NEW_LINGUAS | |
3277 | echo "$ac_t""$LINGUAS" 1>&6 | |
3278 | fi | |
3279 | ||
3280 | if test -n "$LINGUAS"; then | |
3281 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
3282 | fi | |
3283 | fi | |
3284 | ||
3285 | if test $ac_cv_header_locale_h = yes; then | |
3286 | INCLUDE_LOCALE_H="#include <locale.h>" | |
3287 | else | |
3288 | INCLUDE_LOCALE_H="\ | |
3289 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
3290 | fi | |
3291 | ||
3292 | ||
3293 | test -d intl || mkdir intl | |
3294 | if test "$CATOBJEXT" = ".cat"; then | |
3295 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
3296 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
ff6dbcca | 3297 | echo "configure:3298: checking for linux/version.h" >&5 |
f8bd9807 TT |
3298 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3300 | else | |
3301 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 3302 | #line 3303 "configure" |
f8bd9807 | 3303 | #include "confdefs.h" |
a64c9c13 | 3304 | #include <linux/version.h> |
f8bd9807 TT |
3305 | EOF |
3306 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ff6dbcca | 3307 | { (eval echo configure:3308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f8bd9807 TT |
3308 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3309 | if test -z "$ac_err"; then | |
3310 | rm -rf conftest* | |
3311 | eval "ac_cv_header_$ac_safe=yes" | |
3312 | else | |
3313 | echo "$ac_err" >&5 | |
3314 | echo "configure: failed program was:" >&5 | |
3315 | cat conftest.$ac_ext >&5 | |
3316 | rm -rf conftest* | |
3317 | eval "ac_cv_header_$ac_safe=no" | |
3318 | fi | |
3319 | rm -f conftest* | |
3320 | fi | |
3321 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3322 | echo "$ac_t""yes" 1>&6 | |
a64c9c13 | 3323 | msgformat=linux |
f8bd9807 TT |
3324 | else |
3325 | echo "$ac_t""no" 1>&6 | |
a64c9c13 TT |
3326 | msgformat=xopen |
3327 | fi | |
3328 | ||
3329 | ||
3330 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
3331 | fi | |
3332 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
3333 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
3334 | ||
3335 | if test "$PACKAGE" = "gettext"; then | |
3336 | GT_NO="#NO#" | |
3337 | GT_YES= | |
3338 | else | |
3339 | GT_NO= | |
3340 | GT_YES="#YES#" | |
3341 | fi | |
3342 | ||
3343 | ||
3344 | ||
3345 | MKINSTALLDIRS= | |
3346 | if test -n "$ac_aux_dir"; then | |
3347 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
3348 | fi | |
3349 | if test -z "$MKINSTALLDIRS"; then | |
3350 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
3351 | fi | |
3352 | ||
3353 | ||
3354 | l= | |
3355 | ||
3356 | ||
3357 | test -d po || mkdir po | |
3358 | if test "x$srcdir" != "x."; then | |
3359 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
3360 | posrcprefix="$srcdir/" | |
3361 | else | |
3362 | posrcprefix="../$srcdir/" | |
3363 | fi | |
3364 | else | |
3365 | posrcprefix="../" | |
3366 | fi | |
3367 | rm -f po/POTFILES | |
3368 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
3369 | < $srcdir/po/POTFILES.in > po/POTFILES | |
3370 | ||
74becf3c | 3371 | |
50e1e10f | 3372 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
ff6dbcca | 3373 | echo "configure:3374: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
21c84b71 | 3374 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
50e1e10f TT |
3375 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
3376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3377 | else | |
3378 | cat > conftestmake <<\EOF | |
3379 | all: | |
3380 | @echo 'ac_maketemp="${MAKE}"' | |
3381 | EOF | |
3382 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3383 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
3384 | if test -n "$ac_maketemp"; then | |
3385 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3386 | else | |
3387 | eval ac_cv_prog_make_${ac_make}_set=no | |
3388 | fi | |
3389 | rm -f conftestmake | |
3390 | fi | |
3391 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3392 | echo "$ac_t""yes" 1>&6 | |
3393 | SET_MAKE= | |
3394 | else | |
3395 | echo "$ac_t""no" 1>&6 | |
3396 | SET_MAKE="MAKE=${MAKE-make}" | |
3397 | fi | |
3398 | ||
3399 | # Extract the first word of "ln", so it can be a program name with args. | |
3400 | set dummy ln; ac_word=$2 | |
3401 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3402 | echo "configure:3403: checking for $ac_word" >&5 |
50e1e10f TT |
3403 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
3404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3405 | else | |
3406 | case "$LN" in | |
3407 | /*) | |
3408 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3409 | ;; | |
a4bf69d9 TT |
3410 | ?:/*) |
3411 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. | |
3412 | ;; | |
50e1e10f | 3413 | *) |
a4bf69d9 TT |
3414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3415 | ac_dummy="$PATH" | |
3416 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3417 | test -z "$ac_dir" && ac_dir=. |
3418 | if test -f $ac_dir/$ac_word; then | |
3419 | ac_cv_path_LN="$ac_dir/$ac_word" | |
3420 | break | |
3421 | fi | |
3422 | done | |
3423 | IFS="$ac_save_ifs" | |
3424 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" | |
3425 | ;; | |
3426 | esac | |
3427 | fi | |
3428 | LN="$ac_cv_path_LN" | |
3429 | if test -n "$LN"; then | |
3430 | echo "$ac_t""$LN" 1>&6 | |
3431 | else | |
3432 | echo "$ac_t""no" 1>&6 | |
3433 | fi | |
3434 | ||
fc6d9d51 | 3435 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
ff6dbcca | 3436 | echo "configure:3437: checking whether ln -s works" >&5 |
fc6d9d51 TT |
3437 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
3438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3439 | else | |
3440 | rm -f conftestdata | |
3441 | if ln -s X conftestdata 2>/dev/null | |
3442 | then | |
3443 | rm -f conftestdata | |
3444 | ac_cv_prog_LN_S="ln -s" | |
3445 | else | |
3446 | ac_cv_prog_LN_S=ln | |
3447 | fi | |
3448 | fi | |
3449 | LN_S="$ac_cv_prog_LN_S" | |
3450 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
3451 | echo "$ac_t""yes" 1>&6 | |
3452 | else | |
3453 | echo "$ac_t""no" 1>&6 | |
3454 | fi | |
3455 | ||
50e1e10f TT |
3456 | # Extract the first word of "mv", so it can be a program name with args. |
3457 | set dummy mv; ac_word=$2 | |
3458 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3459 | echo "configure:3460: checking for $ac_word" >&5 |
50e1e10f TT |
3460 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
3461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3462 | else | |
3463 | case "$MV" in | |
3464 | /*) | |
3465 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3466 | ;; | |
a4bf69d9 TT |
3467 | ?:/*) |
3468 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. | |
3469 | ;; | |
50e1e10f | 3470 | *) |
a4bf69d9 TT |
3471 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3472 | ac_dummy="$PATH" | |
3473 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3474 | test -z "$ac_dir" && ac_dir=. |
3475 | if test -f $ac_dir/$ac_word; then | |
3476 | ac_cv_path_MV="$ac_dir/$ac_word" | |
3477 | break | |
3478 | fi | |
3479 | done | |
3480 | IFS="$ac_save_ifs" | |
3481 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | |
3482 | ;; | |
3483 | esac | |
3484 | fi | |
3485 | MV="$ac_cv_path_MV" | |
3486 | if test -n "$MV"; then | |
3487 | echo "$ac_t""$MV" 1>&6 | |
3488 | else | |
3489 | echo "$ac_t""no" 1>&6 | |
3490 | fi | |
3491 | ||
3492 | # Extract the first word of "cp", so it can be a program name with args. | |
3493 | set dummy cp; ac_word=$2 | |
3494 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3495 | echo "configure:3496: checking for $ac_word" >&5 |
50e1e10f TT |
3496 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
3497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3498 | else | |
3499 | case "$CP" in | |
3500 | /*) | |
3501 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3502 | ;; | |
a4bf69d9 TT |
3503 | ?:/*) |
3504 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. | |
3505 | ;; | |
50e1e10f | 3506 | *) |
a4bf69d9 TT |
3507 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3508 | ac_dummy="$PATH" | |
3509 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3510 | test -z "$ac_dir" && ac_dir=. |
3511 | if test -f $ac_dir/$ac_word; then | |
3512 | ac_cv_path_CP="$ac_dir/$ac_word" | |
3513 | break | |
3514 | fi | |
3515 | done | |
3516 | IFS="$ac_save_ifs" | |
3517 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | |
3518 | ;; | |
3519 | esac | |
3520 | fi | |
3521 | CP="$ac_cv_path_CP" | |
3522 | if test -n "$CP"; then | |
3523 | echo "$ac_t""$CP" 1>&6 | |
3524 | else | |
3525 | echo "$ac_t""no" 1>&6 | |
3526 | fi | |
3527 | ||
3528 | # Extract the first word of "rm", so it can be a program name with args. | |
3529 | set dummy rm; ac_word=$2 | |
3530 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3531 | echo "configure:3532: checking for $ac_word" >&5 |
50e1e10f TT |
3532 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
3533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3534 | else | |
3535 | case "$RM" in | |
3536 | /*) | |
3537 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3538 | ;; | |
a4bf69d9 TT |
3539 | ?:/*) |
3540 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. | |
3541 | ;; | |
50e1e10f | 3542 | *) |
a4bf69d9 TT |
3543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3544 | ac_dummy="$PATH" | |
3545 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3546 | test -z "$ac_dir" && ac_dir=. |
3547 | if test -f $ac_dir/$ac_word; then | |
3548 | ac_cv_path_RM="$ac_dir/$ac_word" | |
3549 | break | |
3550 | fi | |
3551 | done | |
3552 | IFS="$ac_save_ifs" | |
3553 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | |
3554 | ;; | |
3555 | esac | |
3556 | fi | |
3557 | RM="$ac_cv_path_RM" | |
3558 | if test -n "$RM"; then | |
3559 | echo "$ac_t""$RM" 1>&6 | |
3560 | else | |
3561 | echo "$ac_t""no" 1>&6 | |
3562 | fi | |
3563 | ||
3564 | # Extract the first word of "chmod", so it can be a program name with args. | |
3565 | set dummy chmod; ac_word=$2 | |
3566 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3567 | echo "configure:3568: checking for $ac_word" >&5 |
50e1e10f TT |
3568 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
3569 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3570 | else | |
3571 | case "$CHMOD" in | |
3572 | /*) | |
3573 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
3574 | ;; | |
a4bf69d9 TT |
3575 | ?:/*) |
3576 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. | |
3577 | ;; | |
50e1e10f | 3578 | *) |
a4bf69d9 TT |
3579 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3580 | ac_dummy="$PATH" | |
3581 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3582 | test -z "$ac_dir" && ac_dir=. |
3583 | if test -f $ac_dir/$ac_word; then | |
3584 | ac_cv_path_CHMOD="$ac_dir/$ac_word" | |
3585 | break | |
3586 | fi | |
3587 | done | |
3588 | IFS="$ac_save_ifs" | |
3589 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" | |
3590 | ;; | |
3591 | esac | |
3592 | fi | |
3593 | CHMOD="$ac_cv_path_CHMOD" | |
3594 | if test -n "$CHMOD"; then | |
3595 | echo "$ac_t""$CHMOD" 1>&6 | |
3596 | else | |
3597 | echo "$ac_t""no" 1>&6 | |
3598 | fi | |
3599 | ||
3600 | # Extract the first word of "awk", so it can be a program name with args. | |
3601 | set dummy awk; ac_word=$2 | |
3602 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3603 | echo "configure:3604: checking for $ac_word" >&5 |
50e1e10f TT |
3604 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
3605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3606 | else | |
3607 | case "$AWK" in | |
3608 | /*) | |
3609 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. | |
3610 | ;; | |
a4bf69d9 TT |
3611 | ?:/*) |
3612 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. | |
3613 | ;; | |
50e1e10f | 3614 | *) |
a4bf69d9 TT |
3615 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3616 | ac_dummy="$PATH" | |
3617 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3618 | test -z "$ac_dir" && ac_dir=. |
3619 | if test -f $ac_dir/$ac_word; then | |
3620 | ac_cv_path_AWK="$ac_dir/$ac_word" | |
3621 | break | |
3622 | fi | |
3623 | done | |
3624 | IFS="$ac_save_ifs" | |
3625 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" | |
3626 | ;; | |
3627 | esac | |
3628 | fi | |
3629 | AWK="$ac_cv_path_AWK" | |
3630 | if test -n "$AWK"; then | |
3631 | echo "$ac_t""$AWK" 1>&6 | |
3632 | else | |
3633 | echo "$ac_t""no" 1>&6 | |
3634 | fi | |
3635 | ||
3636 | # Extract the first word of "sed", so it can be a program name with args. | |
3637 | set dummy sed; ac_word=$2 | |
3638 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3639 | echo "configure:3640: checking for $ac_word" >&5 |
50e1e10f TT |
3640 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
3641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3642 | else | |
3643 | case "$SED" in | |
3644 | /*) | |
3645 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3646 | ;; | |
a4bf69d9 TT |
3647 | ?:/*) |
3648 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. | |
3649 | ;; | |
50e1e10f | 3650 | *) |
a4bf69d9 TT |
3651 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3652 | ac_dummy="$PATH" | |
3653 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3654 | test -z "$ac_dir" && ac_dir=. |
3655 | if test -f $ac_dir/$ac_word; then | |
3656 | ac_cv_path_SED="$ac_dir/$ac_word" | |
3657 | break | |
3658 | fi | |
3659 | done | |
3660 | IFS="$ac_save_ifs" | |
3661 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | |
3662 | ;; | |
3663 | esac | |
3664 | fi | |
3665 | SED="$ac_cv_path_SED" | |
3666 | if test -n "$SED"; then | |
3667 | echo "$ac_t""$SED" 1>&6 | |
3668 | else | |
3669 | echo "$ac_t""no" 1>&6 | |
3670 | fi | |
3671 | ||
9d564f73 TT |
3672 | # Extract the first word of "perl", so it can be a program name with args. |
3673 | set dummy perl; ac_word=$2 | |
3674 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3675 | echo "configure:3676: checking for $ac_word" >&5 |
9d564f73 TT |
3676 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
3677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3678 | else | |
3679 | case "$PERL" in | |
3680 | /*) | |
3681 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
3682 | ;; | |
3683 | ?:/*) | |
3684 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | |
3685 | ;; | |
3686 | *) | |
3687 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3688 | ac_dummy="$PATH" | |
3689 | for ac_dir in $ac_dummy; do | |
3690 | test -z "$ac_dir" && ac_dir=. | |
3691 | if test -f $ac_dir/$ac_word; then | |
3692 | ac_cv_path_PERL="$ac_dir/$ac_word" | |
3693 | break | |
3694 | fi | |
3695 | done | |
3696 | IFS="$ac_save_ifs" | |
3697 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | |
3698 | ;; | |
3699 | esac | |
3700 | fi | |
3701 | PERL="$ac_cv_path_PERL" | |
3702 | if test -n "$PERL"; then | |
3703 | echo "$ac_t""$PERL" 1>&6 | |
3704 | else | |
3705 | echo "$ac_t""no" 1>&6 | |
3706 | fi | |
3707 | ||
250f79f0 TT |
3708 | # Extract the first word of "ldconfig", so it can be a program name with args. |
3709 | set dummy ldconfig; ac_word=$2 | |
3710 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3711 | echo "configure:3712: checking for $ac_word" >&5 |
250f79f0 TT |
3712 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
3713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3714 | else | |
3715 | case "$LDCONFIG" in | |
3716 | /*) | |
3717 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
3718 | ;; | |
3719 | ?:/*) | |
3720 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. | |
3721 | ;; | |
3722 | *) | |
3723 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3724 | ac_dummy="$PATH" | |
3725 | for ac_dir in $ac_dummy; do | |
3726 | test -z "$ac_dir" && ac_dir=. | |
3727 | if test -f $ac_dir/$ac_word; then | |
3728 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" | |
3729 | break | |
3730 | fi | |
3731 | done | |
3732 | IFS="$ac_save_ifs" | |
3733 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" | |
3734 | ;; | |
3735 | esac | |
3736 | fi | |
3737 | LDCONFIG="$ac_cv_path_LDCONFIG" | |
3738 | if test -n "$LDCONFIG"; then | |
3739 | echo "$ac_t""$LDCONFIG" 1>&6 | |
3740 | else | |
3741 | echo "$ac_t""no" 1>&6 | |
3742 | fi | |
3743 | ||
50e1e10f | 3744 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
ff6dbcca | 3745 | echo "configure:3746: checking build system type" >&5 |
50e1e10f TT |
3746 | |
3747 | build_alias=$build | |
3748 | case "$build_alias" in | |
3749 | NONE) | |
3750 | case $nonopt in | |
3751 | NONE) build_alias=$host_alias ;; | |
3752 | *) build_alias=$nonopt ;; | |
3753 | esac ;; | |
3754 | esac | |
3755 | ||
a4bf69d9 | 3756 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
21c84b71 TT |
3757 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3758 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3759 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
50e1e10f TT |
3760 | echo "$ac_t""$build" 1>&6 |
3761 | ||
3762 | if test $host != $build; then | |
3763 | ac_tool_prefix=${host_alias}- | |
3764 | else | |
3765 | ac_tool_prefix= | |
3766 | fi | |
3767 | ||
3768 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3769 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3770 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3771 | echo "configure:3772: checking for $ac_word" >&5 |
50e1e10f TT |
3772 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
3773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3774 | else | |
3775 | if test -n "$AR"; then | |
3776 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3777 | else | |
a4bf69d9 TT |
3778 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3779 | ac_dummy="$PATH" | |
3780 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3781 | test -z "$ac_dir" && ac_dir=. |
3782 | if test -f $ac_dir/$ac_word; then | |
3783 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3784 | break | |
3785 | fi | |
3786 | done | |
3787 | IFS="$ac_save_ifs" | |
3788 | fi | |
3789 | fi | |
3790 | AR="$ac_cv_prog_AR" | |
3791 | if test -n "$AR"; then | |
3792 | echo "$ac_t""$AR" 1>&6 | |
3793 | else | |
3794 | echo "$ac_t""no" 1>&6 | |
3795 | fi | |
3796 | ||
3797 | ||
3798 | if test -z "$ac_cv_prog_AR"; then | |
3799 | if test -n "$ac_tool_prefix"; then | |
3800 | # Extract the first word of "ar", so it can be a program name with args. | |
3801 | set dummy ar; ac_word=$2 | |
3802 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3803 | echo "configure:3804: checking for $ac_word" >&5 |
50e1e10f TT |
3804 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
3805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3806 | else | |
3807 | if test -n "$AR"; then | |
3808 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3809 | else | |
a4bf69d9 TT |
3810 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3811 | ac_dummy="$PATH" | |
3812 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3813 | test -z "$ac_dir" && ac_dir=. |
3814 | if test -f $ac_dir/$ac_word; then | |
3815 | ac_cv_prog_AR="ar" | |
3816 | break | |
3817 | fi | |
3818 | done | |
3819 | IFS="$ac_save_ifs" | |
3820 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
3821 | fi | |
3822 | fi | |
3823 | AR="$ac_cv_prog_AR" | |
3824 | if test -n "$AR"; then | |
3825 | echo "$ac_t""$AR" 1>&6 | |
3826 | else | |
3827 | echo "$ac_t""no" 1>&6 | |
3828 | fi | |
3829 | ||
3830 | else | |
3831 | AR="ar" | |
3832 | fi | |
3833 | fi | |
3834 | ||
3835 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3836 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3837 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3838 | echo "configure:3839: checking for $ac_word" >&5 |
50e1e10f TT |
3839 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
3840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3841 | else | |
3842 | if test -n "$RANLIB"; then | |
3843 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3844 | else | |
a4bf69d9 TT |
3845 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3846 | ac_dummy="$PATH" | |
3847 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3848 | test -z "$ac_dir" && ac_dir=. |
3849 | if test -f $ac_dir/$ac_word; then | |
3850 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3851 | break | |
3852 | fi | |
3853 | done | |
3854 | IFS="$ac_save_ifs" | |
3855 | fi | |
3856 | fi | |
3857 | RANLIB="$ac_cv_prog_RANLIB" | |
3858 | if test -n "$RANLIB"; then | |
3859 | echo "$ac_t""$RANLIB" 1>&6 | |
3860 | else | |
3861 | echo "$ac_t""no" 1>&6 | |
3862 | fi | |
3863 | ||
3864 | ||
3865 | if test -z "$ac_cv_prog_RANLIB"; then | |
3866 | if test -n "$ac_tool_prefix"; then | |
3867 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3868 | set dummy ranlib; ac_word=$2 | |
3869 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3870 | echo "configure:3871: checking for $ac_word" >&5 |
50e1e10f TT |
3871 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
3872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3873 | else | |
3874 | if test -n "$RANLIB"; then | |
3875 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3876 | else | |
a4bf69d9 TT |
3877 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3878 | ac_dummy="$PATH" | |
3879 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3880 | test -z "$ac_dir" && ac_dir=. |
3881 | if test -f $ac_dir/$ac_word; then | |
3882 | ac_cv_prog_RANLIB="ranlib" | |
3883 | break | |
3884 | fi | |
3885 | done | |
3886 | IFS="$ac_save_ifs" | |
3887 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
3888 | fi | |
3889 | fi | |
3890 | RANLIB="$ac_cv_prog_RANLIB" | |
3891 | if test -n "$RANLIB"; then | |
3892 | echo "$ac_t""$RANLIB" 1>&6 | |
3893 | else | |
3894 | echo "$ac_t""no" 1>&6 | |
3895 | fi | |
3896 | ||
3897 | else | |
3898 | RANLIB=":" | |
3899 | fi | |
3900 | fi | |
3901 | ||
3902 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3903 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3904 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3905 | echo "configure:3906: checking for $ac_word" >&5 |
50e1e10f TT |
3906 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
3907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3908 | else | |
3909 | if test -n "$STRIP"; then | |
3910 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3911 | else | |
a4bf69d9 TT |
3912 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3913 | ac_dummy="$PATH" | |
3914 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3915 | test -z "$ac_dir" && ac_dir=. |
3916 | if test -f $ac_dir/$ac_word; then | |
3917 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3918 | break | |
3919 | fi | |
3920 | done | |
3921 | IFS="$ac_save_ifs" | |
3922 | fi | |
3923 | fi | |
3924 | STRIP="$ac_cv_prog_STRIP" | |
3925 | if test -n "$STRIP"; then | |
3926 | echo "$ac_t""$STRIP" 1>&6 | |
3927 | else | |
3928 | echo "$ac_t""no" 1>&6 | |
3929 | fi | |
3930 | ||
3931 | ||
3932 | if test -z "$ac_cv_prog_STRIP"; then | |
3933 | if test -n "$ac_tool_prefix"; then | |
3934 | # Extract the first word of "strip", so it can be a program name with args. | |
3935 | set dummy strip; ac_word=$2 | |
3936 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 3937 | echo "configure:3938: checking for $ac_word" >&5 |
50e1e10f TT |
3938 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
3939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3940 | else | |
3941 | if test -n "$STRIP"; then | |
3942 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3943 | else | |
a4bf69d9 TT |
3944 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3945 | ac_dummy="$PATH" | |
3946 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
3947 | test -z "$ac_dir" && ac_dir=. |
3948 | if test -f $ac_dir/$ac_word; then | |
3949 | ac_cv_prog_STRIP="strip" | |
3950 | break | |
3951 | fi | |
3952 | done | |
3953 | IFS="$ac_save_ifs" | |
3954 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
3955 | fi | |
3956 | fi | |
3957 | STRIP="$ac_cv_prog_STRIP" | |
3958 | if test -n "$STRIP"; then | |
3959 | echo "$ac_t""$STRIP" 1>&6 | |
3960 | else | |
3961 | echo "$ac_t""no" 1>&6 | |
3962 | fi | |
3963 | ||
3964 | else | |
3965 | STRIP=":" | |
3966 | fi | |
3967 | fi | |
3968 | ||
50e1e10f TT |
3969 | # Find a good install program. We prefer a C program (faster), |
3970 | # so one script is as good as another. But avoid the broken or | |
3971 | # incompatible versions: | |
3972 | # SysV /etc/install, /usr/sbin/install | |
3973 | # SunOS /usr/etc/install | |
3974 | # IRIX /sbin/install | |
3975 | # AIX /bin/install | |
a4bf69d9 | 3976 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
50e1e10f TT |
3977 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3978 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3979 | # ./install, which can be erroneously created by make from ./install.sh. | |
3980 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
ff6dbcca | 3981 | echo "configure:3982: checking for a BSD compatible install" >&5 |
50e1e10f TT |
3982 | if test -z "$INSTALL"; then |
3983 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
3984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3985 | else | |
a4bf69d9 | 3986 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
50e1e10f TT |
3987 | for ac_dir in $PATH; do |
3988 | # Account for people who put trailing slashes in PATH elements. | |
3989 | case "$ac_dir/" in | |
3990 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
3991 | *) | |
3992 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
a4bf69d9 TT |
3993 | # Don't use installbsd from OSF since it installs stuff as root |
3994 | # by default. | |
3995 | for ac_prog in ginstall scoinst install; do | |
50e1e10f TT |
3996 | if test -f $ac_dir/$ac_prog; then |
3997 | if test $ac_prog = install && | |
3998 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
3999 | # AIX install. It has an incompatible calling convention. | |
50e1e10f TT |
4000 | : |
4001 | else | |
4002 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
4003 | break 2 | |
4004 | fi | |
4005 | fi | |
4006 | done | |
4007 | ;; | |
4008 | esac | |
4009 | done | |
21c84b71 TT |
4010 | IFS="$ac_save_IFS" |
4011 | ||
50e1e10f | 4012 | fi |
21c84b71 TT |
4013 | if test "${ac_cv_path_install+set}" = set; then |
4014 | INSTALL="$ac_cv_path_install" | |
4015 | else | |
4016 | # As a last resort, use the slow shell script. We don't cache a | |
4017 | # path for INSTALL within a source directory, because that will | |
4018 | # break other packages using the cache if that directory is | |
4019 | # removed, or if the path is relative. | |
4020 | INSTALL="$ac_install_sh" | |
4021 | fi | |
50e1e10f TT |
4022 | fi |
4023 | echo "$ac_t""$INSTALL" 1>&6 | |
4024 | ||
4025 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4026 | # It thinks the first close brace ends the variable substitution. | |
4027 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4028 | ||
a4bf69d9 TT |
4029 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
4030 | ||
50e1e10f TT |
4031 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4032 | ||
6c133523 TT |
4033 | # See if we need a separate native compiler. |
4034 | if test $cross_compiling = no; then | |
4035 | BUILD_CC="$CC" | |
4036 | ||
4037 | else | |
4038 | for ac_prog in gcc cc | |
4039 | do | |
4040 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4041 | set dummy $ac_prog; ac_word=$2 | |
4042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ff6dbcca | 4043 | echo "configure:4044: checking for $ac_word" >&5 |
6c133523 TT |
4044 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
4045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4046 | else | |
4047 | if test -n "$BUILD_CC"; then | |
4048 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
4049 | else | |
4050 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4051 | ac_dummy="$PATH" | |
4052 | for ac_dir in $ac_dummy; do | |
4053 | test -z "$ac_dir" && ac_dir=. | |
4054 | if test -f $ac_dir/$ac_word; then | |
4055 | ac_cv_prog_BUILD_CC="$ac_prog" | |
4056 | break | |
4057 | fi | |
4058 | done | |
4059 | IFS="$ac_save_ifs" | |
4060 | fi | |
4061 | fi | |
4062 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
4063 | if test -n "$BUILD_CC"; then | |
4064 | echo "$ac_t""$BUILD_CC" 1>&6 | |
4065 | else | |
4066 | echo "$ac_t""no" 1>&6 | |
4067 | fi | |
4068 | ||
4069 | test -n "$BUILD_CC" && break | |
4070 | done | |
4071 | ||
4072 | fi | |
4d0f3e17 | 4073 | for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h |
50e1e10f | 4074 | do |
21c84b71 | 4075 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
50e1e10f | 4076 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
ff6dbcca | 4077 | echo "configure:4078: checking for $ac_hdr" >&5 |
50e1e10f TT |
4078 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4080 | else | |
4081 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4082 | #line 4083 "configure" |
50e1e10f TT |
4083 | #include "confdefs.h" |
4084 | #include <$ac_hdr> | |
4085 | EOF | |
21c84b71 | 4086 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ff6dbcca | 4087 | { (eval echo configure:4088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a4bf69d9 | 4088 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
50e1e10f TT |
4089 | if test -z "$ac_err"; then |
4090 | rm -rf conftest* | |
4091 | eval "ac_cv_header_$ac_safe=yes" | |
4092 | else | |
4093 | echo "$ac_err" >&5 | |
21c84b71 TT |
4094 | echo "configure: failed program was:" >&5 |
4095 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
4096 | rm -rf conftest* |
4097 | eval "ac_cv_header_$ac_safe=no" | |
4098 | fi | |
4099 | rm -f conftest* | |
4100 | fi | |
4101 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4102 | echo "$ac_t""yes" 1>&6 | |
21c84b71 | 4103 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
50e1e10f TT |
4104 | cat >> confdefs.h <<EOF |
4105 | #define $ac_tr_hdr 1 | |
4106 | EOF | |
4107 | ||
4108 | else | |
4109 | echo "$ac_t""no" 1>&6 | |
4110 | fi | |
4111 | done | |
4112 | ||
4113 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
ff6dbcca | 4114 | echo "configure:4115: checking for vprintf" >&5 |
50e1e10f TT |
4115 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
4116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4117 | else | |
4118 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4119 | #line 4120 "configure" |
50e1e10f TT |
4120 | #include "confdefs.h" |
4121 | /* System header to define __stub macros and hopefully few prototypes, | |
4122 | which can conflict with char vprintf(); below. */ | |
4123 | #include <assert.h> | |
4124 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21c84b71 TT |
4125 | /* We use char because int might match the return type of a gcc2 |
4126 | builtin and then its argument prototype would still apply. */ | |
4127 | char vprintf(); | |
50e1e10f | 4128 | |
21c84b71 | 4129 | int main() { |
50e1e10f TT |
4130 | |
4131 | /* The GNU C library defines this for functions which it implements | |
4132 | to always fail with ENOSYS. Some functions are actually named | |
4133 | something starting with __ and the normal name is an alias. */ | |
4134 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
4135 | choke me | |
4136 | #else | |
4137 | vprintf(); | |
4138 | #endif | |
4139 | ||
4140 | ; return 0; } | |
4141 | EOF | |
ff6dbcca | 4142 | if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f TT |
4143 | rm -rf conftest* |
4144 | eval "ac_cv_func_vprintf=yes" | |
4145 | else | |
21c84b71 TT |
4146 | echo "configure: failed program was:" >&5 |
4147 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
4148 | rm -rf conftest* |
4149 | eval "ac_cv_func_vprintf=no" | |
4150 | fi | |
4151 | rm -f conftest* | |
50e1e10f | 4152 | fi |
21c84b71 | 4153 | |
50e1e10f TT |
4154 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
4155 | echo "$ac_t""yes" 1>&6 | |
4156 | cat >> confdefs.h <<\EOF | |
4157 | #define HAVE_VPRINTF 1 | |
4158 | EOF | |
4159 | ||
4160 | else | |
4161 | echo "$ac_t""no" 1>&6 | |
4162 | fi | |
4163 | ||
4164 | if test "$ac_cv_func_vprintf" != yes; then | |
4165 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
ff6dbcca | 4166 | echo "configure:4167: checking for _doprnt" >&5 |
50e1e10f TT |
4167 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
4168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4169 | else | |
4170 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4171 | #line 4172 "configure" |
50e1e10f TT |
4172 | #include "confdefs.h" |
4173 | /* System header to define __stub macros and hopefully few prototypes, | |
4174 | which can conflict with char _doprnt(); below. */ | |
4175 | #include <assert.h> | |
4176 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21c84b71 TT |
4177 | /* We use char because int might match the return type of a gcc2 |
4178 | builtin and then its argument prototype would still apply. */ | |
4179 | char _doprnt(); | |
50e1e10f | 4180 | |
21c84b71 | 4181 | int main() { |
50e1e10f TT |
4182 | |
4183 | /* The GNU C library defines this for functions which it implements | |
4184 | to always fail with ENOSYS. Some functions are actually named | |
4185 | something starting with __ and the normal name is an alias. */ | |
4186 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
4187 | choke me | |
4188 | #else | |
4189 | _doprnt(); | |
4190 | #endif | |
4191 | ||
4192 | ; return 0; } | |
4193 | EOF | |
ff6dbcca | 4194 | if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f TT |
4195 | rm -rf conftest* |
4196 | eval "ac_cv_func__doprnt=yes" | |
4197 | else | |
21c84b71 TT |
4198 | echo "configure: failed program was:" >&5 |
4199 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
4200 | rm -rf conftest* |
4201 | eval "ac_cv_func__doprnt=no" | |
4202 | fi | |
4203 | rm -f conftest* | |
50e1e10f | 4204 | fi |
21c84b71 | 4205 | |
50e1e10f TT |
4206 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
4207 | echo "$ac_t""yes" 1>&6 | |
4208 | cat >> confdefs.h <<\EOF | |
4209 | #define HAVE_DOPRNT 1 | |
4210 | EOF | |
4211 | ||
4212 | else | |
4213 | echo "$ac_t""no" 1>&6 | |
4214 | fi | |
4215 | ||
4216 | fi | |
4217 | ||
4218 | echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6 | |
ff6dbcca | 4219 | echo "configure:4220: checking whether struct dirent has a d_namlen field" >&5 |
50e1e10f TT |
4220 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then |
4221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4222 | else | |
4223 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4224 | #line 4225 "configure" |
50e1e10f TT |
4225 | #include "confdefs.h" |
4226 | #include <sys/types.h> | |
4227 | #include <dirent.h> | |
21c84b71 | 4228 | int main() { |
50e1e10f TT |
4229 | struct dirent de; de.d_namlen = 0; |
4230 | ; return 0; } | |
4231 | EOF | |
ff6dbcca | 4232 | if { (eval echo configure:4233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
50e1e10f TT |
4233 | rm -rf conftest* |
4234 | e2fsprogs_cv_struct_d_namlen=yes | |
4235 | else | |
21c84b71 TT |
4236 | echo "configure: failed program was:" >&5 |
4237 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
4238 | rm -rf conftest* |
4239 | e2fsprogs_cv_struct_d_namlen=no | |
4240 | fi | |
4241 | rm -f conftest* | |
50e1e10f TT |
4242 | fi |
4243 | ||
4244 | echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6 | |
4245 | if test "$e2fsprogs_cv_struct_d_namlen" = yes; then | |
4246 | cat >> confdefs.h <<\EOF | |
4247 | #define HAVE_DIRENT_NAMLEN 1 | |
4248 | EOF | |
4249 | ||
b0b9c4de TT |
4250 | fi |
4251 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 | |
ff6dbcca | 4252 | echo "configure:4253: checking whether llseek declared in unistd.h" >&5 |
b0b9c4de TT |
4253 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
4254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4255 | else | |
4256 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4257 | #line 4258 "configure" |
b0b9c4de TT |
4258 | #include "confdefs.h" |
4259 | #include <unistd.h> | |
4260 | int main() { | |
4261 | extern int llseek(int); | |
4262 | ; return 0; } | |
4263 | EOF | |
ff6dbcca | 4264 | if { (eval echo configure:4265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b0b9c4de TT |
4265 | rm -rf conftest* |
4266 | e2fsprogs_cv_have_llseek_prototype=no | |
4267 | else | |
4268 | echo "configure: failed program was:" >&5 | |
4269 | cat conftest.$ac_ext >&5 | |
4270 | rm -rf conftest* | |
4271 | e2fsprogs_cv_have_llseek_prototype=yes | |
4272 | fi | |
4273 | rm -f conftest* | |
4274 | fi | |
4275 | ||
4276 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 | |
4277 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then | |
4278 | cat >> confdefs.h <<\EOF | |
4279 | #define HAVE_LLSEEK_PROTOTYPE 1 | |
4280 | EOF | |
4281 | ||
6928adc9 TT |
4282 | fi |
4283 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 | |
ff6dbcca | 4284 | echo "configure:4285: checking whether lseek64 declared in unistd.h" >&5 |
6928adc9 TT |
4285 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
4286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4287 | else | |
4288 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4289 | #line 4290 "configure" |
6928adc9 TT |
4290 | #include "confdefs.h" |
4291 | #define _LARGEFILE_SOURCE | |
4292 | #define _LARGEFILE64_SOURCE | |
4293 | #include <unistd.h> | |
4294 | int main() { | |
4295 | extern int lseek64(int); | |
4296 | ; return 0; } | |
4297 | EOF | |
ff6dbcca | 4298 | if { (eval echo configure:4299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6928adc9 TT |
4299 | rm -rf conftest* |
4300 | e2fsprogs_cv_have_lseek64_prototype=no | |
4301 | else | |
4302 | echo "configure: failed program was:" >&5 | |
4303 | cat conftest.$ac_ext >&5 | |
4304 | rm -rf conftest* | |
4305 | e2fsprogs_cv_have_lseek64_prototype=yes | |
4306 | fi | |
4307 | rm -f conftest* | |
4308 | fi | |
4309 | ||
4310 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 | |
4311 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then | |
4312 | cat >> confdefs.h <<\EOF | |
4313 | #define HAVE_LSEEK64_PROTOTYPE 1 | |
4314 | EOF | |
4315 | ||
50e1e10f TT |
4316 | fi |
4317 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then | |
4318 | # if cross-compiling, with no cached values, just assume something common. | |
4319 | ac_cv_sizeof_short=2 | |
4320 | ac_cv_sizeof_int=4 | |
4321 | ac_cv_sizeof_long=4 | |
6c133523 TT |
4322 | ac_cv_sizeof_long_long=8 |
4323 | echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2 | |
50e1e10f TT |
4324 | fi |
4325 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
ff6dbcca | 4326 | echo "configure:4327: checking size of short" >&5 |
50e1e10f TT |
4327 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
4328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4329 | else | |
4330 | if test "$cross_compiling" = yes; then | |
4331 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4332 | else | |
21c84b71 | 4333 | cat > conftest.$ac_ext <<EOF |
ff6dbcca | 4334 | #line 4335 "configure" |
50e1e10f TT |
4335 | #include "confdefs.h" |
4336 | #include <stdio.h> | |
250f79f0 | 4337 | #include <sys/types.h> |
50e1e10f TT |
4338 | main() |
4339 | { | |
4340 | FILE *f=fopen("conftestval", "w"); | |
4341 | if (!f) exit(1); | |
4342 | fprintf(f, "%d\n", sizeof(short)); | |
4343 | exit(0); | |
4344 | } | |
4345 | EOF | |
ff6dbcca | 4346 | if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 4347 | then |
50e1e10f TT |
4348 | ac_cv_sizeof_short=`cat conftestval` |
4349 | else | |
21c84b71 TT |
4350 | echo "configure: failed program was:" >&5 |
4351 | cat conftest.$ac_ext >&5 | |
4352 | rm -fr conftest* | |
50e1e10f TT |
4353 | ac_cv_sizeof_short=0 |
4354 | fi | |
50e1e10f | 4355 | rm -fr conftest* |
21c84b71 TT |
4356 | fi |
4357 | ||
50e1e10f TT |
4358 | fi |
4359 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
4360 | cat >> confdefs.h <<EOF | |
4361 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
4362 | EOF | |
4363 | ||
4364 | ||
4365 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
ff6dbcca | 4366 | echo "configure:4367: checking size of int" >&5 |
50e1e10f TT |
4367 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
4368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4369 | else | |
4370 | if test "$cross_compiling" = yes; then | |
4371 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4372 | else | |
21c84b71 | 4373 | cat > conftest.$ac_ext <<EOF |
ff6dbcca | 4374 | #line 4375 "configure" |
50e1e10f TT |
4375 | #include "confdefs.h" |
4376 | #include <stdio.h> | |
250f79f0 | 4377 | #include <sys/types.h> |
50e1e10f TT |
4378 | main() |
4379 | { | |
4380 | FILE *f=fopen("conftestval", "w"); | |
4381 | if (!f) exit(1); | |
4382 | fprintf(f, "%d\n", sizeof(int)); | |
4383 | exit(0); | |
4384 | } | |
4385 | EOF | |
ff6dbcca | 4386 | if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 4387 | then |
50e1e10f TT |
4388 | ac_cv_sizeof_int=`cat conftestval` |
4389 | else | |
21c84b71 TT |
4390 | echo "configure: failed program was:" >&5 |
4391 | cat conftest.$ac_ext >&5 | |
4392 | rm -fr conftest* | |
50e1e10f TT |
4393 | ac_cv_sizeof_int=0 |
4394 | fi | |
50e1e10f | 4395 | rm -fr conftest* |
21c84b71 TT |
4396 | fi |
4397 | ||
50e1e10f TT |
4398 | fi |
4399 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
4400 | cat >> confdefs.h <<EOF | |
4401 | #define SIZEOF_INT $ac_cv_sizeof_int | |
4402 | EOF | |
4403 | ||
4404 | ||
4405 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
ff6dbcca | 4406 | echo "configure:4407: checking size of long" >&5 |
50e1e10f TT |
4407 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
4408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4409 | else | |
4410 | if test "$cross_compiling" = yes; then | |
4411 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4412 | else | |
21c84b71 | 4413 | cat > conftest.$ac_ext <<EOF |
ff6dbcca | 4414 | #line 4415 "configure" |
50e1e10f TT |
4415 | #include "confdefs.h" |
4416 | #include <stdio.h> | |
250f79f0 | 4417 | #include <sys/types.h> |
50e1e10f TT |
4418 | main() |
4419 | { | |
4420 | FILE *f=fopen("conftestval", "w"); | |
4421 | if (!f) exit(1); | |
4422 | fprintf(f, "%d\n", sizeof(long)); | |
4423 | exit(0); | |
4424 | } | |
4425 | EOF | |
ff6dbcca | 4426 | if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 4427 | then |
50e1e10f TT |
4428 | ac_cv_sizeof_long=`cat conftestval` |
4429 | else | |
21c84b71 TT |
4430 | echo "configure: failed program was:" >&5 |
4431 | cat conftest.$ac_ext >&5 | |
4432 | rm -fr conftest* | |
50e1e10f TT |
4433 | ac_cv_sizeof_long=0 |
4434 | fi | |
50e1e10f | 4435 | rm -fr conftest* |
21c84b71 TT |
4436 | fi |
4437 | ||
50e1e10f TT |
4438 | fi |
4439 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
4440 | cat >> confdefs.h <<EOF | |
4441 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
4442 | EOF | |
4443 | ||
4444 | ||
fc6d9d51 | 4445 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
ff6dbcca | 4446 | echo "configure:4447: checking size of long long" >&5 |
fc6d9d51 TT |
4447 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
4448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4449 | else | |
4450 | if test "$cross_compiling" = yes; then | |
4451 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4452 | else | |
21c84b71 | 4453 | cat > conftest.$ac_ext <<EOF |
ff6dbcca | 4454 | #line 4455 "configure" |
fc6d9d51 TT |
4455 | #include "confdefs.h" |
4456 | #include <stdio.h> | |
250f79f0 | 4457 | #include <sys/types.h> |
fc6d9d51 TT |
4458 | main() |
4459 | { | |
4460 | FILE *f=fopen("conftestval", "w"); | |
4461 | if (!f) exit(1); | |
4462 | fprintf(f, "%d\n", sizeof(long long)); | |
4463 | exit(0); | |
4464 | } | |
4465 | EOF | |
ff6dbcca | 4466 | if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 4467 | then |
fc6d9d51 TT |
4468 | ac_cv_sizeof_long_long=`cat conftestval` |
4469 | else | |
21c84b71 TT |
4470 | echo "configure: failed program was:" >&5 |
4471 | cat conftest.$ac_ext >&5 | |
4472 | rm -fr conftest* | |
fc6d9d51 TT |
4473 | ac_cv_sizeof_long_long=0 |
4474 | fi | |
fc6d9d51 | 4475 | rm -fr conftest* |
21c84b71 TT |
4476 | fi |
4477 | ||
fc6d9d51 TT |
4478 | fi |
4479 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
4480 | cat >> confdefs.h <<EOF | |
4481 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
4482 | EOF | |
4483 | ||
4484 | ||
50e1e10f TT |
4485 | SIZEOF_SHORT=$ac_cv_sizeof_short |
4486 | SIZEOF_INT=$ac_cv_sizeof_int | |
4487 | SIZEOF_LONG=$ac_cv_sizeof_long | |
fc6d9d51 TT |
4488 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
4489 | ||
50e1e10f TT |
4490 | |
4491 | ||
4492 | ||
877eb6d9 | 4493 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
ff6dbcca | 4494 | echo "configure:4495: checking whether byte ordering is bigendian" >&5 |
877eb6d9 TT |
4495 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
4496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4497 | else | |
4498 | ac_cv_c_bigendian=unknown | |
4499 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4500 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4501 | #line 4502 "configure" |
877eb6d9 TT |
4502 | #include "confdefs.h" |
4503 | #include <sys/types.h> | |
4504 | #include <sys/param.h> | |
4505 | int main() { | |
4506 | ||
4507 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
4508 | bogus endian macros | |
4509 | #endif | |
4510 | ; return 0; } | |
4511 | EOF | |
ff6dbcca | 4512 | if { (eval echo configure:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
877eb6d9 TT |
4513 | rm -rf conftest* |
4514 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4515 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4516 | #line 4517 "configure" |
877eb6d9 TT |
4517 | #include "confdefs.h" |
4518 | #include <sys/types.h> | |
4519 | #include <sys/param.h> | |
4520 | int main() { | |
4521 | ||
4522 | #if BYTE_ORDER != BIG_ENDIAN | |
4523 | not big endian | |
4524 | #endif | |
4525 | ; return 0; } | |
4526 | EOF | |
ff6dbcca | 4527 | if { (eval echo configure:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
877eb6d9 TT |
4528 | rm -rf conftest* |
4529 | ac_cv_c_bigendian=yes | |
4530 | else | |
4531 | echo "configure: failed program was:" >&5 | |
4532 | cat conftest.$ac_ext >&5 | |
4533 | rm -rf conftest* | |
4534 | ac_cv_c_bigendian=no | |
4535 | fi | |
4536 | rm -f conftest* | |
4537 | else | |
4538 | echo "configure: failed program was:" >&5 | |
4539 | cat conftest.$ac_ext >&5 | |
4540 | fi | |
4541 | rm -f conftest* | |
4542 | if test $ac_cv_c_bigendian = unknown; then | |
4543 | if test "$cross_compiling" = yes; then | |
4544 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4545 | else | |
4546 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4547 | #line 4548 "configure" |
877eb6d9 TT |
4548 | #include "confdefs.h" |
4549 | main () { | |
4550 | /* Are we little or big endian? From Harbison&Steele. */ | |
4551 | union | |
4552 | { | |
4553 | long l; | |
4554 | char c[sizeof (long)]; | |
4555 | } u; | |
4556 | u.l = 1; | |
4557 | exit (u.c[sizeof (long) - 1] == 1); | |
4558 | } | |
4559 | EOF | |
ff6dbcca | 4560 | if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
877eb6d9 TT |
4561 | then |
4562 | ac_cv_c_bigendian=no | |
4563 | else | |
4564 | echo "configure: failed program was:" >&5 | |
4565 | cat conftest.$ac_ext >&5 | |
4566 | rm -fr conftest* | |
4567 | ac_cv_c_bigendian=yes | |
4568 | fi | |
4569 | rm -fr conftest* | |
4570 | fi | |
4571 | ||
4572 | fi | |
4573 | fi | |
4574 | ||
4575 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
4576 | if test $ac_cv_c_bigendian = yes; then | |
4577 | cat >> confdefs.h <<\EOF | |
4578 | #define WORDS_BIGENDIAN 1 | |
4579 | EOF | |
4580 | ||
4581 | fi | |
4582 | ||
50e1e10f | 4583 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
ff6dbcca | 4584 | echo "configure:4585: checking whether struct stat has a st_flags field" >&5 |
50e1e10f TT |
4585 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
4586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4587 | else | |
4588 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4589 | #line 4590 "configure" |
50e1e10f TT |
4590 | #include "confdefs.h" |
4591 | #include <sys/stat.h> | |
21c84b71 | 4592 | int main() { |
50e1e10f TT |
4593 | struct stat stat; stat.st_flags = 0; |
4594 | ; return 0; } | |
4595 | EOF | |
ff6dbcca | 4596 | if { (eval echo configure:4597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
50e1e10f TT |
4597 | rm -rf conftest* |
4598 | e2fsprogs_cv_struct_st_flags=yes | |
4599 | else | |
21c84b71 TT |
4600 | echo "configure: failed program was:" >&5 |
4601 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
4602 | rm -rf conftest* |
4603 | e2fsprogs_cv_struct_st_flags=no | |
4604 | fi | |
4605 | rm -f conftest* | |
50e1e10f TT |
4606 | fi |
4607 | ||
4608 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 | |
4609 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then | |
c03bc4e8 | 4610 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
ff6dbcca | 4611 | echo "configure:4612: checking whether st_flags field is useful" >&5 |
c03bc4e8 TT |
4612 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
4613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4614 | else | |
4615 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4616 | #line 4617 "configure" |
c03bc4e8 TT |
4617 | #include "confdefs.h" |
4618 | #include <sys/stat.h> | |
4619 | int main() { | |
4620 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; | |
4621 | ; return 0; } | |
4622 | EOF | |
ff6dbcca | 4623 | if { (eval echo configure:4624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c03bc4e8 TT |
4624 | rm -rf conftest* |
4625 | e2fsprogs_cv_struct_st_flags_immut=yes | |
4626 | else | |
4627 | echo "configure: failed program was:" >&5 | |
4628 | cat conftest.$ac_ext >&5 | |
4629 | rm -rf conftest* | |
4630 | e2fsprogs_cv_struct_st_flags_immut=no | |
4631 | fi | |
4632 | rm -f conftest* | |
4633 | fi | |
4634 | ||
4635 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 | |
4636 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | |
4637 | cat >> confdefs.h <<\EOF | |
50e1e10f TT |
4638 | #define HAVE_STAT_FLAGS 1 |
4639 | EOF | |
4640 | ||
c03bc4e8 | 4641 | fi |
50e1e10f | 4642 | fi |
31e29a12 | 4643 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf |
50e1e10f TT |
4644 | do |
4645 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ff6dbcca | 4646 | echo "configure:4647: checking for $ac_func" >&5 |
50e1e10f TT |
4647 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4649 | else | |
4650 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4651 | #line 4652 "configure" |
50e1e10f TT |
4652 | #include "confdefs.h" |
4653 | /* System header to define __stub macros and hopefully few prototypes, | |
4654 | which can conflict with char $ac_func(); below. */ | |
4655 | #include <assert.h> | |
4656 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21c84b71 TT |
4657 | /* We use char because int might match the return type of a gcc2 |
4658 | builtin and then its argument prototype would still apply. */ | |
4659 | char $ac_func(); | |
50e1e10f | 4660 | |
21c84b71 | 4661 | int main() { |
50e1e10f TT |
4662 | |
4663 | /* The GNU C library defines this for functions which it implements | |
4664 | to always fail with ENOSYS. Some functions are actually named | |
4665 | something starting with __ and the normal name is an alias. */ | |
4666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4667 | choke me | |
4668 | #else | |
4669 | $ac_func(); | |
4670 | #endif | |
4671 | ||
4672 | ; return 0; } | |
4673 | EOF | |
ff6dbcca | 4674 | if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f TT |
4675 | rm -rf conftest* |
4676 | eval "ac_cv_func_$ac_func=yes" | |
4677 | else | |
21c84b71 TT |
4678 | echo "configure: failed program was:" >&5 |
4679 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
4680 | rm -rf conftest* |
4681 | eval "ac_cv_func_$ac_func=no" | |
4682 | fi | |
4683 | rm -f conftest* | |
50e1e10f | 4684 | fi |
21c84b71 | 4685 | |
50e1e10f TT |
4686 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
4687 | echo "$ac_t""yes" 1>&6 | |
21c84b71 | 4688 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
50e1e10f TT |
4689 | cat >> confdefs.h <<EOF |
4690 | #define $ac_tr_func 1 | |
4691 | EOF | |
4692 | ||
4693 | else | |
4694 | echo "$ac_t""no" 1>&6 | |
4695 | fi | |
4696 | done | |
4697 | ||
fc6d9d51 | 4698 | SOCKET_LIB='' |
21c84b71 | 4699 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
ff6dbcca | 4700 | echo "configure:4701: checking for socket in -lsocket" >&5 |
21c84b71 TT |
4701 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
4702 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
50e1e10f TT |
4703 | echo $ac_n "(cached) $ac_c" 1>&6 |
4704 | else | |
fc6d9d51 TT |
4705 | ac_save_LIBS="$LIBS" |
4706 | LIBS="-lsocket $LIBS" | |
4707 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4708 | #line 4709 "configure" |
50e1e10f | 4709 | #include "confdefs.h" |
21c84b71 TT |
4710 | /* Override any gcc2 internal prototype to avoid an error. */ |
4711 | /* We use char because int might match the return type of a gcc2 | |
4712 | builtin and then its argument prototype would still apply. */ | |
4713 | char socket(); | |
fc6d9d51 | 4714 | |
21c84b71 | 4715 | int main() { |
fc6d9d51 TT |
4716 | socket() |
4717 | ; return 0; } | |
50e1e10f | 4718 | EOF |
ff6dbcca | 4719 | if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f | 4720 | rm -rf conftest* |
21c84b71 | 4721 | eval "ac_cv_lib_$ac_lib_var=yes" |
50e1e10f | 4722 | else |
21c84b71 TT |
4723 | echo "configure: failed program was:" >&5 |
4724 | cat conftest.$ac_ext >&5 | |
50e1e10f | 4725 | rm -rf conftest* |
21c84b71 | 4726 | eval "ac_cv_lib_$ac_lib_var=no" |
50e1e10f TT |
4727 | fi |
4728 | rm -f conftest* | |
fc6d9d51 | 4729 | LIBS="$ac_save_LIBS" |
50e1e10f TT |
4730 | |
4731 | fi | |
21c84b71 | 4732 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
fc6d9d51 TT |
4733 | echo "$ac_t""yes" 1>&6 |
4734 | SOCKET_LIB=-lsocket | |
4735 | else | |
4736 | echo "$ac_t""no" 1>&6 | |
50e1e10f | 4737 | fi |
fc6d9d51 TT |
4738 | |
4739 | ||
4740 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 | |
ff6dbcca | 4741 | echo "configure:4742: checking for optreset" >&5 |
fc6d9d51 | 4742 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
50e1e10f TT |
4743 | echo $ac_n "(cached) $ac_c" 1>&6 |
4744 | else | |
4745 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4746 | #line 4747 "configure" |
50e1e10f | 4747 | #include "confdefs.h" |
fc6d9d51 | 4748 | #include <unistd.h> |
50e1e10f | 4749 | EOF |
fc6d9d51 TT |
4750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4751 | egrep "optreset" >/dev/null 2>&1; then | |
50e1e10f | 4752 | rm -rf conftest* |
fc6d9d51 | 4753 | ac_cv_have_optreset=yes |
50e1e10f TT |
4754 | else |
4755 | rm -rf conftest* | |
fc6d9d51 | 4756 | ac_cv_have_optreset=no |
50e1e10f TT |
4757 | fi |
4758 | rm -f conftest* | |
4759 | ||
4760 | fi | |
fc6d9d51 TT |
4761 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
4762 | if test $ac_cv_have_optreset = yes; then | |
50e1e10f | 4763 | cat >> confdefs.h <<\EOF |
fc6d9d51 | 4764 | #define HAVE_OPTRESET 1 |
50e1e10f TT |
4765 | EOF |
4766 | ||
4767 | fi | |
8f3f29d3 TT |
4768 | case "$host_os" in |
4769 | linux*) | |
4770 | cat >> confdefs.h <<\EOF | |
50e1e10f TT |
4771 | #define HAVE_EXT2_IOCTLS 1 |
4772 | EOF | |
4773 | ||
8f3f29d3 TT |
4774 | ;; |
4775 | esac | |
50e1e10f | 4776 | case "$host_os" in |
6c133523 | 4777 | linux* | gnu*) |
a4b2d3ce TT |
4778 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
4779 | root_prefix=""; | |
4780 | echo "On $host_os systems, root_prefix defaults to ''" | |
fc6d9d51 TT |
4781 | fi |
4782 | ;; | |
4783 | esac | |
fc6d9d51 TT |
4784 | case "$host_os" in |
4785 | linux* | gnu*) | |
4786 | if test "$prefix" = NONE ; then | |
a4b2d3ce TT |
4787 | prefix="/usr"; |
4788 | echo "On $host_os systems, prefix defaults to /usr" | |
bff61a7a TT |
4789 | if test "$mandir" = '${prefix}/man' ; then |
4790 | echo "...and mandir defaults to /usr/share/man" | |
4791 | mandir=/usr/share/man | |
4792 | fi | |
50e1e10f TT |
4793 | fi |
4794 | ;; | |
4795 | esac | |
a4b2d3ce | 4796 | if test "$root_prefix" = NONE ; then |
ffe1991f | 4797 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
4798 | root_prefix="$ac_default_prefix" |
4799 | else | |
4800 | root_prefix="$prefix" | |
4801 | fi | |
b5ffeade TT |
4802 | root_bindir=$bindir |
4803 | root_sbindir=$sbindir | |
4804 | root_libdir=$libdir | |
4805 | root_sysconfdir=$sysconfdir | |
4806 | else | |
4807 | root_bindir='${root_prefix}/bin' | |
4808 | root_sbindir='${root_prefix}/sbin' | |
4809 | root_libdir='${root_prefix}/lib' | |
4810 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce TT |
4811 | fi |
4812 | ||
b5ffeade TT |
4813 | |
4814 | ||
4815 | ||
4816 | ||
ae851482 | 4817 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
ff6dbcca | 4818 | echo "configure:4819: checking whether linker accepts -static" >&5 |
ae851482 TT |
4819 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
4820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4821 | else | |
4822 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" | |
4823 | cat > conftest.$ac_ext <<EOF | |
ff6dbcca | 4824 | #line 4825 "configure" |
ae851482 TT |
4825 | #include "confdefs.h" |
4826 | #include <stdio.h> | |
4827 | int main() { | |
4828 | fflush(stdout); | |
4829 | ; return 0; } | |
4830 | EOF | |
ff6dbcca | 4831 | if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ae851482 TT |
4832 | rm -rf conftest* |
4833 | ac_cv_e2fsprogs_use_static=yes | |
4834 | else | |
4835 | echo "configure: failed program was:" >&5 | |
4836 | cat conftest.$ac_ext >&5 | |
4837 | rm -rf conftest* | |
4838 | ac_cv_e2fsprogs_use_static=no | |
4839 | fi | |
4840 | rm -f conftest* | |
4841 | LDFLAGS=$SAVE_LDFLAGS | |
4842 | fi | |
50e1e10f | 4843 | |
defde784 TT |
4844 | case "$host_os" in |
4845 | solaris2.*) | |
4846 | ac_cv_e2fsprogs_use_static=no | |
4847 | ;; | |
4848 | esac | |
ae851482 | 4849 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
74becf3c | 4850 | LDFLAG_STATIC= |
ae851482 | 4851 | if test $ac_cv_e2fsprogs_use_static = yes; then |
50e1e10f | 4852 | LDFLAG_STATIC=-static |
ae851482 | 4853 | fi |
50e1e10f | 4854 | |
50e1e10f TT |
4855 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
4856 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | |
4857 | ||
4858 | ||
4859 | if test "$cross_compiling" = yes ; then | |
4860 | DO_TEST_SUITE= | |
4861 | else | |
4862 | DO_TEST_SUITE=check | |
4863 | fi | |
4864 | ||
4865 | test -d lib || mkdir lib | |
4866 | test -d include || mkdir include | |
4867 | test -d include/linux || mkdir include/linux | |
defde784 | 4868 | test -d include/asm || mkdir include/asm |
bc210074 TT |
4869 | rmakefile= |
4870 | if test -d ${srcdir}/resize ; then | |
4871 | rmakefile=resize/Makefile | |
4872 | fi | |
50e1e10f TT |
4873 | trap '' 1 2 15 |
4874 | cat > confcache <<\EOF | |
4875 | # This file is a shell script that caches the results of configure | |
4876 | # tests run on this system so they can be shared between configure | |
4877 | # scripts and configure runs. It is not useful on other systems. | |
4878 | # If it contains results you don't want to keep, you may remove or edit it. | |
4879 | # | |
4880 | # By default, configure uses ./config.cache as the cache file, | |
4881 | # creating it if it does not exist already. You can give configure | |
4882 | # the --cache-file=FILE option to use a different cache file; that is | |
4883 | # what configure does when it calls configure scripts in | |
4884 | # subdirectories, so they share the cache. | |
4885 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4886 | # config.status only pays attention to the cache file if you give it the | |
4887 | # --recheck option to rerun configure. | |
4888 | # | |
4889 | EOF | |
21c84b71 TT |
4890 | # The following way of writing the cache mishandles newlines in values, |
4891 | # but we know of no workaround that is simple, portable, and efficient. | |
4892 | # So, don't put newlines in cache variables' values. | |
50e1e10f TT |
4893 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4894 | # and sets the high bit in the cache file unless we assign to the vars. | |
4895 | (set) 2>&1 | | |
a4bf69d9 | 4896 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
21c84b71 TT |
4897 | *ac_space=\ *) |
4898 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4899 | # turns \\\\ into \\, and sed turns \\ into \). | |
4900 | sed -n \ | |
4901 | -e "s/'/'\\\\''/g" \ | |
4902 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4903 | ;; | |
4904 | *) | |
4905 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4906 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4907 | ;; | |
4908 | esac >> confcache | |
50e1e10f TT |
4909 | if cmp -s $cache_file confcache; then |
4910 | : | |
4911 | else | |
4912 | if test -w $cache_file; then | |
4913 | echo "updating cache $cache_file" | |
4914 | cat confcache > $cache_file | |
4915 | else | |
4916 | echo "not updating unwritable cache $cache_file" | |
4917 | fi | |
4918 | fi | |
4919 | rm -f confcache | |
4920 | ||
4921 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
4922 | ||
4923 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4924 | # Let make expand exec_prefix. | |
4925 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4926 | ||
4927 | # Any assignment to VPATH causes Sun make to only execute | |
4928 | # the first set of double-colon rules, so remove it if not needed. | |
4929 | # If there is a colon in the path, we need to keep it. | |
4930 | if test "x$srcdir" = x.; then | |
4931 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4932 | fi | |
4933 | ||
4934 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
4935 | ||
4936 | # Transform confdefs.h into DEFS. | |
4937 | # Protect against shell expansion while executing Makefile rules. | |
4938 | # Protect against Makefile macro expansion. | |
4939 | cat > conftest.defs <<\EOF | |
21c84b71 | 4940 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
50e1e10f TT |
4941 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
4942 | s%\[%\\&%g | |
4943 | s%\]%\\&%g | |
4944 | s%\$%$$%g | |
4945 | EOF | |
4946 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
4947 | rm -f conftest.defs | |
4948 | ||
4949 | ||
4950 | # Without the "./", some shells look in PATH for config.status. | |
4951 | : ${CONFIG_STATUS=./config.status} | |
4952 | ||
4953 | echo creating $CONFIG_STATUS | |
4954 | rm -f $CONFIG_STATUS | |
4955 | cat > $CONFIG_STATUS <<EOF | |
4956 | #! /bin/sh | |
4957 | # Generated automatically by configure. | |
4958 | # Run this file to recreate the current configuration. | |
4959 | # This directory was configured as follows, | |
4960 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4961 | # | |
4962 | # $0 $ac_configure_args | |
4963 | # | |
4964 | # Compiler output produced by configure, useful for debugging | |
4965 | # configure, is in ./config.log if it exists. | |
4966 | ||
4967 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
4968 | for ac_option | |
4969 | do | |
4970 | case "\$ac_option" in | |
4971 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4972 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4973 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4974 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
a4bf69d9 | 4975 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
50e1e10f TT |
4976 | exit 0 ;; |
4977 | -help | --help | --hel | --he | --h) | |
4978 | echo "\$ac_cs_usage"; exit 0 ;; | |
4979 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4980 | esac | |
4981 | done | |
4982 | ||
4983 | ac_given_srcdir=$srcdir | |
4984 | ac_given_INSTALL="$INSTALL" | |
4985 | ||
44339bdf | 4986 | trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile |
fc6d9d51 | 4987 | lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile |
ff6dbcca | 4988 | lib/evms/Makefile |
b5ffeade TT |
4989 | misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \ |
4990 | tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile | |
a64c9c13 | 4991 | intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
21c84b71 TT |
4992 | EOF |
4993 | cat >> $CONFIG_STATUS <<EOF | |
50e1e10f | 4994 | |
21c84b71 TT |
4995 | # Protect against being on the right side of a sed subst in config.status. |
4996 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4997 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
50e1e10f TT |
4998 | $ac_vpsub |
4999 | $extrasub | |
a4bf69d9 | 5000 | s%@SHELL@%$SHELL%g |
50e1e10f TT |
5001 | s%@CFLAGS@%$CFLAGS%g |
5002 | s%@CPPFLAGS@%$CPPFLAGS%g | |
5003 | s%@CXXFLAGS@%$CXXFLAGS%g | |
a4bf69d9 | 5004 | s%@FFLAGS@%$FFLAGS%g |
50e1e10f TT |
5005 | s%@DEFS@%$DEFS%g |
5006 | s%@LDFLAGS@%$LDFLAGS%g | |
5007 | s%@LIBS@%$LIBS%g | |
5008 | s%@exec_prefix@%$exec_prefix%g | |
5009 | s%@prefix@%$prefix%g | |
5010 | s%@program_transform_name@%$program_transform_name%g | |
21c84b71 TT |
5011 | s%@bindir@%$bindir%g |
5012 | s%@sbindir@%$sbindir%g | |
5013 | s%@libexecdir@%$libexecdir%g | |
5014 | s%@datadir@%$datadir%g | |
5015 | s%@sysconfdir@%$sysconfdir%g | |
5016 | s%@sharedstatedir@%$sharedstatedir%g | |
5017 | s%@localstatedir@%$localstatedir%g | |
5018 | s%@libdir@%$libdir%g | |
5019 | s%@includedir@%$includedir%g | |
5020 | s%@oldincludedir@%$oldincludedir%g | |
5021 | s%@infodir@%$infodir%g | |
5022 | s%@mandir@%$mandir%g | |
50e1e10f TT |
5023 | /@MCONFIG@/r $MCONFIG |
5024 | s%@MCONFIG@%%g | |
74becf3c TT |
5025 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
5026 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g | |
5027 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g | |
fc6d9d51 TT |
5028 | s%@host@%$host%g |
5029 | s%@host_alias@%$host_alias%g | |
5030 | s%@host_cpu@%$host_cpu%g | |
5031 | s%@host_vendor@%$host_vendor%g | |
5032 | s%@host_os@%$host_os%g | |
74becf3c TT |
5033 | s%@CC@%$CC%g |
5034 | s%@LD@%$LD%g | |
f8bd9807 TT |
5035 | s%@CPP@%$CPP%g |
5036 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g | |
50e1e10f TT |
5037 | s%@DLL_CMT@%$DLL_CMT%g |
5038 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL | |
5039 | s%@MAKEFILE_DLL@%%g | |
5040 | s%@ELF_CMT@%$ELF_CMT%g | |
5041 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF | |
5042 | s%@MAKEFILE_ELF@%%g | |
5043 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g | |
5044 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB | |
5045 | s%@MAKEFILE_BSDLIB@%%g | |
cdf186e4 TT |
5046 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
5047 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE | |
5048 | s%@MAKEFILE_PROFILE@%%g | |
5049 | s%@CHECKER_CMT@%$CHECKER_CMT%g | |
5050 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER | |
5051 | s%@MAKEFILE_CHECKER@%%g | |
5052 | s%@LIB_EXT@%$LIB_EXT%g | |
5053 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g | |
5054 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g | |
5055 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g | |
5056 | s%@IMAGER_CMT@%$IMAGER_CMT%g | |
5057 | s%@RESIZER_CMT@%$RESIZER_CMT%g | |
5058 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g | |
5059 | s%@FSCK_PROG@%$FSCK_PROG%g | |
5060 | s%@FSCK_MAN@%$FSCK_MAN%g | |
5061 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY | |
5062 | s%@MAKEFILE_LIBRARY@%%g | |
a64c9c13 TT |
5063 | s%@PACKAGE@%$PACKAGE%g |
5064 | s%@VERSION@%$VERSION%g | |
5065 | s%@SET_MAKE@%$SET_MAKE%g | |
5066 | s%@RANLIB@%$RANLIB%g | |
5067 | s%@ALLOCA@%$ALLOCA%g | |
5068 | s%@USE_NLS@%$USE_NLS%g | |
5069 | s%@MSGFMT@%$MSGFMT%g | |
5070 | s%@GMSGFMT@%$GMSGFMT%g | |
5071 | s%@XGETTEXT@%$XGETTEXT%g | |
5072 | s%@GENCAT@%$GENCAT%g | |
5073 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
5074 | s%@CATALOGS@%$CATALOGS%g | |
5075 | s%@CATOBJEXT@%$CATOBJEXT%g | |
5076 | s%@DATADIRNAME@%$DATADIRNAME%g | |
5077 | s%@GMOFILES@%$GMOFILES%g | |
5078 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
5079 | s%@INTLDEPS@%$INTLDEPS%g | |
5080 | s%@INTLLIBS@%$INTLLIBS%g | |
5081 | s%@INTLOBJS@%$INTLOBJS%g | |
5082 | s%@POFILES@%$POFILES%g | |
5083 | s%@POSUB@%$POSUB%g | |
5084 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
5085 | s%@GT_NO@%$GT_NO%g | |
5086 | s%@GT_YES@%$GT_YES%g | |
5087 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
5088 | s%@l@%$l%g | |
74becf3c | 5089 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
50e1e10f | 5090 | s%@LN@%$LN%g |
fc6d9d51 | 5091 | s%@LN_S@%$LN_S%g |
50e1e10f TT |
5092 | s%@MV@%$MV%g |
5093 | s%@CP@%$CP%g | |
5094 | s%@RM@%$RM%g | |
5095 | s%@CHMOD@%$CHMOD%g | |
5096 | s%@AWK@%$AWK%g | |
5097 | s%@SED@%$SED%g | |
9d564f73 | 5098 | s%@PERL@%$PERL%g |
250f79f0 | 5099 | s%@LDCONFIG@%$LDCONFIG%g |
50e1e10f TT |
5100 | s%@build@%$build%g |
5101 | s%@build_alias@%$build_alias%g | |
5102 | s%@build_cpu@%$build_cpu%g | |
5103 | s%@build_vendor@%$build_vendor%g | |
5104 | s%@build_os@%$build_os%g | |
5105 | s%@AR@%$AR%g | |
50e1e10f | 5106 | s%@STRIP@%$STRIP%g |
50e1e10f | 5107 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
a4bf69d9 | 5108 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
50e1e10f | 5109 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
6c133523 | 5110 | s%@BUILD_CC@%$BUILD_CC%g |
50e1e10f TT |
5111 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
5112 | s%@SIZEOF_INT@%$SIZEOF_INT%g | |
5113 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g | |
fc6d9d51 | 5114 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
fc6d9d51 | 5115 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
a4b2d3ce | 5116 | s%@root_prefix@%$root_prefix%g |
b5ffeade TT |
5117 | s%@root_bindir@%$root_bindir%g |
5118 | s%@root_sbindir@%$root_sbindir%g | |
5119 | s%@root_libdir@%$root_libdir%g | |
5120 | s%@root_sysconfdir@%$root_sysconfdir%g | |
fc6d9d51 | 5121 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
50e1e10f TT |
5122 | s%@SS_DIR@%$SS_DIR%g |
5123 | s%@ET_DIR@%$ET_DIR%g | |
5124 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g | |
5125 | ||
5126 | CEOF | |
5127 | EOF | |
21c84b71 TT |
5128 | |
5129 | cat >> $CONFIG_STATUS <<\EOF | |
5130 | ||
5131 | # Split the substitutions into bite-sized pieces for seds with | |
5132 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5133 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
5134 | ac_file=1 # Number of current file. | |
5135 | ac_beg=1 # First line for current file. | |
5136 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
5137 | ac_more_lines=: | |
5138 | ac_sed_cmds="" | |
5139 | while $ac_more_lines; do | |
5140 | if test $ac_beg -gt 1; then | |
5141 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
5142 | else | |
5143 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
5144 | fi | |
5145 | if test ! -s conftest.s$ac_file; then | |
5146 | ac_more_lines=false | |
5147 | rm -f conftest.s$ac_file | |
5148 | else | |
5149 | if test -z "$ac_sed_cmds"; then | |
5150 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
5151 | else | |
5152 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
5153 | fi | |
5154 | ac_file=`expr $ac_file + 1` | |
5155 | ac_beg=$ac_end | |
5156 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
5157 | fi | |
5158 | done | |
5159 | if test -z "$ac_sed_cmds"; then | |
5160 | ac_sed_cmds=cat | |
5161 | fi | |
5162 | EOF | |
5163 | ||
50e1e10f TT |
5164 | cat >> $CONFIG_STATUS <<EOF |
5165 | ||
44339bdf | 5166 | CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile |
fc6d9d51 | 5167 | lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile |
ff6dbcca | 5168 | lib/evms/Makefile |
b5ffeade TT |
5169 | misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \ |
5170 | tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile | |
a64c9c13 | 5171 | intl/Makefile po/Makefile.in"} |
50e1e10f TT |
5172 | EOF |
5173 | cat >> $CONFIG_STATUS <<\EOF | |
5174 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
21c84b71 | 5175 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
50e1e10f | 5176 | case "$ac_file" in |
21c84b71 | 5177 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
50e1e10f TT |
5178 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
5179 | *) ac_file_in="${ac_file}.in" ;; | |
5180 | esac | |
5181 | ||
21c84b71 | 5182 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
50e1e10f TT |
5183 | |
5184 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5185 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5186 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5187 | # The file is in a subdirectory. | |
5188 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5189 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5190 | # A "../" for each directory in $ac_dir_suffix. | |
5191 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5192 | else | |
5193 | ac_dir_suffix= ac_dots= | |
5194 | fi | |
5195 | ||
5196 | case "$ac_given_srcdir" in | |
5197 | .) srcdir=. | |
5198 | if test -z "$ac_dots"; then top_srcdir=. | |
5199 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
5200 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
5201 | *) # Relative path. | |
5202 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5203 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5204 | esac | |
5205 | ||
5206 | case "$ac_given_INSTALL" in | |
5207 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
5208 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
5209 | esac | |
21c84b71 | 5210 | |
50e1e10f TT |
5211 | echo creating "$ac_file" |
5212 | rm -f "$ac_file" | |
5213 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5214 | case "$ac_file" in | |
5215 | *Makefile*) ac_comsub="1i\\ | |
5216 | # $configure_input" ;; | |
5217 | *) ac_comsub= ;; | |
5218 | esac | |
21c84b71 TT |
5219 | |
5220 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
50e1e10f TT |
5221 | sed -e "$ac_comsub |
5222 | s%@configure_input@%$configure_input%g | |
5223 | s%@srcdir@%$srcdir%g | |
5224 | s%@top_srcdir@%$top_srcdir%g | |
5225 | s%@INSTALL@%$INSTALL%g | |
21c84b71 | 5226 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
50e1e10f | 5227 | fi; done |
21c84b71 | 5228 | rm -f conftest.s* |
50e1e10f | 5229 | |
a64c9c13 TT |
5230 | EOF |
5231 | ||
5232 | cat >> $CONFIG_STATUS <<EOF | |
5233 | ac_sources="$nls_cv_header_libgt" | |
5234 | ac_dests="$nls_cv_header_intl" | |
5235 | EOF | |
5236 | ||
5237 | cat >> $CONFIG_STATUS <<\EOF | |
5238 | srcdir=$ac_given_srcdir | |
5239 | while test -n "$ac_sources"; do | |
5240 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
5241 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
5242 | ||
5243 | echo "linking $srcdir/$ac_source to $ac_dest" | |
5244 | ||
5245 | if test ! -r $srcdir/$ac_source; then | |
5246 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
5247 | fi | |
5248 | rm -f $ac_dest | |
5249 | ||
5250 | # Make relative symlinks. | |
5251 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5252 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
5253 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
5254 | # The dest file is in a subdirectory. | |
5255 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
5256 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
5257 | # A "../" for each directory in $ac_dest_dir_suffix. | |
5258 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
5259 | else | |
5260 | ac_dest_dir_suffix= ac_dots= | |
5261 | fi | |
5262 | ||
5263 | case "$srcdir" in | |
5264 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
5265 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
5266 | esac | |
5267 | ||
5268 | # Make a symlink if possible; otherwise try a hard link. | |
5269 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
5270 | ln $srcdir/$ac_source $ac_dest; then : | |
5271 | else | |
5272 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
5273 | fi | |
5274 | done | |
21c84b71 TT |
5275 | EOF |
5276 | cat >> $CONFIG_STATUS <<EOF | |
50e1e10f | 5277 | |
a64c9c13 | 5278 | |
21c84b71 TT |
5279 | EOF |
5280 | cat >> $CONFIG_STATUS <<\EOF | |
a64c9c13 TT |
5281 | case "$CONFIG_FILES" in *po/Makefile.in*) |
5282 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
5283 | esac | |
50e1e10f TT |
5284 | |
5285 | exit 0 | |
5286 | EOF | |
5287 | chmod +x $CONFIG_STATUS | |
5288 | rm -fr confdefs* $ac_clean_files | |
5289 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
5290 |