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 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
1247 echo "configure:1248: checking for main in -lwrap" >&5
1248 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
1249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 ac_save_LIBS="$LIBS"
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1262 if { (eval echo configure:1263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1264 eval "ac_cv_lib_$ac_lib_var=yes"
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1269 eval "ac_cv_lib_$ac_lib_var=no"
1272 LIBS="$ac_save_LIBS"
1275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1276 echo "$ac_t""yes" 1>&6
1279 echo "$ac_t""no" 1>&6
1282 echo $ac_n "checking for bzCompressInit in -lbz2""... $ac_c" 1>&6
1283 echo "configure:1284: checking for bzCompressInit in -lbz2" >&5
1284 ac_lib_var=`echo bz2'_'bzCompressInit | sed 'y%./+-%__p_%'`
1285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 ac_save_LIBS="$LIBS"
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* Override any gcc2 internal prototype to avoid an error. */
1294 /* We use char because int might match the return type of a gcc2
1295 builtin and then its argument prototype would still apply. */
1296 char bzCompressInit();
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
1317 ac_tr_lib=HAVE_LIB`echo bz2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1319 cat >> confdefs.h <<EOF
1320 #define $ac_tr_lib 1
1326 echo "$ac_t""no" 1>&6
1329 if test "$ac_cv_lib_bz2_bzCompressInit" = "yes"; then
1330 for ac_hdr in bzlib.h
1332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1334 echo "configure:1335: checking for $ac_hdr" >&5
1335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1344 { (eval echo configure:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1346 if test -z "$ac_err"; then
1348 eval "ac_cv_header_$ac_safe=yes"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1354 eval "ac_cv_header_$ac_safe=no"
1358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1359 echo "$ac_t""yes" 1>&6
1360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1361 cat >> confdefs.h <<EOF
1362 #define $ac_tr_hdr 1
1366 echo "$ac_t""no" 1>&6
1371 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1372 echo "configure:1373: checking for ANSI C header files" >&5
1373 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1385 { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1387 if test -z "$ac_err"; then
1389 ac_cv_header_stdc=yes
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1395 ac_cv_header_stdc=no
1399 if test $ac_cv_header_stdc = yes; then
1400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1407 egrep "memchr" >/dev/null 2>&1; then
1411 ac_cv_header_stdc=no
1417 if test $ac_cv_header_stdc = yes; then
1418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1425 egrep "free" >/dev/null 2>&1; then
1429 ac_cv_header_stdc=no
1435 if test $ac_cv_header_stdc = yes; then
1436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1437 if test "$cross_compiling" = yes; then
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1444 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1445 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1447 int main () { int i; for (i = 0; i < 256; i++)
1448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1459 ac_cv_header_stdc=no
1467 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1468 if test $ac_cv_header_stdc = yes; then
1469 cat >> confdefs.h <<\EOF
1470 #define STDC_HEADERS 1
1475 if test "$ac_cv_header_stdc" = "no"; then
1476 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1479 cat > confcache <<\EOF
1480 # This file is a shell script that caches the results of configure
1481 # tests run on this system so they can be shared between configure
1482 # scripts and configure runs. It is not useful on other systems.
1483 # If it contains results you don't want to keep, you may remove or edit it.
1485 # By default, configure uses ./config.cache as the cache file,
1486 # creating it if it does not exist already. You can give configure
1487 # the --cache-file=FILE option to use a different cache file; that is
1488 # what configure does when it calls configure scripts in
1489 # subdirectories, so they share the cache.
1490 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1491 # config.status only pays attention to the cache file if you give it the
1492 # --recheck option to rerun configure.
1495 # The following way of writing the cache mishandles newlines in values,
1496 # but we know of no workaround that is simple, portable, and efficient.
1497 # So, don't put newlines in cache variables' values.
1498 # Ultrix sh set writes to stderr and can't be redirected directly,
1499 # and sets the high bit in the cache file unless we assign to the vars.
1501 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1503 # `set' does not quote correctly, so add quotes (double-quote substitution
1504 # turns \\\\ into \\, and sed turns \\ into \).
1506 -e "s/'/'\\\\''/g" \
1507 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1510 # `set' quotes correctly as required by POSIX, so do not add quotes.
1511 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1514 if cmp -s $cache_file confcache; then
1517 if test -w $cache_file; then
1518 echo "updating cache $cache_file"
1519 cat confcache > $cache_file
1521 echo "not updating unwritable cache $cache_file"
1526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1529 # Let make expand exec_prefix.
1530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1532 # Any assignment to VPATH causes Sun make to only execute
1533 # the first set of double-colon rules, so remove it if not needed.
1534 # If there is a colon in the path, we need to keep it.
1535 if test "x$srcdir" = x.; then
1536 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1539 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1541 # Transform confdefs.h into DEFS.
1542 # Protect against shell expansion while executing Makefile rules.
1543 # Protect against Makefile macro expansion.
1544 cat > conftest.defs <<\EOF
1545 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1546 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1551 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1555 # Without the "./", some shells look in PATH for config.status.
1556 : ${CONFIG_STATUS=./config.status}
1558 echo creating $CONFIG_STATUS
1559 rm -f $CONFIG_STATUS
1560 cat > $CONFIG_STATUS <<EOF
1562 # Generated automatically by configure.
1563 # Run this file to recreate the current configuration.
1564 # This directory was configured as follows,
1565 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1567 # $0 $ac_configure_args
1569 # Compiler output produced by configure, useful for debugging
1570 # configure, is in ./config.log if it exists.
1572 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1575 case "\$ac_option" in
1576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1577 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1578 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1579 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1580 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1582 -help | --help | --hel | --he | --h)
1583 echo "\$ac_cs_usage"; exit 0 ;;
1584 *) echo "\$ac_cs_usage"; exit 1 ;;
1588 ac_given_srcdir=$srcdir
1589 ac_given_INSTALL="$INSTALL"
1591 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
1593 cat >> $CONFIG_STATUS <<EOF
1595 # Protect against being on the right side of a sed subst in config.status.
1596 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1597 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1601 s%@CFLAGS@%$CFLAGS%g
1602 s%@CPPFLAGS@%$CPPFLAGS%g
1603 s%@CXXFLAGS@%$CXXFLAGS%g
1604 s%@FFLAGS@%$FFLAGS%g
1606 s%@LDFLAGS@%$LDFLAGS%g
1608 s%@exec_prefix@%$exec_prefix%g
1609 s%@prefix@%$prefix%g
1610 s%@program_transform_name@%$program_transform_name%g
1611 s%@bindir@%$bindir%g
1612 s%@sbindir@%$sbindir%g
1613 s%@libexecdir@%$libexecdir%g
1614 s%@datadir@%$datadir%g
1615 s%@sysconfdir@%$sysconfdir%g
1616 s%@sharedstatedir@%$sharedstatedir%g
1617 s%@localstatedir@%$localstatedir%g
1618 s%@libdir@%$libdir%g
1619 s%@includedir@%$includedir%g
1620 s%@oldincludedir@%$oldincludedir%g
1621 s%@infodir@%$infodir%g
1622 s%@mandir@%$mandir%g
1624 s%@TCL_INCLUDE@%$TCL_INCLUDE%g
1625 s%@TCL_LIB@%$TCL_LIB%g
1628 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1629 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1630 s%@INSTALL_DATA@%$INSTALL_DATA%g
1631 s%@RANLIB@%$RANLIB%g
1637 cat >> $CONFIG_STATUS <<\EOF
1639 # Split the substitutions into bite-sized pieces for seds with
1640 # small command number limits, like on Digital OSF/1 and HP-UX.
1641 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1642 ac_file=1 # Number of current file.
1643 ac_beg=1 # First line for current file.
1644 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1647 while $ac_more_lines; do
1648 if test $ac_beg -gt 1; then
1649 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1651 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1653 if test ! -s conftest.s$ac_file; then
1655 rm -f conftest.s$ac_file
1657 if test -z "$ac_sed_cmds"; then
1658 ac_sed_cmds="sed -f conftest.s$ac_file"
1660 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1662 ac_file=`expr $ac_file + 1`
1664 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1667 if test -z "$ac_sed_cmds"; then
1672 cat >> $CONFIG_STATUS <<EOF
1674 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile"}
1676 cat >> $CONFIG_STATUS <<\EOF
1677 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1680 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1681 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1682 *) ac_file_in="${ac_file}.in" ;;
1685 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1687 # Remove last slash and all that follows it. Not all systems have dirname.
1688 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1689 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1690 # The file is in a subdirectory.
1691 test ! -d "$ac_dir" && mkdir "$ac_dir"
1692 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1693 # A "../" for each directory in $ac_dir_suffix.
1694 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1696 ac_dir_suffix= ac_dots=
1699 case "$ac_given_srcdir" in
1701 if test -z "$ac_dots"; then top_srcdir=.
1702 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1703 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1705 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1706 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1709 case "$ac_given_INSTALL" in
1710 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1711 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1714 echo creating "$ac_file"
1716 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1718 *Makefile*) ac_comsub="1i\\
1719 # $configure_input" ;;
1723 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1725 s%@configure_input@%$configure_input%g
1726 s%@srcdir@%$srcdir%g
1727 s%@top_srcdir@%$top_srcdir%g
1728 s%@INSTALL@%$INSTALL%g
1729 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1734 cat >> $CONFIG_STATUS <<EOF
1737 cat >> $CONFIG_STATUS <<\EOF
1741 chmod +x $CONFIG_STATUS
1742 rm -fr confdefs* $ac_clean_files
1743 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1