os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/win/configure
Update contrib.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-threads build with threads"
17 --enable-shared build and link with shared libraries [--enable-shared]"
19 --enable-64bit enable 64bit support (where applicable = amd64|ia64)"
21 --enable-symbols build with debugging symbols [--disable-symbols]"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file=./config.cache
36 program_transform_name=s,x,x,
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
57 # Initialize some other variables.
60 SHELL=${CONFIG_SHELL-/bin/sh}
61 # Maximum number of lines to put in a shell here document.
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80 # Accept the important Cygnus configure options, so we can diagnose typos.
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
89 -build | --build | --buil | --bui | --bu)
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105 datadir="$ac_optarg" ;;
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
197 -host | --host | --hos | --ho)
199 -host=* | --host=* | --hos=* | --ho=*)
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
214 -libdir | --libdir | --libdi | --libd)
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
241 # Obsolete; use --without-fp.
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305 sbindir="$ac_optarg" ;;
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316 sharedstatedir="$ac_optarg" ;;
318 -site | --site | --sit)
320 -site=* | --site=* | --sit=*)
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
335 -target | --target | --targe | --targ | --tar | --ta | --t)
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.13"
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
370 # Obsolete; use --with-x.
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=../generic/tcl.h
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472 if test ! -r $srcdir/$ac_unique_file; then
476 ac_srcdir_defaulted=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
506 echo "creating cache $cache_file"
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
519 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='\c' ac_t=
537 TCL_PATCH_LEVEL=".15"
538 VER=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION
541 TCL_DDE_MAJOR_VERSION=1
542 TCL_DDE_MINOR_VERSION=2
543 DDEVER=$TCL_DDE_MAJOR_VERSION$TCL_DDE_MINOR_VERSION
546 TCL_REG_MAJOR_VERSION=1
547 TCL_REG_MINOR_VERSION=1
548 REGVER=$TCL_REG_MAJOR_VERSION$TCL_REG_MINOR_VERSION
550 #------------------------------------------------------------------------
551 # Handle the --prefix=... option
552 #------------------------------------------------------------------------
554 if test "${prefix}" = "NONE"; then
557 if test "${exec_prefix}" = "NONE"; then
560 # libdir must be a fully qualified path (not ${exec_prefix}/lib)
561 eval libdir="$libdir"
563 #------------------------------------------------------------------------
564 # Standard compiler checks
565 #------------------------------------------------------------------------
567 # If the user did not set CFLAGS, set it now to keep
568 # the AC_PROG_CC macro from adding "-g -O2".
569 if test "${CFLAGS+set}" != "set" ; then
573 # Extract the first word of "gcc", so it can be a program name with args.
574 set dummy gcc; ac_word=$2
575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
576 echo "configure:577: checking for $ac_word" >&5
577 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
580 if test -n "$CC"; then
581 ac_cv_prog_CC="$CC" # Let the user override the test.
583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
585 for ac_dir in $ac_dummy; do
586 test -z "$ac_dir" && ac_dir=.
587 if test -f $ac_dir/$ac_word; then
596 if test -n "$CC"; then
597 echo "$ac_t""$CC" 1>&6
599 echo "$ac_t""no" 1>&6
602 if test -z "$CC"; then
603 # Extract the first word of "cc", so it can be a program name with args.
604 set dummy cc; ac_word=$2
605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
606 echo "configure:607: checking for $ac_word" >&5
607 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
610 if test -n "$CC"; then
611 ac_cv_prog_CC="$CC" # Let the user override the test.
613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
616 for ac_dir in $ac_dummy; do
617 test -z "$ac_dir" && ac_dir=.
618 if test -f $ac_dir/$ac_word; then
619 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
628 if test $ac_prog_rejected = yes; then
629 # We found a bogon in the path, so make sure we never use it.
630 set dummy $ac_cv_prog_CC
632 if test $# -gt 0; then
633 # We chose a different compiler from the bogus one.
634 # However, it has the same basename, so the bogon will be chosen
635 # first if we set CC to just the basename; use the full file name.
637 set dummy "$ac_dir/$ac_word" "$@"
645 if test -n "$CC"; then
646 echo "$ac_t""$CC" 1>&6
648 echo "$ac_t""no" 1>&6
651 if test -z "$CC"; then
654 # Extract the first word of "cl", so it can be a program name with args.
655 set dummy cl; ac_word=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
661 if test -n "$CC"; then
662 ac_cv_prog_CC="$CC" # Let the user override the test.
664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
666 for ac_dir in $ac_dummy; do
667 test -z "$ac_dir" && ac_dir=.
668 if test -f $ac_dir/$ac_word; then
677 if test -n "$CC"; then
678 echo "$ac_t""$CC" 1>&6
680 echo "$ac_t""no" 1>&6
685 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
688 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
689 echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
693 ac_cpp='$CPP $CPPFLAGS'
694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
696 cross_compiling=$ac_cv_prog_cc_cross
698 cat > conftest.$ac_ext << EOF
700 #line 701 "configure"
701 #include "confdefs.h"
705 if { (eval echo configure:706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
706 ac_cv_prog_cc_works=yes
707 # If we can't run a trivial program, we are probably using a cross compiler.
708 if (./conftest; exit) 2>/dev/null; then
709 ac_cv_prog_cc_cross=no
711 ac_cv_prog_cc_cross=yes
714 echo "configure: failed program was:" >&5
715 cat conftest.$ac_ext >&5
716 ac_cv_prog_cc_works=no
720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
721 ac_cpp='$CPP $CPPFLAGS'
722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
724 cross_compiling=$ac_cv_prog_cc_cross
726 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
727 if test $ac_cv_prog_cc_works = no; then
728 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
731 echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
732 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
733 cross_compiling=$ac_cv_prog_cc_cross
735 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
736 echo "configure:737: checking whether we are using GNU C" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 cat > conftest.c <<EOF
745 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
752 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
754 if test $ac_cv_prog_gcc = yes; then
760 ac_test_CFLAGS="${CFLAGS+set}"
761 ac_save_CFLAGS="$CFLAGS"
763 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
764 echo "configure:765: checking whether ${CC-cc} accepts -g" >&5
765 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 echo 'void f(){}' > conftest.c
769 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
778 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
779 if test "$ac_test_CFLAGS" = set; then
780 CFLAGS="$ac_save_CFLAGS"
781 elif test $ac_cv_prog_cc_g = yes; then
782 if test "$GCC" = yes; then
788 if test "$GCC" = yes; then
796 # To properly support cross-compilation, one would
797 # need to use these tool checks instead of
798 # the ones below and reconfigure with
799 # autoconf 2.50. You can also just set
800 # the CC, AR, RANLIB, and RC environment
801 # variables if you want to cross compile.
803 if test "${GCC}" = "yes" ; then
804 # Extract the first word of "ar", so it can be a program name with args.
805 set dummy ar; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$AR"; then
812 ac_cv_prog_AR="$AR" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$AR"; then
828 echo "$ac_t""$AR" 1>&6
830 echo "$ac_t""no" 1>&6
833 # Extract the first word of "ranlib", so it can be a program name with args.
834 set dummy ranlib; ac_word=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 if test -n "$RANLIB"; then
841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 for ac_dir in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir=.
847 if test -f $ac_dir/$ac_word; then
848 ac_cv_prog_RANLIB="ranlib"
855 RANLIB="$ac_cv_prog_RANLIB"
856 if test -n "$RANLIB"; then
857 echo "$ac_t""$RANLIB" 1>&6
859 echo "$ac_t""no" 1>&6
862 # Extract the first word of "windres", so it can be a program name with args.
863 set dummy windres; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_RC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$RC"; then
870 ac_cv_prog_RC="$RC" # Let the user override the test.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 for ac_dir in $ac_dummy; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
877 ac_cv_prog_RC="windres"
885 if test -n "$RC"; then
886 echo "$ac_t""$RC" 1>&6
888 echo "$ac_t""no" 1>&6
892 if test "${AR}" = "" ; then
893 { echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; }
895 if test "${RANLIB}" = "" ; then
896 { echo "configure: error: Required archive index tool 'ranlib' not found on PATH." 1>&2; exit 1; }
898 if test "${RC}" = "" ; then
899 { echo "configure: error: Required resource tool 'windres' not found on PATH." 1>&2; exit 1; }
903 #--------------------------------------------------------------------
904 # Checks to see if the make progeam sets the $MAKE variable.
905 #--------------------------------------------------------------------
907 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
908 echo "configure:909: checking whether ${MAKE-make} sets \${MAKE}" >&5
909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
910 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 cat > conftestmake <<\EOF
915 @echo 'ac_maketemp="${MAKE}"'
917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
918 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
919 if test -n "$ac_maketemp"; then
920 eval ac_cv_prog_make_${ac_make}_set=yes
922 eval ac_cv_prog_make_${ac_make}_set=no
926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
927 echo "$ac_t""yes" 1>&6
930 echo "$ac_t""no" 1>&6
931 SET_MAKE="MAKE=${MAKE-make}"
935 #--------------------------------------------------------------------
936 # Perform additinal compiler tests.
937 #--------------------------------------------------------------------
939 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
940 echo "configure:941: checking for Cygwin environment" >&5
941 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 cat > conftest.$ac_ext <<EOF
945 #line 946 "configure"
946 #include "confdefs.h"
951 #define __CYGWIN__ __CYGWIN32__
956 if { (eval echo configure:957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
969 echo "$ac_t""$ac_cv_cygwin" 1>&6
971 test "$ac_cv_cygwin" = yes && CYGWIN=yes
973 if test "$ac_cv_cygwin" = "yes" ; then
974 { echo "configure: error: Compiling under Cygwin is not currently supported.
975 A maintainer for the Cygwin port of Tcl/Tk is needed. See the README
976 file for information about building with Mingw." 1>&2; exit 1; }
980 echo $ac_n "checking for SEH support in compiler""... $ac_c" 1>&6
981 echo "configure:982: checking for SEH support in compiler" >&5
982 if eval "test \"`echo '$''{'tcl_cv_seh'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 if test "$cross_compiling" = yes; then
988 cat > conftest.$ac_ext <<EOF
989 #line 990 "configure"
990 #include "confdefs.h"
992 #define WIN32_LEAN_AND_MEAN
994 #undef WIN32_LEAN_AND_MEAN
996 int main(int argc, char** argv) {
1001 __except (EXCEPTION_EXECUTE_HANDLER) {
1008 if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1023 echo "$ac_t""$tcl_cv_seh" 1>&6
1024 if test "$tcl_cv_seh" = "no" ; then
1025 cat >> confdefs.h <<\EOF
1026 #define HAVE_NO_SEH 1
1032 # Check to see if the excpt.h include file provided contains the
1033 # definition for EXCEPTION_DISPOSITION; if not, which is the case
1034 # with Cygwin's version as of 2002-04-10, define it to be int,
1035 # sufficient for getting the current code to work.
1037 echo $ac_n "checking for EXCEPTION_DISPOSITION support in include files""... $ac_c" 1>&6
1038 echo "configure:1039: checking for EXCEPTION_DISPOSITION support in include files" >&5
1039 if eval "test \"`echo '$''{'tcl_cv_eh_disposition'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1046 #define WIN32_LEAN_AND_MEAN
1047 #include <windows.h>
1048 #undef WIN32_LEAN_AND_MEAN
1052 EXCEPTION_DISPOSITION x;
1056 if { (eval echo configure:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1058 tcl_cv_eh_disposition=yes
1060 echo "configure: failed program was:" >&5
1061 cat conftest.$ac_ext >&5
1063 tcl_cv_eh_disposition=no
1069 echo "$ac_t""$tcl_cv_eh_disposition" 1>&6
1070 if test "$tcl_cv_eh_disposition" = "no" ; then
1071 cat >> confdefs.h <<\EOF
1072 #define EXCEPTION_DISPOSITION int
1078 # Check to see if the winsock2.h include file provided contains
1079 # typedefs like LPFN_ACCEPT and friends.
1081 echo $ac_n "checking for LPFN_ACCEPT support in winsock2.h""... $ac_c" 1>&6
1082 echo "configure:1083: checking for LPFN_ACCEPT support in winsock2.h" >&5
1083 if eval "test \"`echo '$''{'tcl_cv_lpfn_decls'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1090 #define WIN32_LEAN_AND_MEAN
1091 #include <windows.h>
1092 #undef WIN32_LEAN_AND_MEAN
1093 #include <winsock2.h>
1101 if { (eval echo configure:1102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 tcl_cv_lpfn_decls=yes
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1108 tcl_cv_lpfn_decls=no
1114 echo "$ac_t""$tcl_cv_lpfn_decls" 1>&6
1115 if test "$tcl_cv_lpfn_decls" = "no" ; then
1116 cat >> confdefs.h <<\EOF
1117 #define HAVE_NO_LPFN_DECLS 1
1122 # Check to see if winnt.h defines CHAR, SHORT, and LONG
1123 # even if VOID has already been #defined. The win32api
1124 # used by mingw and cygwin is known to do this.
1126 echo $ac_n "checking for winnt.h that ignores VOID define""... $ac_c" 1>&6
1127 echo "configure:1128: checking for winnt.h that ignores VOID define" >&5
1128 if eval "test \"`echo '$''{'tcl_cv_winnt_ignore_void'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1136 #define WIN32_LEAN_AND_MEAN
1137 #include <windows.h>
1138 #undef WIN32_LEAN_AND_MEAN
1148 if { (eval echo configure:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1150 tcl_cv_winnt_ignore_void=yes
1152 echo "configure: failed program was:" >&5
1153 cat conftest.$ac_ext >&5
1155 tcl_cv_winnt_ignore_void=no
1161 echo "$ac_t""$tcl_cv_winnt_ignore_void" 1>&6
1162 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
1163 cat >> confdefs.h <<\EOF
1164 #define HAVE_WINNT_IGNORE_VOID 1
1169 # Check to see if malloc.h is missing the alloca function
1170 # declaration. This is known to be a problem with Mingw.
1171 # If we compiled without the function declaration, it
1172 # would work but we would get a warning message from gcc.
1173 # If we add the function declaration ourselves, it
1174 # would not compile correctly because the _alloca
1175 # function expects the argument to be passed in a
1176 # register and not on the stack. Instead, we just
1177 # call it from inline asm code.
1179 echo $ac_n "checking for alloca declaration in malloc.h""... $ac_c" 1>&6
1180 echo "configure:1181: checking for alloca declaration in malloc.h" >&5
1181 if eval "test \"`echo '$''{'tcl_cv_malloc_decl_alloca'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1199 if { (eval echo configure:1200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1201 tcl_cv_malloc_decl_alloca=yes
1203 echo "configure: failed program was:" >&5
1204 cat conftest.$ac_ext >&5
1206 tcl_cv_malloc_decl_alloca=no
1212 echo "$ac_t""$tcl_cv_malloc_decl_alloca" 1>&6
1213 if test "$tcl_cv_malloc_decl_alloca" = "no" &&
1214 test "${GCC}" = "yes" ; then
1215 cat >> confdefs.h <<\EOF
1216 #define HAVE_ALLOCA_GCC_INLINE 1
1221 # See if the compiler supports casting to a union type.
1222 # This is used to stop gcc from printing a compiler
1223 # warning when initializing a union member.
1225 echo $ac_n "checking for cast to union support""... $ac_c" 1>&6
1226 echo "configure:1227: checking for cast to union support" >&5
1227 if eval "test \"`echo '$''{'tcl_cv_cast_to_union'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1236 union foo { int i; double d; };
1237 union foo f = (union foo) (int) 0;
1241 if { (eval echo configure:1242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1243 tcl_cv_cast_to_union=yes
1245 echo "configure: failed program was:" >&5
1246 cat conftest.$ac_ext >&5
1248 tcl_cv_cast_to_union=no
1254 echo "$ac_t""$tcl_cv_cast_to_union" 1>&6
1255 if test "$tcl_cv_cast_to_union" = "yes"; then
1256 cat >> confdefs.h <<\EOF
1257 #define HAVE_CAST_TO_UNION 1
1263 #--------------------------------------------------------------------
1264 # Determines the correct binary file extension (.o, .obj, .exe etc.)
1265 #--------------------------------------------------------------------
1267 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1268 echo "configure:1269: checking for object suffix" >&5
1269 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1273 echo 'int i = 1;' > conftest.$ac_ext
1274 if { (eval echo configure:1275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1275 for ac_file in conftest.*; do
1278 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1282 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1287 echo "$ac_t""$ac_cv_objext" 1>&6
1288 OBJEXT=$ac_cv_objext
1289 ac_objext=$ac_cv_objext
1291 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1292 echo "configure:1293: checking for mingw32 environment" >&5
1293 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1304 if { (eval echo configure:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1317 echo "$ac_t""$ac_cv_mingw32" 1>&6
1319 test "$ac_cv_mingw32" = yes && MINGW32=yes
1322 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1323 echo "configure:1324: checking for executable suffix" >&5
1324 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1331 echo 'int main () { return 0; }' > conftest.$ac_ext
1333 if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1334 for file in conftest.*; do
1336 *.c | *.o | *.obj) ;;
1337 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1341 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1344 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1349 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1350 echo "$ac_t""${ac_cv_exeext}" 1>&6
1354 #--------------------------------------------------------------------
1355 # Check whether --enable-threads or --disable-threads was given.
1356 #--------------------------------------------------------------------
1359 echo $ac_n "checking for building with threads""... $ac_c" 1>&6
1360 echo "configure:1361: checking for building with threads" >&5
1361 # Check whether --enable-threads or --disable-threads was given.
1362 if test "${enable_threads+set}" = set; then
1363 enableval="$enable_threads"
1370 if test "$tcl_ok" = "yes"; then
1371 echo "$ac_t""yes" 1>&6
1373 cat >> confdefs.h <<\EOF
1374 #define TCL_THREADS 1
1377 # USE_THREAD_ALLOC tells us to try the special thread-based
1378 # allocator that significantly reduces lock contention
1379 cat >> confdefs.h <<\EOF
1380 #define USE_THREAD_ALLOC 1
1385 echo "$ac_t""no (default)" 1>&6
1390 #--------------------------------------------------------------------
1391 # The statements below define a collection of symbols related to
1392 # building libtcl as a shared library instead of a static library.
1393 #--------------------------------------------------------------------
1396 echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
1397 echo "configure:1398: checking how to build libraries" >&5
1398 # Check whether --enable-shared or --disable-shared was given.
1399 if test "${enable_shared+set}" = set; then
1400 enableval="$enable_shared"
1407 if test "${enable_shared+set}" = set; then
1408 enableval="$enable_shared"
1414 if test "$tcl_ok" = "yes" ; then
1415 echo "$ac_t""shared" 1>&6
1418 echo "$ac_t""static" 1>&6
1420 cat >> confdefs.h <<\EOF
1421 #define STATIC_BUILD 1
1427 #--------------------------------------------------------------------
1428 # The statements below define a collection of compile flags. This
1429 # macro depends on the value of SHARED_BUILD, and should be called
1430 # after SC_ENABLE_SHARED checks the configure switches.
1431 #--------------------------------------------------------------------
1435 # Step 0: Enable 64 bit support?
1437 echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6
1438 echo "configure:1439: checking if 64bit support is requested" >&5
1439 # Check whether --enable-64bit or --disable-64bit was given.
1440 if test "${enable_64bit+set}" = set; then
1441 enableval="$enable_64bit"
1447 echo "$ac_t""$do64bit" 1>&6
1449 # Set some defaults (may get changed below)
1452 # Extract the first word of "cygpath", so it can be a program name with args.
1453 set dummy cygpath; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_CYGPATH'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$CYGPATH"; then
1460 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1464 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 if test -f $ac_dir/$ac_word; then
1467 ac_cv_prog_CYGPATH="cygpath -w"
1472 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1475 CYGPATH="$ac_cv_prog_CYGPATH"
1476 if test -n "$CYGPATH"; then
1477 echo "$ac_t""$CYGPATH" 1>&6
1479 echo "$ac_t""no" 1>&6
1485 # MACHINE is IX86 for LINK, but this is used by the manifest,
1486 # which requires x86|amd64|ia64.
1489 # Check for a bug in gcc's windres that causes the
1490 # compile to fail when a Windows native path is
1491 # passed into windres. The mingw toolchain requires
1492 # Windows native paths while Cygwin should work
1493 # with both. Avoid the bug by passing a POSIX
1494 # path when using the Cygwin toolchain.
1496 if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then
1497 conftest=/tmp/conftest.rc
1498 echo "STRINGTABLE BEGIN" > $conftest
1499 echo "101 \"name\"" >> $conftest
1500 echo "END" >> $conftest
1502 echo $ac_n "checking for Windows native path bug in windres""... $ac_c" 1>&6
1503 echo "configure:1504: checking for Windows native path bug in windres" >&5
1504 cyg_conftest=`$CYGPATH $conftest`
1505 if { ac_try='$RC -o conftest.res.o $cyg_conftest'; { (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
1506 echo "$ac_t""no" 1>&6
1508 echo "$ac_t""yes" 1>&6
1515 if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then
1518 DEPARG='"$(shell $(CYGPATH) $<)"'
1521 # set various compiler flags depending on whether we are using gcc or cl
1523 echo $ac_n "checking compiler flags""... $ac_c" 1>&6
1524 echo "configure:1525: checking compiler flags" >&5
1525 if test "${GCC}" = "yes" ; then
1526 if test "$do64bit" != "no" ; then
1527 echo "configure: warning: "64bit mode not supported with GCC on Windows"" 1>&2
1532 LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32"
1536 RC_INCLUDE=--include
1539 MAKE_LIB="\${STLIB_LD} \$@"
1540 POST_MAKE_LIB="\${RANLIB} \$@"
1541 MAKE_EXE="\${CC} -o \$@"
1544 #if test "$ac_cv_cygwin" = "yes"; then
1545 # extra_cflags="-mno-cygwin"
1546 # extra_ldflags="-mno-cygwin"
1552 if test "$ac_cv_cygwin" = "yes"; then
1554 if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
1555 case "$extra_cflags" in
1557 *) extra_cflags="-mwin32 $extra_cflags" ;;
1559 case "$extra_ldflags" in
1561 *) extra_ldflags="-mwin32 $extra_ldflags" ;;
1570 if test "${SHARED_BUILD}" = "0" ; then
1572 echo "$ac_t""using static flags" 1>&6
1575 LIBSUFFIX="s\${DBGX}.a"
1576 LIBFLAGSUFFIX="s\${DBGX}"
1577 LIBRARIES="\${STATIC_LIBRARIES}"
1578 EXESUFFIX="s\${DBGX}.exe"
1581 echo "$ac_t""using shared flags" 1>&6
1583 # ad-hoc check to see if CC supports -shared.
1584 if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then
1585 { echo "configure: error: ${CC} does not support the -shared option.
1586 You will need to upgrade to a newer version of the toolchain." 1>&2; exit 1; }
1590 # Link with gcc since ld does not link to default libs like
1591 # -luser32 and -lmsvcrt by default. Make sure CFLAGS is
1592 # included so -mno-cygwin passed the correct libs to the linker.
1593 SHLIB_LD='${CC} -shared ${CFLAGS}'
1594 SHLIB_LD_LIBS='${LIBS}'
1595 # Add SHLIB_LD_LIBS to the Make rule, not here.
1596 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \
1597 -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)"
1599 LIBSUFFIX="\${DBGX}.a"
1600 LIBFLAGSUFFIX="\${DBGX}"
1601 EXESUFFIX="\${DBGX}.exe"
1602 LIBRARIES="\${SHARED_LIBRARIES}"
1604 # DLLSUFFIX is separate because it is the building block for
1605 # users of tclConfig.sh that may build shared or static.
1606 DLLSUFFIX="\${DBGX}.dll"
1609 EXTRA_CFLAGS="${extra_cflags}"
1612 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
1613 CFLAGS_WARNING="-Wall -Wconversion"
1617 # Specify the CC output file names based on the target name
1621 # Specify linker flags depending on the type of app being
1622 # built -- Console vs. Window.
1625 # We need to pass -e _WinMain@16 so that ld will use
1626 # WinMain() instead of main() as the entry point. We can't
1627 # use autoconf to check for this case since it would need
1628 # to run an executable and that does not work when
1629 # cross compiling. Remove this -e workaround once we
1630 # require a gcc that does not have this bug.
1632 # MK NOTE: Tk should use a different mechanism. This causes
1633 # interesting problems, such as wish dying at startup.
1634 #LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}"
1635 LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}"
1636 LDFLAGS_WINDOW="-mwindows ${extra_ldflags}"
1638 if test "${SHARED_BUILD}" = "0" ; then
1640 echo "$ac_t""using static flags" 1>&6
1643 LIBSUFFIX="s\${DBGX}.lib"
1644 LIBFLAGSUFFIX="s\${DBGX}"
1645 LIBRARIES="\${STATIC_LIBRARIES}"
1646 EXESUFFIX="s\${DBGX}.exe"
1650 echo "$ac_t""using shared flags" 1>&6
1652 # Add SHLIB_LD_LIBS to the Make rule, not here.
1653 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@"
1654 LIBSUFFIX="\${DBGX}.lib"
1655 LIBFLAGSUFFIX="\${DBGX}"
1656 EXESUFFIX="\${DBGX}.exe"
1657 LIBRARIES="\${SHARED_LIBRARIES}"
1658 SHLIB_LD_LIBS='${LIBS}'
1660 # DLLSUFFIX is separate because it is the building block for
1661 # users of tclConfig.sh that may build shared or static.
1662 DLLSUFFIX="\${DBGX}.dll"
1664 # This is a 2-stage check to make sure we have the 64-bit SDK
1665 # We have to know where the SDK is installed.
1666 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
1667 if test "$do64bit" != "no" ; then
1668 if test "x${MSSDK}x" = "xx" ; then
1669 MSSDK="C:/Progra~1/Microsoft Platform SDK"
1671 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'`
1675 MACHINE="AMD64" ; # default to AMD64 64-bit build
1676 PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
1680 PATH64="${MSSDK}/Bin/Win64"
1683 if test ! -d "${PATH64}" ; then
1684 echo "configure: warning: Could not find 64-bit $MACHINE SDK to enable 64bit mode" 1>&2
1685 echo "configure: warning: Ensure latest Platform SDK is installed" 1>&2
1688 echo "$ac_t"" Using 64-bit $MACHINE mode" 1>&6
1692 if test "$do64bit" != "no" ; then
1693 # The space-based-path will work for the Makefile, but will
1694 # not work if AC_TRY_COMPILE is called.
1695 CC="\"${PATH64}/cl.exe\" -I\"${MSSDK}/Include\" \
1696 -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
1697 RC="\"${MSSDK}/bin/rc.exe\""
1698 CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d"
1699 # Do not use -O2 for Win64 - this has proved buggy in code gen.
1700 CFLAGS_OPTIMIZE="-nologo -O1 ${runtime}"
1701 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
1702 LINKBIN="\"${PATH64}/link.exe\""
1703 # Avoid 'unresolved external symbol __security_cookie' errors.
1704 # c.f. http://support.microsoft.com/?id=894573
1705 LIBS="user32.lib advapi32.lib bufferoverflowU.lib"
1708 # -Od - no optimization
1709 # -WX - warnings as errors
1710 CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d"
1711 # -O2 - create fast code (/Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy)
1712 CFLAGS_OPTIMIZE="-nologo -O2 ${runtime}"
1715 LIBS="user32.lib advapi32.lib"
1718 LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib shell32.lib"
1719 SHLIB_LD="${LINKBIN} -dll -incremental:no ${lflags}"
1720 # link -lib only works when -lib is the first arg
1721 STLIB_LD="${LINKBIN} -lib ${lflags}"
1727 MAKE_LIB="\${STLIB_LD} -out:\$@"
1729 MAKE_EXE="\${CC} -Fe\$@"
1733 CFLAGS_WARNING="-W3"
1734 LDFLAGS_DEBUG="-debug:full"
1735 LDFLAGS_OPTIMIZE="-release"
1737 # Specify the CC output file names based on the target name
1739 CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\""
1741 # Specify linker flags depending on the type of app being
1742 # built -- Console vs. Window.
1743 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
1744 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
1747 # DL_LIBS is empty, but then we match the Unix version
1754 #--------------------------------------------------------------------
1755 # Set the default compiler switches based on the --enable-symbols
1756 # option. This macro depends on C flags, and should be called
1757 # after SC_CONFIG_CFLAGS macro is called.
1758 #--------------------------------------------------------------------
1761 echo $ac_n "checking for build with symbols""... $ac_c" 1>&6
1762 echo "configure:1763: checking for build with symbols" >&5
1763 # Check whether --enable-symbols or --disable-symbols was given.
1764 if test "${enable_symbols+set}" = set; then
1765 enableval="$enable_symbols"
1771 # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
1772 if test "$tcl_ok" = "no"; then
1773 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
1774 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
1776 echo "$ac_t""no" 1>&6
1778 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
1779 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
1781 if test "$tcl_ok" = "yes"; then
1782 echo "$ac_t""yes (standard debugging)" 1>&6
1788 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
1789 cat >> confdefs.h <<\EOF
1790 #define TCL_MEM_DEBUG 1
1795 if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
1796 cat >> confdefs.h <<\EOF
1797 #define TCL_COMPILE_DEBUG 1
1800 cat >> confdefs.h <<\EOF
1801 #define TCL_COMPILE_STATS 1
1806 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
1807 if test "$tcl_ok" = "all"; then
1808 echo "$ac_t""enabled symbols mem compile debugging" 1>&6
1810 echo "$ac_t""enabled $tcl_ok debugging" 1>&6
1817 #--------------------------------------------------------------------
1818 # man2tcl needs this so that it can use errno.h
1819 #--------------------------------------------------------------------
1821 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1822 echo "configure:1823: checking how to run the C preprocessor" >&5
1823 # On Suns, sometimes $CPP names a directory.
1824 if test -n "$CPP" && test -d "$CPP"; then
1827 if test -z "$CPP"; then
1828 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 # This must be in double quotes, not single quotes, because CPP may get
1832 # substituted into the Makefile and "${CC-cc}" will confuse make.
1834 # On the NeXT, cc -E runs the code through the compiler's parser,
1835 # not just through cpp.
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 CPP="${CC-cc} -E -traditional-cpp"
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1860 { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1862 if test -z "$ac_err"; then
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 CPP="${CC-cc} -nologo -E"
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1879 if test -z "$ac_err"; then
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1893 ac_cv_prog_CPP="$CPP"
1895 CPP="$ac_cv_prog_CPP"
1897 ac_cv_prog_CPP="$CPP"
1899 echo "$ac_t""$CPP" 1>&6
1901 ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
1902 echo $ac_n "checking for errno.h""... $ac_c" 1>&6
1903 echo "configure:1904: checking for errno.h" >&5
1904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1913 { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1915 if test -z "$ac_err"; then
1917 eval "ac_cv_header_$ac_safe=yes"
1920 echo "configure: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1923 eval "ac_cv_header_$ac_safe=no"
1927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1928 echo "$ac_t""yes" 1>&6
1931 echo "$ac_t""no" 1>&6
1932 MAN2TCLFLAGS="-DNO_ERRNO_H"
1937 #------------------------------------------------------------------------
1938 # tclConfig.sh refers to this by a different name
1939 #------------------------------------------------------------------------
1941 TCL_SHARED_BUILD=${SHARED_BUILD}
1943 #--------------------------------------------------------------------
1944 # Perform final evaluations of variables with possible substitutions.
1945 #--------------------------------------------------------------------
1947 TCL_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}"
1948 TCL_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
1949 TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
1951 eval "TCL_SRC_DIR=\"`cd $srcdir/..; pwd`\""
1953 eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}"
1955 eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}"
1957 eval "TCL_LIB_FLAG=\"-ltcl${VER}${LIBFLAGSUFFIX}\""
1958 eval "TCL_BUILD_LIB_SPEC=\"-L`pwd` ${TCL_LIB_FLAG}\""
1959 eval "TCL_LIB_SPEC=\"-L${libdir} ${TCL_LIB_FLAG}\""
1961 eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\""
1962 eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${LIBFLAGSUFFIX}\""
1963 eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`pwd` ${TCL_STUB_LIB_FLAG}\""
1964 eval "TCL_STUB_LIB_SPEC=\"-L${libdir} ${TCL_STUB_LIB_FLAG}\""
1965 eval "TCL_BUILD_STUB_LIB_PATH=\"`pwd`/${TCL_STUB_LIB_FILE}\""
1966 eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\""
1968 # Install time header dir can be set via --includedir
1969 eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
1972 eval "DLLSUFFIX=${DLLSUFFIX}"
1973 eval "LIBPREFIX=${LIBPREFIX}"
1974 eval "LIBSUFFIX=${LIBSUFFIX}"
1975 eval "EXESUFFIX=${EXESUFFIX}"
1977 CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}
1978 CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}
1979 CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX}
1981 #--------------------------------------------------------------------
1982 # Adjust the defines for how the resources are built depending
1983 # on symbols and static vs. shared.
1984 #--------------------------------------------------------------------
1986 if test ${SHARED_BUILD} = 0 ; then
1987 if test "${DBGX}" = "g"; then
1988 RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG"
1990 RC_DEFINES="${RC_DEFINE} STATIC_BUILD"
1993 if test "${DBGX}" = "g"; then
1994 RC_DEFINES="${RC_DEFINE} DEBUG"
2000 #--------------------------------------------------------------------
2001 # The statements below define the symbol TCL_PACKAGE_PATH, which
2002 # gives a list of directories that may contain packages. The list
2003 # consists of one directory for machine-dependent binaries and
2004 # another for platform-independent scripts.
2005 #--------------------------------------------------------------------
2007 if test "$prefix" != "$exec_prefix"; then
2008 TCL_PACKAGE_PATH="${libdir} ${prefix}/lib"
2010 TCL_PACKAGE_PATH="${prefix}/lib"
2038 # win/tcl.m4 doesn't set (CFLAGS)
2046 # win/tcl.m4 doesn't set (LDFLAGS)
2074 # empty on win, but needs sub'ing
2102 cat > confcache <<\EOF
2103 # This file is a shell script that caches the results of configure
2104 # tests run on this system so they can be shared between configure
2105 # scripts and configure runs. It is not useful on other systems.
2106 # If it contains results you don't want to keep, you may remove or edit it.
2108 # By default, configure uses ./config.cache as the cache file,
2109 # creating it if it does not exist already. You can give configure
2110 # the --cache-file=FILE option to use a different cache file; that is
2111 # what configure does when it calls configure scripts in
2112 # subdirectories, so they share the cache.
2113 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2114 # config.status only pays attention to the cache file if you give it the
2115 # --recheck option to rerun configure.
2118 # The following way of writing the cache mishandles newlines in values,
2119 # but we know of no workaround that is simple, portable, and efficient.
2120 # So, don't put newlines in cache variables' values.
2121 # Ultrix sh set writes to stderr and can't be redirected directly,
2122 # and sets the high bit in the cache file unless we assign to the vars.
2124 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2126 # `set' does not quote correctly, so add quotes (double-quote substitution
2127 # turns \\\\ into \\, and sed turns \\ into \).
2129 -e "s/'/'\\\\''/g" \
2130 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2133 # `set' quotes correctly as required by POSIX, so do not add quotes.
2134 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2137 if cmp -s $cache_file confcache; then
2140 if test -w $cache_file; then
2141 echo "updating cache $cache_file"
2142 cat confcache > $cache_file
2144 echo "not updating unwritable cache $cache_file"
2149 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2152 # Let make expand exec_prefix.
2153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2155 # Any assignment to VPATH causes Sun make to only execute
2156 # the first set of double-colon rules, so remove it if not needed.
2157 # If there is a colon in the path, we need to keep it.
2158 if test "x$srcdir" = x.; then
2159 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2162 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2164 # Transform confdefs.h into DEFS.
2165 # Protect against shell expansion while executing Makefile rules.
2166 # Protect against Makefile macro expansion.
2167 cat > conftest.defs <<\EOF
2168 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2169 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2174 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2178 # Without the "./", some shells look in PATH for config.status.
2179 : ${CONFIG_STATUS=./config.status}
2181 echo creating $CONFIG_STATUS
2182 rm -f $CONFIG_STATUS
2183 cat > $CONFIG_STATUS <<EOF
2185 # Generated automatically by configure.
2186 # Run this file to recreate the current configuration.
2187 # This directory was configured as follows,
2188 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2190 # $0 $ac_configure_args
2192 # Compiler output produced by configure, useful for debugging
2193 # configure, is in ./config.log if it exists.
2195 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2198 case "\$ac_option" in
2199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2200 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2201 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2202 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2203 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2205 -help | --help | --hel | --he | --h)
2206 echo "\$ac_cs_usage"; exit 0 ;;
2207 *) echo "\$ac_cs_usage"; exit 1 ;;
2211 ac_given_srcdir=$srcdir
2213 trap 'rm -fr `echo "Makefile tclConfig.sh tcl.hpj" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2215 cat >> $CONFIG_STATUS <<EOF
2217 # Protect against being on the right side of a sed subst in config.status.
2218 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2219 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2223 s%@CFLAGS@%$CFLAGS%g
2224 s%@CPPFLAGS@%$CPPFLAGS%g
2225 s%@CXXFLAGS@%$CXXFLAGS%g
2226 s%@FFLAGS@%$FFLAGS%g
2228 s%@LDFLAGS@%$LDFLAGS%g
2230 s%@exec_prefix@%$exec_prefix%g
2231 s%@prefix@%$prefix%g
2232 s%@program_transform_name@%$program_transform_name%g
2233 s%@bindir@%$bindir%g
2234 s%@sbindir@%$sbindir%g
2235 s%@libexecdir@%$libexecdir%g
2236 s%@datadir@%$datadir%g
2237 s%@sysconfdir@%$sysconfdir%g
2238 s%@sharedstatedir@%$sharedstatedir%g
2239 s%@localstatedir@%$localstatedir%g
2240 s%@libdir@%$libdir%g
2241 s%@includedir@%$includedir%g
2242 s%@oldincludedir@%$oldincludedir%g
2243 s%@infodir@%$infodir%g
2244 s%@mandir@%$mandir%g
2247 s%@RANLIB@%$RANLIB%g
2249 s%@SET_MAKE@%$SET_MAKE%g
2250 s%@OBJEXT@%$OBJEXT%g
2251 s%@EXEEXT@%$EXEEXT%g
2252 s%@TCL_THREADS@%$TCL_THREADS%g
2253 s%@CYGPATH@%$CYGPATH%g
2254 s%@DL_LIBS@%$DL_LIBS%g
2255 s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
2256 s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
2257 s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g
2258 s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g
2259 s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g
2261 s%@MAN2TCLFLAGS@%$MAN2TCLFLAGS%g
2262 s%@TCL_VERSION@%$TCL_VERSION%g
2263 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
2264 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
2265 s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g
2266 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2267 s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g
2268 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
2269 s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g
2270 s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g
2271 s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g
2272 s%@TCL_STUB_LIB_PATH@%$TCL_STUB_LIB_PATH%g
2273 s%@TCL_INCLUDE_SPEC@%$TCL_INCLUDE_SPEC%g
2274 s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g
2275 s%@TCL_BUILD_STUB_LIB_PATH@%$TCL_BUILD_STUB_LIB_PATH%g
2276 s%@TCL_DLL_FILE@%$TCL_DLL_FILE%g
2277 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
2278 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2279 s%@TCL_DBGX@%$TCL_DBGX%g
2280 s%@CFG_TCL_SHARED_LIB_SUFFIX@%$CFG_TCL_SHARED_LIB_SUFFIX%g
2281 s%@CFG_TCL_UNSHARED_LIB_SUFFIX@%$CFG_TCL_UNSHARED_LIB_SUFFIX%g
2282 s%@CFG_TCL_EXPORT_FILE_SUFFIX@%$CFG_TCL_EXPORT_FILE_SUFFIX%g
2283 s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
2284 s%@DEPARG@%$DEPARG%g
2285 s%@CC_OBJNAME@%$CC_OBJNAME%g
2286 s%@CC_EXENAME@%$CC_EXENAME%g
2287 s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g
2288 s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g
2289 s%@LDFLAGS_CONSOLE@%$LDFLAGS_CONSOLE%g
2290 s%@LDFLAGS_WINDOW@%$LDFLAGS_WINDOW%g
2291 s%@STLIB_LD@%$STLIB_LD%g
2292 s%@SHLIB_LD@%$SHLIB_LD%g
2293 s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
2294 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2295 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
2296 s%@TCL_SHARED_BUILD@%$TCL_SHARED_BUILD%g
2297 s%@LIBS_GUI@%$LIBS_GUI%g
2298 s%@DLLSUFFIX@%$DLLSUFFIX%g
2299 s%@LIBPREFIX@%$LIBPREFIX%g
2300 s%@LIBSUFFIX@%$LIBSUFFIX%g
2301 s%@EXESUFFIX@%$EXESUFFIX%g
2302 s%@LIBRARIES@%$LIBRARIES%g
2303 s%@MAKE_LIB@%$MAKE_LIB%g
2304 s%@POST_MAKE_LIB@%$POST_MAKE_LIB%g
2305 s%@MAKE_DLL@%$MAKE_DLL%g
2306 s%@MAKE_EXE@%$MAKE_EXE%g
2307 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2308 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
2309 s%@TCL_NEEDS_EXP_FILE@%$TCL_NEEDS_EXP_FILE%g
2310 s%@TCL_BUILD_EXP_FILE@%$TCL_BUILD_EXP_FILE%g
2311 s%@TCL_EXP_FILE@%$TCL_EXP_FILE%g
2312 s%@LIBOBJS@%$LIBOBJS%g
2313 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
2314 s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g
2315 s%@TCL_DDE_VERSION@%$TCL_DDE_VERSION%g
2316 s%@TCL_DDE_MAJOR_VERSION@%$TCL_DDE_MAJOR_VERSION%g
2317 s%@TCL_DDE_MINOR_VERSION@%$TCL_DDE_MINOR_VERSION%g
2318 s%@TCL_REG_VERSION@%$TCL_REG_VERSION%g
2319 s%@TCL_REG_MAJOR_VERSION@%$TCL_REG_MAJOR_VERSION%g
2320 s%@TCL_REG_MINOR_VERSION@%$TCL_REG_MINOR_VERSION%g
2321 s%@RC_OUT@%$RC_OUT%g
2322 s%@RC_TYPE@%$RC_TYPE%g
2323 s%@RC_INCLUDE@%$RC_INCLUDE%g
2324 s%@RC_DEFINE@%$RC_DEFINE%g
2325 s%@RC_DEFINES@%$RC_DEFINES%g
2331 cat >> $CONFIG_STATUS <<\EOF
2333 # Split the substitutions into bite-sized pieces for seds with
2334 # small command number limits, like on Digital OSF/1 and HP-UX.
2335 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2336 ac_file=1 # Number of current file.
2337 ac_beg=1 # First line for current file.
2338 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2341 while $ac_more_lines; do
2342 if test $ac_beg -gt 1; then
2343 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2345 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2347 if test ! -s conftest.s$ac_file; then
2349 rm -f conftest.s$ac_file
2351 if test -z "$ac_sed_cmds"; then
2352 ac_sed_cmds="sed -f conftest.s$ac_file"
2354 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2356 ac_file=`expr $ac_file + 1`
2358 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2361 if test -z "$ac_sed_cmds"; then
2366 cat >> $CONFIG_STATUS <<EOF
2368 CONFIG_FILES=\${CONFIG_FILES-"Makefile tclConfig.sh tcl.hpj"}
2370 cat >> $CONFIG_STATUS <<\EOF
2371 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2372 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2374 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2375 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2376 *) ac_file_in="${ac_file}.in" ;;
2379 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2381 # Remove last slash and all that follows it. Not all systems have dirname.
2382 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2383 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2384 # The file is in a subdirectory.
2385 test ! -d "$ac_dir" && mkdir "$ac_dir"
2386 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2387 # A "../" for each directory in $ac_dir_suffix.
2388 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2390 ac_dir_suffix= ac_dots=
2393 case "$ac_given_srcdir" in
2395 if test -z "$ac_dots"; then top_srcdir=.
2396 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2397 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2399 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2400 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2404 echo creating "$ac_file"
2406 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2408 *Makefile*) ac_comsub="1i\\
2409 # $configure_input" ;;
2413 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2415 s%@configure_input@%$configure_input%g
2416 s%@srcdir@%$srcdir%g
2417 s%@top_srcdir@%$top_srcdir%g
2418 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2423 cat >> $CONFIG_STATUS <<EOF
2426 cat >> $CONFIG_STATUS <<\EOF
2430 chmod +x $CONFIG_STATUS
2431 rm -fr confdefs* $ac_clean_files
2432 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1