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=
526 # ------ Substitutions
532 # ------ Checking programs
533 # Extract the first word of "gcc", so it can be a program name with args.
534 set dummy gcc; ac_word=$2
535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
536 echo "configure:537: checking for $ac_word" >&5
537 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
538 echo $ac_n "(cached) $ac_c" 1>&6
540 if test -n "$CC"; then
541 ac_cv_prog_CC="$CC" # Let the user override the test.
543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
545 for ac_dir in $ac_dummy; do
546 test -z "$ac_dir" && ac_dir=.
547 if test -f $ac_dir/$ac_word; then
556 if test -n "$CC"; then
557 echo "$ac_t""$CC" 1>&6
559 echo "$ac_t""no" 1>&6
562 if test -z "$CC"; then
563 # Extract the first word of "cc", so it can be a program name with args.
564 set dummy cc; ac_word=$2
565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566 echo "configure:567: checking for $ac_word" >&5
567 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
570 if test -n "$CC"; then
571 ac_cv_prog_CC="$CC" # Let the user override the test.
573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
576 for ac_dir in $ac_dummy; do
577 test -z "$ac_dir" && ac_dir=.
578 if test -f $ac_dir/$ac_word; then
579 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
588 if test $ac_prog_rejected = yes; then
589 # We found a bogon in the path, so make sure we never use it.
590 set dummy $ac_cv_prog_CC
592 if test $# -gt 0; then
593 # We chose a different compiler from the bogus one.
594 # However, it has the same basename, so the bogon will be chosen
595 # first if we set CC to just the basename; use the full file name.
597 set dummy "$ac_dir/$ac_word" "$@"
605 if test -n "$CC"; then
606 echo "$ac_t""$CC" 1>&6
608 echo "$ac_t""no" 1>&6
611 if test -z "$CC"; then
614 # Extract the first word of "cl", so it can be a program name with args.
615 set dummy cl; ac_word=$2
616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617 echo "configure:618: checking for $ac_word" >&5
618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
621 if test -n "$CC"; then
622 ac_cv_prog_CC="$CC" # Let the user override the test.
624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
626 for ac_dir in $ac_dummy; do
627 test -z "$ac_dir" && ac_dir=.
628 if test -f $ac_dir/$ac_word; then
637 if test -n "$CC"; then
638 echo "$ac_t""$CC" 1>&6
640 echo "$ac_t""no" 1>&6
645 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
648 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
649 echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
653 ac_cpp='$CPP $CPPFLAGS'
654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
656 cross_compiling=$ac_cv_prog_cc_cross
658 cat > conftest.$ac_ext << EOF
660 #line 661 "configure"
661 #include "confdefs.h"
665 if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
666 ac_cv_prog_cc_works=yes
667 # If we can't run a trivial program, we are probably using a cross compiler.
668 if (./conftest; exit) 2>/dev/null; then
669 ac_cv_prog_cc_cross=no
671 ac_cv_prog_cc_cross=yes
674 echo "configure: failed program was:" >&5
675 cat conftest.$ac_ext >&5
676 ac_cv_prog_cc_works=no
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp='$CPP $CPPFLAGS'
682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling=$ac_cv_prog_cc_cross
686 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
687 if test $ac_cv_prog_cc_works = no; then
688 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
690 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
691 echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
692 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
693 cross_compiling=$ac_cv_prog_cc_cross
695 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
696 echo "configure:697: checking whether we are using GNU C" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 cat > conftest.c <<EOF
705 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
712 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
714 if test $ac_cv_prog_gcc = yes; then
720 ac_test_CFLAGS="${CFLAGS+set}"
721 ac_save_CFLAGS="$CFLAGS"
723 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724 echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 echo 'void f(){}' > conftest.c
729 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
738 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739 if test "$ac_test_CFLAGS" = set; then
740 CFLAGS="$ac_save_CFLAGS"
741 elif test $ac_cv_prog_cc_g = yes; then
742 if test "$GCC" = yes; then
748 if test "$GCC" = yes; then
755 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
756 echo "configure:757: checking how to run the C preprocessor" >&5
757 # On Suns, sometimes $CPP names a directory.
758 if test -n "$CPP" && test -d "$CPP"; then
761 if test -z "$CPP"; then
762 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
765 # This must be in double quotes, not single quotes, because CPP may get
766 # substituted into the Makefile and "${CC-cc}" will confuse make.
768 # On the NeXT, cc -E runs the code through the compiler's parser,
769 # not just through cpp.
770 cat > conftest.$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
777 { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
779 if test -z "$ac_err"; then
783 echo "configure: failed program was:" >&5
784 cat conftest.$ac_ext >&5
786 CPP="${CC-cc} -E -traditional-cpp"
787 cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
794 { (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
796 if test -z "$ac_err"; then
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
803 CPP="${CC-cc} -nologo -E"
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
811 { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
813 if test -z "$ac_err"; then
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
827 ac_cv_prog_CPP="$CPP"
829 CPP="$ac_cv_prog_CPP"
831 ac_cv_prog_CPP="$CPP"
833 echo "$ac_t""$CPP" 1>&6
836 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
837 if test -f $ac_dir/install-sh; then
839 ac_install_sh="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh; then
843 ac_install_sh="$ac_aux_dir/install.sh -c"
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
850 ac_config_guess=$ac_aux_dir/config.guess
851 ac_config_sub=$ac_aux_dir/config.sub
852 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
854 # Find a good install program. We prefer a C program (faster),
855 # so one script is as good as another. But avoid the broken or
856 # incompatible versions:
857 # SysV /etc/install, /usr/sbin/install
858 # SunOS /usr/etc/install
861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
864 # ./install, which can be erroneously created by make from ./install.sh.
865 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
866 echo "configure:867: checking for a BSD compatible install" >&5
867 if test -z "$INSTALL"; then
868 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
872 for ac_dir in $PATH; do
873 # Account for people who put trailing slashes in PATH elements.
875 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
877 # OSF1 and SCO ODT 3.0 have their own names for install.
878 # Don't use installbsd from OSF since it installs stuff as root
880 for ac_prog in ginstall scoinst install; do
881 if test -f $ac_dir/$ac_prog; then
882 if test $ac_prog = install &&
883 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
884 # AIX install. It has an incompatible calling convention.
887 ac_cv_path_install="$ac_dir/$ac_prog -c"
898 if test "${ac_cv_path_install+set}" = set; then
899 INSTALL="$ac_cv_path_install"
901 # As a last resort, use the slow shell script. We don't cache a
902 # path for INSTALL within a source directory, because that will
903 # break other packages using the cache if that directory is
904 # removed, or if the path is relative.
905 INSTALL="$ac_install_sh"
908 echo "$ac_t""$INSTALL" 1>&6
910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
911 # It thinks the first close brace ends the variable substitution.
912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
918 # Extract the first word of "ranlib", so it can be a program name with args.
919 set dummy ranlib; ac_word=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 if test -n "$RANLIB"; then
926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
930 for ac_dir in $ac_dummy; do
931 test -z "$ac_dir" && ac_dir=.
932 if test -f $ac_dir/$ac_word; then
933 ac_cv_prog_RANLIB="ranlib"
938 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
941 RANLIB="$ac_cv_prog_RANLIB"
942 if test -n "$RANLIB"; then
943 echo "$ac_t""$RANLIB" 1>&6
945 echo "$ac_t""no" 1>&6
953 # Check whether --with-tclconfig or --without-tclconfig was given.
954 if test "${with_tclconfig+set}" = set; then
955 withval="$with_tclconfig"
959 if test "x$tclconfig" = xNONE; then
961 if test "x$prefix" = xNONE; then
962 echo $ac_n "checking for prefix by $ac_c" 1>&6
963 # Extract the first word of "tclsh", so it can be a program name with args.
964 set dummy tclsh; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
972 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
975 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_path_TCLSH="$ac_dir/$ac_word"
991 TCLSH="$ac_cv_path_TCLSH"
992 if test -n "$TCLSH"; then
993 echo "$ac_t""$TCLSH" 1>&6
995 echo "$ac_t""no" 1>&6
998 if test -n "$ac_cv_path_TCLSH"; then
999 prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
1003 tclconfig=${prefix}/lib
1004 prefix=${saveprefix}
1006 if test -r ${tclconfig}/tclConfig.sh; then
1007 echo $ac_n "checking for Tcl""... $ac_c" 1>&6
1008 echo "configure:1009: checking for Tcl" >&5
1009 . ${tclconfig}/tclConfig.sh
1010 if test -r ${tclconfig}/../generic/tcl.h; then
1011 TCL_INCLUDE=-I${tclconfig}/../generic
1012 TCL_LIB="$TCL_BUILD_LIB_SPEC $TCL_LIBS"
1014 TCL_INCLUDE=-I${TCL_PREFIX}/include
1015 TCL_LIB="$TCL_LIB_SPEC $TCL_LIBS"
1017 SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1018 SHLIB_LD=$TCL_SHLIB_LD
1019 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1020 SHLIB_VERSION=$TCL_SHLIB_VERSION
1021 echo "$ac_t""$TCL_VERSION" 1>&6
1022 ODEFS="-DHAVE_TCL_H=1"
1024 ODEFS="-DHAVE_TCL_H=0"
1029 echo $ac_n "checking for connect""... $ac_c" 1>&6
1030 echo "configure:1031: checking for connect" >&5
1031 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1037 /* System header to define __stub macros and hopefully few prototypes,
1038 which can conflict with char connect(); below. */
1040 /* Override any gcc2 internal prototype to avoid an error. */
1041 /* We use char because int might match the return type of a gcc2
1042 builtin and then its argument prototype would still apply. */
1047 /* The GNU C library defines this for functions which it implements
1048 to always fail with ENOSYS. Some functions are actually named
1049 something starting with __ and the normal name is an alias. */
1050 #if defined (__stub_connect) || defined (__stub___connect)
1058 if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1060 eval "ac_cv_func_connect=yes"
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1065 eval "ac_cv_func_connect=no"
1070 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1071 echo "$ac_t""yes" 1>&6
1074 echo "$ac_t""no" 1>&6
1077 if test "$ac_cv_func_connect" = "no"; then
1078 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1079 echo "configure:1080: checking for main in -lsocket" >&5
1080 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 ac_save_LIBS="$LIBS"
1085 LIBS="-lsocket $LIBS"
1086 cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1096 eval "ac_cv_lib_$ac_lib_var=yes"
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1101 eval "ac_cv_lib_$ac_lib_var=no"
1104 LIBS="$ac_save_LIBS"
1107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1108 echo "$ac_t""yes" 1>&6
1109 LIBS="$LIBS -lsocket"
1111 echo "$ac_t""no" 1>&6
1116 if test "$checkBoth" = "1"; then
1118 LIBS="$LIBS -lsocket -lnsl"
1119 echo $ac_n "checking for accept""... $ac_c" 1>&6
1120 echo "configure:1121: checking for accept" >&5
1121 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1127 /* System header to define __stub macros and hopefully few prototypes,
1128 which can conflict with char accept(); below. */
1130 /* Override any gcc2 internal prototype to avoid an error. */
1131 /* We use char because int might match the return type of a gcc2
1132 builtin and then its argument prototype would still apply. */
1137 /* The GNU C library defines this for functions which it implements
1138 to always fail with ENOSYS. Some functions are actually named
1139 something starting with __ and the normal name is an alias. */
1140 #if defined (__stub_accept) || defined (__stub___accept)
1148 if { (eval echo configure:1149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1150 eval "ac_cv_func_accept=yes"
1152 echo "configure: failed program was:" >&5
1153 cat conftest.$ac_ext >&5
1155 eval "ac_cv_func_accept=no"
1160 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1161 echo "$ac_t""yes" 1>&6
1164 echo "$ac_t""no" 1>&6
1169 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1170 echo "configure:1171: checking for gethostbyname" >&5
1171 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1177 /* System header to define __stub macros and hopefully few prototypes,
1178 which can conflict with char gethostbyname(); below. */
1180 /* Override any gcc2 internal prototype to avoid an error. */
1181 /* We use char because int might match the return type of a gcc2
1182 builtin and then its argument prototype would still apply. */
1183 char gethostbyname();
1187 /* The GNU C library defines this for functions which it implements
1188 to always fail with ENOSYS. Some functions are actually named
1189 something starting with __ and the normal name is an alias. */
1190 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1198 if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1200 eval "ac_cv_func_gethostbyname=yes"
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1205 eval "ac_cv_func_gethostbyname=no"
1210 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1211 echo "$ac_t""yes" 1>&6
1214 echo "$ac_t""no" 1>&6
1215 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1216 echo "configure:1217: checking for main in -lnsl" >&5
1217 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 ac_save_LIBS="$LIBS"
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1231 if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1233 eval "ac_cv_lib_$ac_lib_var=yes"
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1238 eval "ac_cv_lib_$ac_lib_var=no"
1241 LIBS="$ac_save_LIBS"
1244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1245 echo "$ac_t""yes" 1>&6
1248 echo "$ac_t""no" 1>&6
1255 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
1256 echo "configure:1257: checking for main in -lwrap" >&5
1257 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
1258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 ac_save_LIBS="$LIBS"
1263 cat > conftest.$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1273 eval "ac_cv_lib_$ac_lib_var=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_lib_$ac_lib_var=no"
1281 LIBS="$ac_save_LIBS"
1284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1285 echo "$ac_t""yes" 1>&6
1288 echo "$ac_t""no" 1>&6
1293 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1294 echo "configure:1295: checking for ANSI C header files" >&5
1295 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1307 { (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1309 if test -z "$ac_err"; then
1311 ac_cv_header_stdc=yes
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1317 ac_cv_header_stdc=no
1321 if test $ac_cv_header_stdc = yes; then
1322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1329 egrep "memchr" >/dev/null 2>&1; then
1333 ac_cv_header_stdc=no
1339 if test $ac_cv_header_stdc = yes; then
1340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1347 egrep "free" >/dev/null 2>&1; then
1351 ac_cv_header_stdc=no
1357 if test $ac_cv_header_stdc = yes; then
1358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1359 if test "$cross_compiling" = yes; then
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1366 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1367 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1369 int main () { int i; for (i = 0; i < 256; i++)
1370 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1374 if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1381 ac_cv_header_stdc=no
1389 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1390 if test $ac_cv_header_stdc = yes; then
1391 cat >> confdefs.h <<\EOF
1392 #define STDC_HEADERS 1
1397 if test "$ac_cv_header_stdc" = "no"; then
1398 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1403 cat > confcache <<\EOF
1404 # This file is a shell script that caches the results of configure
1405 # tests run on this system so they can be shared between configure
1406 # scripts and configure runs. It is not useful on other systems.
1407 # If it contains results you don't want to keep, you may remove or edit it.
1409 # By default, configure uses ./config.cache as the cache file,
1410 # creating it if it does not exist already. You can give configure
1411 # the --cache-file=FILE option to use a different cache file; that is
1412 # what configure does when it calls configure scripts in
1413 # subdirectories, so they share the cache.
1414 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1415 # config.status only pays attention to the cache file if you give it the
1416 # --recheck option to rerun configure.
1419 # The following way of writing the cache mishandles newlines in values,
1420 # but we know of no workaround that is simple, portable, and efficient.
1421 # So, don't put newlines in cache variables' values.
1422 # Ultrix sh set writes to stderr and can't be redirected directly,
1423 # and sets the high bit in the cache file unless we assign to the vars.
1425 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1427 # `set' does not quote correctly, so add quotes (double-quote substitution
1428 # turns \\\\ into \\, and sed turns \\ into \).
1430 -e "s/'/'\\\\''/g" \
1431 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1434 # `set' quotes correctly as required by POSIX, so do not add quotes.
1435 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1438 if cmp -s $cache_file confcache; then
1441 if test -w $cache_file; then
1442 echo "updating cache $cache_file"
1443 cat confcache > $cache_file
1445 echo "not updating unwritable cache $cache_file"
1450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1453 # Let make expand exec_prefix.
1454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1456 # Any assignment to VPATH causes Sun make to only execute
1457 # the first set of double-colon rules, so remove it if not needed.
1458 # If there is a colon in the path, we need to keep it.
1459 if test "x$srcdir" = x.; then
1460 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1463 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1465 # Transform confdefs.h into DEFS.
1466 # Protect against shell expansion while executing Makefile rules.
1467 # Protect against Makefile macro expansion.
1468 cat > conftest.defs <<\EOF
1469 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1470 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1475 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1479 # Without the "./", some shells look in PATH for config.status.
1480 : ${CONFIG_STATUS=./config.status}
1482 echo creating $CONFIG_STATUS
1483 rm -f $CONFIG_STATUS
1484 cat > $CONFIG_STATUS <<EOF
1486 # Generated automatically by configure.
1487 # Run this file to recreate the current configuration.
1488 # This directory was configured as follows,
1489 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1491 # $0 $ac_configure_args
1493 # Compiler output produced by configure, useful for debugging
1494 # configure, is in ./config.log if it exists.
1496 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1499 case "\$ac_option" in
1500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1501 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1502 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1503 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1504 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1506 -help | --help | --hel | --he | --h)
1507 echo "\$ac_cs_usage"; exit 0 ;;
1508 *) echo "\$ac_cs_usage"; exit 1 ;;
1512 ac_given_srcdir=$srcdir
1513 ac_given_INSTALL="$INSTALL"
1515 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
1517 cat >> $CONFIG_STATUS <<EOF
1519 # Protect against being on the right side of a sed subst in config.status.
1520 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1521 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1525 s%@CFLAGS@%$CFLAGS%g
1526 s%@CPPFLAGS@%$CPPFLAGS%g
1527 s%@CXXFLAGS@%$CXXFLAGS%g
1528 s%@FFLAGS@%$FFLAGS%g
1530 s%@LDFLAGS@%$LDFLAGS%g
1532 s%@exec_prefix@%$exec_prefix%g
1533 s%@prefix@%$prefix%g
1534 s%@program_transform_name@%$program_transform_name%g
1535 s%@bindir@%$bindir%g
1536 s%@sbindir@%$sbindir%g
1537 s%@libexecdir@%$libexecdir%g
1538 s%@datadir@%$datadir%g
1539 s%@sysconfdir@%$sysconfdir%g
1540 s%@sharedstatedir@%$sharedstatedir%g
1541 s%@localstatedir@%$localstatedir%g
1542 s%@libdir@%$libdir%g
1543 s%@includedir@%$includedir%g
1544 s%@oldincludedir@%$oldincludedir%g
1545 s%@infodir@%$infodir%g
1546 s%@mandir@%$mandir%g
1548 s%@TCL_INCLUDE@%$TCL_INCLUDE%g
1549 s%@TCL_LIB@%$TCL_LIB%g
1552 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1553 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1554 s%@INSTALL_DATA@%$INSTALL_DATA%g
1555 s%@RANLIB@%$RANLIB%g
1561 cat >> $CONFIG_STATUS <<\EOF
1563 # Split the substitutions into bite-sized pieces for seds with
1564 # small command number limits, like on Digital OSF/1 and HP-UX.
1565 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1566 ac_file=1 # Number of current file.
1567 ac_beg=1 # First line for current file.
1568 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1571 while $ac_more_lines; do
1572 if test $ac_beg -gt 1; then
1573 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1575 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1577 if test ! -s conftest.s$ac_file; then
1579 rm -f conftest.s$ac_file
1581 if test -z "$ac_sed_cmds"; then
1582 ac_sed_cmds="sed -f conftest.s$ac_file"
1584 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1586 ac_file=`expr $ac_file + 1`
1588 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1591 if test -z "$ac_sed_cmds"; then
1596 cat >> $CONFIG_STATUS <<EOF
1598 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile"}
1600 cat >> $CONFIG_STATUS <<\EOF
1601 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1604 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1605 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1606 *) ac_file_in="${ac_file}.in" ;;
1609 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1611 # Remove last slash and all that follows it. Not all systems have dirname.
1612 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1613 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1614 # The file is in a subdirectory.
1615 test ! -d "$ac_dir" && mkdir "$ac_dir"
1616 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1617 # A "../" for each directory in $ac_dir_suffix.
1618 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1620 ac_dir_suffix= ac_dots=
1623 case "$ac_given_srcdir" in
1625 if test -z "$ac_dots"; then top_srcdir=.
1626 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1627 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1629 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1630 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1633 case "$ac_given_INSTALL" in
1634 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1635 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1638 echo creating "$ac_file"
1640 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1642 *Makefile*) ac_comsub="1i\\
1643 # $configure_input" ;;
1647 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1649 s%@configure_input@%$configure_input%g
1650 s%@srcdir@%$srcdir%g
1651 s%@top_srcdir@%$top_srcdir%g
1652 s%@INSTALL@%$INSTALL%g
1653 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1658 cat >> $CONFIG_STATUS <<EOF
1661 cat >> $CONFIG_STATUS <<\EOF
1665 chmod +x $CONFIG_STATUS
1666 rm -fr confdefs* $ac_clean_files
1667 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1