]> git.ipfire.org Git - thirdparty/gcc.git/blame - fastjar/configure
Merge basic-improvements-branch to trunk
[thirdparty/gcc.git] / fastjar / configure
CommitLineData
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
7a93476d
TT
14ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
d475215a
TT
17ac_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.
23build=NONE
24cache_file=./config.cache
25exec_prefix=NONE
26host=NONE
27no_create=
28nonopt=NONE
29no_recursion=
30prefix=NONE
31program_prefix=NONE
32program_suffix=NONE
33program_transform_name=s,x,x,
34silent=
35site=
36srcdir=
37target=NONE
38verbose=
39x_includes=NONE
40x_libraries=NONE
41bindir='${exec_prefix}/bin'
42sbindir='${exec_prefix}/sbin'
43libexecdir='${exec_prefix}/libexec'
44datadir='${prefix}/share'
45sysconfdir='${prefix}/etc'
46sharedstatedir='${prefix}/com'
47localstatedir='${prefix}/var'
48libdir='${exec_prefix}/lib'
49includedir='${prefix}/include'
50oldincludedir='/usr/include'
51infodir='${prefix}/info'
52mandir='${prefix}/man'
53
54# Initialize some other variables.
55subdirs=
56MFLAGS= MAKEFLAGS=
57SHELL=${CONFIG_SHELL-/bin/sh}
58# Maximum number of lines to put in a shell here document.
59ac_max_here_lines=12
60
61ac_prev=
62for ac_option
63do
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
143Usage: configure [options] [host]
144Options: [defaults in brackets after descriptions]
145Configuration:
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
151Directory 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
175EOF
176 cat << EOF
177Host 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]
181Features 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
188EOF
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
398done
399
400if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402fi
403
404trap '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
414if test "$silent" = yes; then
415 exec 6>/dev/null
416else
417 exec 6>&1
418fi
419exec 5>./config.log
420
421echo "\
422This file contains any messages produced by compilers while
423running 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.
428ac_configure_args=
429for ac_arg
430do
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
440done
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.
447if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450if 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.
453rm -rf conftest* confdefs.h
454# AIX cpp loses on an empty file, so make sure it contains at least a newline.
455echo > 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.
459ac_unique_file=jartool.h
460
461# Find the source files, if location was not specified.
462if 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
472else
473 ac_srcdir_defaulted=no
474fi
475if 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
481fi
482srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483
484# Prefer explicitly selected file to automatically selected ones.
4977bab6
ZW
485if 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
491fi
492for 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
497done
498
499if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
501 . $cache_file
502else
503 echo "creating cache $cache_file"
504 > $cache_file
505fi
506
507ac_ext=c
508# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509ac_cpp='$CPP $CPPFLAGS'
510ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512cross_compiling=$ac_cv_prog_cc_cross
513
514ac_exeext=
515ac_objext=o
516if (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
524else
525 ac_n= ac_c='\c' ac_t=
526fi
527
528
529ac_aux_dir=
530for 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
540done
541if 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; }
543fi
544ac_config_guess=$ac_aux_dir/config.guess
545ac_config_sub=$ac_aux_dir/config.sub
546ac_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.
559echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4977bab6 560echo "configure:561: checking for a BSD compatible install" >&5
bd8757b3
APB
561if test -z "$INSTALL"; then
562if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
564else
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
591fi
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
601fi
602echo "$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.
606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
607
608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
609
610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
611
612echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
4977bab6 613echo "configure:614: checking whether build environment is sane" >&5
bd8757b3
APB
614# Just in case
615sleep 1
616echo 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).
622if (
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
636alias in your environment" 1>&2; exit 1; }
637 fi
638
639 test "$2" = conftestfile
640 )
641then
642 # Ok.
643 :
644else
645 { echo "configure: error: newly created file is older than distributed files!
646Check your system clock" 1>&2; exit 1; }
647fi
648rm -f conftest*
649echo "$ac_t""yes" 1>&6
650if test "$program_transform_name" = s,x,x,; then
651 program_transform_name=
652else
653 # Double any \ or $. echo might interpret backslashes.
654 cat <<\EOF_SED > conftestsed
655s,\\,\\\\,g; s,\$,$$,g
656EOF_SED
657 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
658 rm -f conftestsed
659fi
660test "$program_prefix" != NONE &&
661 program_transform_name="s,^,${program_prefix},; $program_transform_name"
662# Use a double $ so make ignores it.
663test "$program_suffix" != NONE &&
664 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
665
666# sed with no file args requires a program.
667test "$program_transform_name" = "" && program_transform_name="s,x,x,"
668
669echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4977bab6 670echo "configure:671: checking whether ${MAKE-make} sets \${MAKE}" >&5
bd8757b3
APB
671set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
672if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674else
675 cat > conftestmake <<\EOF
676all:
677 @echo 'ac_maketemp="${MAKE}"'
678EOF
679# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
680eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
681if test -n "$ac_maketemp"; then
682 eval ac_cv_prog_make_${ac_make}_set=yes
683else
684 eval ac_cv_prog_make_${ac_make}_set=no
685fi
686rm -f conftestmake
687fi
688if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
689 echo "$ac_t""yes" 1>&6
690 SET_MAKE=
691else
692 echo "$ac_t""no" 1>&6
693 SET_MAKE="MAKE=${MAKE-make}"
694fi
695
696
7a93476d 697PACKAGE=fastjar
bd8757b3
APB
698
699VERSION=0.92-gcc
700
701if 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; }
703fi
704cat >> confdefs.h <<EOF
705#define PACKAGE "$PACKAGE"
706EOF
707
708cat >> confdefs.h <<EOF
709#define VERSION "$VERSION"
710EOF
711
712
713
714missing_dir=`cd $ac_aux_dir && pwd`
715echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
4977bab6 716echo "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.
720if (aclocal --version) < /dev/null > /dev/null 2>&1; then
721 ACLOCAL=aclocal
722 echo "$ac_t""found" 1>&6
723else
724 ACLOCAL="$missing_dir/missing aclocal"
725 echo "$ac_t""missing" 1>&6
726fi
727
728echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
4977bab6 729echo "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.
733if (autoconf --version) < /dev/null > /dev/null 2>&1; then
734 AUTOCONF=autoconf
735 echo "$ac_t""found" 1>&6
736else
737 AUTOCONF="$missing_dir/missing autoconf"
738 echo "$ac_t""missing" 1>&6
739fi
740
741echo $ac_n "checking for working automake""... $ac_c" 1>&6
4977bab6 742echo "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.
746if (automake --version) < /dev/null > /dev/null 2>&1; then
747 AUTOMAKE=automake
748 echo "$ac_t""found" 1>&6
749else
750 AUTOMAKE="$missing_dir/missing automake"
751 echo "$ac_t""missing" 1>&6
752fi
753
754echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
4977bab6 755echo "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.
759if (autoheader --version) < /dev/null > /dev/null 2>&1; then
760 AUTOHEADER=autoheader
761 echo "$ac_t""found" 1>&6
762else
763 AUTOHEADER="$missing_dir/missing autoheader"
764 echo "$ac_t""missing" 1>&6
765fi
766
767echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
4977bab6 768echo "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.
772if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
773 MAKEINFO=makeinfo
774 echo "$ac_t""found" 1>&6
775else
776 MAKEINFO="$missing_dir/missing makeinfo"
777 echo "$ac_t""missing" 1>&6
778fi
779
780
781
782
783
784
785# Extract the first word of "gcc", so it can be a program name with args.
786set dummy gcc; ac_word=$2
787echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977bab6 788echo "configure:789: checking for $ac_word" >&5
bd8757b3
APB
789if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
791else
792 if test -n "$CC"; then
793 ac_cv_prog_CC="$CC" # Let the user override the test.
794else
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"
805fi
806fi
807CC="$ac_cv_prog_CC"
808if test -n "$CC"; then
809 echo "$ac_t""$CC" 1>&6
810else
811 echo "$ac_t""no" 1>&6
812fi
813
814if test -z "$CC"; then
815 # Extract the first word of "cc", so it can be a program name with args.
816set dummy cc; ac_word=$2
817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977bab6 818echo "configure:819: checking for $ac_word" >&5
bd8757b3
APB
819if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
821else
822 if test -n "$CC"; then
823 ac_cv_prog_CC="$CC" # Let the user override the test.
824else
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"
840if 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
853fi
854fi
855fi
856CC="$ac_cv_prog_CC"
857if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
859else
860 echo "$ac_t""no" 1>&6
861fi
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.
867set dummy cl; ac_word=$2
868echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977bab6 869echo "configure:870: checking for $ac_word" >&5
bd8757b3
APB
870if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
872else
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
875else
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"
886fi
887fi
888CC="$ac_cv_prog_CC"
889if test -n "$CC"; then
890 echo "$ac_t""$CC" 1>&6
891else
892 echo "$ac_t""no" 1>&6
893fi
894 ;;
895 esac
896 fi
897 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
898fi
899
900echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4977bab6 901echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
bd8757b3
APB
902
903ac_ext=c
904# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
905ac_cpp='$CPP $CPPFLAGS'
906ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
907ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
908cross_compiling=$ac_cv_prog_cc_cross
909
910cat > conftest.$ac_ext << EOF
911
4977bab6 912#line 913 "configure"
bd8757b3
APB
913#include "confdefs.h"
914
915main(){return(0);}
916EOF
4977bab6 917if { (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
925else
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 ac_cv_prog_cc_works=no
929fi
930rm -fr conftest*
931ac_ext=c
932# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933ac_cpp='$CPP $CPPFLAGS'
934ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936cross_compiling=$ac_cv_prog_cc_cross
937
938echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
939if 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; }
941fi
942echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4977bab6 943echo "configure:944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
bd8757b3
APB
944echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
945cross_compiling=$ac_cv_prog_cc_cross
946
947echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4977bab6 948echo "configure:949: checking whether we are using GNU C" >&5
bd8757b3
APB
949if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
951else
952 cat > conftest.c <<EOF
953#ifdef __GNUC__
954 yes;
955#endif
956EOF
4977bab6 957if { 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
959else
960 ac_cv_prog_gcc=no
961fi
962fi
963
964echo "$ac_t""$ac_cv_prog_gcc" 1>&6
965
966if test $ac_cv_prog_gcc = yes; then
967 GCC=yes
968else
969 GCC=
970fi
971
972ac_test_CFLAGS="${CFLAGS+set}"
973ac_save_CFLAGS="$CFLAGS"
974CFLAGS=
975echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4977bab6 976echo "configure:977: checking whether ${CC-cc} accepts -g" >&5
bd8757b3
APB
977if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979else
980 echo 'void f(){}' > conftest.c
981if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
982 ac_cv_prog_cc_g=yes
983else
984 ac_cv_prog_cc_g=no
985fi
986rm -f conftest*
987
988fi
989
990echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
991if test "$ac_test_CFLAGS" = set; then
992 CFLAGS="$ac_save_CFLAGS"
993elif 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
999else
1000 if test "$GCC" = yes; then
1001 CFLAGS="-O2"
1002 else
1003 CFLAGS=
1004 fi
1005fi
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.
1018echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4977bab6 1019echo "configure:1020: checking for a BSD compatible install" >&5
bd8757b3
APB
1020if test -z "$INSTALL"; then
1021if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1023else
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
1050fi
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
1060fi
1061echo "$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.
1065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1066
1067test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1068
1069test -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.
1072set dummy rm; ac_word=$2
1073echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977bab6 1074echo "configure:1075: checking for $ac_word" >&5
bd8757b3
APB
1075if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077else
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 ;;
1098esac
1099fi
1100RM="$ac_cv_path_RM"
1101if test -n "$RM"; then
1102 echo "$ac_t""$RM" 1>&6
1103else
1104 echo "$ac_t""no" 1>&6
1105fi
1106
1107# Extract the first word of "cp", so it can be a program name with args.
1108set dummy cp; ac_word=$2
1109echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977bab6 1110echo "configure:1111: checking for $ac_word" >&5
bd8757b3
APB
1111if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1113else
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 ;;
1134esac
1135fi
1136CP="$ac_cv_path_CP"
1137if test -n "$CP"; then
1138 echo "$ac_t""$CP" 1>&6
1139else
1140 echo "$ac_t""no" 1>&6
1141fi
1142
1143# Extract the first word of "strip", so it can be a program name with args.
1144set dummy strip; ac_word=$2
1145echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977bab6 1146echo "configure:1147: checking for $ac_word" >&5
bd8757b3
APB
1147if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149else
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 ;;
1170esac
1171fi
1172STRIP="$ac_cv_path_STRIP"
1173if test -n "$STRIP"; then
1174 echo "$ac_t""$STRIP" 1>&6
1175else
1176 echo "$ac_t""no" 1>&6
1177fi
1178
1179# Extract the first word of "chmod", so it can be a program name with args.
1180set dummy chmod; ac_word=$2
1181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977bab6 1182echo "configure:1183: checking for $ac_word" >&5
bd8757b3
APB
1183if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185else
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 ;;
1206esac
1207fi
1208CHMOD="$ac_cv_path_CHMOD"
1209if test -n "$CHMOD"; then
1210 echo "$ac_t""$CHMOD" 1>&6
1211else
1212 echo "$ac_t""no" 1>&6
1213fi
1214
645ca343 1215echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4977bab6 1216echo "configure:1217: checking for Cygwin environment" >&5
645ca343
TT
1217if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219else
1220 cat > conftest.$ac_ext <<EOF
4977bab6 1221#line 1222 "configure"
645ca343
TT
1222#include "confdefs.h"
1223
1224int main() {
1225
1226#ifndef __CYGWIN__
1227#define __CYGWIN__ __CYGWIN32__
1228#endif
1229return __CYGWIN__;
1230; return 0; }
1231EOF
4977bab6 1232if { (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
1235else
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1238 rm -rf conftest*
1239 ac_cv_cygwin=no
1240fi
1241rm -f conftest*
1242rm -f conftest*
1243fi
1244
1245echo "$ac_t""$ac_cv_cygwin" 1>&6
1246CYGWIN=
1247test "$ac_cv_cygwin" = yes && CYGWIN=yes
1248echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4977bab6 1249echo "configure:1250: checking for mingw32 environment" >&5
645ca343
TT
1250if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252else
1253 cat > conftest.$ac_ext <<EOF
4977bab6 1254#line 1255 "configure"
645ca343
TT
1255#include "confdefs.h"
1256
1257int main() {
1258return __MINGW32__;
1259; return 0; }
1260EOF
4977bab6 1261if { (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
1264else
1265 echo "configure: failed program was:" >&5
1266 cat conftest.$ac_ext >&5
1267 rm -rf conftest*
1268 ac_cv_mingw32=no
1269fi
1270rm -f conftest*
1271rm -f conftest*
1272fi
1273
1274echo "$ac_t""$ac_cv_mingw32" 1>&6
1275MINGW32=
1276test "$ac_cv_mingw32" = yes && MINGW32=yes
1277
1278
1279echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4977bab6 1280echo "configure:1281: checking for executable suffix" >&5
645ca343
TT
1281if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283else
1284 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1285 ac_cv_exeext=.exe
1286else
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
1302fi
1303fi
1304
1305EXEEXT=""
1306test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1307echo "$ac_t""${ac_cv_exeext}" 1>&6
1308ac_exeext=$EXEEXT
1309
bd8757b3 1310
7a93476d 1311echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4977bab6 1312echo "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.
1314if test "${enable_maintainer_mode+set}" = set; then
1315 enableval="$enable_maintainer_mode"
1316 USE_MAINTAINER_MODE=$enableval
1317else
1318 USE_MAINTAINER_MODE=no
1319fi
1320
1321 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1322
1323
1324if test $USE_MAINTAINER_MODE = yes; then
1325 MAINTAINER_MODE_TRUE=
1326 MAINTAINER_MODE_FALSE='#'
1327else
1328 MAINTAINER_MODE_TRUE='#'
1329 MAINTAINER_MODE_FALSE=
1330fi
1331 MAINT=$MAINTAINER_MODE_TRUE
1332
1333
1334
37729557
KG
1335if test "$GCC" = yes; then
1336 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
1337fi
1338
1339
bd8757b3
APB
1340ac_header_dirent=no
1341for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1342do
1343ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1344echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4977bab6 1345echo "configure:1346: checking for $ac_hdr that defines DIR" >&5
bd8757b3
APB
1346if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348else
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>
1354int main() {
1355DIR *dirp = 0;
1356; return 0; }
1357EOF
4977bab6 1358if { (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"
1361else
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"
1366fi
1367rm -f conftest*
1368fi
1369if 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
1374EOF
1375 ac_header_dirent=$ac_hdr; break
1376else
1377 echo "$ac_t""no" 1>&6
1378fi
1379done
1380# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1381if test $ac_header_dirent = dirent.h; then
1382echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4977bab6 1383echo "configure:1384: checking for opendir in -ldir" >&5
bd8757b3
APB
1384ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1387else
1388 ac_save_LIBS="$LIBS"
1389LIBS="-ldir $LIBS"
1390cat > 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. */
1396char opendir();
1397
1398int main() {
1399opendir()
1400; return 0; }
1401EOF
4977bab6 1402if { (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"
1405else
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"
1410fi
1411rm -f conftest*
1412LIBS="$ac_save_LIBS"
1413
1414fi
1415if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1417 LIBS="$LIBS -ldir"
1418else
1419 echo "$ac_t""no" 1>&6
1420fi
1421
1422else
1423echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4977bab6 1424echo "configure:1425: checking for opendir in -lx" >&5
bd8757b3
APB
1425ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1426if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428else
1429 ac_save_LIBS="$LIBS"
1430LIBS="-lx $LIBS"
1431cat > 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. */
1437char opendir();
1438
1439int main() {
1440opendir()
1441; return 0; }
1442EOF
4977bab6 1443if { (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"
1446else
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"
1451fi
1452rm -f conftest*
1453LIBS="$ac_save_LIBS"
1454
1455fi
1456if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1458 LIBS="$LIBS -lx"
1459else
1460 echo "$ac_t""no" 1>&6
1461fi
1462
1463fi
1464
1465echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4977bab6 1466echo "configure:1467: checking how to run the C preprocessor" >&5
bd8757b3
APB
1467# On Suns, sometimes $CPP names a directory.
1468if test -n "$CPP" && test -d "$CPP"; then
1469 CPP=
1470fi
1471if test -z "$CPP"; then
1472if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474else
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>
1484Syntax Error
1485EOF
1486ac_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
1488ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1489if test -z "$ac_err"; then
1490 :
1491else
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>
1501Syntax Error
1502EOF
1503ac_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
1505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1506if test -z "$ac_err"; then
1507 :
1508else
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>
1518Syntax Error
1519EOF
1520ac_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
1522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1523if test -z "$ac_err"; then
1524 :
1525else
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
1531fi
1532rm -f conftest*
1533fi
1534rm -f conftest*
1535fi
1536rm -f conftest*
1537 ac_cv_prog_CPP="$CPP"
1538fi
1539 CPP="$ac_cv_prog_CPP"
1540else
1541 ac_cv_prog_CPP="$CPP"
1542fi
1543echo "$ac_t""$CPP" 1>&6
1544
1545echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4977bab6 1546echo "configure:1547: checking for ANSI C header files" >&5
bd8757b3
APB
1547if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549else
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>
1557EOF
1558ac_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
1560ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1561if test -z "$ac_err"; then
1562 rm -rf conftest*
1563 ac_cv_header_stdc=yes
1564else
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
1570fi
1571rm -f conftest*
1572
1573if test $ac_cv_header_stdc = yes; then
1574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1575cat > conftest.$ac_ext <<EOF
4977bab6 1576#line 1577 "configure"
bd8757b3
APB
1577#include "confdefs.h"
1578#include <string.h>
1579EOF
1580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1581 egrep "memchr" >/dev/null 2>&1; then
1582 :
1583else
1584 rm -rf conftest*
1585 ac_cv_header_stdc=no
1586fi
1587rm -f conftest*
1588
1589fi
1590
1591if test $ac_cv_header_stdc = yes; then
1592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1593cat > conftest.$ac_ext <<EOF
4977bab6 1594#line 1595 "configure"
bd8757b3
APB
1595#include "confdefs.h"
1596#include <stdlib.h>
1597EOF
1598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1599 egrep "free" >/dev/null 2>&1; then
1600 :
1601else
1602 rm -rf conftest*
1603 ac_cv_header_stdc=no
1604fi
1605rm -f conftest*
1606
1607fi
1608
1609if test $ac_cv_header_stdc = yes; then
1610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1611if test "$cross_compiling" = yes; then
1612 :
1613else
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)))
1621int main () { int i; for (i = 0; i < 256; i++)
1622if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1623exit (0); }
1624
1625EOF
4977bab6 1626if { (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
1627then
1628 :
1629else
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1632 rm -fr conftest*
1633 ac_cv_header_stdc=no
1634fi
1635rm -fr conftest*
1636fi
1637
1638fi
1639fi
1640
1641echo "$ac_t""$ac_cv_header_stdc" 1>&6
1642if test $ac_cv_header_stdc = yes; then
1643 cat >> confdefs.h <<\EOF
1644#define STDC_HEADERS 1
1645EOF
1646
1647fi
1648
1649echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4977bab6 1650echo "configure:1651: checking whether struct tm is in sys/time.h or time.h" >&5
bd8757b3
APB
1651if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1653else
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>
1659int main() {
1660struct tm *tp; tp->tm_sec;
1661; return 0; }
1662EOF
4977bab6 1663if { (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
1666else
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
1671fi
1672rm -f conftest*
1673fi
1674
1675echo "$ac_t""$ac_cv_struct_tm" 1>&6
1676if test $ac_cv_struct_tm = sys/time.h; then
1677 cat >> confdefs.h <<\EOF
1678#define TM_IN_SYS_TIME 1
1679EOF
1680
1681fi
1682
9d8f417b 1683for ac_hdr in fcntl.h unistd.h sys/param.h stdlib.h limits.h
bd8757b3
APB
1684do
1685ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1686echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4977bab6 1687echo "configure:1688: checking for $ac_hdr" >&5
bd8757b3
APB
1688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690else
1691 cat > conftest.$ac_ext <<EOF
4977bab6 1692#line 1693 "configure"
bd8757b3
APB
1693#include "confdefs.h"
1694#include <$ac_hdr>
1695EOF
1696ac_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
1698ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699if test -z "$ac_err"; then
1700 rm -rf conftest*
1701 eval "ac_cv_header_$ac_safe=yes"
1702else
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"
1708fi
1709rm -f conftest*
1710fi
1711if 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
1716EOF
1717
1718else
1719 echo "$ac_t""no" 1>&6
1720fi
1721done
1722
1723
1724echo $ac_n "checking for off_t""... $ac_c" 1>&6
4977bab6 1725echo "configure:1726: checking for off_t" >&5
bd8757b3
APB
1726if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1728else
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
1737EOF
1738if (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
1742else
1743 rm -rf conftest*
1744 ac_cv_type_off_t=no
1745fi
1746rm -f conftest*
1747
1748fi
1749echo "$ac_t""$ac_cv_type_off_t" 1>&6
1750if test $ac_cv_type_off_t = no; then
1751 cat >> confdefs.h <<\EOF
1752#define off_t long
1753EOF
1754
1755fi
1756
1757echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4977bab6 1758echo "configure:1759: checking whether struct tm is in sys/time.h or time.h" >&5
bd8757b3
APB
1759if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761else
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>
1767int main() {
1768struct tm *tp; tp->tm_sec;
1769; return 0; }
1770EOF
4977bab6 1771if { (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
1774else
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
1779fi
1780rm -f conftest*
1781fi
1782
1783echo "$ac_t""$ac_cv_struct_tm" 1>&6
1784if test $ac_cv_struct_tm = sys/time.h; then
1785 cat >> confdefs.h <<\EOF
1786#define TM_IN_SYS_TIME 1
1787EOF
1788
1789fi
1790
1791
b4258f06
RM
1792# mkdir takes a single argument on some systems.
1793echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4977bab6 1794echo "configure:1795: checking if mkdir takes one argument" >&5
b4258f06
RM
1795if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797else
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
1812int main() {
1813mkdir ("foo", 0);
1814; return 0; }
1815EOF
4977bab6 1816if { (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
1819else
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
1824fi
1825rm -f conftest*
1826fi
1827
1828echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
1829if test $gcc_cv_mkdir_takes_one_arg = yes ; then
1830 cat >> confdefs.h <<\EOF
1831#define MKDIR_TAKES_ONE_ARG 1
1832EOF
1833
1834fi
1835
1836
bd8757b3 1837echo $ac_n "checking size of char""... $ac_c" 1>&6
4977bab6 1838echo "configure:1839: checking size of char" >&5
bd8757b3
APB
1839if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841else
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
1850int main() {
1851switch (0) case 0: case (sizeof (char) == $ac_size):;
1852; return 0; }
bd8757b3 1853EOF
4977bab6 1854if { (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
1857else
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
bd8757b3 1860fi
824030c6
GK
1861rm -f conftest*
1862 if test x$ac_cv_sizeof_char != x ; then break; fi
1863done
1864
bd8757b3
APB
1865fi
1866
824030c6
GK
1867if test x$ac_cv_sizeof_char = x ; then
1868 { echo "configure: error: cannot determine a size for char" 1>&2; exit 1; }
bd8757b3
APB
1869fi
1870echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1871cat >> confdefs.h <<EOF
1872#define SIZEOF_CHAR $ac_cv_sizeof_char
1873EOF
1874
1875
1876echo $ac_n "checking size of short""... $ac_c" 1>&6
4977bab6 1877echo "configure:1878: checking size of short" >&5
bd8757b3
APB
1878if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880else
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
1889int main() {
1890switch (0) case 0: case (sizeof (short) == $ac_size):;
1891; return 0; }
bd8757b3 1892EOF
4977bab6 1893if { (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
1896else
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
bd8757b3 1899fi
824030c6
GK
1900rm -f conftest*
1901 if test x$ac_cv_sizeof_short != x ; then break; fi
1902done
1903
bd8757b3
APB
1904fi
1905
824030c6
GK
1906if test x$ac_cv_sizeof_short = x ; then
1907 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
bd8757b3
APB
1908fi
1909echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1910cat >> confdefs.h <<EOF
1911#define SIZEOF_SHORT $ac_cv_sizeof_short
1912EOF
1913
1914
1915echo $ac_n "checking size of int""... $ac_c" 1>&6
4977bab6 1916echo "configure:1917: checking size of int" >&5
bd8757b3
APB
1917if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1919else
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
1928int main() {
1929switch (0) case 0: case (sizeof (int) == $ac_size):;
1930; return 0; }
bd8757b3 1931EOF
4977bab6 1932if { (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
1935else
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
bd8757b3 1938fi
824030c6
GK
1939rm -f conftest*
1940 if test x$ac_cv_sizeof_int != x ; then break; fi
1941done
1942
bd8757b3
APB
1943fi
1944
824030c6
GK
1945if test x$ac_cv_sizeof_int = x ; then
1946 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
bd8757b3
APB
1947fi
1948echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1949cat >> confdefs.h <<EOF
1950#define SIZEOF_INT $ac_cv_sizeof_int
1951EOF
1952
1953
1954echo $ac_n "checking size of long""... $ac_c" 1>&6
4977bab6 1955echo "configure:1956: checking size of long" >&5
bd8757b3
APB
1956if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958else
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
1967int main() {
1968switch (0) case 0: case (sizeof (long) == $ac_size):;
1969; return 0; }
bd8757b3 1970EOF
4977bab6 1971if { (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
1974else
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
bd8757b3 1977fi
824030c6
GK
1978rm -f conftest*
1979 if test x$ac_cv_sizeof_long != x ; then break; fi
1980done
1981
bd8757b3
APB
1982fi
1983
824030c6
GK
1984if test x$ac_cv_sizeof_long = x ; then
1985 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
bd8757b3
APB
1986fi
1987echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1988cat >> confdefs.h <<EOF
1989#define SIZEOF_LONG $ac_cv_sizeof_long
1990EOF
1991
1992
1993echo $ac_n "checking size of long long""... $ac_c" 1>&6
4977bab6 1994echo "configure:1995: checking size of long long" >&5
bd8757b3
APB
1995if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997else
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
2006int main() {
2007switch (0) case 0: case (sizeof (long long) == $ac_size):;
2008; return 0; }
bd8757b3 2009EOF
4977bab6 2010if { (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
2013else
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
bd8757b3 2016fi
824030c6
GK
2017rm -f conftest*
2018 if test x$ac_cv_sizeof_long_long != x ; then break; fi
2019done
2020
bd8757b3
APB
2021fi
2022
824030c6
GK
2023if 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
2025fi
2026echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2027cat >> confdefs.h <<EOF
2028#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2029EOF
2030
2031
2032
4977bab6
ZW
2033echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2034echo "configure:2035: checking whether byte ordering is bigendian" >&5
2035if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
bd8757b3
APB
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037else
4977bab6
ZW
2038 ac_cv_c_bigendian=unknown
2039# See if sys/param.h defines the BYTE_ORDER macro.
bd8757b3 2040cat > 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>
2045int 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; }
2051EOF
2052if { (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.
2055cat > conftest.$ac_ext <<EOF
2056#line 2057 "configure"
2057#include "confdefs.h"
2058#include <sys/types.h>
2059#include <sys/param.h>
2060int main() {
2061
2062#if BYTE_ORDER != BIG_ENDIAN
2063 not big endian
824030c6 2064#endif
4977bab6 2065; return 0; }
bd8757b3 2066EOF
4977bab6
ZW
2067if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2068 rm -rf conftest*
2069 ac_cv_c_bigendian=yes
2070else
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2073 rm -rf conftest*
2074 ac_cv_c_bigendian=no
2075fi
2076rm -f conftest*
2077else
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2080fi
2081rm -f conftest*
2082if test $ac_cv_c_bigendian = unknown; then
2083if test "$cross_compiling" = yes; then
2084 echo $ac_n "cross-compiling... " 2>&6
2085else
2086 cat > conftest.$ac_ext <<EOF
2087#line 2088 "configure"
2088#include "confdefs.h"
2089main () {
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}
2099EOF
2100if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2101then
2102 ac_cv_c_bigendian=no
2103else
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 rm -fr conftest*
2107 ac_cv_c_bigendian=yes
2108fi
2109rm -fr conftest*
bd8757b3 2110fi
824030c6 2111
4977bab6
ZW
2112fi
2113fi
bd8757b3 2114
4977bab6
ZW
2115echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2116if test $ac_cv_c_bigendian = unknown; then
2117echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
2118echo "configure:2119: checking to probe for byte ordering" >&5
2119
2120cat >conftest.c <<EOF
2121short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2122short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2123void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
2124short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2125short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2126void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
2127int main() { _ascii (); _ebcdic (); return 0; }
2128EOF
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
2146echo "$ac_t""$ac_cv_c_bigendian" 1>&6
bd8757b3 2147fi
4977bab6
ZW
2148if test $ac_cv_c_bigendian = yes; then
2149 cat >> confdefs.h <<\EOF
2150#define WORDS_BIGENDIAN 1
2151EOF
bd8757b3 2152
bd8757b3 2153 cat >> confdefs.h <<\EOF
4977bab6
ZW
2154#define HOST_WORDS_BIG_ENDIAN 1
2155EOF
2156
2157 BYTEORDER=4321
2158else
2159 BYTEORDER=1234
2160fi
2161cat >> confdefs.h <<EOF
2162#define BYTEORDER $BYTEORDER
bd8757b3
APB
2163EOF
2164
4977bab6
ZW
2165if test $ac_cv_c_bigendian = unknown; then
2166 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
bd8757b3
APB
2167fi
2168
2169
d475215a
TT
2170# Check whether --with-system-zlib or --without-system-zlib was given.
2171if test "${with_system_zlib+set}" = set; then
2172 withval="$with_system_zlib"
2173 :
2174fi
2175
2176
2177ZLIBS=
2178ZDEPS=
2179ZINCS=
2180use_zlib=maybe
2181if test "$with_system_zlib" = yes; then
2182 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4977bab6 2183echo "configure:2184: checking for deflate in -lz" >&5
d475215a
TT
2184ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2185if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187else
2188 ac_save_LIBS="$LIBS"
2189LIBS="-lz $LIBS"
2190cat > 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. */
2196char deflate();
2197
2198int main() {
2199deflate()
2200; return 0; }
2201EOF
4977bab6 2202if { (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"
2205else
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"
2210fi
2211rm -f conftest*
2212LIBS="$ac_save_LIBS"
2213
2214fi
2215if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ZLIBS=-lz
2218else
2219 echo "$ac_t""no" 1>&6
2220use_zlib=no
2221fi
2222
2223else
2224 use_zlib=no
2225fi
2226
2227if 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'
2232fi
bd8757b3
APB
2233
2234
2235
2236
42ac7b6d
MK
2237# Get the version trigger filename from the toplevel
2238if test "${with_gcc_version_trigger+set}" = set; then
2239 gcc_version_trigger=$with_gcc_version_trigger
2240else
2241 gcc_version_trigger=${srcdir}/version.c
2242fi
2243gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
2244gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
2245
2246
bd8757b3
APB
2247trap '' 1 2 15
2248cat > 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#
2263EOF
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
2283if cmp -s $cache_file confcache; then
2284 :
2285else
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
2292fi
2293rm -f confcache
2294
2295trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2296
2297test "x$prefix" = xNONE && prefix=$ac_default_prefix
2298# Let make expand exec_prefix.
2299test "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.
2304if test "x$srcdir" = x.; then
2305 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2306fi
2307
2308trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2309
2310DEFS=-DHAVE_CONFIG_H
2311
2312# Without the "./", some shells look in PATH for config.status.
2313: ${CONFIG_STATUS=./config.status}
2314
2315echo creating $CONFIG_STATUS
2316rm -f $CONFIG_STATUS
2317cat > $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
2329ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2330for ac_option
2331do
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
2343done
2344
2345ac_given_srcdir=$srcdir
2346ac_given_INSTALL="$INSTALL"
2347
2348trap 'rm -fr `echo "Makefile install-defs.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2349EOF
2350cat >> $CONFIG_STATUS <<EOF
2351
2352# Protect against being on the right side of a sed subst in config.status.
2353sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2354 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2355$ac_vpsub
2356$extrasub
2357s%@SHELL@%$SHELL%g
2358s%@CFLAGS@%$CFLAGS%g
2359s%@CPPFLAGS@%$CPPFLAGS%g
2360s%@CXXFLAGS@%$CXXFLAGS%g
2361s%@FFLAGS@%$FFLAGS%g
2362s%@DEFS@%$DEFS%g
2363s%@LDFLAGS@%$LDFLAGS%g
2364s%@LIBS@%$LIBS%g
2365s%@exec_prefix@%$exec_prefix%g
2366s%@prefix@%$prefix%g
2367s%@program_transform_name@%$program_transform_name%g
2368s%@bindir@%$bindir%g
2369s%@sbindir@%$sbindir%g
2370s%@libexecdir@%$libexecdir%g
2371s%@datadir@%$datadir%g
2372s%@sysconfdir@%$sysconfdir%g
2373s%@sharedstatedir@%$sharedstatedir%g
2374s%@localstatedir@%$localstatedir%g
2375s%@libdir@%$libdir%g
2376s%@includedir@%$includedir%g
2377s%@oldincludedir@%$oldincludedir%g
2378s%@infodir@%$infodir%g
2379s%@mandir@%$mandir%g
2380s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2381s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2382s%@INSTALL_DATA@%$INSTALL_DATA%g
2383s%@PACKAGE@%$PACKAGE%g
2384s%@VERSION@%$VERSION%g
2385s%@ACLOCAL@%$ACLOCAL%g
2386s%@AUTOCONF@%$AUTOCONF%g
2387s%@AUTOMAKE@%$AUTOMAKE%g
2388s%@AUTOHEADER@%$AUTOHEADER%g
2389s%@MAKEINFO@%$MAKEINFO%g
2390s%@SET_MAKE@%$SET_MAKE%g
2391s%@CC@%$CC%g
2392s%@RM@%$RM%g
2393s%@CP@%$CP%g
2394s%@STRIP@%$STRIP%g
2395s%@CHMOD@%$CHMOD%g
645ca343 2396s%@EXEEXT@%$EXEEXT%g
7a93476d
TT
2397s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2398s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2399s%@MAINT@%$MAINT%g
37729557 2400s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
bd8757b3
APB
2401s%@CPP@%$CPP%g
2402s%@ZLIBS@%$ZLIBS%g
2403s%@ZDEPS@%$ZDEPS%g
2404s%@ZINCS@%$ZINCS%g
42ac7b6d 2405s%@gcc_version@%$gcc_version%g
bd8757b3
APB
2406
2407CEOF
2408EOF
2409
2410cat >> $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 2414ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
bd8757b3
APB
2415ac_file=1 # Number of current file.
2416ac_beg=1 # First line for current file.
2417ac_end=$ac_max_sed_cmds # Line after last line for current file.
2418ac_more_lines=:
2419ac_sed_cmds=""
2420while $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
2439done
2440if test -z "$ac_sed_cmds"; then
2441 ac_sed_cmds=cat
2442fi
2443EOF
2444
2445cat >> $CONFIG_STATUS <<EOF
2446
2447CONFIG_FILES=\${CONFIG_FILES-"Makefile install-defs.sh"}
2448EOF
2449cat >> $CONFIG_STATUS <<\EOF
2450for 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
2498s%@configure_input@%$configure_input%g
2499s%@srcdir@%$srcdir%g
2500s%@top_srcdir@%$top_srcdir%g
2501s%@INSTALL@%$INSTALL%g
2502" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2503fi; done
2504rm -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.
2510ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2511ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2512ac_dC='\3'
2513ac_dD='%g'
2514# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2515ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2516ac_uB='\([ ]\)%\1#\2define\3'
2517ac_uC=' '
2518ac_uD='\4%g'
2519# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2520ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2521ac_eB='$%\1#\2define\3'
2522ac_eC=' '
2523ac_eD='%g'
2524
2525if test "${CONFIG_HEADERS+set}" != set; then
2526EOF
2527cat >> $CONFIG_STATUS <<EOF
2528 CONFIG_HEADERS="config.h"
2529EOF
2530cat >> $CONFIG_STATUS <<\EOF
2531fi
2532for 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
2546EOF
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.
2552rm -f conftest.vals
2553cat > conftest.hdr <<\EOF
2554s/[\\&%]/\\&/g
2555s%[\\$`]%\\&%g
2556s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2557s%ac_d%ac_u%gp
2558s%ac_u%ac_e%gp
2559EOF
2560sed -n -f conftest.hdr confdefs.h > conftest.vals
2561rm -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.
2566cat >> conftest.vals <<\EOF
2567s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2568EOF
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
2573rm -f conftest.tail
2574while :
2575do
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
2590done
2591rm -f conftest.vals
2592
2593cat >> $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
2611fi; done
2612
2613EOF
2614cat >> $CONFIG_STATUS <<EOF
2615
2616
2617EOF
2618cat >> $CONFIG_STATUS <<\EOF
2619test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2620
2621exit 0
2622EOF
2623chmod +x $CONFIG_STATUS
2624rm -fr confdefs* $ac_clean_files
2625test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2626