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