OSDN Git Service

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