OSDN Git Service

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