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 --disable-load disallow dynamic loading and "load" command"
17 --enable-shared build libtcl as a shared library"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=../generic/tcl.h
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
528 # SCCS: @(#) configure.in 1.18 98/08/12 17:29:39
534 VERSION=${TCL_VERSION}
536 if test "${prefix}" = "NONE"; then
539 if test "${exec_prefix}" = "NONE"; then
542 TCL_SRC_DIR=`cd $srcdir/..; pwd`
544 # Extract the first word of "ranlib", so it can be a program name with args.
545 set dummy ranlib; ac_word=$2
546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547 echo "configure:548: checking for $ac_word" >&5
548 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
549 echo $ac_n "(cached) $ac_c" 1>&6
551 if test -n "$RANLIB"; then
552 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
556 for ac_dir in $ac_dummy; do
557 test -z "$ac_dir" && ac_dir=.
558 if test -f $ac_dir/$ac_word; then
559 ac_cv_prog_RANLIB="ranlib"
564 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
567 RANLIB="$ac_cv_prog_RANLIB"
568 if test -n "$RANLIB"; then
569 echo "$ac_t""$RANLIB" 1>&6
571 echo "$ac_t""no" 1>&6
574 # Extract the first word of "gcc", so it can be a program name with args.
575 set dummy gcc; ac_word=$2
576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577 echo "configure:578: checking for $ac_word" >&5
578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
581 if test -n "$CC"; then
582 ac_cv_prog_CC="$CC" # Let the user override the test.
584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
586 for ac_dir in $ac_dummy; do
587 test -z "$ac_dir" && ac_dir=.
588 if test -f $ac_dir/$ac_word; then
597 if test -n "$CC"; then
598 echo "$ac_t""$CC" 1>&6
600 echo "$ac_t""no" 1>&6
603 if test -z "$CC"; then
604 # Extract the first word of "cc", so it can be a program name with args.
605 set dummy cc; ac_word=$2
606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607 echo "configure:608: checking for $ac_word" >&5
608 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
609 echo $ac_n "(cached) $ac_c" 1>&6
611 if test -n "$CC"; then
612 ac_cv_prog_CC="$CC" # Let the user override the test.
614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
617 for ac_dir in $ac_dummy; do
618 test -z "$ac_dir" && ac_dir=.
619 if test -f $ac_dir/$ac_word; then
620 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
629 if test $ac_prog_rejected = yes; then
630 # We found a bogon in the path, so make sure we never use it.
631 set dummy $ac_cv_prog_CC
633 if test $# -gt 0; then
634 # We chose a different compiler from the bogus one.
635 # However, it has the same basename, so the bogon will be chosen
636 # first if we set CC to just the basename; use the full file name.
638 set dummy "$ac_dir/$ac_word" "$@"
646 if test -n "$CC"; then
647 echo "$ac_t""$CC" 1>&6
649 echo "$ac_t""no" 1>&6
652 if test -z "$CC"; then
655 # Extract the first word of "cl", so it can be a program name with args.
656 set dummy cl; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
667 for ac_dir in $ac_dummy; do
668 test -z "$ac_dir" && ac_dir=.
669 if test -f $ac_dir/$ac_word; then
678 if test -n "$CC"; then
679 echo "$ac_t""$CC" 1>&6
681 echo "$ac_t""no" 1>&6
686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
690 echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
694 ac_cpp='$CPP $CPPFLAGS'
695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
697 cross_compiling=$ac_cv_prog_cc_cross
699 cat > conftest.$ac_ext << EOF
701 #line 702 "configure"
702 #include "confdefs.h"
706 if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
707 ac_cv_prog_cc_works=yes
708 # If we can't run a trivial program, we are probably using a cross compiler.
709 if (./conftest; exit) 2>/dev/null; then
710 ac_cv_prog_cc_cross=no
712 ac_cv_prog_cc_cross=yes
715 echo "configure: failed program was:" >&5
716 cat conftest.$ac_ext >&5
717 ac_cv_prog_cc_works=no
721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
722 ac_cpp='$CPP $CPPFLAGS'
723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
725 cross_compiling=$ac_cv_prog_cc_cross
727 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
728 if test $ac_cv_prog_cc_works = no; then
729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
732 echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
733 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
734 cross_compiling=$ac_cv_prog_cc_cross
736 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
737 echo "configure:738: checking whether we are using GNU C" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 cat > conftest.c <<EOF
746 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
755 if test $ac_cv_prog_gcc = yes; then
761 ac_test_CFLAGS="${CFLAGS+set}"
762 ac_save_CFLAGS="$CFLAGS"
764 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
765 echo "configure:766: checking whether ${CC-cc} accepts -g" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 echo 'void f(){}' > conftest.c
770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
779 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
780 if test "$ac_test_CFLAGS" = set; then
781 CFLAGS="$ac_save_CFLAGS"
782 elif test $ac_cv_prog_cc_g = yes; then
783 if test "$GCC" = yes; then
789 if test "$GCC" = yes; then
800 # We need this for substitutions in Makefile.in.
802 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
803 if test -f $ac_dir/install-sh; then
805 ac_install_sh="$ac_aux_dir/install-sh -c"
807 elif test -f $ac_dir/install.sh; then
809 ac_install_sh="$ac_aux_dir/install.sh -c"
813 if test -z "$ac_aux_dir"; then
814 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
816 ac_config_guess=$ac_aux_dir/config.guess
817 ac_config_sub=$ac_aux_dir/config.sub
818 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
820 # Find a good install program. We prefer a C program (faster),
821 # so one script is as good as another. But avoid the broken or
822 # incompatible versions:
823 # SysV /etc/install, /usr/sbin/install
824 # SunOS /usr/etc/install
827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
830 # ./install, which can be erroneously created by make from ./install.sh.
831 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
832 echo "configure:833: checking for a BSD compatible install" >&5
833 if test -z "$INSTALL"; then
834 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
838 for ac_dir in $PATH; do
839 # Account for people who put trailing slashes in PATH elements.
841 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
843 # OSF1 and SCO ODT 3.0 have their own names for install.
844 # Don't use installbsd from OSF since it installs stuff as root
846 for ac_prog in ginstall scoinst install; do
847 if test -f $ac_dir/$ac_prog; then
848 if test $ac_prog = install &&
849 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
850 # AIX install. It has an incompatible calling convention.
853 ac_cv_path_install="$ac_dir/$ac_prog -c"
864 if test "${ac_cv_path_install+set}" = set; then
865 INSTALL="$ac_cv_path_install"
867 # As a last resort, use the slow shell script. We don't cache a
868 # path for INSTALL within a source directory, because that will
869 # break other packages using the cache if that directory is
870 # removed, or if the path is relative.
871 INSTALL="$ac_install_sh"
874 echo "$ac_t""$INSTALL" 1>&6
876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
877 # It thinks the first close brace ends the variable substitution.
878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
880 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
882 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
886 #--------------------------------------------------------------------
888 # This is for LynxOS, which needs a flag to force true POSIX when
889 # building. It's weirder than that, cause the flag varies depending
890 # how old the compiler is. So...
891 # -X is for the old "cc" and "gcc" (based on 1.42)
892 # -mposix is for the new gcc (at least 2.5.8)
893 # This modifies the value of $CC to have the POSIX flag added
894 # so everything will configure correctly.
895 #--------------------------------------------------------------------
898 # set the warning flags depending on whether or not we are using gcc
899 if test "${GCC}" = "yes" ; then
900 CFLAGS_WARNING="-Wall -Wconversion"
905 #--------------------------------------------------------------------
906 # Supply substitutes for missing POSIX library procedures, or
907 # set flags so Tcl uses alternate procedures.
908 #--------------------------------------------------------------------
910 # Check if Posix compliant getcwd exists, if not we'll use getwd.
911 for ac_func in getcwd
913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
914 echo "configure:915: checking for $ac_func" >&5
915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
918 cat > conftest.$ac_ext <<EOF
919 #line 920 "configure"
920 #include "confdefs.h"
921 /* System header to define __stub macros and hopefully few prototypes,
922 which can conflict with char $ac_func(); below. */
924 /* Override any gcc2 internal prototype to avoid an error. */
925 /* We use char because int might match the return type of a gcc2
926 builtin and then its argument prototype would still apply. */
931 /* The GNU C library defines this for functions which it implements
932 to always fail with ENOSYS. Some functions are actually named
933 something starting with __ and the normal name is an alias. */
934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
944 eval "ac_cv_func_$ac_func=yes"
946 echo "configure: failed program was:" >&5
947 cat conftest.$ac_ext >&5
949 eval "ac_cv_func_$ac_func=no"
954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
955 echo "$ac_t""yes" 1>&6
956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
957 cat >> confdefs.h <<EOF
958 #define $ac_tr_func 1
962 echo "$ac_t""no" 1>&6
963 cat >> confdefs.h <<\EOF
970 # Nb: if getcwd uses popen and pwd(1) (like SunOS 4) we should really
971 # define USEGETWD even if the posix getcwd exists. Add a test ?
973 for ac_func in opendir strstr
975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_func" >&5
977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 cat > conftest.$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
983 /* System header to define __stub macros and hopefully few prototypes,
984 which can conflict with char $ac_func(); below. */
986 /* Override any gcc2 internal prototype to avoid an error. */
987 /* We use char because int might match the return type of a gcc2
988 builtin and then its argument prototype would still apply. */
993 /* The GNU C library defines this for functions which it implements
994 to always fail with ENOSYS. Some functions are actually named
995 something starting with __ and the normal name is an alias. */
996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1004 if { (eval echo configure:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1006 eval "ac_cv_func_$ac_func=yes"
1008 echo "configure: failed program was:" >&5
1009 cat conftest.$ac_ext >&5
1011 eval "ac_cv_func_$ac_func=no"
1016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1017 echo "$ac_t""yes" 1>&6
1018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1019 cat >> confdefs.h <<EOF
1020 #define $ac_tr_func 1
1024 echo "$ac_t""no" 1>&6
1025 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1031 for ac_func in strtol tmpnam waitpid
1033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_func" >&5
1035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 cat > conftest.$ac_ext <<EOF
1039 #line 1040 "configure"
1040 #include "confdefs.h"
1041 /* System header to define __stub macros and hopefully few prototypes,
1042 which can conflict with char $ac_func(); below. */
1044 /* Override any gcc2 internal prototype to avoid an error. */
1045 /* We use char because int might match the return type of a gcc2
1046 builtin and then its argument prototype would still apply. */
1051 /* The GNU C library defines this for functions which it implements
1052 to always fail with ENOSYS. Some functions are actually named
1053 something starting with __ and the normal name is an alias. */
1054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1062 if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1064 eval "ac_cv_func_$ac_func=yes"
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1069 eval "ac_cv_func_$ac_func=no"
1074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1075 echo "$ac_t""yes" 1>&6
1076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1077 cat >> confdefs.h <<EOF
1078 #define $ac_tr_func 1
1082 echo "$ac_t""no" 1>&6
1083 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1088 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1089 echo "configure:1090: checking for strerror" >&5
1090 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1096 /* System header to define __stub macros and hopefully few prototypes,
1097 which can conflict with char strerror(); below. */
1099 /* Override any gcc2 internal prototype to avoid an error. */
1100 /* We use char because int might match the return type of a gcc2
1101 builtin and then its argument prototype would still apply. */
1106 /* The GNU C library defines this for functions which it implements
1107 to always fail with ENOSYS. Some functions are actually named
1108 something starting with __ and the normal name is an alias. */
1109 #if defined (__stub_strerror) || defined (__stub___strerror)
1117 if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1119 eval "ac_cv_func_strerror=yes"
1121 echo "configure: failed program was:" >&5
1122 cat conftest.$ac_ext >&5
1124 eval "ac_cv_func_strerror=no"
1129 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1130 echo "$ac_t""yes" 1>&6
1133 echo "$ac_t""no" 1>&6
1134 cat >> confdefs.h <<\EOF
1135 #define NO_STRERROR 1
1140 echo $ac_n "checking for getwd""... $ac_c" 1>&6
1141 echo "configure:1142: checking for getwd" >&5
1142 if eval "test \"`echo '$''{'ac_cv_func_getwd'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1148 /* System header to define __stub macros and hopefully few prototypes,
1149 which can conflict with char getwd(); below. */
1151 /* Override any gcc2 internal prototype to avoid an error. */
1152 /* We use char because int might match the return type of a gcc2
1153 builtin and then its argument prototype would still apply. */
1158 /* The GNU C library defines this for functions which it implements
1159 to always fail with ENOSYS. Some functions are actually named
1160 something starting with __ and the normal name is an alias. */
1161 #if defined (__stub_getwd) || defined (__stub___getwd)
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1171 eval "ac_cv_func_getwd=yes"
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1176 eval "ac_cv_func_getwd=no"
1181 if eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then
1182 echo "$ac_t""yes" 1>&6
1185 echo "$ac_t""no" 1>&6
1186 cat >> confdefs.h <<\EOF
1192 echo $ac_n "checking for wait3""... $ac_c" 1>&6
1193 echo "configure:1194: checking for wait3" >&5
1194 if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 cat > conftest.$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1200 /* System header to define __stub macros and hopefully few prototypes,
1201 which can conflict with char wait3(); below. */
1203 /* Override any gcc2 internal prototype to avoid an error. */
1204 /* We use char because int might match the return type of a gcc2
1205 builtin and then its argument prototype would still apply. */
1210 /* The GNU C library defines this for functions which it implements
1211 to always fail with ENOSYS. Some functions are actually named
1212 something starting with __ and the normal name is an alias. */
1213 #if defined (__stub_wait3) || defined (__stub___wait3)
1221 if { (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1223 eval "ac_cv_func_wait3=yes"
1225 echo "configure: failed program was:" >&5
1226 cat conftest.$ac_ext >&5
1228 eval "ac_cv_func_wait3=no"
1233 if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
1234 echo "$ac_t""yes" 1>&6
1237 echo "$ac_t""no" 1>&6
1238 cat >> confdefs.h <<\EOF
1244 echo $ac_n "checking for uname""... $ac_c" 1>&6
1245 echo "configure:1246: checking for uname" >&5
1246 if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 cat > conftest.$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1252 /* System header to define __stub macros and hopefully few prototypes,
1253 which can conflict with char uname(); below. */
1255 /* Override any gcc2 internal prototype to avoid an error. */
1256 /* We use char because int might match the return type of a gcc2
1257 builtin and then its argument prototype would still apply. */
1262 /* The GNU C library defines this for functions which it implements
1263 to always fail with ENOSYS. Some functions are actually named
1264 something starting with __ and the normal name is an alias. */
1265 #if defined (__stub_uname) || defined (__stub___uname)
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1275 eval "ac_cv_func_uname=yes"
1277 echo "configure: failed program was:" >&5
1278 cat conftest.$ac_ext >&5
1280 eval "ac_cv_func_uname=no"
1285 if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
1286 echo "$ac_t""yes" 1>&6
1289 echo "$ac_t""no" 1>&6
1290 cat >> confdefs.h <<\EOF
1297 #--------------------------------------------------------------------
1298 # On a few very rare systems, all of the libm.a stuff is
1299 # already in libc.a. Set compiler flags accordingly.
1300 # Also, Linux requires the "ieee" library for math to work
1301 # right (and it must appear before "-lm").
1302 #--------------------------------------------------------------------
1304 echo $ac_n "checking for sin""... $ac_c" 1>&6
1305 echo "configure:1306: checking for sin" >&5
1306 if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* System header to define __stub macros and hopefully few prototypes,
1313 which can conflict with char sin(); below. */
1315 /* Override any gcc2 internal prototype to avoid an error. */
1316 /* We use char because int might match the return type of a gcc2
1317 builtin and then its argument prototype would still apply. */
1322 /* The GNU C library defines this for functions which it implements
1323 to always fail with ENOSYS. Some functions are actually named
1324 something starting with __ and the normal name is an alias. */
1325 #if defined (__stub_sin) || defined (__stub___sin)
1333 if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1335 eval "ac_cv_func_sin=yes"
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1340 eval "ac_cv_func_sin=no"
1345 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
1346 echo "$ac_t""yes" 1>&6
1349 echo "$ac_t""no" 1>&6
1353 echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
1354 echo "configure:1355: checking for main in -lieee" >&5
1355 ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'`
1356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 ac_save_LIBS="$LIBS"
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1371 eval "ac_cv_lib_$ac_lib_var=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 eval "ac_cv_lib_$ac_lib_var=no"
1379 LIBS="$ac_save_LIBS"
1382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1383 echo "$ac_t""yes" 1>&6
1384 MATH_LIBS="-lieee $MATH_LIBS"
1386 echo "$ac_t""no" 1>&6
1390 #--------------------------------------------------------------------
1391 # On AIX systems, libbsd.a has to be linked in to support
1392 # non-blocking file IO. This library has to be linked in after
1393 # the MATH_LIBS or it breaks the pow() function. The way to
1394 # insure proper sequencing, is to add it to the tail of MATH_LIBS.
1395 # This library also supplies gettimeofday.
1396 #--------------------------------------------------------------------
1398 if test "`uname -s`" = "AIX" ; then
1399 echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
1400 echo "configure:1401: checking for gettimeofday in -lbsd" >&5
1401 ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
1402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 ac_save_LIBS="$LIBS"
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1410 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1413 char gettimeofday();
1419 if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421 eval "ac_cv_lib_$ac_lib_var=yes"
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1426 eval "ac_cv_lib_$ac_lib_var=no"
1429 LIBS="$ac_save_LIBS"
1432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1433 echo "$ac_t""yes" 1>&6
1436 echo "$ac_t""no" 1>&6
1439 if test $libbsd = yes; then
1440 MATH_LIBS="$MATH_LIBS -lbsd"
1444 #--------------------------------------------------------------------
1445 # Supply substitutes for missing POSIX header files. Special
1447 # - stdlib.h doesn't define strtol, strtoul, or
1448 # strtod insome versions of SunOS
1449 # - some versions of string.h don't declare procedures such
1451 #--------------------------------------------------------------------
1453 echo $ac_n "checking dirent.h""... $ac_c" 1>&6
1454 echo "configure:1455: checking dirent.h" >&5
1455 cat > conftest.$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1458 #include <sys/types.h>
1462 #ifndef _POSIX_SOURCE
1465 * Generate compilation error to make the test fail: Lynx headers
1466 * are only valid if really in the POSIX environment.
1469 missing_procedure();
1473 struct dirent *entryPtr;
1475 d = opendir("foobar");
1476 entryPtr = readdir(d);
1477 p = entryPtr->d_name;
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1492 if test $tcl_ok = no; then
1493 cat >> confdefs.h <<\EOF
1494 #define NO_DIRENT_H 1
1498 echo "$ac_t""$tcl_ok" 1>&6
1499 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1500 echo "configure:1501: checking how to run the C preprocessor" >&5
1501 # On Suns, sometimes $CPP names a directory.
1502 if test -n "$CPP" && test -d "$CPP"; then
1505 if test -z "$CPP"; then
1506 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 # This must be in double quotes, not single quotes, because CPP may get
1510 # substituted into the Makefile and "${CC-cc}" will confuse make.
1512 # On the NeXT, cc -E runs the code through the compiler's parser,
1513 # not just through cpp.
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1521 { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1523 if test -z "$ac_err"; then
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1530 CPP="${CC-cc} -E -traditional-cpp"
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1540 if test -z "$ac_err"; then
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1547 CPP="${CC-cc} -nologo -E"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1555 { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1557 if test -z "$ac_err"; then
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1571 ac_cv_prog_CPP="$CPP"
1573 CPP="$ac_cv_prog_CPP"
1575 ac_cv_prog_CPP="$CPP"
1577 echo "$ac_t""$CPP" 1>&6
1579 ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
1580 echo $ac_n "checking for errno.h""... $ac_c" 1>&6
1581 echo "configure:1582: checking for errno.h" >&5
1582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1591 { (eval echo configure:1592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1593 if test -z "$ac_err"; then
1595 eval "ac_cv_header_$ac_safe=yes"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 eval "ac_cv_header_$ac_safe=no"
1605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1606 echo "$ac_t""yes" 1>&6
1609 echo "$ac_t""no" 1>&6
1610 cat >> confdefs.h <<\EOF
1611 #define NO_ERRNO_H 1
1616 ac_safe=`echo "float.h" | sed 'y%./+-%__p_%'`
1617 echo $ac_n "checking for float.h""... $ac_c" 1>&6
1618 echo "configure:1619: checking for float.h" >&5
1619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1630 if test -z "$ac_err"; then
1632 eval "ac_cv_header_$ac_safe=yes"
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1638 eval "ac_cv_header_$ac_safe=no"
1642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1643 echo "$ac_t""yes" 1>&6
1646 echo "$ac_t""no" 1>&6
1647 cat >> confdefs.h <<\EOF
1648 #define NO_FLOAT_H 1
1653 ac_safe=`echo "values.h" | sed 'y%./+-%__p_%'`
1654 echo $ac_n "checking for values.h""... $ac_c" 1>&6
1655 echo "configure:1656: checking for values.h" >&5
1656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1665 { (eval echo configure:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1667 if test -z "$ac_err"; then
1669 eval "ac_cv_header_$ac_safe=yes"
1672 echo "configure: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1675 eval "ac_cv_header_$ac_safe=no"
1679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1680 echo "$ac_t""yes" 1>&6
1683 echo "$ac_t""no" 1>&6
1684 cat >> confdefs.h <<\EOF
1685 #define NO_VALUES_H 1
1690 ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'`
1691 echo $ac_n "checking for limits.h""... $ac_c" 1>&6
1692 echo "configure:1693: checking for limits.h" >&5
1693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1702 { (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1704 if test -z "$ac_err"; then
1706 eval "ac_cv_header_$ac_safe=yes"
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1712 eval "ac_cv_header_$ac_safe=no"
1716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1720 echo "$ac_t""no" 1>&6
1721 cat >> confdefs.h <<\EOF
1722 #define NO_LIMITS_H 1
1727 ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
1728 echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
1729 echo "configure:1730: checking for stdlib.h" >&5
1730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1739 { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1741 if test -z "$ac_err"; then
1743 eval "ac_cv_header_$ac_safe=yes"
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1749 eval "ac_cv_header_$ac_safe=no"
1753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1754 echo "$ac_t""yes" 1>&6
1757 echo "$ac_t""no" 1>&6
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1767 egrep "strtol" >/dev/null 2>&1; then
1775 cat > conftest.$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1781 egrep "strtoul" >/dev/null 2>&1; then
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "strtod" >/dev/null 2>&1; then
1803 if test $tcl_ok = 0; then
1804 cat >> confdefs.h <<\EOF
1805 #define NO_STDLIB_H 1
1809 ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
1810 echo $ac_n "checking for string.h""... $ac_c" 1>&6
1811 echo "configure:1812: checking for string.h" >&5
1812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1825 eval "ac_cv_header_$ac_safe=yes"
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 eval "ac_cv_header_$ac_safe=no"
1835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1839 echo "$ac_t""no" 1>&6
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1849 egrep "strstr" >/dev/null 2>&1; then
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1863 egrep "strerror" >/dev/null 2>&1; then
1871 if test $tcl_ok = 0; then
1872 cat >> confdefs.h <<\EOF
1873 #define NO_STRING_H 1
1877 ac_safe=`echo "sys/wait.h" | sed 'y%./+-%__p_%'`
1878 echo $ac_n "checking for sys/wait.h""... $ac_c" 1>&6
1879 echo "configure:1880: checking for sys/wait.h" >&5
1880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <sys/wait.h>
1888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1893 eval "ac_cv_header_$ac_safe=yes"
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 eval "ac_cv_header_$ac_safe=no"
1903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1907 echo "$ac_t""no" 1>&6
1908 cat >> confdefs.h <<\EOF
1909 #define NO_SYS_WAIT_H 1
1914 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
1915 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
1916 echo "configure:1917: checking for dlfcn.h" >&5
1917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1926 { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1928 if test -z "$ac_err"; then
1930 eval "ac_cv_header_$ac_safe=yes"
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1936 eval "ac_cv_header_$ac_safe=no"
1940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1941 echo "$ac_t""yes" 1>&6
1944 echo "$ac_t""no" 1>&6
1945 cat >> confdefs.h <<\EOF
1946 #define NO_DLFCN_H 1
1951 for ac_hdr in unistd.h
1953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_hdr" >&5
1956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1965 { (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1967 if test -z "$ac_err"; then
1969 eval "ac_cv_header_$ac_safe=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_header_$ac_safe=no"
1979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1980 echo "$ac_t""yes" 1>&6
1981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1982 cat >> confdefs.h <<EOF
1983 #define $ac_tr_hdr 1
1987 echo "$ac_t""no" 1>&6
1992 #---------------------------------------------------------------------------
1993 # Determine which interface to use to talk to the serial port.
1994 # Note that #include lines must begin in leftmost column for
1995 # some compilers to recognize them as preprocessor directives.
1996 #---------------------------------------------------------------------------
1998 echo $ac_n "checking termios vs. termio vs. sgtty""... $ac_c" 1>&6
1999 echo "configure:2000: checking termios vs. termio vs. sgtty" >&5
2000 if test "$cross_compiling" = yes; then
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2007 #include <termios.h>
2012 if (tcgetattr(0, &t) == 0) {
2014 t.c_cflag |= PARENB | PARODD | CSIZE | CSTOPB;
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2032 if test $tk_ok = termios; then
2033 cat >> confdefs.h <<\EOF
2034 #define USE_TERMIOS 1
2038 if test "$cross_compiling" = yes; then
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2050 if (ioctl(0, TCGETA, &t) == 0) {
2051 t.c_cflag |= CBAUD | PARENB | PARODD | CSIZE | CSTOPB;
2057 if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2061 echo "configure: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2069 if test $tk_ok = termio; then
2070 cat >> confdefs.h <<\EOF
2071 #define USE_TERMIO 1
2075 if test "$cross_compiling" = yes; then
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2087 if (ioctl(0, TIOCGETP, &t) == 0) {
2089 t.sg_flags |= ODDP | EVENP | RAW;
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2107 if test $tk_ok = sgtty; then
2108 cat >> confdefs.h <<\EOF
2115 echo "$ac_t""$tk_ok" 1>&6
2117 #--------------------------------------------------------------------
2118 # Include sys/select.h if it exists and if it supplies things
2119 # that appear to be useful and aren't already in sys/types.h.
2120 # This appears to be true only on the RS/6000 under AIX. Some
2121 # systems like OSF/1 have a sys/select.h that's of no use, and
2122 # other systems like SCO UNIX have a sys/select.h that's
2123 # pernicious. If "fd_set" isn't defined anywhere then set a
2125 #--------------------------------------------------------------------
2127 echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6
2128 echo "configure:2129: checking fd_set and sys/select" >&5
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2134 fd_set readMask, writeMask;
2137 if { (eval echo configure:2138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2141 echo "configure: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2147 if test $tk_ok = no; then
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <sys/select.h>
2153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2154 egrep "fd_mask" >/dev/null 2>&1; then
2160 if test $tk_ok = yes; then
2161 cat >> confdefs.h <<\EOF
2162 #define HAVE_SYS_SELECT_H 1
2167 echo "$ac_t""$tk_ok" 1>&6
2168 if test $tk_ok = no; then
2169 cat >> confdefs.h <<\EOF
2175 #------------------------------------------------------------------------------
2176 # Find out all about time handling differences.
2177 #------------------------------------------------------------------------------
2179 for ac_hdr in sys/time.h
2181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2183 echo "configure:2184: checking for $ac_hdr" >&5
2184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2193 { (eval echo configure:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2195 if test -z "$ac_err"; then
2197 eval "ac_cv_header_$ac_safe=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 eval "ac_cv_header_$ac_safe=no"
2207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2210 cat >> confdefs.h <<EOF
2211 #define $ac_tr_hdr 1
2215 echo "$ac_t""no" 1>&6
2219 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2220 echo "configure:2221: checking whether time.h and sys/time.h may both be included" >&5
2221 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 #include <sys/types.h>
2228 #include <sys/time.h>
2234 if { (eval echo configure:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2236 ac_cv_header_time=yes
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2241 ac_cv_header_time=no
2246 echo "$ac_t""$ac_cv_header_time" 1>&6
2247 if test $ac_cv_header_time = yes; then
2248 cat >> confdefs.h <<\EOF
2249 #define TIME_WITH_SYS_TIME 1
2254 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2255 echo "configure:2256: checking whether struct tm is in sys/time.h or time.h" >&5
2256 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 #include <sys/types.h>
2265 struct tm *tp; tp->tm_sec;
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2270 ac_cv_struct_tm=time.h
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 ac_cv_struct_tm=sys/time.h
2280 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2281 if test $ac_cv_struct_tm = sys/time.h; then
2282 cat >> confdefs.h <<\EOF
2283 #define TM_IN_SYS_TIME 1
2288 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2289 echo "configure:2290: checking for tm_zone in struct tm" >&5
2290 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 #include <sys/types.h>
2297 #include <$ac_cv_struct_tm>
2299 struct tm tm; tm.tm_zone;
2302 if { (eval echo configure:2303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2304 ac_cv_struct_tm_zone=yes
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 ac_cv_struct_tm_zone=no
2314 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2315 if test "$ac_cv_struct_tm_zone" = yes; then
2316 cat >> confdefs.h <<\EOF
2317 #define HAVE_TM_ZONE 1
2321 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2322 echo "configure:2323: checking for tzname" >&5
2323 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2330 #ifndef tzname /* For SGI. */
2331 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2337 if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2339 ac_cv_var_tzname=yes
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2349 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2350 if test $ac_cv_var_tzname = yes; then
2351 cat >> confdefs.h <<\EOF
2352 #define HAVE_TZNAME 1
2359 echo $ac_n "checking tm_tzadj in struct tm""... $ac_c" 1>&6
2360 echo "configure:2361: checking tm_tzadj in struct tm" >&5
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2366 struct tm tm; tm.tm_tzadj;
2369 if { (eval echo configure:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2371 cat >> confdefs.h <<\EOF
2372 #define HAVE_TM_TZADJ 1
2375 echo "$ac_t""yes" 1>&6
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2380 echo "$ac_t""no" 1>&6
2384 echo $ac_n "checking tm_gmtoff in struct tm""... $ac_c" 1>&6
2385 echo "configure:2386: checking tm_gmtoff in struct tm" >&5
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2391 struct tm tm; tm.tm_gmtoff;
2394 if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2396 cat >> confdefs.h <<\EOF
2397 #define HAVE_TM_GMTOFF 1
2400 echo "$ac_t""yes" 1>&6
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 echo "$ac_t""no" 1>&6
2410 # Its important to include time.h in this check, as some systems (like convex)
2411 # have timezone functions, etc.
2414 echo $ac_n "checking long timezone variable""... $ac_c" 1>&6
2415 echo "configure:2416: checking long timezone variable" >&5
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2421 extern long timezone;
2426 if { (eval echo configure:2427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2429 cat >> confdefs.h <<\EOF
2430 #define HAVE_TIMEZONE_VAR 1
2433 echo "$ac_t""yes" 1>&6
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 echo "$ac_t""no" 1>&6
2443 # On some systems (eg IRIX 6.2), timezone is a time_t and not a long.
2445 if test "$have_timezone" = no; then
2446 echo $ac_n "checking time_t timezone variable""... $ac_c" 1>&6
2447 echo "configure:2448: checking time_t timezone variable" >&5
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2453 extern time_t timezone;
2458 if { (eval echo configure:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2461 cat >> confdefs.h <<\EOF
2462 #define HAVE_TIMEZONE_VAR 1
2465 echo "$ac_t""yes" 1>&6
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 echo "$ac_t""no" 1>&6
2476 # On some systems (eg Solaris 2.5.1, timezone is not declared in
2477 # time.h unless you jump through hoops. Instead of that, we just
2478 # declare it ourselves when necessary.
2480 if test "$have_timezone" = yes; then
2481 echo $ac_n "checking for timezone declaration""... $ac_c" 1>&6
2482 echo "configure:2483: checking for timezone declaration" >&5
2484 tzrx='^[ ]*extern.*timezone'
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2492 egrep "$tzrx" >/dev/null 2>&1; then
2495 cat >> confdefs.h <<\EOF
2496 #define HAVE_TIMEZONE_DECL 1
2499 echo "$ac_t""found" 1>&6
2502 echo "$ac_t""missing" 1>&6
2509 # AIX does not have a timezone field in struct tm. When the AIX bsd
2510 # library is used, the timezone global and the gettimeofday methods are
2511 # to be avoided for timezone deduction instead, we deduce the timezone
2512 # by comparing the localtime result on a known GMT value.
2514 if test $libbsd = yes; then
2515 cat >> confdefs.h <<\EOF
2516 #define USE_DELTA_FOR_TZ 1
2521 #--------------------------------------------------------------------
2522 # Some systems (e.g., IRIX 4.0.5) lack the st_blksize field
2524 #--------------------------------------------------------------------
2525 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2526 echo "configure:2527: checking for st_blksize in struct stat" >&5
2527 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <sys/types.h>
2534 #include <sys/stat.h>
2536 struct stat s; s.st_blksize;
2539 if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2541 ac_cv_struct_st_blksize=yes
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2546 ac_cv_struct_st_blksize=no
2551 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2552 if test $ac_cv_struct_st_blksize = yes; then
2553 cat >> confdefs.h <<\EOF
2554 #define HAVE_ST_BLKSIZE 1
2560 #--------------------------------------------------------------------
2561 # On some systems strstr is broken: it returns a pointer even
2562 # even if the original string is empty.
2563 #--------------------------------------------------------------------
2565 echo $ac_n "checking proper strstr implementation""... $ac_c" 1>&6
2566 echo "configure:2567: checking proper strstr implementation" >&5
2567 if test "$cross_compiling" = yes; then
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2574 extern int strstr();
2577 exit(strstr("\0test", "test") ? 1 : 0);
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2593 if test $tcl_ok = yes; then
2594 echo "$ac_t""yes" 1>&6
2596 echo "$ac_t""broken, using substitute" 1>&6
2597 LIBOBJS="$LIBOBJS strstr.o"
2600 #--------------------------------------------------------------------
2601 # Check for strtoul function. This is tricky because under some
2602 # versions of AIX strtoul returns an incorrect terminator
2603 # pointer for the string "0".
2604 #--------------------------------------------------------------------
2606 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
2607 echo "configure:2608: checking for strtoul" >&5
2608 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 /* System header to define __stub macros and hopefully few prototypes,
2615 which can conflict with char strtoul(); below. */
2617 /* Override any gcc2 internal prototype to avoid an error. */
2618 /* We use char because int might match the return type of a gcc2
2619 builtin and then its argument prototype would still apply. */
2624 /* The GNU C library defines this for functions which it implements
2625 to always fail with ENOSYS. Some functions are actually named
2626 something starting with __ and the normal name is an alias. */
2627 #if defined (__stub_strtoul) || defined (__stub___strtoul)
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 eval "ac_cv_func_strtoul=yes"
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 eval "ac_cv_func_strtoul=no"
2647 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
2648 echo "$ac_t""yes" 1>&6
2651 echo "$ac_t""no" 1>&6
2655 if test "$cross_compiling" = yes; then
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2662 extern int strtoul();
2668 value = strtoul(string, &term, 0);
2669 if ((value != 0) || (term != (string+1))) {
2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2687 if test "$tcl_ok" = 0; then
2688 test -n "$verbose" && echo " Adding strtoul.o."
2689 LIBOBJS="$LIBOBJS strtoul.o"
2692 #--------------------------------------------------------------------
2693 # Check for the strtod function. This is tricky because in some
2694 # versions of Linux strtod mis-parses strings starting with "+".
2695 #--------------------------------------------------------------------
2697 echo $ac_n "checking for strtod""... $ac_c" 1>&6
2698 echo "configure:2699: checking for strtod" >&5
2699 if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* System header to define __stub macros and hopefully few prototypes,
2706 which can conflict with char strtod(); below. */
2708 /* Override any gcc2 internal prototype to avoid an error. */
2709 /* We use char because int might match the return type of a gcc2
2710 builtin and then its argument prototype would still apply. */
2715 /* The GNU C library defines this for functions which it implements
2716 to always fail with ENOSYS. Some functions are actually named
2717 something starting with __ and the normal name is an alias. */
2718 #if defined (__stub_strtod) || defined (__stub___strtod)
2726 if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2728 eval "ac_cv_func_strtod=yes"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2733 eval "ac_cv_func_strtod=no"
2738 if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2742 echo "$ac_t""no" 1>&6
2746 if test "$cross_compiling" = yes; then
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2753 extern double strtod();
2756 char *string = " +69";
2759 value = strtod(string, &term);
2760 if ((value != 69) || (term != (string+4))) {
2766 if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2770 echo "configure: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2778 if test "$tcl_ok" = 0; then
2779 test -n "$verbose" && echo " Adding strtod.o."
2780 LIBOBJS="$LIBOBJS strtod.o"
2783 #--------------------------------------------------------------------
2784 # Under Solaris 2.4, strtod returns the wrong value for the
2785 # terminating character under some conditions. Check for this
2786 # and if the problem exists use a substitute procedure
2787 # "fixstrtod" that corrects the error.
2788 #--------------------------------------------------------------------
2790 echo $ac_n "checking for strtod""... $ac_c" 1>&6
2791 echo "configure:2792: checking for strtod" >&5
2792 if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 /* System header to define __stub macros and hopefully few prototypes,
2799 which can conflict with char strtod(); below. */
2801 /* Override any gcc2 internal prototype to avoid an error. */
2802 /* We use char because int might match the return type of a gcc2
2803 builtin and then its argument prototype would still apply. */
2808 /* The GNU C library defines this for functions which it implements
2809 to always fail with ENOSYS. Some functions are actually named
2810 something starting with __ and the normal name is an alias. */
2811 #if defined (__stub_strtod) || defined (__stub___strtod)
2819 if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2821 eval "ac_cv_func_strtod=yes"
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2826 eval "ac_cv_func_strtod=no"
2831 if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
2832 echo "$ac_t""yes" 1>&6
2835 echo "$ac_t""no" 1>&6
2839 if test "$tcl_strtod" = 1; then
2840 echo $ac_n "checking for Solaris strtod bug""... $ac_c" 1>&6
2841 echo "configure:2842: checking for Solaris strtod bug" >&5
2842 if test "$cross_compiling" = yes; then
2845 cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2849 extern double strtod();
2852 char *string = "NaN";
2854 strtod(string, &term);
2855 if ((term != string) && (term[-1] == 0)) {
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2873 if test $tcl_ok = 1; then
2874 echo "$ac_t""ok" 1>&6
2876 echo "$ac_t""buggy" 1>&6
2877 LIBOBJS="$LIBOBJS fixstrtod.o"
2878 cat >> confdefs.h <<\EOF
2879 #define strtod fixstrtod
2885 #--------------------------------------------------------------------
2886 # Check for various typedefs and provide substitutes if
2888 #--------------------------------------------------------------------
2890 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2891 echo "configure:2892: checking for ANSI C header files" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2904 { (eval echo configure:2905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2906 if test -z "$ac_err"; then
2908 ac_cv_header_stdc=yes
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2914 ac_cv_header_stdc=no
2918 if test $ac_cv_header_stdc = yes; then
2919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2926 egrep "memchr" >/dev/null 2>&1; then
2930 ac_cv_header_stdc=no
2936 if test $ac_cv_header_stdc = yes; then
2937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 egrep "free" >/dev/null 2>&1; then
2948 ac_cv_header_stdc=no
2954 if test $ac_cv_header_stdc = yes; then
2955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2956 if test "$cross_compiling" = yes; then
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2963 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2964 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2966 int main () { int i; for (i = 0; i < 256; i++)
2967 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 ac_cv_header_stdc=no
2986 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2987 if test $ac_cv_header_stdc = yes; then
2988 cat >> confdefs.h <<\EOF
2989 #define STDC_HEADERS 1
2994 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2995 echo "configure:2996: checking for mode_t" >&5
2996 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 cat > conftest.$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3002 #include <sys/types.h>
3008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3009 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3011 ac_cv_type_mode_t=yes
3014 ac_cv_type_mode_t=no
3019 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3020 if test $ac_cv_type_mode_t = no; then
3021 cat >> confdefs.h <<\EOF
3027 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3028 echo "configure:3029: checking for pid_t" >&5
3029 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 #include <sys/types.h>
3041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3042 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3044 ac_cv_type_pid_t=yes
3052 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3053 if test $ac_cv_type_pid_t = no; then
3054 cat >> confdefs.h <<\EOF
3060 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3061 echo "configure:3062: checking for size_t" >&5
3062 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <sys/types.h>
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3077 ac_cv_type_size_t=yes
3080 ac_cv_type_size_t=no
3085 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3086 if test $ac_cv_type_size_t = no; then
3087 cat >> confdefs.h <<\EOF
3088 #define size_t unsigned
3093 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3094 echo "configure:3095: checking for uid_t in sys/types.h" >&5
3095 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <sys/types.h>
3103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3104 egrep "uid_t" >/dev/null 2>&1; then
3106 ac_cv_type_uid_t=yes
3115 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3116 if test $ac_cv_type_uid_t = no; then
3117 cat >> confdefs.h <<\EOF
3121 cat >> confdefs.h <<\EOF
3128 #--------------------------------------------------------------------
3129 # If a system doesn't have an opendir function (man, that's old!)
3130 # then we have to supply a different version of dirent.h which
3131 # is compatible with the substitute version of opendir that's
3132 # provided. This version only works with V7-style directories.
3133 #--------------------------------------------------------------------
3135 echo $ac_n "checking for opendir""... $ac_c" 1>&6
3136 echo "configure:3137: checking for opendir" >&5
3137 if eval "test \"`echo '$''{'ac_cv_func_opendir'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143 /* System header to define __stub macros and hopefully few prototypes,
3144 which can conflict with char opendir(); below. */
3146 /* Override any gcc2 internal prototype to avoid an error. */
3147 /* We use char because int might match the return type of a gcc2
3148 builtin and then its argument prototype would still apply. */
3153 /* The GNU C library defines this for functions which it implements
3154 to always fail with ENOSYS. Some functions are actually named
3155 something starting with __ and the normal name is an alias. */
3156 #if defined (__stub_opendir) || defined (__stub___opendir)
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 eval "ac_cv_func_opendir=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 eval "ac_cv_func_opendir=no"
3176 if eval "test \"`echo '$ac_cv_func_'opendir`\" = yes"; then
3177 echo "$ac_t""yes" 1>&6
3180 echo "$ac_t""no" 1>&6
3181 cat >> confdefs.h <<\EOF
3182 #define USE_DIRENT2_H 1
3188 #--------------------------------------------------------------------
3189 # The check below checks whether <sys/wait.h> defines the type
3190 # "union wait" correctly. It's needed because of weirdness in
3191 # HP-UX where "union wait" is defined in both the BSD and SYS-V
3192 # environments. Checking the usability of WIFEXITED seems to do
3194 #--------------------------------------------------------------------
3196 echo $ac_n "checking union wait""... $ac_c" 1>&6
3197 echo "configure:3198: checking union wait" >&5
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <sys/types.h>
3202 #include <sys/wait.h>
3206 WIFEXITED(x); /* Generates compiler error if WIFEXITED
3211 if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3221 echo "$ac_t""$tcl_ok" 1>&6
3222 if test $tcl_ok = no; then
3223 cat >> confdefs.h <<\EOF
3224 #define NO_UNION_WAIT 1
3229 #--------------------------------------------------------------------
3230 # Check to see whether the system supports the matherr function
3231 # and its associated type "struct exception".
3232 #--------------------------------------------------------------------
3234 echo $ac_n "checking matherr support""... $ac_c" 1>&6
3235 echo "configure:3236: checking matherr support" >&5
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3258 echo "$ac_t""$tcl_ok" 1>&6
3259 if test $tcl_ok = yes; then
3260 cat >> confdefs.h <<\EOF
3261 #define NEED_MATHERR 1
3266 #--------------------------------------------------------------------
3267 # Check to see whether the system provides a vfork kernel call.
3268 # If not, then use fork instead. Also, check for a problem with
3269 # vforks and signals that can cause core dumps if a vforked child
3270 # resets a signal handler. If the problem exists, then use fork
3272 #--------------------------------------------------------------------
3274 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3275 echo "configure:3276: checking return type of signal handlers" >&5
3276 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 #include <sys/types.h>
3288 extern "C" void (*signal (int, void (*)(int)))(int);
3290 void (*signal ()) ();
3297 if { (eval echo configure:3298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3299 ac_cv_type_signal=void
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 ac_cv_type_signal=int
3309 echo "$ac_t""$ac_cv_type_signal" 1>&6
3310 cat >> confdefs.h <<EOF
3311 #define RETSIGTYPE $ac_cv_type_signal
3315 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3316 echo "configure:3317: checking for vfork" >&5
3317 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* System header to define __stub macros and hopefully few prototypes,
3324 which can conflict with char vfork(); below. */
3326 /* Override any gcc2 internal prototype to avoid an error. */
3327 /* We use char because int might match the return type of a gcc2
3328 builtin and then its argument prototype would still apply. */
3333 /* The GNU C library defines this for functions which it implements
3334 to always fail with ENOSYS. Some functions are actually named
3335 something starting with __ and the normal name is an alias. */
3336 #if defined (__stub_vfork) || defined (__stub___vfork)
3344 if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 eval "ac_cv_func_vfork=yes"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3351 eval "ac_cv_func_vfork=no"
3356 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3360 echo "$ac_t""no" 1>&6
3364 if test "$tcl_ok" = 1; then
3365 echo $ac_n "checking vfork/signal bug""... $ac_c" 1>&6
3366 echo "configure:3367: checking vfork/signal bug" >&5;
3367 if test "$cross_compiling" = yes; then
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3376 #include <sys/wait.h>
3386 (void) signal(SIGCHLD, sigProc);
3390 } else if (pid == 0) {
3391 (void) signal(SIGCHLD, SIG_DFL);
3396 exit((gotSignal) ? 0 : 1);
3399 if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3411 if test "$tcl_ok" = 1; then
3412 echo "$ac_t""ok" 1>&6
3414 echo "$ac_t""buggy, using fork instead" 1>&6
3418 if test "$tcl_ok" = 0; then
3419 cat >> confdefs.h <<\EOF
3425 #--------------------------------------------------------------------
3426 # Check whether there is an strncasecmp function on this system.
3427 # This is a bit tricky because under SCO it's in -lsocket and
3428 # under Sequent Dynix it's in -linet.
3429 #--------------------------------------------------------------------
3431 echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6
3432 echo "configure:3433: checking for strncasecmp" >&5
3433 if eval "test \"`echo '$''{'ac_cv_func_strncasecmp'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 /* System header to define __stub macros and hopefully few prototypes,
3440 which can conflict with char strncasecmp(); below. */
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3449 /* The GNU C library defines this for functions which it implements
3450 to always fail with ENOSYS. Some functions are actually named
3451 something starting with __ and the normal name is an alias. */
3452 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3462 eval "ac_cv_func_strncasecmp=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3467 eval "ac_cv_func_strncasecmp=no"
3472 if eval "test \"`echo '$ac_cv_func_'strncasecmp`\" = yes"; then
3473 echo "$ac_t""yes" 1>&6
3476 echo "$ac_t""no" 1>&6
3480 if test "$tcl_ok" = 0; then
3481 echo $ac_n "checking for strncasecmp in -lsocket""... $ac_c" 1>&6
3482 echo "configure:3483: checking for strncasecmp in -lsocket" >&5
3483 ac_lib_var=`echo socket'_'strncasecmp | sed 'y%./+-%__p_%'`
3484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 ac_save_LIBS="$LIBS"
3488 LIBS="-lsocket $LIBS"
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 /* Override any gcc2 internal prototype to avoid an error. */
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 eval "ac_cv_lib_$ac_lib_var=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_lib_$ac_lib_var=no"
3511 LIBS="$ac_save_LIBS"
3514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3518 echo "$ac_t""no" 1>&6
3523 if test "$tcl_ok" = 0; then
3524 echo $ac_n "checking for strncasecmp in -linet""... $ac_c" 1>&6
3525 echo "configure:3526: checking for strncasecmp in -linet" >&5
3526 ac_lib_var=`echo inet'_'strncasecmp | sed 'y%./+-%__p_%'`
3527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 ac_save_LIBS="$LIBS"
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 /* We use char because int might match the return type of a gcc2
3537 builtin and then its argument prototype would still apply. */
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3546 eval "ac_cv_lib_$ac_lib_var=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_lib_$ac_lib_var=no"
3554 LIBS="$ac_save_LIBS"
3557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3558 echo "$ac_t""yes" 1>&6
3561 echo "$ac_t""no" 1>&6
3566 if test "$tcl_ok" = 0; then
3567 LIBOBJS="$LIBOBJS strncasecmp.o"
3570 #--------------------------------------------------------------------
3571 # The code below deals with several issues related to gettimeofday:
3572 # 1. Some systems don't provide a gettimeofday function at all
3573 # (set NO_GETTOD if this is the case).
3574 # 2. SGI systems don't use the BSD form of the gettimeofday function,
3575 # but they have a BSDgettimeofday function that can be used instead.
3576 # 3. See if gettimeofday is declared in the <sys/time.h> header file.
3577 # if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can
3579 #--------------------------------------------------------------------
3581 echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
3582 echo "configure:3583: checking for BSDgettimeofday" >&5
3583 if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 /* System header to define __stub macros and hopefully few prototypes,
3590 which can conflict with char BSDgettimeofday(); below. */
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595 char BSDgettimeofday();
3599 /* The GNU C library defines this for functions which it implements
3600 to always fail with ENOSYS. Some functions are actually named
3601 something starting with __ and the normal name is an alias. */
3602 #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
3610 if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3612 eval "ac_cv_func_BSDgettimeofday=yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3617 eval "ac_cv_func_BSDgettimeofday=no"
3622 if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 cat >> confdefs.h <<\EOF
3625 #define HAVE_BSDGETTIMEOFDAY 1
3629 echo "$ac_t""no" 1>&6
3630 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3631 echo "configure:3632: checking for gettimeofday" >&5
3632 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 /* System header to define __stub macros and hopefully few prototypes,
3639 which can conflict with char gettimeofday(); below. */
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3644 char gettimeofday();
3648 /* The GNU C library defines this for functions which it implements
3649 to always fail with ENOSYS. Some functions are actually named
3650 something starting with __ and the normal name is an alias. */
3651 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3661 eval "ac_cv_func_gettimeofday=yes"
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 eval "ac_cv_func_gettimeofday=no"
3671 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3675 echo "$ac_t""no" 1>&6
3676 cat >> confdefs.h <<\EOF
3684 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
3685 echo "configure:3686: checking for gettimeofday declaration" >&5
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3689 #include <sys/time.h>
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 egrep "gettimeofday" >/dev/null 2>&1; then
3694 echo "$ac_t""present" 1>&6
3698 echo "$ac_t""missing" 1>&6
3699 cat >> confdefs.h <<\EOF
3700 #define GETTOD_NOT_DECLARED 1
3708 #--------------------------------------------------------------------
3709 # Interactive UNIX requires -linet instead of -lsocket, plus it
3710 # needs net/errno.h to define the socket-related error codes.
3711 #--------------------------------------------------------------------
3713 echo $ac_n "checking for main in -linet""... $ac_c" 1>&6
3714 echo "configure:3715: checking for main in -linet" >&5
3715 ac_lib_var=`echo inet'_'main | sed 'y%./+-%__p_%'`
3716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 ac_save_LIBS="$LIBS"
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3736 eval "ac_cv_lib_$ac_lib_var=no"
3739 LIBS="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3746 echo "$ac_t""no" 1>&6
3749 ac_safe=`echo "net/errno.h" | sed 'y%./+-%__p_%'`
3750 echo $ac_n "checking for net/errno.h""... $ac_c" 1>&6
3751 echo "configure:3752: checking for net/errno.h" >&5
3752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 #include <net/errno.h>
3760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3761 { (eval echo configure:3762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3763 if test -z "$ac_err"; then
3765 eval "ac_cv_header_$ac_safe=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_header_$ac_safe=no"
3775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 cat >> confdefs.h <<\EOF
3778 #define HAVE_NET_ERRNO_H 1
3782 echo "$ac_t""no" 1>&6
3786 #--------------------------------------------------------------------
3787 # The following code checks to see whether it is possible to get
3788 # signed chars on this platform. This is needed in order to
3789 # properly generate sign-extended ints from character values.
3790 #--------------------------------------------------------------------
3792 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3793 echo "configure:3794: checking whether char is unsigned" >&5
3794 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 if test "$GCC" = yes; then
3798 # GCC predefines this symbol on systems where it applies.
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 #ifdef __CHAR_UNSIGNED__
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 egrep "yes" >/dev/null 2>&1; then
3810 ac_cv_c_char_unsigned=yes
3813 ac_cv_c_char_unsigned=no
3818 if test "$cross_compiling" = yes; then
3819 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3824 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3825 #if !defined(__STDC__) || __STDC__ != 1
3829 volatile char c = 255; exit(c < 0);
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3834 ac_cv_c_char_unsigned=yes
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3839 ac_cv_c_char_unsigned=no
3847 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3848 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3849 cat >> confdefs.h <<\EOF
3850 #define __CHAR_UNSIGNED__ 1
3855 echo $ac_n "checking signed char declarations""... $ac_c" 1>&6
3856 echo "configure:3857: checking signed char declarations" >&5
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3868 if { (eval echo configure:3869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3878 echo "$ac_t""$tcl_ok" 1>&6
3879 if test $tcl_ok = yes; then
3880 cat >> confdefs.h <<\EOF
3881 #define HAVE_SIGNED_CHAR 1
3886 #--------------------------------------------------------------------
3887 # Check for the existence of the -lsocket and -lnsl libraries.
3888 # The order here is important, so that they end up in the right
3889 # order in the command line generated by make. Here are some
3890 # special considerations:
3891 # 1. Use "connect" and "accept" to check for -lsocket, and
3892 # "gethostbyname" to check for -lnsl.
3893 # 2. Use each function name only once: can't redo a check because
3894 # autoconf caches the results of the last check and won't redo it.
3895 # 3. Use -lnsl and -lsocket only if they supply procedures that
3896 # aren't already present in the normal libraries. This is because
3897 # IRIX 5.2 has libraries, but they aren't needed and they're
3898 # bogus: they goof up name resolution if used.
3899 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3900 # To get around this problem, check for both libraries together
3901 # if -lsocket doesn't work by itself.
3902 #--------------------------------------------------------------------
3904 # CYGNUS LOCAL: Store any socket library(ies) in the cache, and don't
3905 # mess up the cache values of the functions we check for.
3906 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3907 echo "configure:3908: checking for socket libraries" >&5
3908 if eval "test \"`echo '$''{'tcl_cv_lib_sockets'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3913 unset ac_cv_func_connect
3914 echo $ac_n "checking for connect""... $ac_c" 1>&6
3915 echo "configure:3916: checking for connect" >&5
3916 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 /* System header to define __stub macros and hopefully few prototypes,
3923 which can conflict with char connect(); below. */
3925 /* Override any gcc2 internal prototype to avoid an error. */
3926 /* We use char because int might match the return type of a gcc2
3927 builtin and then its argument prototype would still apply. */
3932 /* The GNU C library defines this for functions which it implements
3933 to always fail with ENOSYS. Some functions are actually named
3934 something starting with __ and the normal name is an alias. */
3935 #if defined (__stub_connect) || defined (__stub___connect)
3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3945 eval "ac_cv_func_connect=yes"
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 eval "ac_cv_func_connect=no"
3955 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3956 echo "$ac_t""yes" 1>&6
3959 echo "$ac_t""no" 1>&6
3963 if test "$tcl_checkSocket" = 1; then
3964 unset ac_cv_func_connect
3965 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3966 echo "configure:3967: checking for main in -lsocket" >&5
3967 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 ac_save_LIBS="$LIBS"
3972 LIBS="-lsocket $LIBS"
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3981 if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983 eval "ac_cv_lib_$ac_lib_var=yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3988 eval "ac_cv_lib_$ac_lib_var=no"
3991 LIBS="$ac_save_LIBS"
3994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3996 tcl_cv_lib_sockets="-lsocket"
3998 echo "$ac_t""no" 1>&6
4003 if test "$tcl_checkBoth" = 1; then
4005 LIBS="$LIBS -lsocket -lnsl"
4006 unset ac_cv_func_accept
4007 echo $ac_n "checking for accept""... $ac_c" 1>&6
4008 echo "configure:4009: checking for accept" >&5
4009 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 /* System header to define __stub macros and hopefully few prototypes,
4016 which can conflict with char accept(); below. */
4018 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4025 /* The GNU C library defines this for functions which it implements
4026 to always fail with ENOSYS. Some functions are actually named
4027 something starting with __ and the normal name is an alias. */
4028 #if defined (__stub_accept) || defined (__stub___accept)
4036 if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4038 eval "ac_cv_func_accept=yes"
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4043 eval "ac_cv_func_accept=no"
4048 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4049 echo "$ac_t""yes" 1>&6
4051 tcl_cv_lib_sockets="-lsocket -lnsl"
4053 echo "$ac_t""no" 1>&6
4056 unset ac_cv_func_accept
4059 unset ac_cv_func_gethostbyname
4061 LIBS="$LIBS $tcl_cv_lib_sockets"
4062 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4063 echo "configure:4064: checking for gethostbyname" >&5
4064 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 /* System header to define __stub macros and hopefully few prototypes,
4071 which can conflict with char gethostbyname(); below. */
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4076 char gethostbyname();
4080 /* The GNU C library defines this for functions which it implements
4081 to always fail with ENOSYS. Some functions are actually named
4082 something starting with __ and the normal name is an alias. */
4083 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 eval "ac_cv_func_gethostbyname=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_func_gethostbyname=no"
4103 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4104 echo "$ac_t""yes" 1>&6
4107 echo "$ac_t""no" 1>&6
4108 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4109 echo "configure:4110: checking for main in -lnsl" >&5
4110 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 ac_save_LIBS="$LIBS"
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 eval "ac_cv_lib_$ac_lib_var=no"
4134 LIBS="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 tcl_cv_lib_sockets="$tcl_cv_lib_sockets -lnsl"
4141 echo "$ac_t""no" 1>&6
4146 unset ac_cv_func_gethostbyname
4151 echo "$ac_t""$tcl_cv_lib_sockets" 1>&6
4152 test -z "$tcl_cv_lib_sockets" || LIBS="$LIBS $tcl_cv_lib_sockets"
4154 #--------------------------------------------------------------------
4155 # The statements below define a collection of symbols related to
4156 # dynamic loading and shared libraries:
4158 # DL_OBJS - Name of the object file that implements dynamic
4159 # loading for Tcl on this system.
4160 # DL_LIBS - Library file(s) to include in tclsh and other base
4161 # applications in order for the "load" command to work.
4162 # LD_FLAGS - Flags to pass to the compiler when linking object
4163 # files into an executable application binary such
4165 # LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib",
4166 # that tell the run-time dynamic linker where to look
4167 # for shared libraries such as libtcl.so. Depends on
4168 # the variable LIB_RUNTIME_DIR in the Makefile.
4169 # MAKE_LIB - Command to execute to build the Tcl library;
4170 # differs depending on whether or not Tcl is being
4171 # compiled as a shared library.
4172 # SHLIB_CFLAGS - Flags to pass to cc when compiling the components
4173 # of a shared library (may request position-independent
4174 # code, among other things).
4175 # SHLIB_LD - Base command to use for combining object files
4176 # into a shared library.
4177 # SHLIB_LD_LIBS - Dependent libraries for the linker to scan when
4178 # creating shared libraries. This symbol typically
4179 # goes at the end of the "ld" commands that build
4180 # shared libraries. The value of the symbol is
4181 # "${LIBS}" if all of the dependent libraries should
4182 # be specified when creating a shared library. If
4183 # dependent libraries should not be specified (as on
4184 # SunOS 4.x, where they cause the link to fail, or in
4185 # general if Tcl and Tk aren't themselves shared
4186 # libraries), then this symbol has an empty string
4188 # SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable
4189 # extensions. An empty string means we don't know how
4190 # to use shared libraries on this platform.
4191 # TCL_LIB_FILE - Name of the file that contains the Tcl library, such
4192 # as libtcl7.8.so or libtcl7.8.a.
4193 # TCL_LIB_SUFFIX -Specifies everything that comes after the "libtcl"
4194 # in the shared library name, using the $VERSION variable
4195 # to put the version in the right place. This is used
4196 # by platforms that need non-standard library names.
4197 # Examples: ${VERSION}.so.1.1 on NetBSD, since it needs
4198 # to have a version after the .so, and ${VERSION}.a
4199 # on AIX, since the Tcl shared library needs to have
4200 # a .a extension whereas shared objects for loadable
4201 # extensions have a .so extension. Defaults to
4202 # ${VERSION}${SHLIB_SUFFIX}.
4203 #--------------------------------------------------------------------
4205 # Step 1: set the variable "system" to hold the name and version number
4206 # for the system. This can usually be done via the "uname" command, but
4207 # there are a few systems, like Next, where this doesn't work.
4209 echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
4210 echo "configure:4211: checking system version (for dynamic loading)" >&5
4211 if test -f /usr/lib/NextStep/software_version; then
4212 system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
4214 system=`uname -s`-`uname -r`
4215 if test "$?" -ne 0 ; then
4216 echo "$ac_t""unknown (can't find uname command)" 1>&6
4219 # Special check for weird MP-RAS system (uname returns weird
4220 # results, and the version is kept in special file).
4222 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
4223 system=MP-RAS-`awk '{print $3}' /etc/.relid'`
4225 if test "`uname -s`" = "AIX" ; then
4226 system=AIX-`uname -v`.`uname -r`
4228 echo "$ac_t""$system" 1>&6
4232 # Step 2: check for existence of -ldl library. This is needed because
4233 # Linux can use either -ldl or -ldld for dynamic loading.
4235 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4236 echo "configure:4237: checking for dlopen in -ldl" >&5
4237 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 ac_save_LIBS="$LIBS"
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4255 if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4257 eval "ac_cv_lib_$ac_lib_var=yes"
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4262 eval "ac_cv_lib_$ac_lib_var=no"
4265 LIBS="$ac_save_LIBS"
4268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4272 echo "$ac_t""no" 1>&6
4277 # Step 3: set configuration options based on system name and version.
4279 fullSrcDir=`cd $srcdir; pwd`
4280 TCL_SHARED_LIB_SUFFIX=""
4281 TCL_UNSHARED_LIB_SUFFIX=""
4282 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
4283 ECHO_VERSION='`echo ${VERSION}`'
4284 TCL_LIB_VERSIONS_OK=ok
4288 SHLIB_LD="$fullSrcDir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
4289 SHLIB_LD_LIBS='${LIBS}'
4291 DL_OBJS="tclLoadDl.o"
4294 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4296 TCL_SHARED_LIB_SUFFIX='${VERSION}.a'
4300 SHLIB_LD="$fullSrcDir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
4301 SHLIB_LD_LIBS='${LIBS}'
4303 DL_OBJS="tclLoadDl.o tclLoadAix.o"
4306 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4307 TCL_SHARED_LIB_SUFFIX='${VERSION}.a'
4309 BSD/OS-2.1*|BSD/OS-3*)
4311 SHLIB_LD="shlicc -r"
4312 SHLIB_LD_LIBS='${LIBS}'
4314 DL_OBJS="tclLoadDl.o"
4320 SHLIB_CFLAGS="-K PIC"
4324 DL_OBJS="tclLoadDl.o"
4329 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
4330 # CYGNUS LOCAL: Handle gcc and versions of HP-UX that can't
4331 # do dynamic linking.
4332 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4333 echo "configure:4334: checking for shl_load in -ldld" >&5
4334 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 ac_save_LIBS="$LIBS"
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 eval "ac_cv_lib_$ac_lib_var=yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4359 eval "ac_cv_lib_$ac_lib_var=no"
4362 LIBS="$ac_save_LIBS"
4365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4369 echo "$ac_t""no" 1>&6
4373 if test "$tcl_ok" = "yes"; then
4374 if test "$GCC" = yes; then
4375 SHLIB_CFLAGS="-fPIC"
4376 SHLIB_LD="$CC -shared -fPIC"
4384 DL_OBJS="tclLoadShl.o"
4387 # The GNU linker requires the -export-dynamic
4388 # option to make all symbols visible in the dynamic symbol
4389 # table. Note that the HP linker will give errors
4390 # -export-dynamic, but will still exit successfully.
4391 # Adding a -L option will make it fail.
4392 hold_ldflags=$LDFLAGS
4393 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4394 echo "configure:4395: checking for the ld -export-dynamic flag" >&5
4395 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -L`pwd`"
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4414 LDFLAGS=$hold_ldflags
4415 echo "$ac_t""$found" 1>&6
4416 if test $found = yes; then
4417 LD_FLAGS="-Wl,-export-dynamic"
4418 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4421 LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4429 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4430 SHLIB_LD_LIBS='${LIBS}'
4431 DL_OBJS="tclLoadAout.o"
4433 LD_FLAGS="-Wl,-D,08000000"
4434 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4435 TCL_SHARED_LIB_SUFFIX='${VERSION}.a'
4439 SHLIB_LD="ld -n32 -shared -rdata_shared"
4442 DL_OBJS="tclLoadDl.o"
4445 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4449 SHLIB_LD="ld -n32 -shared -rdata_shared -rpath /usr/local/lib"
4452 DL_OBJS="tclLoadDl.o"
4455 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4458 SHLIB_CFLAGS="-fPIC"
4461 if test "$have_dl" = yes; then
4462 SHLIB_LD="${CC} -shared"
4463 DL_OBJS="tclLoadDl.o"
4465 LD_FLAGS="-rdynamic"
4468 ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
4469 echo $ac_n "checking for dld.h""... $ac_c" 1>&6
4470 echo "configure:4471: checking for dld.h" >&5
4471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4480 { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4482 if test -z "$ac_err"; then
4484 eval "ac_cv_header_$ac_safe=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_header_$ac_safe=no"
4494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4497 SHLIB_LD="ld -shared"
4498 DL_OBJS="tclLoadDld.o"
4503 echo "$ac_t""no" 1>&6
4509 SHLIB_CFLAGS="-K PIC"
4513 DL_OBJS="tclLoadDl.o"
4519 SHLIB_CFLAGS="-K PIC"
4523 DL_OBJS="tclLoadDl.o"
4525 LD_FLAGS="-Wl,-Bexport"
4528 NetBSD-*|FreeBSD-*|OpenBSD-*)
4529 # Not available on all versions: check for include file.
4530 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
4531 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
4532 echo "configure:4533: checking for dlfcn.h" >&5
4533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4542 { (eval echo configure:4543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4544 if test -z "$ac_err"; then
4546 eval "ac_cv_header_$ac_safe=yes"
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4552 eval "ac_cv_header_$ac_safe=no"
4556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4559 SHLIB_CFLAGS="-fpic"
4560 SHLIB_LD="ld -Bshareable -x"
4563 DL_OBJS="tclLoadDl.o"
4567 TCL_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
4570 echo "$ac_t""no" 1>&6
4573 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4574 SHLIB_LD_LIBS='${LIBS}'
4576 DL_OBJS="tclLoadAout.o"
4579 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4580 TCL_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
4585 # FreeBSD doesn't handle version numbers with dots.
4587 TCL_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
4588 TCL_LIB_VERSIONS_OK=nodots
4592 SHLIB_LD="cc -nostdlib -r"
4595 DL_OBJS="tclLoadNext.o"
4600 OSF1-1.0|OSF1-1.1|OSF1-1.2)
4601 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
4603 # Hack: make package name same as library name
4604 SHLIB_LD='ld -R -export $@:'
4607 DL_OBJS="tclLoadOSF.o"
4613 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
4614 SHLIB_CFLAGS="-fpic"
4615 SHLIB_LD="ld -shared"
4618 DL_OBJS="tclLoadDl.o"
4626 SHLIB_LD='ld -shared -expect_unresolved "*"'
4629 DL_OBJS="tclLoadDl.o"
4632 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4636 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4637 SHLIB_LD_LIBS='${LIBS}'
4639 DL_OBJS="tclLoadAout.o"
4641 LD_FLAGS="-Wl,-D,08000000"
4642 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4645 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
4646 # this test works, since "uname -s" was non-standard in 3.2.4 and
4648 SHLIB_CFLAGS="-Kpic -belf"
4652 DL_OBJS="tclLoadDl.o"
4654 LD_FLAGS="-belf -Wl,-Bexport"
4658 SHLIB_CFLAGS="-K PIC"
4662 DL_OBJS="tclLoadDl.o"
4668 # CYGNUS LOCAL: gcc uses a different option than native cc.
4669 if test "$GCC" = yes; then
4670 SHLIB_CFLAGS="-fPIC"
4671 SHLIB_LD="$CC -shared -fPIC"
4680 DL_OBJS="tclLoadDl.o"
4683 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4685 # SunOS can't handle version numbers with dots in them in library
4686 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
4687 # requires an extra version number at the end of .so file names.
4688 # So, the library has to have a name like libtcl75.so.1.0
4690 TCL_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
4691 TCL_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
4692 TCL_LIB_VERSIONS_OK=nodots
4695 # CYGNUS LOCAL: gcc uses a different option than native cc.
4696 if test "$GCC" = yes; then
4697 SHLIB_CFLAGS="-fPIC"
4698 SHLIB_LD="$CC -shared -fPIC"
4700 SHLIB_CFLAGS="-KPIC"
4701 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
4705 # Note: need the LIBS below, otherwise Tk won't find Tcl's
4706 # symbols when dynamically loaded into tclsh.
4708 SHLIB_LD_LIBS='${LIBS}'
4710 DL_OBJS="tclLoadDl.o"
4712 # CYGNUS LOCAL: The GNU linker requires the -export-dynamic
4713 # option to make all symbols visible in the dynamic symbol
4715 hold_ldflags=$LDFLAGS
4716 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4717 echo "configure:4718: checking for the ld -export-dynamic flag" >&5
4718 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4737 LDFLAGS=$hold_ldflags
4738 echo "$ac_t""$found" 1>&6
4739 if test $found = yes; then
4740 LD_FLAGS="-Wl,-export-dynamic"
4741 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4744 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
4751 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4752 SHLIB_LD_LIBS='${LIBS}'
4753 DL_OBJS="tclLoadAout.o"
4755 # CYGNUS LOCAL: The GNU linker doesn't accept `-D 08000000'. It
4756 # doesn't appear to be needed, either.
4757 hold_ldflags="$LDFLAGS"
4758 echo $ac_n "checking whether ld accepts -D 08000000""... $ac_c" 1>&6
4759 echo "configure:4760: checking whether ld accepts -D 08000000" >&5
4760 LD_FLAGS="-Wl,-D,08000000"
4761 LDFLAGS="${LDFLAGS} -Wl,-D,08000000"
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4780 LDFLAGS=$hold_ldflags
4781 echo "$ac_t""$found" 1>&6
4782 if test $found = yes; then
4783 LD_FLAGS="-Wl,-D,08000000"
4788 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4790 UNIX_SV* | UnixWare-5*)
4791 SHLIB_CFLAGS="-KPIC"
4795 DL_OBJS="tclLoadDl.o"
4797 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
4798 # that don't grok the -Bexport option. Test that it does.
4799 hold_ldflags=$LDFLAGS
4800 echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6
4801 echo "configure:4802: checking for ld accepts -Bexport flag" >&5
4802 LDFLAGS="${LDFLAGS} -Wl,-Bexport"
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4811 if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4821 LDFLAGS=$hold_ldflags
4822 echo "$ac_t""$found" 1>&6
4823 if test $found = yes; then
4824 LD_FLAGS="-Wl,-Bexport"
4832 # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
4833 # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop,
4834 # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
4835 # to determine which of several header files defines the a.out file
4836 # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we
4837 # support only a file format that is more or less version-7-compatible.
4839 # - a.out files must begin with `struct exec'.
4840 # - the N_TXTOFF on the `struct exec' must compute the seek address
4841 # of the text segment
4842 # - The `struct exec' must contain a_magic, a_text, a_data, a_bss
4843 # and a_entry fields.
4844 # The following compilation should succeed if and only if either sys/exec.h
4845 # or a.out.h is usable for the purpose.
4847 # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
4848 # `struct exec' includes a second header that contains information that
4849 # duplicates the v7 fields that are needed.
4851 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
4852 echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6
4853 echo "configure:4854: checking sys/exec.h" >&5
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <sys/exec.h>
4863 #if defined(__mips) || defined(mips)
4864 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
4866 seek = N_TXTOFF (foo);
4868 flag = (foo.a_magic == OMAGIC);
4869 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
4873 if { (eval echo configure:4874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4883 echo "$ac_t""$tcl_ok" 1>&6
4884 if test $tcl_ok = usable; then
4885 cat >> confdefs.h <<\EOF
4886 #define USE_SYS_EXEC_H 1
4890 echo $ac_n "checking a.out.h""... $ac_c" 1>&6
4891 echo "configure:4892: checking a.out.h" >&5
4892 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4901 #if defined(__mips) || defined(mips)
4902 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
4904 seek = N_TXTOFF (foo);
4906 flag = (foo.a_magic == OMAGIC);
4907 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
4911 if { (eval echo configure:4912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4921 echo "$ac_t""$tcl_ok" 1>&6
4922 if test $tcl_ok = usable; then
4923 cat >> confdefs.h <<\EOF
4924 #define USE_A_OUT_H 1
4928 echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6
4929 echo "configure:4930: checking sys/exec_aout.h" >&5
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 #include <sys/exec_aout.h>
4939 #if defined(__mips) || defined(mips)
4940 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
4942 seek = N_TXTOFF (foo);
4944 flag = (foo.a_midmag == OMAGIC);
4945 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
4949 if { (eval echo configure:4950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4959 echo "$ac_t""$tcl_ok" 1>&6
4960 if test $tcl_ok = usable; then
4961 cat >> confdefs.h <<\EOF
4962 #define USE_SYS_EXEC_AOUT_H 1
4972 # Step 5: disable dynamic loading if requested via a command-line switch.
4974 # Check whether --enable-load or --disable-load was given.
4975 if test "${enable_load+set}" = set; then
4976 enableval="$enable_load"
4982 if test "$tcl_ok" = "no"; then
4986 if test "x$DL_OBJS" != "x" ; then
4987 BUILD_DLTEST="\$(DLTEST_TARGETS)"
4989 echo "Can't figure out how to do dynamic loading or shared libraries"
4990 echo "on this system."
4994 DL_OBJS="tclLoadNone.o"
5001 # If we're running gcc, then change the C flags for compiling shared
5002 # libraries to the right flags for gcc, instead of those for the
5003 # standard manufacturer compiler.
5005 if test "$DL_OBJS" != "tclLoadNone.o" ; then
5006 if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
5014 NetBSD-*|FreeBSD-*|OpenBSD-*)
5021 SHLIB_CFLAGS="-fPIC"
5027 #--------------------------------------------------------------------
5028 # The statements below check for systems where POSIX-style
5029 # non-blocking I/O (O_NONBLOCK) doesn't work or is unimplemented.
5030 # On these systems (mostly older ones), use the old BSD-style
5031 # FIONBIO approach instead.
5032 #--------------------------------------------------------------------
5034 for ac_hdr in sys/ioctl.h
5036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5038 echo "configure:5039: checking for $ac_hdr" >&5
5039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5048 { (eval echo configure:5049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5050 if test -z "$ac_err"; then
5052 eval "ac_cv_header_$ac_safe=yes"
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5058 eval "ac_cv_header_$ac_safe=no"
5062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5064 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5065 cat >> confdefs.h <<EOF
5066 #define $ac_tr_hdr 1
5070 echo "$ac_t""no" 1>&6
5074 for ac_hdr in sys/filio.h
5076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5078 echo "configure:5079: checking for $ac_hdr" >&5
5079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5088 { (eval echo configure:5089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5090 if test -z "$ac_err"; then
5092 eval "ac_cv_header_$ac_safe=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5098 eval "ac_cv_header_$ac_safe=no"
5102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5105 cat >> confdefs.h <<EOF
5106 #define $ac_tr_hdr 1
5110 echo "$ac_t""no" 1>&6
5114 echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
5115 echo "configure:5116: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
5116 if test -f /usr/lib/NextStep/software_version; then
5117 system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
5119 system=`uname -s`-`uname -r`
5120 if test "$?" -ne 0 ; then
5123 # Special check for weird MP-RAS system (uname returns weird
5124 # results, and the version is kept in special file).
5126 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
5127 system=MP-RAS-`awk '{print $3}' /etc/.relid'`
5129 if test "`uname -s`" = "AIX" ; then
5130 system=AIX-`uname -v`.`uname -r`
5135 # There used to be code here to use FIONBIO under AIX. However, it
5136 # was reported that FIONBIO doesn't work under AIX 3.2.5. Since
5137 # using O_NONBLOCK seems fine under AIX 4.*, I removed the FIONBIO
5138 # code (JO, 5/31/97).
5141 cat >> confdefs.h <<\EOF
5142 #define USE_FIONBIO 1
5145 echo "$ac_t""FIONBIO" 1>&6
5148 cat >> confdefs.h <<\EOF
5149 #define USE_FIONBIO 1
5152 echo "$ac_t""FIONBIO" 1>&6
5155 cat >> confdefs.h <<\EOF
5156 #define USE_FIONBIO 1
5159 echo "$ac_t""FIONBIO" 1>&6
5162 echo "$ac_t""O_NONBLOCK" 1>&6
5166 #--------------------------------------------------------------------
5167 # The statements below define a collection of symbols related to
5168 # building libtcl as a shared library instead of a static library.
5169 #--------------------------------------------------------------------
5172 if test "$TCL_SHARED_LIB_SUFFIX" = "" ; then
5173 TCL_SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}'
5175 if test "$TCL_UNSHARED_LIB_SUFFIX" = "" ; then
5176 TCL_UNSHARED_LIB_SUFFIX='${VERSION}.a'
5178 # Check whether --enable-shared or --disable-shared was given.
5179 if test "${enable_shared+set}" = set; then
5180 enableval="$enable_shared"
5186 # CYGNUS LOCAL: need extra variables for this information.
5187 TCL_SHARED_LIB_FILE=dummy1
5188 TCL_UNSHARED_LIB_FILE=dummy2
5190 if test "$tcl_ok" = "yes" -a "${SHLIB_SUFFIX}" != "" ; then
5192 TCL_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
5193 TCL_LD_SEARCH_FLAGS="${LD_SEARCH_FLAGS}"
5194 eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
5195 TCL_SHARED_LIB_FILE="$TCL_LIB_FILE"
5196 if test "x$DL_OBJS" = "xtclLoadAout.o"; then
5197 MAKE_LIB="ar cr \${TCL_LIB_FILE} \${OBJS}"
5199 MAKE_LIB="\${SHLIB_LD} -o \${TCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
5216 TCL_LD_SEARCH_FLAGS=""
5217 eval "TCL_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}"
5218 TCL_UNSHARED_LIB_FILE="$TCL_LIB_FILE"
5219 MAKE_LIB="$AR cr ${TCL_LIB_FILE} \${OBJS}"
5222 # Note: in the following variable, it's important to use the absolute
5223 # path name of the Tcl directory rather than "..": this is because
5224 # AIX remembers this path and will attempt to use it at run-time to look
5225 # up the Tcl library.
5227 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5228 TCL_BUILD_LIB_SPEC="-L`pwd` -ltcl${VERSION}"
5229 TCL_LIB_SPEC="-L${exec_prefix}/lib -ltcl${VERSION}"
5231 TCL_BUILD_LIB_SPEC="-L`pwd` -ltcl`echo ${VERSION} | tr -d .`"
5232 TCL_LIB_SPEC="-L${exec_prefix}/lib -ltcl`echo ${VERSION} | tr -d .`"
5235 TCL_LIB_FULL_PATH="`pwd`/${TCL_LIB_FILE}"
5237 #--------------------------------------------------------------------
5238 # The statements below define the symbol TCL_PACKAGE_PATH, which
5239 # gives a list of directories that may contain packages. The list
5240 # consists of one directory for machine-dependent binaries and
5241 # another for platform-independent scripts.
5242 #--------------------------------------------------------------------
5244 if test "$prefix" != "$exec_prefix"; then
5245 TCL_PACKAGE_PATH="${exec_prefix}/lib ${prefix}/lib"
5247 TCL_PACKAGE_PATH="${prefix}/lib"
5283 cat > confcache <<\EOF
5284 # This file is a shell script that caches the results of configure
5285 # tests run on this system so they can be shared between configure
5286 # scripts and configure runs. It is not useful on other systems.
5287 # If it contains results you don't want to keep, you may remove or edit it.
5289 # By default, configure uses ./config.cache as the cache file,
5290 # creating it if it does not exist already. You can give configure
5291 # the --cache-file=FILE option to use a different cache file; that is
5292 # what configure does when it calls configure scripts in
5293 # subdirectories, so they share the cache.
5294 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5295 # config.status only pays attention to the cache file if you give it the
5296 # --recheck option to rerun configure.
5299 # The following way of writing the cache mishandles newlines in values,
5300 # but we know of no workaround that is simple, portable, and efficient.
5301 # So, don't put newlines in cache variables' values.
5302 # Ultrix sh set writes to stderr and can't be redirected directly,
5303 # and sets the high bit in the cache file unless we assign to the vars.
5305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5307 # `set' does not quote correctly, so add quotes (double-quote substitution
5308 # turns \\\\ into \\, and sed turns \\ into \).
5310 -e "s/'/'\\\\''/g" \
5311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5314 # `set' quotes correctly as required by POSIX, so do not add quotes.
5315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5318 if cmp -s $cache_file confcache; then
5321 if test -w $cache_file; then
5322 echo "updating cache $cache_file"
5323 cat confcache > $cache_file
5325 echo "not updating unwritable cache $cache_file"
5330 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5333 # Let make expand exec_prefix.
5334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5336 # Any assignment to VPATH causes Sun make to only execute
5337 # the first set of double-colon rules, so remove it if not needed.
5338 # If there is a colon in the path, we need to keep it.
5339 if test "x$srcdir" = x.; then
5340 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5343 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5345 # Transform confdefs.h into DEFS.
5346 # Protect against shell expansion while executing Makefile rules.
5347 # Protect against Makefile macro expansion.
5348 cat > conftest.defs <<\EOF
5349 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
5350 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5355 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5359 # Without the "./", some shells look in PATH for config.status.
5360 : ${CONFIG_STATUS=./config.status}
5362 echo creating $CONFIG_STATUS
5363 rm -f $CONFIG_STATUS
5364 cat > $CONFIG_STATUS <<EOF
5366 # Generated automatically by configure.
5367 # Run this file to recreate the current configuration.
5368 # This directory was configured as follows,
5369 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5371 # $0 $ac_configure_args
5373 # Compiler output produced by configure, useful for debugging
5374 # configure, is in ./config.log if it exists.
5376 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5379 case "\$ac_option" in
5380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5381 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5382 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5383 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5384 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5386 -help | --help | --hel | --he | --h)
5387 echo "\$ac_cs_usage"; exit 0 ;;
5388 *) echo "\$ac_cs_usage"; exit 1 ;;
5392 ac_given_srcdir=$srcdir
5393 ac_given_INSTALL="$INSTALL"
5395 trap 'rm -fr `echo "Makefile tclConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5397 cat >> $CONFIG_STATUS <<EOF
5399 # Protect against being on the right side of a sed subst in config.status.
5400 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5401 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5405 s%@CFLAGS@%$CFLAGS%g
5406 s%@CPPFLAGS@%$CPPFLAGS%g
5407 s%@CXXFLAGS@%$CXXFLAGS%g
5408 s%@FFLAGS@%$FFLAGS%g
5410 s%@LDFLAGS@%$LDFLAGS%g
5412 s%@exec_prefix@%$exec_prefix%g
5413 s%@prefix@%$prefix%g
5414 s%@program_transform_name@%$program_transform_name%g
5415 s%@bindir@%$bindir%g
5416 s%@sbindir@%$sbindir%g
5417 s%@libexecdir@%$libexecdir%g
5418 s%@datadir@%$datadir%g
5419 s%@sysconfdir@%$sysconfdir%g
5420 s%@sharedstatedir@%$sharedstatedir%g
5421 s%@localstatedir@%$localstatedir%g
5422 s%@libdir@%$libdir%g
5423 s%@includedir@%$includedir%g
5424 s%@oldincludedir@%$oldincludedir%g
5425 s%@infodir@%$infodir%g
5426 s%@mandir@%$mandir%g
5427 s%@RANLIB@%$RANLIB%g
5429 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5430 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5431 s%@INSTALL_DATA@%$INSTALL_DATA%g
5432 s%@LIBOBJS@%$LIBOBJS%g
5434 s%@BUILD_DLTEST@%$BUILD_DLTEST%g
5435 s%@DL_LIBS@%$DL_LIBS%g
5436 s%@DL_OBJS@%$DL_OBJS%g
5437 s%@LD_FLAGS@%$LD_FLAGS%g
5438 s%@MAKE_LIB@%$MAKE_LIB%g
5439 s%@MATH_LIBS@%$MATH_LIBS%g
5440 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
5441 s%@SHLIB_LD@%$SHLIB_LD%g
5442 s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
5443 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
5444 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
5445 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
5446 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
5447 s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
5448 s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g
5449 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
5450 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
5451 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
5452 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
5453 s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g
5454 s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g
5455 s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
5456 s%@TCL_SHARED_BUILD@%$TCL_SHARED_BUILD%g
5457 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
5458 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
5459 s%@TCL_UNSHARED_LIB_SUFFIX@%$TCL_UNSHARED_LIB_SUFFIX%g
5460 s%@TCL_VERSION@%$TCL_VERSION%g
5461 s%@TCL_SHARED_LIB_FILE@%$TCL_SHARED_LIB_FILE%g
5462 s%@TCL_UNSHARED_LIB_FILE@%$TCL_UNSHARED_LIB_FILE%g
5467 cat >> $CONFIG_STATUS <<\EOF
5469 # Split the substitutions into bite-sized pieces for seds with
5470 # small command number limits, like on Digital OSF/1 and HP-UX.
5471 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5472 ac_file=1 # Number of current file.
5473 ac_beg=1 # First line for current file.
5474 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5477 while $ac_more_lines; do
5478 if test $ac_beg -gt 1; then
5479 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5481 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5483 if test ! -s conftest.s$ac_file; then
5485 rm -f conftest.s$ac_file
5487 if test -z "$ac_sed_cmds"; then
5488 ac_sed_cmds="sed -f conftest.s$ac_file"
5490 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5492 ac_file=`expr $ac_file + 1`
5494 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5497 if test -z "$ac_sed_cmds"; then
5502 cat >> $CONFIG_STATUS <<EOF
5504 CONFIG_FILES=\${CONFIG_FILES-"Makefile tclConfig.sh"}
5506 cat >> $CONFIG_STATUS <<\EOF
5507 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5510 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5511 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5512 *) ac_file_in="${ac_file}.in" ;;
5515 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5517 # Remove last slash and all that follows it. Not all systems have dirname.
5518 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5519 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5520 # The file is in a subdirectory.
5521 test ! -d "$ac_dir" && mkdir "$ac_dir"
5522 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5523 # A "../" for each directory in $ac_dir_suffix.
5524 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5526 ac_dir_suffix= ac_dots=
5529 case "$ac_given_srcdir" in
5531 if test -z "$ac_dots"; then top_srcdir=.
5532 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5533 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5535 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5536 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5539 case "$ac_given_INSTALL" in
5540 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5541 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5544 echo creating "$ac_file"
5546 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5548 *Makefile*) ac_comsub="1i\\
5549 # $configure_input" ;;
5553 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5555 s%@configure_input@%$configure_input%g
5556 s%@srcdir@%$srcdir%g
5557 s%@top_srcdir@%$top_srcdir%g
5558 s%@INSTALL@%$INSTALL%g
5559 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5564 cat >> $CONFIG_STATUS <<EOF
5567 cat >> $CONFIG_STATUS <<\EOF
5571 chmod +x $CONFIG_STATUS
5572 rm -fr confdefs* $ac_clean_files
5573 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1