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-tclconfig Path for tclConfig.sh"
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,
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
191 -host | --host | --hos | --ho)
193 -host=* | --host=* | --hos=* | --ho=*)
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
235 # Obsolete; use --without-fp.
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
314 -site=* | --site=* | --sit=*)
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
364 # Obsolete; use --with-x.
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=include/zebraver.h
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 if test ! -r $srcdir/$ac_unique_file; then
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
500 echo "creating cache $cache_file"
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='\c' ac_t=
530 # Extract the first word of "gcc", so it can be a program name with args.
531 set dummy gcc; ac_word=$2
532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
533 echo "configure:534: checking for $ac_word" >&5
534 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
535 echo $ac_n "(cached) $ac_c" 1>&6
537 if test -n "$CC"; then
538 ac_cv_prog_CC="$CC" # Let the user override the test.
540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
542 for ac_dir in $ac_dummy; do
543 test -z "$ac_dir" && ac_dir=.
544 if test -f $ac_dir/$ac_word; then
553 if test -n "$CC"; then
554 echo "$ac_t""$CC" 1>&6
556 echo "$ac_t""no" 1>&6
559 if test -z "$CC"; then
560 # Extract the first word of "cc", so it can be a program name with args.
561 set dummy cc; ac_word=$2
562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563 echo "configure:564: checking for $ac_word" >&5
564 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
567 if test -n "$CC"; then
568 ac_cv_prog_CC="$CC" # Let the user override the test.
570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
573 for ac_dir in $ac_dummy; do
574 test -z "$ac_dir" && ac_dir=.
575 if test -f $ac_dir/$ac_word; then
576 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
585 if test $ac_prog_rejected = yes; then
586 # We found a bogon in the path, so make sure we never use it.
587 set dummy $ac_cv_prog_CC
589 if test $# -gt 0; then
590 # We chose a different compiler from the bogus one.
591 # However, it has the same basename, so the bogon will be chosen
592 # first if we set CC to just the basename; use the full file name.
594 set dummy "$ac_dir/$ac_word" "$@"
602 if test -n "$CC"; then
603 echo "$ac_t""$CC" 1>&6
605 echo "$ac_t""no" 1>&6
608 if test -z "$CC"; then
611 # Extract the first word of "cl", so it can be a program name with args.
612 set dummy cl; ac_word=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC="$CC" # Let the user override the test.
621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
623 for ac_dir in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
642 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
645 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
646 echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
650 ac_cpp='$CPP $CPPFLAGS'
651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
653 cross_compiling=$ac_cv_prog_cc_cross
655 cat > conftest.$ac_ext << EOF
657 #line 658 "configure"
658 #include "confdefs.h"
662 if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
663 ac_cv_prog_cc_works=yes
664 # If we can't run a trivial program, we are probably using a cross compiler.
665 if (./conftest; exit) 2>/dev/null; then
666 ac_cv_prog_cc_cross=no
668 ac_cv_prog_cc_cross=yes
671 echo "configure: failed program was:" >&5
672 cat conftest.$ac_ext >&5
673 ac_cv_prog_cc_works=no
677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678 ac_cpp='$CPP $CPPFLAGS'
679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681 cross_compiling=$ac_cv_prog_cc_cross
683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
684 if test $ac_cv_prog_cc_works = no; then
685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
688 echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
690 cross_compiling=$ac_cv_prog_cc_cross
692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
693 echo "configure:694: checking whether we are using GNU C" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 cat > conftest.c <<EOF
702 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711 if test $ac_cv_prog_gcc = yes; then
717 ac_test_CFLAGS="${CFLAGS+set}"
718 ac_save_CFLAGS="$CFLAGS"
720 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
721 echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 echo 'void f(){}' > conftest.c
726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
735 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
736 if test "$ac_test_CFLAGS" = set; then
737 CFLAGS="$ac_save_CFLAGS"
738 elif test $ac_cv_prog_cc_g = yes; then
739 if test "$GCC" = yes; then
745 if test "$GCC" = yes; then
752 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
753 echo "configure:754: checking how to run the C preprocessor" >&5
754 # On Suns, sometimes $CPP names a directory.
755 if test -n "$CPP" && test -d "$CPP"; then
758 if test -z "$CPP"; then
759 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 # This must be in double quotes, not single quotes, because CPP may get
763 # substituted into the Makefile and "${CC-cc}" will confuse make.
765 # On the NeXT, cc -E runs the code through the compiler's parser,
766 # not just through cpp.
767 cat > conftest.$ac_ext <<EOF
768 #line 769 "configure"
769 #include "confdefs.h"
773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
774 { (eval echo configure:775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
776 if test -z "$ac_err"; then
780 echo "configure: failed program was:" >&5
781 cat conftest.$ac_ext >&5
783 CPP="${CC-cc} -E -traditional-cpp"
784 cat > conftest.$ac_ext <<EOF
785 #line 786 "configure"
786 #include "confdefs.h"
790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
791 { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
793 if test -z "$ac_err"; then
797 echo "configure: failed program was:" >&5
798 cat conftest.$ac_ext >&5
800 CPP="${CC-cc} -nologo -E"
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
808 { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
810 if test -z "$ac_err"; then
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
824 ac_cv_prog_CPP="$CPP"
826 CPP="$ac_cv_prog_CPP"
828 ac_cv_prog_CPP="$CPP"
830 echo "$ac_t""$CPP" 1>&6
833 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
834 if test -f $ac_dir/install-sh; then
836 ac_install_sh="$ac_aux_dir/install-sh -c"
838 elif test -f $ac_dir/install.sh; then
840 ac_install_sh="$ac_aux_dir/install.sh -c"
844 if test -z "$ac_aux_dir"; then
845 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
847 ac_config_guess=$ac_aux_dir/config.guess
848 ac_config_sub=$ac_aux_dir/config.sub
849 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
851 # Find a good install program. We prefer a C program (faster),
852 # so one script is as good as another. But avoid the broken or
853 # incompatible versions:
854 # SysV /etc/install, /usr/sbin/install
855 # SunOS /usr/etc/install
858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
861 # ./install, which can be erroneously created by make from ./install.sh.
862 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
863 echo "configure:864: checking for a BSD compatible install" >&5
864 if test -z "$INSTALL"; then
865 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
869 for ac_dir in $PATH; do
870 # Account for people who put trailing slashes in PATH elements.
872 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
874 # OSF1 and SCO ODT 3.0 have their own names for install.
875 # Don't use installbsd from OSF since it installs stuff as root
877 for ac_prog in ginstall scoinst install; do
878 if test -f $ac_dir/$ac_prog; then
879 if test $ac_prog = install &&
880 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
881 # AIX install. It has an incompatible calling convention.
884 ac_cv_path_install="$ac_dir/$ac_prog -c"
895 if test "${ac_cv_path_install+set}" = set; then
896 INSTALL="$ac_cv_path_install"
898 # As a last resort, use the slow shell script. We don't cache a
899 # path for INSTALL within a source directory, because that will
900 # break other packages using the cache if that directory is
901 # removed, or if the path is relative.
902 INSTALL="$ac_install_sh"
905 echo "$ac_t""$INSTALL" 1>&6
907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
908 # It thinks the first close brace ends the variable substitution.
909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
915 # Extract the first word of "ranlib", so it can be a program name with args.
916 set dummy ranlib; ac_word=$2
917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918 echo "configure:919: checking for $ac_word" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 if test -n "$RANLIB"; then
923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
927 for ac_dir in $ac_dummy; do
928 test -z "$ac_dir" && ac_dir=.
929 if test -f $ac_dir/$ac_word; then
930 ac_cv_prog_RANLIB="ranlib"
935 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
938 RANLIB="$ac_cv_prog_RANLIB"
939 if test -n "$RANLIB"; then
940 echo "$ac_t""$RANLIB" 1>&6
942 echo "$ac_t""no" 1>&6
948 # Check whether --with-tclconfig or --without-tclconfig was given.
949 if test "${with_tclconfig+set}" = set; then
950 withval="$with_tclconfig"
954 if test "x$tclconfig" = xNONE; then
956 if test "x$prefix" = xNONE; then
957 echo $ac_n "checking for prefix by $ac_c" 1>&6
958 # Extract the first word of "tclsh", so it can be a program name with args.
959 set dummy tclsh; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
967 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
970 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
975 for ac_dir in $ac_dummy; do
976 test -z "$ac_dir" && ac_dir=.
977 if test -f $ac_dir/$ac_word; then
978 ac_cv_path_TCLSH="$ac_dir/$ac_word"
986 TCLSH="$ac_cv_path_TCLSH"
987 if test -n "$TCLSH"; then
988 echo "$ac_t""$TCLSH" 1>&6
990 echo "$ac_t""no" 1>&6
993 if test -n "$ac_cv_path_TCLSH"; then
994 prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
998 tclconfig=${prefix}/lib
1001 if test -r ${tclconfig}/tclConfig.sh; then
1002 echo $ac_n "checking for Tcl""... $ac_c" 1>&6
1003 echo "configure:1004: checking for Tcl" >&5
1004 . ${tclconfig}/tclConfig.sh
1005 if test -r ${tclconfig}/../generic/tcl.h; then
1006 TCL_INCLUDE=-I${tclconfig}/../generic
1007 TCL_LIB="$TCL_BUILD_LIB_SPEC $TCL_LIBS"
1009 TCL_INCLUDE=-I${TCL_PREFIX}/include
1010 TCL_LIB="$TCL_LIB_SPEC $TCL_LIBS"
1012 SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1013 SHLIB_LD=$TCL_SHLIB_LD
1014 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1015 SHLIB_VERSION=$TCL_SHLIB_VERSION
1016 echo "$ac_t""$TCL_VERSION" 1>&6
1017 ODEFS="-DHAVE_TCL_H=1"
1019 ODEFS="-DHAVE_TCL_H=0"
1022 echo $ac_n "checking for connect""... $ac_c" 1>&6
1023 echo "configure:1024: checking for connect" >&5
1024 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 /* System header to define __stub macros and hopefully few prototypes,
1031 which can conflict with char connect(); below. */
1033 /* Override any gcc2 internal prototype to avoid an error. */
1034 /* We use char because int might match the return type of a gcc2
1035 builtin and then its argument prototype would still apply. */
1040 /* The GNU C library defines this for functions which it implements
1041 to always fail with ENOSYS. Some functions are actually named
1042 something starting with __ and the normal name is an alias. */
1043 #if defined (__stub_connect) || defined (__stub___connect)
1051 if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1053 eval "ac_cv_func_connect=yes"
1055 echo "configure: failed program was:" >&5
1056 cat conftest.$ac_ext >&5
1058 eval "ac_cv_func_connect=no"
1063 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1064 echo "$ac_t""yes" 1>&6
1067 echo "$ac_t""no" 1>&6
1070 if test "$ac_cv_func_connect" = "no"; then
1071 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1072 echo "configure:1073: checking for main in -lsocket" >&5
1073 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 ac_save_LIBS="$LIBS"
1078 LIBS="-lsocket $LIBS"
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1087 if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1089 eval "ac_cv_lib_$ac_lib_var=yes"
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1094 eval "ac_cv_lib_$ac_lib_var=no"
1097 LIBS="$ac_save_LIBS"
1100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1101 echo "$ac_t""yes" 1>&6
1102 LIBS="$LIBS -lsocket"
1104 echo "$ac_t""no" 1>&6
1109 if test "$checkBoth" = "1"; then
1111 LIBS="$LIBS -lsocket -lnsl"
1112 echo $ac_n "checking for accept""... $ac_c" 1>&6
1113 echo "configure:1114: checking for accept" >&5
1114 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 /* System header to define __stub macros and hopefully few prototypes,
1121 which can conflict with char accept(); below. */
1123 /* Override any gcc2 internal prototype to avoid an error. */
1124 /* We use char because int might match the return type of a gcc2
1125 builtin and then its argument prototype would still apply. */
1130 /* The GNU C library defines this for functions which it implements
1131 to always fail with ENOSYS. Some functions are actually named
1132 something starting with __ and the normal name is an alias. */
1133 #if defined (__stub_accept) || defined (__stub___accept)
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1143 eval "ac_cv_func_accept=yes"
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1148 eval "ac_cv_func_accept=no"
1153 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1154 echo "$ac_t""yes" 1>&6
1157 echo "$ac_t""no" 1>&6
1162 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1163 echo "configure:1164: checking for gethostbyname" >&5
1164 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 /* System header to define __stub macros and hopefully few prototypes,
1171 which can conflict with char gethostbyname(); below. */
1173 /* Override any gcc2 internal prototype to avoid an error. */
1174 /* We use char because int might match the return type of a gcc2
1175 builtin and then its argument prototype would still apply. */
1176 char gethostbyname();
1180 /* The GNU C library defines this for functions which it implements
1181 to always fail with ENOSYS. Some functions are actually named
1182 something starting with __ and the normal name is an alias. */
1183 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1191 if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193 eval "ac_cv_func_gethostbyname=yes"
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1198 eval "ac_cv_func_gethostbyname=no"
1203 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1207 echo "$ac_t""no" 1>&6
1208 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1209 echo "configure:1210: checking for main in -lnsl" >&5
1210 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 ac_save_LIBS="$LIBS"
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1226 eval "ac_cv_lib_$ac_lib_var=yes"
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1231 eval "ac_cv_lib_$ac_lib_var=no"
1234 LIBS="$ac_save_LIBS"
1237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1238 echo "$ac_t""yes" 1>&6
1241 echo "$ac_t""no" 1>&6
1246 for ac_hdr in sys/times.h
1248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_hdr" >&5
1251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1260 { (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1262 if test -z "$ac_err"; then
1264 eval "ac_cv_header_$ac_safe=yes"
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1270 eval "ac_cv_header_$ac_safe=no"
1274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1275 echo "$ac_t""yes" 1>&6
1276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1277 cat >> confdefs.h <<EOF
1278 #define $ac_tr_hdr 1
1282 echo "$ac_t""no" 1>&6
1286 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
1287 echo "configure:1288: checking for main in -lwrap" >&5
1288 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
1289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 ac_save_LIBS="$LIBS"
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1302 if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1304 eval "ac_cv_lib_$ac_lib_var=yes"
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1309 eval "ac_cv_lib_$ac_lib_var=no"
1312 LIBS="$ac_save_LIBS"
1315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1316 echo "$ac_t""yes" 1>&6
1319 echo "$ac_t""no" 1>&6
1322 echo $ac_n "checking for bzCompressInit in -lbz2""... $ac_c" 1>&6
1323 echo "configure:1324: checking for bzCompressInit in -lbz2" >&5
1324 ac_lib_var=`echo bz2'_'bzCompressInit | sed 'y%./+-%__p_%'`
1325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 ac_save_LIBS="$LIBS"
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1333 /* Override any gcc2 internal prototype to avoid an error. */
1334 /* We use char because int might match the return type of a gcc2
1335 builtin and then its argument prototype would still apply. */
1336 char bzCompressInit();
1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1344 eval "ac_cv_lib_$ac_lib_var=yes"
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1349 eval "ac_cv_lib_$ac_lib_var=no"
1352 LIBS="$ac_save_LIBS"
1355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 ac_tr_lib=HAVE_LIB`echo bz2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1359 cat >> confdefs.h <<EOF
1360 #define $ac_tr_lib 1
1366 echo "$ac_t""no" 1>&6
1369 if test "$ac_cv_lib_bz2_bzCompressInit" = "yes"; then
1370 for ac_hdr in bzlib.h
1372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_hdr" >&5
1375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1384 { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1386 if test -z "$ac_err"; then
1388 eval "ac_cv_header_$ac_safe=yes"
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1394 eval "ac_cv_header_$ac_safe=no"
1398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1399 echo "$ac_t""yes" 1>&6
1400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1401 cat >> confdefs.h <<EOF
1402 #define $ac_tr_hdr 1
1406 echo "$ac_t""no" 1>&6
1411 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1412 echo "configure:1413: checking for ANSI C header files" >&5
1413 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1425 { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1427 if test -z "$ac_err"; then
1429 ac_cv_header_stdc=yes
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1435 ac_cv_header_stdc=no
1439 if test $ac_cv_header_stdc = yes; then
1440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1447 egrep "memchr" >/dev/null 2>&1; then
1451 ac_cv_header_stdc=no
1457 if test $ac_cv_header_stdc = yes; then
1458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1465 egrep "free" >/dev/null 2>&1; then
1469 ac_cv_header_stdc=no
1475 if test $ac_cv_header_stdc = yes; then
1476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1477 if test "$cross_compiling" = yes; then
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1484 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1485 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1487 int main () { int i; for (i = 0; i < 256; i++)
1488 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1496 echo "configure: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1499 ac_cv_header_stdc=no
1507 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1508 if test $ac_cv_header_stdc = yes; then
1509 cat >> confdefs.h <<\EOF
1510 #define STDC_HEADERS 1
1515 if test "$ac_cv_header_stdc" = "no"; then
1516 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1519 cat > confcache <<\EOF
1520 # This file is a shell script that caches the results of configure
1521 # tests run on this system so they can be shared between configure
1522 # scripts and configure runs. It is not useful on other systems.
1523 # If it contains results you don't want to keep, you may remove or edit it.
1525 # By default, configure uses ./config.cache as the cache file,
1526 # creating it if it does not exist already. You can give configure
1527 # the --cache-file=FILE option to use a different cache file; that is
1528 # what configure does when it calls configure scripts in
1529 # subdirectories, so they share the cache.
1530 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1531 # config.status only pays attention to the cache file if you give it the
1532 # --recheck option to rerun configure.
1535 # The following way of writing the cache mishandles newlines in values,
1536 # but we know of no workaround that is simple, portable, and efficient.
1537 # So, don't put newlines in cache variables' values.
1538 # Ultrix sh set writes to stderr and can't be redirected directly,
1539 # and sets the high bit in the cache file unless we assign to the vars.
1541 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1543 # `set' does not quote correctly, so add quotes (double-quote substitution
1544 # turns \\\\ into \\, and sed turns \\ into \).
1546 -e "s/'/'\\\\''/g" \
1547 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1550 # `set' quotes correctly as required by POSIX, so do not add quotes.
1551 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1554 if cmp -s $cache_file confcache; then
1557 if test -w $cache_file; then
1558 echo "updating cache $cache_file"
1559 cat confcache > $cache_file
1561 echo "not updating unwritable cache $cache_file"
1566 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1569 # Let make expand exec_prefix.
1570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1572 # Any assignment to VPATH causes Sun make to only execute
1573 # the first set of double-colon rules, so remove it if not needed.
1574 # If there is a colon in the path, we need to keep it.
1575 if test "x$srcdir" = x.; then
1576 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1579 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1581 # Transform confdefs.h into DEFS.
1582 # Protect against shell expansion while executing Makefile rules.
1583 # Protect against Makefile macro expansion.
1584 cat > conftest.defs <<\EOF
1585 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1586 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1591 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1595 # Without the "./", some shells look in PATH for config.status.
1596 : ${CONFIG_STATUS=./config.status}
1598 echo creating $CONFIG_STATUS
1599 rm -f $CONFIG_STATUS
1600 cat > $CONFIG_STATUS <<EOF
1602 # Generated automatically by configure.
1603 # Run this file to recreate the current configuration.
1604 # This directory was configured as follows,
1605 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1607 # $0 $ac_configure_args
1609 # Compiler output produced by configure, useful for debugging
1610 # configure, is in ./config.log if it exists.
1612 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1615 case "\$ac_option" in
1616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1617 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1618 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1619 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1620 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1622 -help | --help | --hel | --he | --h)
1623 echo "\$ac_cs_usage"; exit 0 ;;
1624 *) echo "\$ac_cs_usage"; exit 1 ;;
1628 ac_given_srcdir=$srcdir
1629 ac_given_INSTALL="$INSTALL"
1631 trap 'rm -fr `echo "Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1633 cat >> $CONFIG_STATUS <<EOF
1635 # Protect against being on the right side of a sed subst in config.status.
1636 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1637 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1641 s%@CFLAGS@%$CFLAGS%g
1642 s%@CPPFLAGS@%$CPPFLAGS%g
1643 s%@CXXFLAGS@%$CXXFLAGS%g
1644 s%@FFLAGS@%$FFLAGS%g
1646 s%@LDFLAGS@%$LDFLAGS%g
1648 s%@exec_prefix@%$exec_prefix%g
1649 s%@prefix@%$prefix%g
1650 s%@program_transform_name@%$program_transform_name%g
1651 s%@bindir@%$bindir%g
1652 s%@sbindir@%$sbindir%g
1653 s%@libexecdir@%$libexecdir%g
1654 s%@datadir@%$datadir%g
1655 s%@sysconfdir@%$sysconfdir%g
1656 s%@sharedstatedir@%$sharedstatedir%g
1657 s%@localstatedir@%$localstatedir%g
1658 s%@libdir@%$libdir%g
1659 s%@includedir@%$includedir%g
1660 s%@oldincludedir@%$oldincludedir%g
1661 s%@infodir@%$infodir%g
1662 s%@mandir@%$mandir%g
1664 s%@TCL_INCLUDE@%$TCL_INCLUDE%g
1665 s%@TCL_LIB@%$TCL_LIB%g
1668 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1669 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1670 s%@INSTALL_DATA@%$INSTALL_DATA%g
1671 s%@RANLIB@%$RANLIB%g
1677 cat >> $CONFIG_STATUS <<\EOF
1679 # Split the substitutions into bite-sized pieces for seds with
1680 # small command number limits, like on Digital OSF/1 and HP-UX.
1681 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1682 ac_file=1 # Number of current file.
1683 ac_beg=1 # First line for current file.
1684 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1687 while $ac_more_lines; do
1688 if test $ac_beg -gt 1; then
1689 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1691 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1693 if test ! -s conftest.s$ac_file; then
1695 rm -f conftest.s$ac_file
1697 if test -z "$ac_sed_cmds"; then
1698 ac_sed_cmds="sed -f conftest.s$ac_file"
1700 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1702 ac_file=`expr $ac_file + 1`
1704 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1707 if test -z "$ac_sed_cmds"; then
1712 cat >> $CONFIG_STATUS <<EOF
1714 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile"}
1716 cat >> $CONFIG_STATUS <<\EOF
1717 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1720 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1721 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1722 *) ac_file_in="${ac_file}.in" ;;
1725 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1727 # Remove last slash and all that follows it. Not all systems have dirname.
1728 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1729 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1730 # The file is in a subdirectory.
1731 test ! -d "$ac_dir" && mkdir "$ac_dir"
1732 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1733 # A "../" for each directory in $ac_dir_suffix.
1734 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1736 ac_dir_suffix= ac_dots=
1739 case "$ac_given_srcdir" in
1741 if test -z "$ac_dots"; then top_srcdir=.
1742 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1743 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1745 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1746 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1749 case "$ac_given_INSTALL" in
1750 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1751 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1754 echo creating "$ac_file"
1756 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1758 *Makefile*) ac_comsub="1i\\
1759 # $configure_input" ;;
1763 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1765 s%@configure_input@%$configure_input%g
1766 s%@srcdir@%$srcdir%g
1767 s%@top_srcdir@%$top_srcdir%g
1768 s%@INSTALL@%$INSTALL%g
1769 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1774 cat >> $CONFIG_STATUS <<EOF
1777 cat >> $CONFIG_STATUS <<\EOF
1781 chmod +x $CONFIG_STATUS
1782 rm -fr confdefs* $ac_clean_files
1783 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1