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 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --with-system-zlib use installed libz"
20 # Initialize some variables set by options.
21 # The variables have the same names as the options, with
22 # dashes changed to underlines.
24 cache_file
=.
/config.cache
33 program_transform_name
=s
,x
,x
,
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'
54 # Initialize some other variables.
57 SHELL
=${CONFIG_SHELL-/bin/sh}
58 # Maximum number of lines to put in a shell here document.
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
73 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 # Accept the important Cygnus configure options, so we can diagnose typos.
81 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
83 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
84 bindir
="$ac_optarg" ;;
86 -build |
--build |
--buil |
--bui |
--bu)
88 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
91 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
92 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
94 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
95 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
96 cache_file
="$ac_optarg" ;;
98 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
100 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
102 datadir
="$ac_optarg" ;;
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; }
110 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
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; }
119 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
135 -gas |
--gas |
--ga |
--g)
136 # Obsolete; use --with-gas.
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.
143 Usage: configure [options] [host]
144 Options: [defaults in brackets after descriptions]
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
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
194 -host |
--host |
--hos |
--ho)
196 -host=* |
--host=* |
--hos=* |
--ho=*)
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" ;;
206 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
208 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
209 infodir
="$ac_optarg" ;;
211 -libdir |
--libdir |
--libdi |
--libd)
213 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
214 libdir
="$ac_optarg" ;;
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" ;;
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" ;;
232 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
234 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
235 mandir
="$ac_optarg" ;;
238 # Obsolete; use --without-fp.
241 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
245 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
246 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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" ;;
258 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
260 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
261 prefix
="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
294 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
295 |
-silent |
--silent |
--silen |
--sile |
--sil)
298 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
300 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
302 sbindir
="$ac_optarg" ;;
304 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
305 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
306 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
308 ac_prev
=sharedstatedir
;;
309 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
310 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
311 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
313 sharedstatedir
="$ac_optarg" ;;
315 -site |
--site |
--sit)
317 -site=* |
--site=* |
--sit=*)
320 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
322 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
323 srcdir
="$ac_optarg" ;;
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" ;;
332 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
334 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
335 target
="$ac_optarg" ;;
337 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
340 -version |
--version |
--versio |
--versi |
--vers)
341 echo "configure generated by autoconf version 2.13"
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; }
350 ac_package
=`echo $ac_package| sed 's/-/_/g'`
355 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
363 ac_package
=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
367 # Obsolete; use --with-x.
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" ;;
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" ;;
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
400 if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406 # File descriptor usage:
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
422 This file contains any messages produced by compilers while
423 running configure, to aid debugging if configure makes a mistake.
426 # Strip out --no-create and --no-recursion so they do not pile up.
427 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
466 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted
=no
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; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
489 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
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
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
525 ac_n
= ac_c
='\c' ac_t
=
530 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
531 if test -f $ac_dir/install-sh
; then
533 ac_install_sh
="$ac_aux_dir/install-sh -c"
535 elif test -f $ac_dir/install.sh
; then
537 ac_install_sh
="$ac_aux_dir/install.sh -c"
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; }
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.
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
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
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.
569 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
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
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.
581 ac_cv_path_install
="$ac_dir/$ac_prog -c"
592 if test "${ac_cv_path_install+set}" = set; then
593 INSTALL
="$ac_cv_path_install"
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"
602 echo "$ac_t""$INSTALL" 1>&6
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}'
608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
610 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
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
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
623 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
624 if test "$*" = "X"; then
626 set X
`ls -t $srcdir/configure conftestfile`
628 if test "$*" != "X $srcdir/configure conftestfile" \
629 && test "$*" != "X conftestfile $srcdir/configure"; then
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; }
639 test "$2" = conftestfile
645 { echo "configure: error: newly created file is older than distributed files!
646 Check your system clock" 1>&2; exit 1; }
649 echo "$ac_t""yes" 1>&6
650 if test "$program_transform_name" = s
,x
,x
,; then
651 program_transform_name
=
653 # Double any \ or $. echo might interpret backslashes.
654 cat <<\EOF_SED
> conftestsed
655 s
,\\,\\\\,g
; s
,\$
,$$
,g
657 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
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"
666 # sed with no file args requires a program.
667 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
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
675 cat > conftestmake
<<\EOF
677 @
echo 'ac_maketemp="${MAKE}"'
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
684 eval ac_cv_prog_make_
${ac_make}_set
=no
688 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
689 echo "$ac_t""yes" 1>&6
692 echo "$ac_t""no" 1>&6
693 SET_MAKE
="MAKE=${MAKE-make}"
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; }
704 cat >> confdefs.h
<<EOF
705 #define PACKAGE "$PACKAGE"
708 cat >> confdefs.h
<<EOF
709 #define VERSION "$VERSION"
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
722 echo "$ac_t""found" 1>&6
724 ACLOCAL
="$missing_dir/missing aclocal"
725 echo "$ac_t""missing" 1>&6
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
735 echo "$ac_t""found" 1>&6
737 AUTOCONF
="$missing_dir/missing autoconf"
738 echo "$ac_t""missing" 1>&6
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
748 echo "$ac_t""found" 1>&6
750 AUTOMAKE
="$missing_dir/missing automake"
751 echo "$ac_t""missing" 1>&6
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
763 AUTOHEADER
="$missing_dir/missing autoheader"
764 echo "$ac_t""missing" 1>&6
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
774 echo "$ac_t""found" 1>&6
776 MAKEINFO
="$missing_dir/missing makeinfo"
777 echo "$ac_t""missing" 1>&6
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
792 if test -n "$CC"; then
793 ac_cv_prog_CC
="$CC" # Let the user override the test.
795 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
797 for ac_dir
in $ac_dummy; do
798 test -z "$ac_dir" && ac_dir
=.
799 if test -f $ac_dir/$ac_word; then
808 if test -n "$CC"; then
809 echo "$ac_t""$CC" 1>&6
811 echo "$ac_t""no" 1>&6
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
822 if test -n "$CC"; then
823 ac_cv_prog_CC
="$CC" # Let the user override the test.
825 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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
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
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.
849 set dummy
"$ac_dir/$ac_word" "$@"
857 if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
860 echo "$ac_t""no" 1>&6
863 if test -z "$CC"; then
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
873 if test -n "$CC"; then
874 ac_cv_prog_CC
="$CC" # Let the user override the test.
876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
878 for ac_dir
in $ac_dummy; do
879 test -z "$ac_dir" && ac_dir
=.
880 if test -f $ac_dir/$ac_word; then
889 if test -n "$CC"; then
890 echo "$ac_t""$CC" 1>&6
892 echo "$ac_t""no" 1>&6
897 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
910 cat > conftest.
$ac_ext << EOF
912 #line 913 "configure"
913 #include "confdefs.h"
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
923 ac_cv_prog_cc_cross
=yes
926 echo "configure: failed program was:" >&5
927 cat conftest.
$ac_ext >&5
928 ac_cv_prog_cc_works
=no
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
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; }
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
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
952 cat > conftest.c
<<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
964 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
966 if test $ac_cv_prog_gcc = yes; then
972 ac_test_CFLAGS
="${CFLAGS+set}"
973 ac_save_CFLAGS
="$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
980 echo 'void f(){}' > conftest.c
981 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
1000 if test "$GCC" = yes; then
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
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
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.
1028 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
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
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.
1040 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1051 if test "${ac_cv_path_install+set}" = set; then
1052 INSTALL
="$ac_cv_path_install"
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"
1061 echo "$ac_t""$INSTALL" 1>&6
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}'
1067 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1069 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
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
1080 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1083 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
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"
1096 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="/bin/rm"
1101 if test -n "$RM"; then
1102 echo "$ac_t""$RM" 1>&6
1104 echo "$ac_t""no" 1>&6
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
1116 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
1119 ac_cv_path_CP
="$CP" # Let the user override the test with a dos path.
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"
1132 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="/bin/cp"
1137 if test -n "$CP"; then
1138 echo "$ac_t""$CP" 1>&6
1140 echo "$ac_t""no" 1>&6
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
1152 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a path.
1155 ac_cv_path_STRIP
="$STRIP" # Let the user override the test with a dos path.
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"
1168 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP
="/usr/bin/strip"
1172 STRIP
="$ac_cv_path_STRIP"
1173 if test -n "$STRIP"; then
1174 echo "$ac_t""$STRIP" 1>&6
1176 echo "$ac_t""no" 1>&6
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
1188 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
1191 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a dos path.
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"
1204 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
="/bin/chmod"
1208 CHMOD
="$ac_cv_path_CHMOD"
1209 if test -n "$CHMOD"; then
1210 echo "$ac_t""$CHMOD" 1>&6
1212 echo "$ac_t""no" 1>&6
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
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1227 #define __CYGWIN__ __CYGWIN32__
1232 if { (eval echo configure
:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1245 echo "$ac_t""$ac_cv_cygwin" 1>&6
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
1253 cat > conftest.
$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1261 if { (eval echo configure
:1262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1265 echo "configure: failed program was:" >&5
1266 cat conftest.
$ac_ext >&5
1274 echo "$ac_t""$ac_cv_mingw32" 1>&6
1276 test "$ac_cv_mingw32" = yes && MINGW32
=yes
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
1284 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1288 echo 'int main () { return 0; }' > conftest.
$ac_ext
1290 if { (eval echo configure
:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1291 for file in conftest.
*; do
1293 *.c |
*.o |
*.obj
) ;;
1294 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1298 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1301 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1306 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1307 echo "$ac_t""${ac_cv_exeext}" 1>&6
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
1318 USE_MAINTAINER_MODE
=no
1321 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1324 if test $USE_MAINTAINER_MODE = yes; then
1325 MAINTAINER_MODE_TRUE
=
1326 MAINTAINER_MODE_FALSE
='#'
1328 MAINTAINER_MODE_TRUE
='#'
1329 MAINTAINER_MODE_FALSE
=
1331 MAINT
=$MAINTAINER_MODE_TRUE
1335 if test "$GCC" = yes; then
1336 fastjar_warn_cflags
='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
1341 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
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
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 #include <sys/types.h>
1358 if { (eval echo configure
:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 eval "ac_cv_header_dirent_$ac_safe=yes"
1362 echo "configure: failed program was:" >&5
1363 cat conftest.
$ac_ext >&5
1365 eval "ac_cv_header_dirent_$ac_safe=no"
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
1375 ac_header_dirent
=$ac_hdr; break
1377 echo "$ac_t""no" 1>&6
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
1388 ac_save_LIBS
="$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. */
1402 if { (eval echo configure
:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1404 eval "ac_cv_lib_$ac_lib_var=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.
$ac_ext >&5
1409 eval "ac_cv_lib_$ac_lib_var=no"
1412 LIBS
="$ac_save_LIBS"
1415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1419 echo "$ac_t""no" 1>&6
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
1429 ac_save_LIBS
="$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. */
1443 if { (eval echo configure
:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1445 eval "ac_cv_lib_$ac_lib_var=yes"
1447 echo "configure: failed program was:" >&5
1448 cat conftest.
$ac_ext >&5
1450 eval "ac_cv_lib_$ac_lib_var=no"
1453 LIBS
="$ac_save_LIBS"
1456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1460 echo "$ac_t""no" 1>&6
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
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
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.
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"
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
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 CPP
="${CC-cc} -E -traditional-cpp"
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
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
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1513 CPP
="${CC-cc} -nologo -E"
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
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
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1537 ac_cv_prog_CPP
="$CPP"
1539 CPP
="$ac_cv_prog_CPP"
1541 ac_cv_prog_CPP
="$CPP"
1543 echo "$ac_t""$CPP" 1>&6
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
1550 cat > conftest.
$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
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
1563 ac_cv_header_stdc
=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1569 ac_cv_header_stdc
=no
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"
1580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1581 egrep "memchr" >/dev
/null
2>&1; then
1585 ac_cv_header_stdc
=no
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"
1598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1599 egrep "free" >/dev
/null
2>&1; then
1603 ac_cv_header_stdc
=no
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
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.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);
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
1630 echo "configure: failed program was:" >&5
1631 cat conftest.
$ac_ext >&5
1633 ac_cv_header_stdc
=no
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
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
1654 cat > conftest.
$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <sys/types.h>
1660 struct tm *tp; tp->tm_sec;
1663 if { (eval echo configure
:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 ac_cv_struct_tm
=time.h
1667 echo "configure: failed program was:" >&5
1668 cat conftest.
$ac_ext >&5
1670 ac_cv_struct_tm
=sys
/time.h
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
1683 for ac_hdr
in fcntl.h unistd.h sys
/param.h stdlib.h limits.h
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
1691 cat > conftest.
$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
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
1701 eval "ac_cv_header_$ac_safe=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.
$ac_ext >&5
1707 eval "ac_cv_header_$ac_safe=no"
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
1719 echo "$ac_t""no" 1>&6
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
1729 cat > conftest.
$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1732 #include <sys/types.h>
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
1741 ac_cv_type_off_t
=yes
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
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
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 #include <sys/types.h>
1768 struct tm *tp; tp->tm_sec;
1771 if { (eval echo configure
:1772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1773 ac_cv_struct_tm
=time.h
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1778 ac_cv_struct_tm
=sys
/time.h
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
1792 # mkdir takes a single argument on some systems.
1793 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
1794 echo "configure:1795: checking if mkdir takes one argument" >&5
1795 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.
$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1802 #include <sys/types.h>
1803 #ifdef HAVE_SYS_STAT_H
1804 # include <sys/stat.h>
1806 #ifdef HAVE_UNISTD_H
1807 # include <unistd.h>
1809 #ifdef HAVE_DIRECT_H
1810 # include <direct.h>
1816 if { (eval echo configure
:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1818 gcc_cv_mkdir_takes_one_arg
=no
1820 echo "configure: failed program was:" >&5
1821 cat conftest.
$ac_ext >&5
1823 gcc_cv_mkdir_takes_one_arg
=yes
1828 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
1829 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
1830 cat >> confdefs.h
<<\EOF
1831 #define MKDIR_TAKES_ONE_ARG 1
1837 echo $ac_n "checking size of char""... $ac_c" 1>&6
1838 echo "configure:1839: checking size of char" >&5
1839 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 #include "confdefs.h"
1847 #include <sys/types.h>
1851 switch (0) case 0: case (sizeof (char) == $ac_size):;
1854 if { (eval echo configure
:1855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1856 ac_cv_sizeof_char
=$ac_size
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1862 if test x
$ac_cv_sizeof_char != x
; then break; fi
1867 if test x
$ac_cv_sizeof_char = x
; then
1868 { echo "configure: error: cannot determine a size for char" 1>&2; exit 1; }
1870 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1871 cat >> confdefs.h
<<EOF
1872 #define SIZEOF_CHAR $ac_cv_sizeof_char
1876 echo $ac_n "checking size of short""... $ac_c" 1>&6
1877 echo "configure:1878: checking size of short" >&5
1878 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include "confdefs.h"
1886 #include <sys/types.h>
1890 switch (0) case 0: case (sizeof (short) == $ac_size):;
1893 if { (eval echo configure
:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1895 ac_cv_sizeof_short
=$ac_size
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1901 if test x
$ac_cv_sizeof_short != x
; then break; fi
1906 if test x
$ac_cv_sizeof_short = x
; then
1907 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1909 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1910 cat >> confdefs.h
<<EOF
1911 #define SIZEOF_SHORT $ac_cv_sizeof_short
1915 echo $ac_n "checking size of int""... $ac_c" 1>&6
1916 echo "configure:1917: checking size of int" >&5
1917 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 #include "confdefs.h"
1925 #include <sys/types.h>
1929 switch (0) case 0: case (sizeof (int) == $ac_size):;
1932 if { (eval echo configure
:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1934 ac_cv_sizeof_int
=$ac_size
1936 echo "configure: failed program was:" >&5
1937 cat conftest.
$ac_ext >&5
1940 if test x
$ac_cv_sizeof_int != x
; then break; fi
1945 if test x
$ac_cv_sizeof_int = x
; then
1946 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1948 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1949 cat >> confdefs.h
<<EOF
1950 #define SIZEOF_INT $ac_cv_sizeof_int
1954 echo $ac_n "checking size of long""... $ac_c" 1>&6
1955 echo "configure:1956: checking size of long" >&5
1956 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 #include "confdefs.h"
1964 #include <sys/types.h>
1968 switch (0) case 0: case (sizeof (long) == $ac_size):;
1971 if { (eval echo configure
:1972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1973 ac_cv_sizeof_long
=$ac_size
1975 echo "configure: failed program was:" >&5
1976 cat conftest.
$ac_ext >&5
1979 if test x
$ac_cv_sizeof_long != x
; then break; fi
1984 if test x
$ac_cv_sizeof_long = x
; then
1985 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1987 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1988 cat >> confdefs.h
<<EOF
1989 #define SIZEOF_LONG $ac_cv_sizeof_long
1993 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1994 echo "configure:1995: checking size of long long" >&5
1995 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1999 cat > conftest.
$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 #include "confdefs.h"
2003 #include <sys/types.h>
2007 switch (0) case 0: case (sizeof (long long) == $ac_size):;
2010 if { (eval echo configure
:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2012 ac_cv_sizeof_long_long
=$ac_size
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2018 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2023 if test x
$ac_cv_sizeof_long_long = x
; then
2024 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2026 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2027 cat >> confdefs.h
<<EOF
2028 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2033 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether byte ordering is bigendian" >&5
2035 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 ac_cv_c_bigendian
=unknown
2039 # See if sys/param.h defines the BYTE_ORDER macro.
2040 cat > conftest.
$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2043 #include <sys/types.h>
2044 #include <sys/param.h>
2047 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2052 if { (eval echo configure
:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2054 # It does; now see whether it defined to BIG_ENDIAN or not.
2055 cat > conftest.
$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 #include <sys/types.h>
2059 #include <sys/param.h>
2062 #if BYTE_ORDER != BIG_ENDIAN
2067 if { (eval echo configure
:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2069 ac_cv_c_bigendian
=yes
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2074 ac_cv_c_bigendian
=no
2078 echo "configure: failed program was:" >&5
2079 cat conftest.
$ac_ext >&5
2082 if test $ac_cv_c_bigendian = unknown
; then
2083 if test "$cross_compiling" = yes; then
2084 echo $ac_n "cross-compiling... " 2>&6
2086 cat > conftest.
$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2090 /* Are we little or big endian? From Harbison&Steele. */
2094 char c[sizeof (long)];
2097 exit (u.c[sizeof (long) - 1] == 1);
2100 if { (eval echo configure
:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2102 ac_cv_c_bigendian
=no
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 ac_cv_c_bigendian
=yes
2115 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2116 if test $ac_cv_c_bigendian = unknown
; then
2117 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
2118 echo "configure:2119: checking to probe for byte ordering" >&5
2120 cat >conftest.c
<<EOF
2121 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2122 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2123 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
2124 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2125 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2126 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
2127 int main() { _ascii (); _ebcdic (); return 0; }
2129 if test -f conftest.c
; then
2130 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
2131 if test `grep -l BIGenDianSyS conftest.o` ; then
2132 echo $ac_n ' big endian probe OK, ' 1>&6
2133 ac_cv_c_bigendian
=yes
2135 if test `grep -l LiTTleEnDian conftest.o` ; then
2136 echo $ac_n ' little endian probe OK, ' 1>&6
2137 if test $ac_cv_c_bigendian = yes ; then
2138 ac_cv_c_bigendian
=unknown
;
2140 ac_cv_c_bigendian
=no
2143 echo $ac_n 'guessing bigendian ... ' >&6
2146 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2148 if test $ac_cv_c_bigendian = yes; then
2149 cat >> confdefs.h
<<\EOF
2150 #define WORDS_BIGENDIAN 1
2153 cat >> confdefs.h
<<\EOF
2154 #define HOST_WORDS_BIG_ENDIAN 1
2161 cat >> confdefs.h
<<EOF
2162 #define BYTEORDER $BYTEORDER
2165 if test $ac_cv_c_bigendian = unknown
; then
2166 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
2170 # Check whether --with-system-zlib or --without-system-zlib was given.
2171 if test "${with_system_zlib+set}" = set; then
2172 withval
="$with_system_zlib"
2181 if test "$with_system_zlib" = yes; then
2182 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2183 echo "configure:2184: checking for deflate in -lz" >&5
2184 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 ac_save_LIBS
="$LIBS"
2190 cat > conftest.
$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 /* Override any gcc2 internal prototype to avoid an error. */
2194 /* We use char because int might match the return type of a gcc2
2195 builtin and then its argument prototype would still apply. */
2202 if { (eval echo configure
:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.
$ac_ext >&5
2209 eval "ac_cv_lib_$ac_lib_var=no"
2212 LIBS
="$ac_save_LIBS"
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2219 echo "$ac_t""no" 1>&6
2227 if test "$use_zlib" = no
; then
2228 # Brain dead way to find tree's zlib.
2229 ZDEPS
='$(top_builddir)/../zlib/libz.a'
2230 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
2231 ZINCS
='-I$(top_srcdir)/../zlib'
2237 # Get the version trigger filename from the toplevel
2238 if test "${with_gcc_version_trigger+set}" = set; then
2239 gcc_version_trigger
=$with_gcc_version_trigger
2241 gcc_version_trigger
=${srcdir}/version.c
2243 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
2244 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
2248 cat > confcache
<<\EOF
2249 # This file is a shell script that caches the results of configure
2250 # tests run on this system so they can be shared between configure
2251 # scripts and configure runs. It is not useful on other systems.
2252 # If it contains results you don't want to keep, you may remove or edit it.
2254 # By default, configure uses ./config.cache as the cache file,
2255 # creating it if it does not exist already. You can give configure
2256 # the --cache-file=FILE option to use a different cache file; that is
2257 # what configure does when it calls configure scripts in
2258 # subdirectories, so they share the cache.
2259 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2260 # config.status only pays attention to the cache file if you give it the
2261 # --recheck option to rerun configure.
2264 # The following way of writing the cache mishandles newlines in values,
2265 # but we know of no workaround that is simple, portable, and efficient.
2266 # So, don't put newlines in cache variables' values.
2267 # Ultrix sh set writes to stderr and can't be redirected directly,
2268 # and sets the high bit in the cache file unless we assign to the vars.
2270 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2272 # `set' does not quote correctly, so add quotes (double-quote substitution
2273 # turns \\\\ into \\, and sed turns \\ into \).
2275 -e "s/'/'\\\\''/g" \
2276 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2279 # `set' quotes correctly as required by POSIX, so do not add quotes.
2280 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2283 if cmp -s $cache_file confcache
; then
2286 if test -w $cache_file; then
2287 echo "updating cache $cache_file"
2288 cat confcache
> $cache_file
2290 echo "not updating unwritable cache $cache_file"
2295 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2297 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2298 # Let make expand exec_prefix.
2299 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2301 # Any assignment to VPATH causes Sun make to only execute
2302 # the first set of double-colon rules, so remove it if not needed.
2303 # If there is a colon in the path, we need to keep it.
2304 if test "x$srcdir" = x.
; then
2305 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2308 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2310 DEFS
=-DHAVE_CONFIG_H
2312 # Without the "./", some shells look in PATH for config.status.
2313 : ${CONFIG_STATUS=./config.status}
2315 echo creating
$CONFIG_STATUS
2316 rm -f $CONFIG_STATUS
2317 cat > $CONFIG_STATUS <<EOF
2319 # Generated automatically by configure.
2320 # Run this file to recreate the current configuration.
2321 # This directory was configured as follows,
2322 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2324 # $0 $ac_configure_args
2326 # Compiler output produced by configure, useful for debugging
2327 # configure, is in ./config.log if it exists.
2329 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2332 case "\$ac_option" in
2333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2334 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2335 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2336 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2337 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2339 -help | --help | --hel | --he | --h)
2340 echo "\$ac_cs_usage"; exit 0 ;;
2341 *) echo "\$ac_cs_usage"; exit 1 ;;
2345 ac_given_srcdir=$srcdir
2346 ac_given_INSTALL="$INSTALL"
2348 trap 'rm -fr `echo "Makefile install-defs.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2350 cat >> $CONFIG_STATUS <<EOF
2352 # Protect against being on the right side of a sed subst in config.status.
2353 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2354 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2358 s%@CFLAGS@%$CFLAGS%g
2359 s%@CPPFLAGS@%$CPPFLAGS%g
2360 s%@CXXFLAGS@%$CXXFLAGS%g
2361 s%@FFLAGS@%$FFLAGS%g
2363 s%@LDFLAGS@%$LDFLAGS%g
2365 s%@exec_prefix@%$exec_prefix%g
2366 s%@prefix@%$prefix%g
2367 s%@program_transform_name@%$program_transform_name%g
2368 s%@bindir@%$bindir%g
2369 s%@sbindir@%$sbindir%g
2370 s%@libexecdir@%$libexecdir%g
2371 s%@datadir@%$datadir%g
2372 s%@sysconfdir@%$sysconfdir%g
2373 s%@sharedstatedir@%$sharedstatedir%g
2374 s%@localstatedir@%$localstatedir%g
2375 s%@libdir@%$libdir%g
2376 s%@includedir@%$includedir%g
2377 s%@oldincludedir@%$oldincludedir%g
2378 s%@infodir@%$infodir%g
2379 s%@mandir@%$mandir%g
2380 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2381 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2382 s%@INSTALL_DATA@%$INSTALL_DATA%g
2383 s%@PACKAGE@%$PACKAGE%g
2384 s%@VERSION@%$VERSION%g
2385 s%@ACLOCAL@%$ACLOCAL%g
2386 s%@AUTOCONF@%$AUTOCONF%g
2387 s%@AUTOMAKE@%$AUTOMAKE%g
2388 s%@AUTOHEADER@%$AUTOHEADER%g
2389 s%@MAKEINFO@%$MAKEINFO%g
2390 s%@SET_MAKE@%$SET_MAKE%g
2396 s%@EXEEXT@%$EXEEXT%g
2397 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2398 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2400 s%@fastjar_warn_cflags@%$fastjar_warn_cflags%g
2405 s%@gcc_version@%$gcc_version%g
2410 cat >> $CONFIG_STATUS <<\EOF
2412 # Split the substitutions into bite-sized pieces for seds with
2413 # small command number limits, like on Digital OSF/1 and HP-UX.
2414 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2415 ac_file
=1 # Number of current file.
2416 ac_beg
=1 # First line for current file.
2417 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2420 while $ac_more_lines; do
2421 if test $ac_beg -gt 1; then
2422 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2424 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2426 if test ! -s conftest.s
$ac_file; then
2428 rm -f conftest.s
$ac_file
2430 if test -z "$ac_sed_cmds"; then
2431 ac_sed_cmds
="sed -f conftest.s$ac_file"
2433 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2435 ac_file
=`expr $ac_file + 1`
2437 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2440 if test -z "$ac_sed_cmds"; then
2445 cat >> $CONFIG_STATUS <<EOF
2447 CONFIG_FILES=\${CONFIG_FILES-"Makefile install-defs.sh"}
2449 cat >> $CONFIG_STATUS <<\EOF
2450 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2453 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2454 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2455 *) ac_file_in
="${ac_file}.in" ;;
2458 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2460 # Remove last slash and all that follows it. Not all systems have dirname.
2461 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2462 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2463 # The file is in a subdirectory.
2464 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2465 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2466 # A "../" for each directory in $ac_dir_suffix.
2467 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2469 ac_dir_suffix
= ac_dots
=
2472 case "$ac_given_srcdir" in
2474 if test -z "$ac_dots"; then top_srcdir
=.
2475 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2476 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2478 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2479 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2482 case "$ac_given_INSTALL" in
2483 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2484 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2487 echo creating
"$ac_file"
2489 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2491 *Makefile
*) ac_comsub
="1i\\
2492 # $configure_input" ;;
2496 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2498 s%@configure_input@%$configure_input%g
2499 s%@srcdir@%$srcdir%g
2500 s%@top_srcdir@%$top_srcdir%g
2501 s%@INSTALL@%$INSTALL%g
2502 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2506 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2507 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2509 # ac_d sets the value in "#define NAME VALUE" lines.
2510 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2511 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2514 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2515 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2516 ac_uB
='\([ ]\)%\1#\2define\3'
2519 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2520 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2521 ac_eB
='$%\1#\2define\3'
2525 if test "${CONFIG_HEADERS+set}" != set; then
2527 cat >> $CONFIG_STATUS <<EOF
2528 CONFIG_HEADERS="config.h"
2530 cat >> $CONFIG_STATUS <<\EOF
2532 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2533 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2535 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2536 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2537 *) ac_file_in
="${ac_file}.in" ;;
2540 echo creating
$ac_file
2542 rm -f conftest.frag conftest.
in conftest.out
2543 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2544 cat $ac_file_inputs > conftest.
in
2548 # Transform confdefs.h into a sed script conftest.vals that substitutes
2549 # the proper values into config.h.in to produce config.h. And first:
2550 # Protect against being on the right side of a sed subst in config.status.
2551 # Protect against being in an unquoted here document in config.status.
2553 cat > conftest.hdr
<<\EOF
2556 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2560 sed -n -f conftest.hdr confdefs.h > conftest.vals
2563 # This sed command replaces #undef with comments. This is necessary, for
2564 # example, in the case of _POSIX_SOURCE, which is predefined and required
2565 # on some systems where configure will not decide to define it.
2566 cat >> conftest.vals <<\EOF
2567 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2570 # Break up conftest.vals because some shells have a limit on
2571 # the size of here documents, and old seds have small limits too.
2576 ac_lines=`grep -c . conftest.vals
`
2577 # grep -c gives empty output for an empty file on some AIX systems.
2578 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2579 # Write a limited-size here document to conftest.frag.
2580 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2581 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2583 sed -f conftest.frag conftest.in > conftest.out
2585 mv conftest.out conftest.in
2587 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2589 mv conftest.tail conftest.vals
2593 cat >> $CONFIG_STATUS <<\EOF
2594 rm -f conftest.frag conftest.h
2595 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2596 cat conftest.in >> conftest.h
2598 if cmp -s $ac_file conftest.h 2>/dev/null; then
2599 echo "$ac_file is unchanged"
2602 # Remove last slash and all that follows it. Not all systems have dirname.
2603 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2604 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2605 # The file is in a subdirectory.
2606 test ! -d "$ac_dir" && mkdir "$ac_dir"
2609 mv conftest.h $ac_file
2614 cat >> $CONFIG_STATUS <<EOF
2618 cat >> $CONFIG_STATUS <<\EOF
2619 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2623 chmod +x $CONFIG_STATUS
2624 rm -fr confdefs* $ac_clean_files
2625 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1