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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-system-zlib use installed libz"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file
=.
/config.cache
30 program_transform_name
=s
,x
,x
,
39 bindir
='${exec_prefix}/bin'
40 sbindir
='${exec_prefix}/sbin'
41 libexecdir
='${exec_prefix}/libexec'
42 datadir
='${prefix}/share'
43 sysconfdir
='${prefix}/etc'
44 sharedstatedir
='${prefix}/com'
45 localstatedir
='${prefix}/var'
46 libdir
='${exec_prefix}/lib'
47 includedir
='${prefix}/include'
48 oldincludedir
='/usr/include'
49 infodir
='${prefix}/info'
50 mandir
='${prefix}/man'
52 # Initialize some other variables.
55 SHELL
=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
81 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
82 bindir
="$ac_optarg" ;;
84 -build |
--build |
--buil |
--bui |
--bu)
86 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
89 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
90 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
92 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
93 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
94 cache_file
="$ac_optarg" ;;
96 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
98 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
100 datadir
="$ac_optarg" ;;
102 -disable-* |
--disable-*)
103 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* |
--enable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
125 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
126 |
--exec |
--exe |
--ex)
127 ac_prev
=exec_prefix
;;
128 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
129 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
130 |
--exec=* |
--exe=* |
--ex=*)
131 exec_prefix
="$ac_optarg" ;;
133 -gas |
--gas |
--ga |
--g)
134 # Obsolete; use --with-gas.
137 -help |
--help |
--hel |
--he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --site-file=FILE use FILE as the site file
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host |
--host |
--hos |
--ho)
195 -host=* |
--host=* |
--hos=* |
--ho=*)
198 -includedir |
--includedir |
--includedi |
--included |
--include \
199 |
--includ |
--inclu |
--incl |
--inc)
200 ac_prev
=includedir
;;
201 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
202 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
203 includedir
="$ac_optarg" ;;
205 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
207 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
208 infodir
="$ac_optarg" ;;
210 -libdir |
--libdir |
--libdi |
--libd)
212 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
213 libdir
="$ac_optarg" ;;
215 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
216 |
--libexe |
--libex |
--libe)
217 ac_prev
=libexecdir
;;
218 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
219 |
--libexe=* |
--libex=* |
--libe=*)
220 libexecdir
="$ac_optarg" ;;
222 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
223 |
--localstate |
--localstat |
--localsta |
--localst \
224 |
--locals |
--local |
--loca |
--loc |
--lo)
225 ac_prev
=localstatedir
;;
226 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
227 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
228 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
229 localstatedir
="$ac_optarg" ;;
231 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
233 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
234 mandir
="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
244 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
245 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
248 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
249 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
250 |
--oldin |
--oldi |
--old |
--ol |
--o)
251 ac_prev
=oldincludedir
;;
252 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
253 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
254 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
255 oldincludedir
="$ac_optarg" ;;
257 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
259 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
260 prefix
="$ac_optarg" ;;
262 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
263 |
--program-pre |
--program-pr |
--program-p)
264 ac_prev
=program_prefix
;;
265 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
266 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
267 program_prefix
="$ac_optarg" ;;
269 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
270 |
--program-suf |
--program-su |
--program-s)
271 ac_prev
=program_suffix
;;
272 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
273 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
274 program_suffix
="$ac_optarg" ;;
276 -program-transform-name |
--program-transform-name \
277 |
--program-transform-nam |
--program-transform-na \
278 |
--program-transform-n |
--program-transform- \
279 |
--program-transform |
--program-transfor \
280 |
--program-transfo |
--program-transf \
281 |
--program-trans |
--program-tran \
282 |
--progr-tra |
--program-tr |
--program-t)
283 ac_prev
=program_transform_name
;;
284 -program-transform-name=* |
--program-transform-name=* \
285 |
--program-transform-nam=* |
--program-transform-na=* \
286 |
--program-transform-n=* |
--program-transform-=* \
287 |
--program-transform=* |
--program-transfor=* \
288 |
--program-transfo=* |
--program-transf=* \
289 |
--program-trans=* |
--program-tran=* \
290 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
291 program_transform_name
="$ac_optarg" ;;
293 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
294 |
-silent |
--silent |
--silen |
--sile |
--sil)
297 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
299 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
301 sbindir
="$ac_optarg" ;;
303 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
304 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
305 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
307 ac_prev
=sharedstatedir
;;
308 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
309 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
310 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
312 sharedstatedir
="$ac_optarg" ;;
314 -site |
--site |
--sit)
316 -site=* |
--site=* |
--sit=*)
319 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
321 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
322 sitefile
="$ac_optarg" ;;
324 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
326 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
327 srcdir
="$ac_optarg" ;;
329 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
330 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
331 ac_prev
=sysconfdir
;;
332 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
333 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
334 sysconfdir
="$ac_optarg" ;;
336 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
338 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
339 target
="$ac_optarg" ;;
341 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
344 -version |
--version |
--versio |
--versi |
--vers)
345 echo "configure generated by autoconf version 2.13"
349 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package
=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* |
--without-*)
362 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package
=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
375 |
--x-incl |
--x-inc |
--x-in |
--x-i)
376 ac_prev
=x_includes
;;
377 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
378 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
379 x_includes
="$ac_optarg" ;;
381 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
382 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
383 ac_prev
=x_libraries
;;
384 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
385 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
386 x_libraries
="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE
; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
437 |
--no-cr |
--no-c) ;;
438 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
439 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
440 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest
* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file
=jartool.h
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted
=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted
=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$sitefile"; then
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE
; then
492 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 CONFIG_SITE
="$sitefile"
500 for ac_site_file
in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp
='$CPP $CPPFLAGS'
518 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling
=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
533 ac_n
= ac_c
='\c' ac_t
=
538 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
539 if test -f $ac_dir/install-sh
; then
541 ac_install_sh
="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh
; then
545 ac_install_sh
="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess
=$ac_aux_dir/config.guess
553 ac_config_sub
=$ac_aux_dir/config.sub
554 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
556 # Find a good install program. We prefer a C program (faster),
557 # so one script is as good as another. But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
566 # ./install, which can be erroneously created by make from ./install.sh.
567 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
568 echo "configure:569: checking for a BSD compatible install" >&5
569 if test -z "$INSTALL"; then
570 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
574 for ac_dir
in $PATH; do
575 # Account for people who put trailing slashes in PATH elements.
577 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
579 # OSF1 and SCO ODT 3.0 have their own names for install.
580 # Don't use installbsd from OSF since it installs stuff as root
582 for ac_prog
in ginstall scoinst
install; do
583 if test -f $ac_dir/$ac_prog; then
584 if test $ac_prog = install &&
585 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
586 # AIX install. It has an incompatible calling convention.
589 ac_cv_path_install
="$ac_dir/$ac_prog -c"
600 if test "${ac_cv_path_install+set}" = set; then
601 INSTALL
="$ac_cv_path_install"
603 # As a last resort, use the slow shell script. We don't cache a
604 # path for INSTALL within a source directory, because that will
605 # break other packages using the cache if that directory is
606 # removed, or if the path is relative.
607 INSTALL
="$ac_install_sh"
610 echo "$ac_t""$INSTALL" 1>&6
612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
613 # It thinks the first close brace ends the variable substitution.
614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
618 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
620 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
621 echo "configure:622: checking whether build environment is sane" >&5
624 echo timestamp
> conftestfile
625 # Do `set' in a subshell so we don't clobber the current shell's
626 # arguments. Must try -L first in case configure is actually a
627 # symlink; some systems play weird games with the mod time of symlinks
628 # (eg FreeBSD returns the mod time of the symlink's containing
631 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
632 if test "$*" = "X"; then
634 set X
`ls -t $srcdir/configure conftestfile`
636 if test "$*" != "X $srcdir/configure conftestfile" \
637 && test "$*" != "X conftestfile $srcdir/configure"; then
639 # If neither matched, then we have a broken ls. This can happen
640 # if, for instance, CONFIG_SHELL is bash and it inherits a
641 # broken ls alias from the environment. This has actually
642 # happened. Such a system could not be considered "sane".
643 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
644 alias in your environment" 1>&2; exit 1; }
647 test "$2" = conftestfile
653 { echo "configure: error: newly created file is older than distributed files!
654 Check your system clock" 1>&2; exit 1; }
657 echo "$ac_t""yes" 1>&6
658 if test "$program_transform_name" = s
,x
,x
,; then
659 program_transform_name
=
661 # Double any \ or $. echo might interpret backslashes.
662 cat <<\EOF_SED
> conftestsed
663 s
,\\,\\\\,g
; s
,\$
,$$
,g
665 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
668 test "$program_prefix" != NONE
&&
669 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
670 # Use a double $ so make ignores it.
671 test "$program_suffix" != NONE
&&
672 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
674 # sed with no file args requires a program.
675 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
679 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 cat > conftestmake
<<\EOF
685 @
echo 'ac_maketemp="${MAKE}"'
687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
688 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
689 if test -n "$ac_maketemp"; then
690 eval ac_cv_prog_make_
${ac_make}_set
=yes
692 eval ac_cv_prog_make_
${ac_make}_set
=no
696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
697 echo "$ac_t""yes" 1>&6
700 echo "$ac_t""no" 1>&6
701 SET_MAKE
="MAKE=${MAKE-make}"
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
710 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
712 cat >> confdefs.h
<<EOF
713 #define PACKAGE "$PACKAGE"
716 cat >> confdefs.h
<<EOF
717 #define VERSION "$VERSION"
722 missing_dir
=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
730 echo "$ac_t""found" 1>&6
732 ACLOCAL
="$missing_dir/missing aclocal"
733 echo "$ac_t""missing" 1>&6
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
743 echo "$ac_t""found" 1>&6
745 AUTOCONF
="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
756 echo "$ac_t""found" 1>&6
758 AUTOMAKE
="$missing_dir/missing automake"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
768 AUTOHEADER
=autoheader
769 echo "$ac_t""found" 1>&6
771 AUTOHEADER
="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
782 echo "$ac_t""found" 1>&6
784 MAKEINFO
="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
793 # Extract the first word of "gcc", so it can be a program name with args.
794 set dummy gcc
; ac_word
=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 if test -n "$CC"; then
801 ac_cv_prog_CC
="$CC" # Let the user override the test.
803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
805 for ac_dir
in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir
=.
807 if test -f $ac_dir/$ac_word; then
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
823 # Extract the first word of "cc", so it can be a program name with args.
824 set dummy cc
; ac_word
=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$CC"; then
831 ac_cv_prog_CC
="$CC" # Let the user override the test.
833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
836 for ac_dir
in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir
=.
838 if test -f $ac_dir/$ac_word; then
839 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
848 if test $ac_prog_rejected = yes; then
849 # We found a bogon in the path, so make sure we never use it.
850 set dummy
$ac_cv_prog_CC
852 if test $# -gt 0; then
853 # We chose a different compiler from the bogus one.
854 # However, it has the same basename, so the bogon will be chosen
855 # first if we set CC to just the basename; use the full file name.
857 set dummy
"$ac_dir/$ac_word" "$@"
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
874 # Extract the first word of "cl", so it can be a program name with args.
875 set dummy cl
; ac_word
=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC
="$CC" # Let the user override the test.
884 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
886 for ac_dir
in $ac_dummy; do
887 test -z "$ac_dir" && ac_dir
=.
888 if test -f $ac_dir/$ac_word; then
897 if test -n "$CC"; then
898 echo "$ac_t""$CC" 1>&6
900 echo "$ac_t""no" 1>&6
905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
909 echo "configure:910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
913 ac_cpp
='$CPP $CPPFLAGS'
914 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
915 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
916 cross_compiling
=$ac_cv_prog_cc_cross
918 cat > conftest.
$ac_ext << EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 if { (eval echo configure
:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
926 ac_cv_prog_cc_works
=yes
927 # If we can't run a trivial program, we are probably using a cross compiler.
928 if (.
/conftest
; exit) 2>/dev
/null
; then
929 ac_cv_prog_cc_cross
=no
931 ac_cv_prog_cc_cross
=yes
934 echo "configure: failed program was:" >&5
935 cat conftest.
$ac_ext >&5
936 ac_cv_prog_cc_works
=no
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp
='$CPP $CPPFLAGS'
942 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling
=$ac_cv_prog_cc_cross
946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
947 if test $ac_cv_prog_cc_works = no
; then
948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
951 echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
953 cross_compiling
=$ac_cv_prog_cc_cross
955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
956 echo "configure:957: checking whether we are using GNU C" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 cat > conftest.c
<<EOF
965 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
974 if test $ac_cv_prog_gcc = yes; then
980 ac_test_CFLAGS
="${CFLAGS+set}"
981 ac_save_CFLAGS
="$CFLAGS"
983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
984 echo "configure:985: checking whether ${CC-cc} accepts -g" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 echo 'void f(){}' > conftest.c
989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
999 if test "$ac_test_CFLAGS" = set; then
1000 CFLAGS
="$ac_save_CFLAGS"
1001 elif test $ac_cv_prog_cc_g = yes; then
1002 if test "$GCC" = yes; then
1008 if test "$GCC" = yes; then
1015 # Find a good install program. We prefer a C program (faster),
1016 # so one script is as good as another. But avoid the broken or
1017 # incompatible versions:
1018 # SysV /etc/install, /usr/sbin/install
1019 # SunOS /usr/etc/install
1020 # IRIX /sbin/install
1022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1025 # ./install, which can be erroneously created by make from ./install.sh.
1026 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1027 echo "configure:1028: checking for a BSD compatible install" >&5
1028 if test -z "$INSTALL"; then
1029 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1033 for ac_dir
in $PATH; do
1034 # Account for people who put trailing slashes in PATH elements.
1036 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1038 # OSF1 and SCO ODT 3.0 have their own names for install.
1039 # Don't use installbsd from OSF since it installs stuff as root
1041 for ac_prog
in ginstall scoinst
install; do
1042 if test -f $ac_dir/$ac_prog; then
1043 if test $ac_prog = install &&
1044 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1045 # AIX install. It has an incompatible calling convention.
1048 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1059 if test "${ac_cv_path_install+set}" = set; then
1060 INSTALL
="$ac_cv_path_install"
1062 # As a last resort, use the slow shell script. We don't cache a
1063 # path for INSTALL within a source directory, because that will
1064 # break other packages using the cache if that directory is
1065 # removed, or if the path is relative.
1066 INSTALL
="$ac_install_sh"
1069 echo "$ac_t""$INSTALL" 1>&6
1071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1072 # It thinks the first close brace ends the variable substitution.
1073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1077 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1079 # Extract the first word of "rm", so it can be a program name with args.
1080 set dummy
rm; ac_word
=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1088 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1091 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
1094 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1095 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1096 for ac_dir
in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir
=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_path_RM
="$ac_dir/$ac_word"
1104 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="/bin/rm"
1109 if test -n "$RM"; then
1110 echo "$ac_t""$RM" 1>&6
1112 echo "$ac_t""no" 1>&6
1115 # Extract the first word of "cp", so it can be a program name with args.
1116 set dummy
cp; ac_word
=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1124 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
1127 ac_cv_path_CP
="$CP" # Let the user override the test with a dos path.
1130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1131 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1132 for ac_dir
in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir
=.
1134 if test -f $ac_dir/$ac_word; then
1135 ac_cv_path_CP
="$ac_dir/$ac_word"
1140 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="/bin/cp"
1145 if test -n "$CP"; then
1146 echo "$ac_t""$CP" 1>&6
1148 echo "$ac_t""no" 1>&6
1151 # Extract the first word of "strip", so it can be a program name with args.
1152 set dummy strip
; ac_word
=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1160 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
1163 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a dos path.
1166 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1167 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1168 for ac_dir
in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir
=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_path_STRIP
="$ac_dir/$ac_word"
1176 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
="/usr/bin/strip"
1180 STRIP
="$ac_cv_path_STRIP"
1181 if test -n "$STRIP"; then
1182 echo "$ac_t""$STRIP" 1>&6
1184 echo "$ac_t""no" 1>&6
1187 # Extract the first word of "chmod", so it can be a program name with args.
1188 set dummy
chmod; ac_word
=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1196 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
1199 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a dos path.
1202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1203 ac_dummy
="$PATH:/bin:/usr/bin:/usr/local/bin"
1204 for ac_dir
in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir
=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_path_CHMOD
="$ac_dir/$ac_word"
1212 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
="/bin/chmod"
1216 CHMOD
="$ac_cv_path_CHMOD"
1217 if test -n "$CHMOD"; then
1218 echo "$ac_t""$CHMOD" 1>&6
1220 echo "$ac_t""no" 1>&6
1223 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1224 echo "configure:1225: checking for Cygwin environment" >&5
1225 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 cat > conftest.
$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1235 #define __CYGWIN__ __CYGWIN32__
1240 if { (eval echo configure
:1241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1244 echo "configure: failed program was:" >&5
1245 cat conftest.
$ac_ext >&5
1253 echo "$ac_t""$ac_cv_cygwin" 1>&6
1255 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1256 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1257 echo "configure:1258: checking for mingw32 environment" >&5
1258 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 cat > conftest.
$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1269 if { (eval echo configure
:1270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1273 echo "configure: failed program was:" >&5
1274 cat conftest.
$ac_ext >&5
1282 echo "$ac_t""$ac_cv_mingw32" 1>&6
1284 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1287 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1288 echo "configure:1289: checking for executable suffix" >&5
1289 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1296 echo 'int main () { return 0; }' > conftest.
$ac_ext
1298 if { (eval echo configure
:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1299 for file in conftest.
*; do
1301 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1302 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1306 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1309 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1314 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1315 echo "$ac_t""${ac_cv_exeext}" 1>&6
1319 if test "$GCC" = yes; then
1320 fastjar_warn_cflags
='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
1325 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1327 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1328 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_hdr that defines DIR" >&5
1330 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 cat > conftest.
$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 #include <sys/types.h>
1342 if { (eval echo configure
:1343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1344 eval "ac_cv_header_dirent_$ac_safe=yes"
1346 echo "configure: failed program was:" >&5
1347 cat conftest.
$ac_ext >&5
1349 eval "ac_cv_header_dirent_$ac_safe=no"
1353 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1356 cat >> confdefs.h
<<EOF
1357 #define $ac_tr_hdr 1
1359 ac_header_dirent
=$ac_hdr; break
1361 echo "$ac_t""no" 1>&6
1364 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1365 if test $ac_header_dirent = dirent.h
; then
1366 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1367 echo "configure:1368: checking for opendir in -ldir" >&5
1368 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 ac_save_LIBS
="$LIBS"
1374 cat > conftest.
$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* Override any gcc2 internal prototype to avoid an error. */
1378 /* We use char because int might match the return type of a gcc2
1379 builtin and then its argument prototype would still apply. */
1386 if { (eval echo configure
:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1388 eval "ac_cv_lib_$ac_lib_var=yes"
1390 echo "configure: failed program was:" >&5
1391 cat conftest.
$ac_ext >&5
1393 eval "ac_cv_lib_$ac_lib_var=no"
1396 LIBS
="$ac_save_LIBS"
1399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1400 echo "$ac_t""yes" 1>&6
1403 echo "$ac_t""no" 1>&6
1407 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1408 echo "configure:1409: checking for opendir in -lx" >&5
1409 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 ac_save_LIBS
="$LIBS"
1415 cat > conftest.
$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1418 /* Override any gcc2 internal prototype to avoid an error. */
1419 /* We use char because int might match the return type of a gcc2
1420 builtin and then its argument prototype would still apply. */
1427 if { (eval echo configure
:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1429 eval "ac_cv_lib_$ac_lib_var=yes"
1431 echo "configure: failed program was:" >&5
1432 cat conftest.
$ac_ext >&5
1434 eval "ac_cv_lib_$ac_lib_var=no"
1437 LIBS
="$ac_save_LIBS"
1440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1444 echo "$ac_t""no" 1>&6
1449 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1450 echo "configure:1451: checking how to run the C preprocessor" >&5
1451 # On Suns, sometimes $CPP names a directory.
1452 if test -n "$CPP" && test -d "$CPP"; then
1455 if test -z "$CPP"; then
1456 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 # This must be in double quotes, not single quotes, because CPP may get
1460 # substituted into the Makefile and "${CC-cc}" will confuse make.
1462 # On the NeXT, cc -E runs the code through the compiler's parser,
1463 # not just through cpp.
1464 cat > conftest.
$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1471 { (eval echo configure
:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1473 if test -z "$ac_err"; then
1477 echo "configure: failed program was:" >&5
1478 cat conftest.
$ac_ext >&5
1480 CPP
="${CC-cc} -E -traditional-cpp"
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1488 { (eval echo configure
:1489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1489 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1490 if test -z "$ac_err"; then
1494 echo "configure: failed program was:" >&5
1495 cat conftest.
$ac_ext >&5
1497 CPP
="${CC-cc} -nologo -E"
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1504 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1505 { (eval echo configure
:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1506 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1507 if test -z "$ac_err"; then
1511 echo "configure: failed program was:" >&5
1512 cat conftest.
$ac_ext >&5
1521 ac_cv_prog_CPP
="$CPP"
1523 CPP
="$ac_cv_prog_CPP"
1525 ac_cv_prog_CPP
="$CPP"
1527 echo "$ac_t""$CPP" 1>&6
1529 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1530 echo "configure:1531: checking for ANSI C header files" >&5
1531 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.
$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1542 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 { (eval echo configure
:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1544 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1545 if test -z "$ac_err"; then
1547 ac_cv_header_stdc
=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 ac_cv_header_stdc
=no
1557 if test $ac_cv_header_stdc = yes; then
1558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1565 egrep "memchr" >/dev
/null
2>&1; then
1569 ac_cv_header_stdc
=no
1575 if test $ac_cv_header_stdc = yes; then
1576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1577 cat > conftest.
$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1583 egrep "free" >/dev
/null
2>&1; then
1587 ac_cv_header_stdc
=no
1593 if test $ac_cv_header_stdc = yes; then
1594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1595 if test "$cross_compiling" = yes; then
1598 cat > conftest.
$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1602 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1603 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1605 int main () { int i; for (i = 0; i < 256; i++)
1606 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1610 if { (eval echo configure
:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1614 echo "configure: failed program was:" >&5
1615 cat conftest.
$ac_ext >&5
1617 ac_cv_header_stdc
=no
1625 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1626 if test $ac_cv_header_stdc = yes; then
1627 cat >> confdefs.h
<<\EOF
1628 #define STDC_HEADERS 1
1633 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether struct tm is in sys/time.h or time.h" >&5
1635 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.
$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <sys/types.h>
1644 struct tm *tp; tp->tm_sec;
1647 if { (eval echo configure
:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1649 ac_cv_struct_tm
=time.h
1651 echo "configure: failed program was:" >&5
1652 cat conftest.
$ac_ext >&5
1654 ac_cv_struct_tm
=sys
/time.h
1659 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1660 if test $ac_cv_struct_tm = sys
/time.h
; then
1661 cat >> confdefs.h
<<\EOF
1662 #define TM_IN_SYS_TIME 1
1667 for ac_hdr
in fcntl.h unistd.h sys
/param.h getopt.h
1669 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_hdr" >&5
1672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 cat > conftest.
$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1680 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure
:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1683 if test -z "$ac_err"; then
1685 eval "ac_cv_header_$ac_safe=yes"
1688 echo "configure: failed program was:" >&5
1689 cat conftest.
$ac_ext >&5
1691 eval "ac_cv_header_$ac_safe=no"
1695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1697 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1698 cat >> confdefs.h
<<EOF
1699 #define $ac_tr_hdr 1
1703 echo "$ac_t""no" 1>&6
1708 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1709 echo "configure:1710: checking for off_t" >&5
1710 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 #include <sys/types.h>
1722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1723 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1725 ac_cv_type_off_t
=yes
1733 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1734 if test $ac_cv_type_off_t = no
; then
1735 cat >> confdefs.h
<<\EOF
1741 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1742 echo "configure:1743: checking whether struct tm is in sys/time.h or time.h" >&5
1743 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 cat > conftest.
$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 #include <sys/types.h>
1752 struct tm *tp; tp->tm_sec;
1755 if { (eval echo configure
:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 ac_cv_struct_tm
=time.h
1759 echo "configure: failed program was:" >&5
1760 cat conftest.
$ac_ext >&5
1762 ac_cv_struct_tm
=sys
/time.h
1767 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1768 if test $ac_cv_struct_tm = sys
/time.h
; then
1769 cat >> confdefs.h
<<\EOF
1770 #define TM_IN_SYS_TIME 1
1776 echo $ac_n "checking size of char""... $ac_c" 1>&6
1777 echo "configure:1778: checking size of char" >&5
1778 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 if test "$cross_compiling" = yes; then
1782 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1784 cat > conftest.
$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1790 FILE *f=fopen("conftestval", "w");
1792 fprintf(f, "%d\n", sizeof(char));
1796 if { (eval echo configure
:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1798 ac_cv_sizeof_char
=`cat conftestval`
1800 echo "configure: failed program was:" >&5
1801 cat conftest.
$ac_ext >&5
1809 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1810 cat >> confdefs.h
<<EOF
1811 #define SIZEOF_CHAR $ac_cv_sizeof_char
1815 echo $ac_n "checking size of short""... $ac_c" 1>&6
1816 echo "configure:1817: checking size of short" >&5
1817 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 if test "$cross_compiling" = yes; then
1821 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1829 FILE *f=fopen("conftestval", "w");
1831 fprintf(f, "%d\n", sizeof(short));
1835 if { (eval echo configure
:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1837 ac_cv_sizeof_short
=`cat conftestval`
1839 echo "configure: failed program was:" >&5
1840 cat conftest.
$ac_ext >&5
1842 ac_cv_sizeof_short
=0
1848 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1849 cat >> confdefs.h
<<EOF
1850 #define SIZEOF_SHORT $ac_cv_sizeof_short
1854 echo $ac_n "checking size of int""... $ac_c" 1>&6
1855 echo "configure:1856: checking size of int" >&5
1856 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test "$cross_compiling" = yes; then
1860 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 FILE *f=fopen("conftestval", "w");
1870 fprintf(f, "%d\n", sizeof(int));
1874 if { (eval echo configure
:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1876 ac_cv_sizeof_int
=`cat conftestval`
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1887 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1888 cat >> confdefs.h
<<EOF
1889 #define SIZEOF_INT $ac_cv_sizeof_int
1893 echo $ac_n "checking size of long""... $ac_c" 1>&6
1894 echo "configure:1895: checking size of long" >&5
1895 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 if test "$cross_compiling" = yes; then
1899 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1901 cat > conftest.
$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1907 FILE *f=fopen("conftestval", "w");
1909 fprintf(f, "%d\n", sizeof(long));
1913 if { (eval echo configure
:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1915 ac_cv_sizeof_long
=`cat conftestval`
1917 echo "configure: failed program was:" >&5
1918 cat conftest.
$ac_ext >&5
1926 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1927 cat >> confdefs.h
<<EOF
1928 #define SIZEOF_LONG $ac_cv_sizeof_long
1932 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1933 echo "configure:1934: checking size of long long" >&5
1934 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 if test "$cross_compiling" = yes; then
1938 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1940 cat > conftest.
$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1946 FILE *f=fopen("conftestval", "w");
1948 fprintf(f, "%d\n", sizeof(long long));
1952 if { (eval echo configure
:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1954 ac_cv_sizeof_long_long
=`cat conftestval`
1956 echo "configure: failed program was:" >&5
1957 cat conftest.
$ac_ext >&5
1959 ac_cv_sizeof_long_long
=0
1965 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1966 cat >> confdefs.h
<<EOF
1967 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1972 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether byte ordering is bigendian" >&5
1974 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 ac_cv_c_bigendian
=unknown
1978 # See if sys/param.h defines the BYTE_ORDER macro.
1979 cat > conftest.
$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 #include <sys/types.h>
1983 #include <sys/param.h>
1986 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1991 if { (eval echo configure
:1992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1993 # It does; now see whether it defined to BIG_ENDIAN or not.
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 #include <sys/types.h>
1998 #include <sys/param.h>
2001 #if BYTE_ORDER != BIG_ENDIAN
2006 if { (eval echo configure
:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 ac_cv_c_bigendian
=yes
2010 echo "configure: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2013 ac_cv_c_bigendian
=no
2017 echo "configure: failed program was:" >&5
2018 cat conftest.
$ac_ext >&5
2021 if test $ac_cv_c_bigendian = unknown
; then
2022 if test "$cross_compiling" = yes; then
2023 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2025 cat > conftest.
$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2029 /* Are we little or big endian? From Harbison&Steele. */
2033 char c[sizeof (long)];
2036 exit (u.c[sizeof (long) - 1] == 1);
2039 if { (eval echo configure
:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2041 ac_cv_c_bigendian
=no
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2046 ac_cv_c_bigendian
=yes
2054 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2055 if test $ac_cv_c_bigendian = yes; then
2056 cat >> confdefs.h
<<\EOF
2057 #define WORDS_BIGENDIAN 1
2063 # Check whether --with-system-zlib or --without-system-zlib was given.
2064 if test "${with_system_zlib+set}" = set; then
2065 withval
="$with_system_zlib"
2074 if test "$with_system_zlib" = yes; then
2075 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2076 echo "configure:2077: checking for deflate in -lz" >&5
2077 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 ac_save_LIBS
="$LIBS"
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* Override any gcc2 internal prototype to avoid an error. */
2087 /* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2095 if { (eval echo configure
:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2099 echo "configure: failed program was:" >&5
2100 cat conftest.
$ac_ext >&5
2102 eval "ac_cv_lib_$ac_lib_var=no"
2105 LIBS
="$ac_save_LIBS"
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2112 echo "$ac_t""no" 1>&6
2120 if test "$use_zlib" = no
; then
2121 # Brain dead way to find tree's zlib.
2122 ZDEPS
='$(top_builddir)/../zlib/libz.a'
2123 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
2124 ZINCS
='-I$(top_srcdir)/../zlib'
2131 cat > confcache
<<\EOF
2132 # This file is a shell script that caches the results of configure
2133 # tests run on this system so they can be shared between configure
2134 # scripts and configure runs. It is not useful on other systems.
2135 # If it contains results you don't want to keep, you may remove or edit it.
2137 # By default, configure uses ./config.cache as the cache file,
2138 # creating it if it does not exist already. You can give configure
2139 # the --cache-file=FILE option to use a different cache file; that is
2140 # what configure does when it calls configure scripts in
2141 # subdirectories, so they share the cache.
2142 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2143 # config.status only pays attention to the cache file if you give it the
2144 # --recheck option to rerun configure.
2147 # The following way of writing the cache mishandles newlines in values,
2148 # but we know of no workaround that is simple, portable, and efficient.
2149 # So, don't put newlines in cache variables' values.
2150 # Ultrix sh set writes to stderr and can't be redirected directly,
2151 # and sets the high bit in the cache file unless we assign to the vars.
2153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2155 # `set' does not quote correctly, so add quotes (double-quote substitution
2156 # turns \\\\ into \\, and sed turns \\ into \).
2158 -e "s/'/'\\\\''/g" \
2159 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2162 # `set' quotes correctly as required by POSIX, so do not add quotes.
2163 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2166 if cmp -s $cache_file confcache
; then
2169 if test -w $cache_file; then
2170 echo "updating cache $cache_file"
2171 cat confcache
> $cache_file
2173 echo "not updating unwritable cache $cache_file"
2178 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2180 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2181 # Let make expand exec_prefix.
2182 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2184 # Any assignment to VPATH causes Sun make to only execute
2185 # the first set of double-colon rules, so remove it if not needed.
2186 # If there is a colon in the path, we need to keep it.
2187 if test "x$srcdir" = x.
; then
2188 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2191 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2193 DEFS
=-DHAVE_CONFIG_H
2195 # Without the "./", some shells look in PATH for config.status.
2196 : ${CONFIG_STATUS=./config.status}
2198 echo creating
$CONFIG_STATUS
2199 rm -f $CONFIG_STATUS
2200 cat > $CONFIG_STATUS <<EOF
2202 # Generated automatically by configure.
2203 # Run this file to recreate the current configuration.
2204 # This directory was configured as follows,
2205 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2207 # $0 $ac_configure_args
2209 # Compiler output produced by configure, useful for debugging
2210 # configure, is in ./config.log if it exists.
2212 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2215 case "\$ac_option" in
2216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2217 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2218 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2219 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2220 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2222 -help | --help | --hel | --he | --h)
2223 echo "\$ac_cs_usage"; exit 0 ;;
2224 *) echo "\$ac_cs_usage"; exit 1 ;;
2228 ac_given_srcdir=$srcdir
2229 ac_given_INSTALL="$INSTALL"
2231 trap 'rm -fr `echo "Makefile install-defs.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2233 cat >> $CONFIG_STATUS <<EOF
2235 # Protect against being on the right side of a sed subst in config.status.
2236 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2237 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2241 s%@CFLAGS@%$CFLAGS%g
2242 s%@CPPFLAGS@%$CPPFLAGS%g
2243 s%@CXXFLAGS@%$CXXFLAGS%g
2244 s%@FFLAGS@%$FFLAGS%g
2246 s%@LDFLAGS@%$LDFLAGS%g
2248 s%@exec_prefix@%$exec_prefix%g
2249 s%@prefix@%$prefix%g
2250 s%@program_transform_name@%$program_transform_name%g
2251 s%@bindir@%$bindir%g
2252 s%@sbindir@%$sbindir%g
2253 s%@libexecdir@%$libexecdir%g
2254 s%@datadir@%$datadir%g
2255 s%@sysconfdir@%$sysconfdir%g
2256 s%@sharedstatedir@%$sharedstatedir%g
2257 s%@localstatedir@%$localstatedir%g
2258 s%@libdir@%$libdir%g
2259 s%@includedir@%$includedir%g
2260 s%@oldincludedir@%$oldincludedir%g
2261 s%@infodir@%$infodir%g
2262 s%@mandir@%$mandir%g
2263 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2264 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2265 s%@INSTALL_DATA@%$INSTALL_DATA%g
2266 s%@PACKAGE@%$PACKAGE%g
2267 s%@VERSION@%$VERSION%g
2268 s%@ACLOCAL@%$ACLOCAL%g
2269 s%@AUTOCONF@%$AUTOCONF%g
2270 s%@AUTOMAKE@%$AUTOMAKE%g
2271 s%@AUTOHEADER@%$AUTOHEADER%g
2272 s%@MAKEINFO@%$MAKEINFO%g
2273 s%@SET_MAKE@%$SET_MAKE%g
2279 s%@EXEEXT@%$EXEEXT%g
2280 s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
2289 cat >> $CONFIG_STATUS <<\EOF
2291 # Split the substitutions into bite-sized pieces for seds with
2292 # small command number limits, like on Digital OSF/1 and HP-UX.
2293 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2294 ac_file
=1 # Number of current file.
2295 ac_beg
=1 # First line for current file.
2296 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2299 while $ac_more_lines; do
2300 if test $ac_beg -gt 1; then
2301 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2303 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2305 if test ! -s conftest.s
$ac_file; then
2307 rm -f conftest.s
$ac_file
2309 if test -z "$ac_sed_cmds"; then
2310 ac_sed_cmds
="sed -f conftest.s$ac_file"
2312 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2314 ac_file
=`expr $ac_file + 1`
2316 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2319 if test -z "$ac_sed_cmds"; then
2324 cat >> $CONFIG_STATUS <<EOF
2326 CONFIG_FILES=\${CONFIG_FILES-"Makefile install-defs.sh"}
2328 cat >> $CONFIG_STATUS <<\EOF
2329 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2332 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2333 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2334 *) ac_file_in
="${ac_file}.in" ;;
2337 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2339 # Remove last slash and all that follows it. Not all systems have dirname.
2340 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2341 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2342 # The file is in a subdirectory.
2343 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2344 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2345 # A "../" for each directory in $ac_dir_suffix.
2346 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2348 ac_dir_suffix
= ac_dots
=
2351 case "$ac_given_srcdir" in
2353 if test -z "$ac_dots"; then top_srcdir
=.
2354 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2355 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2357 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2358 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2361 case "$ac_given_INSTALL" in
2362 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2363 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2366 echo creating
"$ac_file"
2368 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2370 *Makefile
*) ac_comsub
="1i\\
2371 # $configure_input" ;;
2375 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2377 s%@configure_input@%$configure_input%g
2378 s%@srcdir@%$srcdir%g
2379 s%@top_srcdir@%$top_srcdir%g
2380 s%@INSTALL@%$INSTALL%g
2381 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2385 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2386 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2388 # ac_d sets the value in "#define NAME VALUE" lines.
2389 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2390 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2393 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2394 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2395 ac_uB
='\([ ]\)%\1#\2define\3'
2398 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2399 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2400 ac_eB
='$%\1#\2define\3'
2404 if test "${CONFIG_HEADERS+set}" != set; then
2406 cat >> $CONFIG_STATUS <<EOF
2407 CONFIG_HEADERS="config.h"
2409 cat >> $CONFIG_STATUS <<\EOF
2411 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2412 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2414 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2415 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2416 *) ac_file_in
="${ac_file}.in" ;;
2419 echo creating
$ac_file
2421 rm -f conftest.frag conftest.
in conftest.out
2422 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2423 cat $ac_file_inputs > conftest.
in
2427 # Transform confdefs.h into a sed script conftest.vals that substitutes
2428 # the proper values into config.h.in to produce config.h. And first:
2429 # Protect against being on the right side of a sed subst in config.status.
2430 # Protect against being in an unquoted here document in config.status.
2432 cat > conftest.hdr
<<\EOF
2435 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2439 sed -n -f conftest.hdr confdefs.h > conftest.vals
2442 # This sed command replaces #undef with comments. This is necessary, for
2443 # example, in the case of _POSIX_SOURCE, which is predefined and required
2444 # on some systems where configure will not decide to define it.
2445 cat >> conftest.vals <<\EOF
2446 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2449 # Break up conftest.vals because some shells have a limit on
2450 # the size of here documents, and old seds have small limits too.
2455 ac_lines=`grep -c . conftest.vals
`
2456 # grep -c gives empty output for an empty file on some AIX systems.
2457 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2458 # Write a limited-size here document to conftest.frag.
2459 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2460 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2462 sed -f conftest.frag conftest.in > conftest.out
2464 mv conftest.out conftest.in
2466 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2468 mv conftest.tail conftest.vals
2472 cat >> $CONFIG_STATUS <<\EOF
2473 rm -f conftest.frag conftest.h
2474 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2475 cat conftest.in >> conftest.h
2477 if cmp -s $ac_file conftest.h 2>/dev/null; then
2478 echo "$ac_file is unchanged"
2481 # Remove last slash and all that follows it. Not all systems have dirname.
2482 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2483 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2484 # The file is in a subdirectory.
2485 test ! -d "$ac_dir" && mkdir "$ac_dir"
2488 mv conftest.h $ac_file
2493 cat >> $CONFIG_STATUS <<EOF
2497 cat >> $CONFIG_STATUS <<\EOF
2498 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2502 chmod +x $CONFIG_STATUS
2503 rm -fr confdefs* $ac_clean_files
2504 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1