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-symbols build with debugging symbols [--disable-symbols]"
21 --with-tcl=DIR use Tcl 8.3 binaries from DIR"
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,
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 # Accept the important Cygnus configure options, so we can diagnose typos.
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --site-file=FILE use FILE as the site file
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -site-file | --site-file | --site-fil | --site-fi | --site-f)
327 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
328 sitefile="$ac_optarg" ;;
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=../generic/tk.h
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$sitefile"; then
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 CONFIG_SITE="$sitefile"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='\c' ac_t=
548 VER=$TK_MAJOR_VERSION$TK_MINOR_VERSION
550 if test "${prefix}" = "NONE"; then
553 if test "${exec_prefix}" = "NONE"; then
557 #------------------------------------------------------------------------
558 # Standard compiler checks
559 #------------------------------------------------------------------------
561 # Extract the first word of "gcc", so it can be a program name with args.
562 set dummy gcc; ac_word=$2
563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
564 echo "configure:565: checking for $ac_word" >&5
565 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 if test -n "$CC"; then
569 ac_cv_prog_CC="$CC" # Let the user override the test.
571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
573 for ac_dir in $ac_dummy; do
574 test -z "$ac_dir" && ac_dir=.
575 if test -f $ac_dir/$ac_word; then
584 if test -n "$CC"; then
585 echo "$ac_t""$CC" 1>&6
587 echo "$ac_t""no" 1>&6
590 if test -z "$CC"; then
591 # Extract the first word of "cc", so it can be a program name with args.
592 set dummy cc; ac_word=$2
593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
594 echo "configure:595: checking for $ac_word" >&5
595 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
596 echo $ac_n "(cached) $ac_c" 1>&6
598 if test -n "$CC"; then
599 ac_cv_prog_CC="$CC" # Let the user override the test.
601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
604 for ac_dir in $ac_dummy; do
605 test -z "$ac_dir" && ac_dir=.
606 if test -f $ac_dir/$ac_word; then
607 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
616 if test $ac_prog_rejected = yes; then
617 # We found a bogon in the path, so make sure we never use it.
618 set dummy $ac_cv_prog_CC
620 if test $# -gt 0; then
621 # We chose a different compiler from the bogus one.
622 # However, it has the same basename, so the bogon will be chosen
623 # first if we set CC to just the basename; use the full file name.
625 set dummy "$ac_dir/$ac_word" "$@"
633 if test -n "$CC"; then
634 echo "$ac_t""$CC" 1>&6
636 echo "$ac_t""no" 1>&6
639 if test -z "$CC"; then
642 # Extract the first word of "cl", so it can be a program name with args.
643 set dummy cl; ac_word=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 if test -n "$CC"; then
650 ac_cv_prog_CC="$CC" # Let the user override the test.
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
673 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
676 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
677 echo "configure:678: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp='$CPP $CPPFLAGS'
682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling=$ac_cv_prog_cc_cross
686 cat > conftest.$ac_ext << EOF
688 #line 689 "configure"
689 #include "confdefs.h"
693 if { (eval echo configure:694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
694 ac_cv_prog_cc_works=yes
695 # If we can't run a trivial program, we are probably using a cross compiler.
696 if (./conftest; exit) 2>/dev/null; then
697 ac_cv_prog_cc_cross=no
699 ac_cv_prog_cc_cross=yes
702 echo "configure: failed program was:" >&5
703 cat conftest.$ac_ext >&5
704 ac_cv_prog_cc_works=no
708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
709 ac_cpp='$CPP $CPPFLAGS'
710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
712 cross_compiling=$ac_cv_prog_cc_cross
714 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
715 if test $ac_cv_prog_cc_works = no; then
716 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
718 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
719 echo "configure:720: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
720 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
721 cross_compiling=$ac_cv_prog_cc_cross
723 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
724 echo "configure:725: checking whether we are using GNU C" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 cat > conftest.c <<EOF
733 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
740 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
742 if test $ac_cv_prog_gcc = yes; then
748 ac_test_CFLAGS="${CFLAGS+set}"
749 ac_save_CFLAGS="$CFLAGS"
751 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
752 echo "configure:753: checking whether ${CC-cc} accepts -g" >&5
753 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 echo 'void f(){}' > conftest.c
757 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
766 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
767 if test "$ac_test_CFLAGS" = set; then
768 CFLAGS="$ac_save_CFLAGS"
769 elif test $ac_cv_prog_cc_g = yes; then
770 if test "$GCC" = yes; then
776 if test "$GCC" = yes; then
785 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
786 if test -f $ac_dir/install-sh; then
788 ac_install_sh="$ac_aux_dir/install-sh -c"
790 elif test -f $ac_dir/install.sh; then
792 ac_install_sh="$ac_aux_dir/install.sh -c"
796 if test -z "$ac_aux_dir"; then
797 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
799 ac_config_guess=$ac_aux_dir/config.guess
800 ac_config_sub=$ac_aux_dir/config.sub
801 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
804 # Make sure we can run config.sub.
805 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
806 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
809 echo $ac_n "checking host system type""... $ac_c" 1>&6
810 echo "configure:811: checking host system type" >&5
813 case "$host_alias" in
817 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
818 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
820 *) host_alias=$nonopt ;;
824 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
825 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
826 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
827 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
828 echo "$ac_t""$host" 1>&6
830 echo $ac_n "checking build system type""... $ac_c" 1>&6
831 echo "configure:832: checking build system type" >&5
834 case "$build_alias" in
837 NONE) build_alias=$host_alias ;;
838 *) build_alias=$nonopt ;;
842 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
843 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
844 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
845 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
846 echo "$ac_t""$build" 1>&6
848 if test $host != $build; then
849 ac_tool_prefix=${host_alias}-
854 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
855 set dummy ${ac_tool_prefix}ar; ac_word=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$AR"; then
862 ac_cv_prog_AR="$AR" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
866 for ac_dir in $ac_dummy; do
867 test -z "$ac_dir" && ac_dir=.
868 if test -f $ac_dir/$ac_word; then
869 ac_cv_prog_AR="${ac_tool_prefix}ar"
877 if test -n "$AR"; then
878 echo "$ac_t""$AR" 1>&6
880 echo "$ac_t""no" 1>&6
884 if test -z "$ac_cv_prog_AR"; then
885 if test -n "$ac_tool_prefix"; then
886 # Extract the first word of "ar", so it can be a program name with args.
887 set dummy ar; ac_word=$2
888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 echo "configure:890: checking for $ac_word" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 if test -n "$AR"; then
894 ac_cv_prog_AR="$AR" # Let the user override the test.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 for ac_dir in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir=.
900 if test -f $ac_dir/$ac_word; then
906 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
910 if test -n "$AR"; then
911 echo "$ac_t""$AR" 1>&6
913 echo "$ac_t""no" 1>&6
921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
924 echo "configure:925: checking for $ac_word" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
926 echo $ac_n "(cached) $ac_c" 1>&6
928 if test -n "$RANLIB"; then
929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
933 for ac_dir in $ac_dummy; do
934 test -z "$ac_dir" && ac_dir=.
935 if test -f $ac_dir/$ac_word; then
936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
943 RANLIB="$ac_cv_prog_RANLIB"
944 if test -n "$RANLIB"; then
945 echo "$ac_t""$RANLIB" 1>&6
947 echo "$ac_t""no" 1>&6
951 if test -z "$ac_cv_prog_RANLIB"; then
952 if test -n "$ac_tool_prefix"; then
953 # Extract the first word of "ranlib", so it can be a program name with args.
954 set dummy ranlib; ac_word=$2
955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
956 echo "configure:957: checking for $ac_word" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 if test -n "$RANLIB"; then
961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 for ac_dir in $ac_dummy; do
966 test -z "$ac_dir" && ac_dir=.
967 if test -f $ac_dir/$ac_word; then
968 ac_cv_prog_RANLIB="ranlib"
973 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
976 RANLIB="$ac_cv_prog_RANLIB"
977 if test -n "$RANLIB"; then
978 echo "$ac_t""$RANLIB" 1>&6
980 echo "$ac_t""no" 1>&6
988 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
989 set dummy ${ac_tool_prefix}windres; ac_word=$2
990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991 echo "configure:992: checking for $ac_word" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_RC'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -n "$RC"; then
996 ac_cv_prog_RC="$RC" # Let the user override the test.
998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1000 for ac_dir in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 ac_cv_prog_RC="${ac_tool_prefix}windres"
1011 if test -n "$RC"; then
1012 echo "$ac_t""$RC" 1>&6
1014 echo "$ac_t""no" 1>&6
1018 if test -z "$ac_cv_prog_RC"; then
1019 if test -n "$ac_tool_prefix"; then
1020 # Extract the first word of "windres", so it can be a program name with args.
1021 set dummy windres; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_RC'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$RC"; then
1028 ac_cv_prog_RC="$RC" # Let the user override the test.
1030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1032 for ac_dir in $ac_dummy; do
1033 test -z "$ac_dir" && ac_dir=.
1034 if test -f $ac_dir/$ac_word; then
1035 ac_cv_prog_RC="windres"
1040 test -z "$ac_cv_prog_RC" && ac_cv_prog_RC=":"
1044 if test -n "$RC"; then
1045 echo "$ac_t""$RC" 1>&6
1047 echo "$ac_t""no" 1>&6
1056 #--------------------------------------------------------------------
1057 # Checks to see if the make progeam sets the $MAKE variable.
1058 #--------------------------------------------------------------------
1060 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1061 echo "configure:1062: checking whether ${MAKE-make} sets \${MAKE}" >&5
1062 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1063 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 cat > conftestmake <<\EOF
1068 @echo 'ac_maketemp="${MAKE}"'
1070 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1071 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1072 if test -n "$ac_maketemp"; then
1073 eval ac_cv_prog_make_${ac_make}_set=yes
1075 eval ac_cv_prog_make_${ac_make}_set=no
1079 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1080 echo "$ac_t""yes" 1>&6
1083 echo "$ac_t""no" 1>&6
1084 SET_MAKE="MAKE=${MAKE-make}"
1088 #--------------------------------------------------------------------
1089 # These two macros perform additinal compiler test.
1090 #--------------------------------------------------------------------
1092 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1093 echo "configure:1094: checking for Cygwin environment" >&5
1094 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1104 #define __CYGWIN__ __CYGWIN32__
1109 if { (eval echo configure:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1122 echo "$ac_t""$ac_cv_cygwin" 1>&6
1124 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1129 if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
1130 case "$EXTRA_CFLAGS" in
1132 *) EXTRA_CFLAGS="-mwin32 $EXTRA_CFLAGS" ;;
1139 #--------------------------------------------------------------------
1140 # Determines the correct binary file extension (.o, .obj, .exe etc.)
1141 #--------------------------------------------------------------------
1143 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1144 echo "configure:1145: checking for object suffix" >&5
1145 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1149 echo 'int i = 1;' > conftest.$ac_ext
1150 if { (eval echo configure:1151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1151 for ac_file in conftest.*; do
1154 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1158 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1163 echo "$ac_t""$ac_cv_objext" 1>&6
1164 OBJEXT=$ac_cv_objext
1165 ac_objext=$ac_cv_objext
1167 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1168 echo "configure:1169: checking for mingw32 environment" >&5
1169 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1193 echo "$ac_t""$ac_cv_mingw32" 1>&6
1195 test "$ac_cv_mingw32" = yes && MINGW32=yes
1198 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1199 echo "configure:1200: checking for executable suffix" >&5
1200 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1207 echo 'int main () { return 0; }' > conftest.$ac_ext
1209 if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1210 for file in conftest.*; do
1212 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1213 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1217 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1220 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1225 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1226 echo "$ac_t""${ac_cv_exeext}" 1>&6
1230 #--------------------------------------------------------------------
1231 # Check whether --enable-threads or --disable-threads was given.
1232 #--------------------------------------------------------------------
1235 echo $ac_n "checking for building with threads""... $ac_c" 1>&6
1236 echo "configure:1237: checking for building with threads" >&5
1237 # Check whether --enable-threads or --disable-threads was given.
1238 if test "${enable_threads+set}" = set; then
1239 enableval="$enable_threads"
1246 if test "$tcl_ok" = "yes"; then
1247 echo "$ac_t""yes" 1>&6
1249 cat >> confdefs.h <<\EOF
1250 #define TCL_THREADS 1
1255 echo "$ac_t""no (default)" 1>&6
1259 #--------------------------------------------------------------------
1260 # The statements below define a collection of symbols related to
1261 # building libtk as a shared library instead of a static library.
1262 #--------------------------------------------------------------------
1265 echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
1266 echo "configure:1267: checking how to build libraries" >&5
1267 # Check whether --enable-shared or --disable-shared was given.
1268 if test "${enable_shared+set}" = set; then
1269 enableval="$enable_shared"
1276 if test "${enable_shared+set}" = set; then
1277 enableval="$enable_shared"
1283 if test "$tcl_ok" = "yes" ; then
1284 echo "$ac_t""shared" 1>&6
1287 echo "$ac_t""static" 1>&6
1289 cat >> confdefs.h <<\EOF
1290 #define STATIC_BUILD 1
1296 #--------------------------------------------------------------------
1297 # The statements below define a collection of compile flags. This
1298 # macro depends on the value of SHARED_BUILD, and should be called
1299 # after SC_ENABLE_SHARED checks the configure switches.
1300 #--------------------------------------------------------------------
1303 TCL_LIB_VERSIONS_OK=nodots
1305 # Extract the first word of "cygpath", so it can be a program name with args.
1306 set dummy cygpath; ac_word=$2
1307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_word" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_CYGPATH'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$CYGPATH"; then
1313 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_CYGPATH="cygpath -w"
1325 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1328 CYGPATH="$ac_cv_prog_CYGPATH"
1329 if test -n "$CYGPATH"; then
1330 echo "$ac_t""$CYGPATH" 1>&6
1332 echo "$ac_t""no" 1>&6
1336 # Check for a bug in gcc's windres that causes the
1337 # compile to fail when a Windows native path is
1338 # passed into windres. The mingw toolchain requires
1339 # Windows native paths while Cygwin should work
1340 # with both. Avoid the bug by passing a POSIX
1341 # path when using the Cygwin toolchain.
1343 if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then
1344 conftest=/tmp/conftest.rc
1345 echo "STRINGTABLE BEGIN" > $conftest
1346 echo "101 \"name\"" >> $conftest
1347 echo "END" >> $conftest
1349 echo $ac_n "checking for Windows native path bug in windres""... $ac_c" 1>&6
1350 echo "configure:1351: checking for Windows native path bug in windres" >&5
1351 cyg_conftest=`$CYGPATH $conftest`
1352 if { ac_try='$RC -o conftest.res.o $cyg_conftest'; { (eval echo configure:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
1353 echo "$ac_t""no" 1>&6
1355 echo "$ac_t""yes" 1>&6
1362 if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then
1365 DEPARG='"$(shell $(CYGPATH) $<)"'
1370 # set various compiler flags depending on whether we are using gcc or cl
1372 echo $ac_n "checking compiler flags""... $ac_c" 1>&6
1373 echo "configure:1374: checking compiler flags" >&5
1374 if test "${GCC}" = "yes" ; then
1382 LIBS_GUI="-lgdi32 -lcomdlg32"
1386 RC_INCLUDE=--include
1388 MAKE_LIB="\${STLIB_LD} \$@"
1389 POST_MAKE_LIB="\${RANLIB} \$@"
1390 MAKE_EXE="\${CC} -o \$@"
1391 LIBPREFIX="lib${VENDORPREFIX}"
1393 if test "${SHARED_BUILD}" = "0" ; then
1395 echo "$ac_t""using static flags" 1>&6
1398 LIBSUFFIX="s\${DBGX}.a"
1399 LIBRARIES="\${STATIC_LIBRARIES}"
1400 EXESUFFIX="s\${DBGX}.exe"
1404 echo "$ac_t""using shared flags" 1>&6
1406 # ad-hoc check to see if CC supports -shared.
1407 if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then
1408 { echo "configure: error: ${CC} does not support the -shared option.
1409 You will need to upgrade to a newer version of the toolchain." 1>&2; exit 1; }
1413 # Link with gcc since ld does not link to default libs like
1414 # -luser32 and -lmsvcrt. We also need to add CFLAGS so important
1415 # flags like -mno-cygwin get passed in to CC.
1416 SHLIB_LD='${CC} -shared ${CFLAGS}'
1417 # Add SHLIB_LD_LIBS to the Make rule, not here.
1418 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \
1419 -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)"
1420 TK_DLL_BASE="-Wl,--image-base=0x66300000"
1422 LIBSUFFIX="\${DBGX}.a"
1423 DLLSUFFIX="\${DBGX}.dll"
1424 EXESUFFIX="\${DBGX}.exe"
1425 LIBRARIES="\${SHARED_LIBRARIES}"
1430 CFLAGS_WARNING="-Wall -Wconversion"
1434 # Specify the CC output file names based on the target name
1438 # Specify linker flags depending on the type of app being
1439 # built -- Console vs. Window.
1440 LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}"
1441 LDFLAGS_WINDOW="-mwindows ${extra_ldflags}"
1446 SHLIB_LD="link -dll -nologo"
1447 SHLIB_LD_LIBS="user32.lib advapi32.lib"
1448 LIBS="user32.lib advapi32.lib"
1449 LIBS_GUI="gdi32.lib comdlg32.lib"
1450 STLIB_LD="lib -nologo"
1456 MAKE_LIB="\${STLIB_LD} -out:\$@"
1458 MAKE_EXE="\${CC} -Fe\$@"
1459 LIBPREFIX=${VENDORPREFIX}
1461 if test "${SHARED_BUILD}" = "0" ; then
1463 echo "$ac_t""using static flags" 1>&6
1466 LIBSUFFIX="s\${DBGX}.lib"
1467 LIBRARIES="\${STATIC_LIBRARIES}"
1468 EXESUFFIX="s\${DBGX}.exe"
1472 echo "$ac_t""using shared flags" 1>&6
1474 # Add SHLIB_LD_LIBS to the Make rule, not here.
1475 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@"
1476 LIBSUFFIX="\${DBGX}.lib"
1477 DLLSUFFIX="\${DBGX}.dll"
1478 EXESUFFIX="\${DBGX}.exe"
1479 LIBRARIES="\${SHARED_LIBRARIES}"
1483 CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d"
1484 # CFLAGS_OPTIMIZE="-nologo -O2 -Gs -GD ${runtime}"
1485 CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}"
1486 CFLAGS_WARNING="-W3"
1487 LDFLAGS_DEBUG="-debug:full -debugtype:cv"
1488 LDFLAGS_OPTIMIZE="-release"
1490 # Specify the CC output file names based on the target name
1492 CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\""
1494 # Specify linker flags depending on the type of app being
1495 # built -- Console vs. Window.
1496 LDFLAGS_CONSOLE="-link -subsystem:console"
1497 LDFLAGS_WINDOW="-link -subsystem:windows"
1500 # TCL_LIB_SUFFIX is defined here and in tclConfig.sh so that macros
1501 # can use a single variable name for both Tcl and extensions.
1502 TCL_LIB_SUFFIX=$LIBSUFFIX
1505 #--------------------------------------------------------------------
1506 # man2tcl needs this so that it can use errno.h
1507 #--------------------------------------------------------------------
1509 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1510 echo "configure:1511: checking how to run the C preprocessor" >&5
1511 # On Suns, sometimes $CPP names a directory.
1512 if test -n "$CPP" && test -d "$CPP"; then
1515 if test -z "$CPP"; then
1516 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 # This must be in double quotes, not single quotes, because CPP may get
1520 # substituted into the Makefile and "${CC-cc}" will confuse make.
1522 # On the NeXT, cc -E runs the code through the compiler's parser,
1523 # not just through cpp.
1524 cat > conftest.$ac_ext <<EOF
1525 #line 1526 "configure"
1526 #include "confdefs.h"
1530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1531 { (eval echo configure:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1533 if test -z "$ac_err"; then
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1540 CPP="${CC-cc} -E -traditional-cpp"
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1548 { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1550 if test -z "$ac_err"; then
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1557 CPP="${CC-cc} -nologo -E"
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1565 { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1567 if test -z "$ac_err"; then
1571 echo "configure: failed program was:" >&5
1572 cat conftest.$ac_ext >&5
1581 ac_cv_prog_CPP="$CPP"
1583 CPP="$ac_cv_prog_CPP"
1585 ac_cv_prog_CPP="$CPP"
1587 echo "$ac_t""$CPP" 1>&6
1589 ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for errno.h""... $ac_c" 1>&6
1591 echo "configure:1592: checking for errno.h" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1619 echo "$ac_t""no" 1>&6
1620 MAN2TCLFLAGS="-DNO_ERRNO_H"
1625 #--------------------------------------------------------------------
1626 # Set the default compiler switches based on the --enable-symbols
1627 # option. This macro depends on C flags, and should be called
1628 # after SC_CONFIG_CFLAGS macro is called.
1629 #--------------------------------------------------------------------
1632 echo $ac_n "checking for build with symbols""... $ac_c" 1>&6
1633 echo "configure:1634: checking for build with symbols" >&5
1634 # Check whether --enable-symbols or --disable-symbols was given.
1635 if test "${enable_symbols+set}" = set; then
1636 enableval="$enable_symbols"
1643 if test "$tcl_ok" = "yes"; then
1644 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
1645 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
1647 echo "$ac_t""yes" 1>&6
1649 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
1650 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
1652 echo "$ac_t""no" 1>&6
1658 #--------------------------------------------------------------------
1659 # Locate and source the tclConfig.sh file.
1660 #--------------------------------------------------------------------
1663 echo $ac_n "checking the location of tclConfig.sh""... $ac_c" 1>&6
1664 echo "configure:1665: checking the location of tclConfig.sh" >&5
1667 if test -d ../../tcl8.1/win; then
1668 TCL_BIN_DIR_DEFAULT=../../tcl8.1/win
1670 TCL_BIN_DIR_DEFAULT=../../tcl/win
1674 # Check whether --with-tcl or --without-tcl was given.
1675 if test "${with_tcl+set}" = set; then
1677 TCL_BIN_DIR=$withval
1679 TCL_BIN_DIR=`cd $TCL_BIN_DIR_DEFAULT; pwd`
1682 if test ! -d $TCL_BIN_DIR; then
1683 { echo "configure: error: Tcl directory $TCL_BIN_DIR does not exist" 1>&2; exit 1; }
1685 if test ! -f $TCL_BIN_DIR/tclConfig.sh; then
1686 { echo "configure: error: There is no tclConfig.sh in $TCL_BIN_DIR: perhaps you did not specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" 1>&2; exit 1; }
1688 echo "$ac_t""$TCL_BIN_DIR/tclConfig.sh" 1>&6
1691 echo $ac_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh""... $ac_c" 1>&6
1692 echo "configure:1693: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
1694 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
1695 echo "$ac_t""loading" 1>&6
1696 . $TCL_BIN_DIR/tclConfig.sh
1698 echo "$ac_t""file not found" 1>&6
1701 # The eval is required to do the TCL_DBGX substitution in the
1702 # TCL_LIB_FILE variable.
1704 eval TCL_LIB_FILE=${TCL_LIB_FILE}
1705 eval TCL_LIB_FLAG=${TCL_LIB_FLAG}
1712 #------------------------------------------------------------------------
1713 # tkConfig.sh refers to this by a different name
1714 #------------------------------------------------------------------------
1716 TK_SHARED_BUILD=${SHARED_BUILD}
1718 #--------------------------------------------------------------------
1719 # Perform final evaluations of variables with possible substitutions.
1720 #--------------------------------------------------------------------
1722 NODOT_VERSION=${VER}
1724 TK_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}"
1725 TK_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
1726 TK_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
1729 val="`cd $srcdir/..; pwd`"
1731 if test "$val" = "" ; then
1732 { echo "configure: error: Empty value for variable TK_SRC_DIR" 1>&2; exit 1; }
1736 *windows32* | *mingw32*)
1737 if test "${CYGPATH}" = ""; then
1738 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
1739 elif test "${CYGPATH}" = "echo"; then
1740 # No cygpath when cross compiling
1743 # store literal argument text in a variable
1745 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
1746 val="`${CYGPATH} $val`"
1747 # Convert path like C:\Tmp\foo to C:/Tmp/foo
1748 TK_SRC_DIR="`echo $val | sed -e s#\\\\\\\\#/#g`"
1752 # Default to a no-op under Unix or Cygwin gcc
1760 suffix=${TK_SHARED_LIB_SUFFIX}
1763 *windows32* | *mingw32* | *cygwin*)
1764 eval "long_libname=\"${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1767 eval "long_libname=\"lib${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1771 eval "long_libname=${long_libname}"
1773 # Trick to replace DBGX with TCL_DBGX
1775 eval "long_libname=${long_libname}"
1777 TK_DLL_FILE=$long_libname
1781 suffix=${TK_UNSHARED_LIB_SUFFIX}
1784 *windows32* | *mingw32*)
1785 if test "$GCC" != yes; then
1786 eval "long_libname=\"${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1788 eval "long_libname=\"lib${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1792 eval "long_libname=\"lib${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1796 eval "long_libname=${long_libname}"
1798 # Trick to replace DBGX with TCL_DBGX
1800 eval "long_libname=${long_libname}"
1802 TK_LIB_FILE=$long_libname
1806 suffix=${TK_UNSHARED_LIB_SUFFIX}
1809 *windows32* | *mingw32*)
1810 if test "$GCC" != yes; then
1811 eval "long_libname=\"${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1813 eval "long_libname=\"lib${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1817 eval "long_libname=\"lib${TCL_VENDOR_PREFIX}${libname}${suffix}\""
1821 eval "long_libname=${long_libname}"
1823 # Trick to replace DBGX with TCL_DBGX
1825 eval "long_libname=${long_libname}"
1827 TK_STUB_LIB_FILE=$long_libname
1830 if test "$GCC" = "yes"; then
1831 GNU_TK_LIB_FILE=${TK_LIB_FILE}
1835 MSVC_TK_LIB_FILE=${TK_LIB_FILE}
1840 version=${TK_VERSION}
1842 if test "$TCL_LIB_SUFFIX" = "" ; then
1843 { echo "configure: error: The TCL_LIB_SUFFIX variable is not defined" 1>&2; exit 1; }
1846 # If the . character is not allowed in lib name, remove it from version
1847 if test "${TCL_LIB_VERSIONS_OK}" != "ok"; then
1848 version=`echo $version | tr -d .`
1852 *windows32* | *mingw32*)
1853 if test "$GCC" != yes; then
1854 eval "short_libname=\"${TCL_VENDOR_PREFIX}${libname}${version}${TCL_LIB_SUFFIX}\""
1856 short_libname="-l${TCL_VENDOR_PREFIX}${libname}${version}${TCL_DBGX}"
1860 short_libname="-l${TCL_VENDOR_PREFIX}${libname}${version}\${TCL_DBGX}"
1864 TK_STUB_LIB_FLAG=$short_libname
1868 *windows32* | *mingw32*)
1869 if test "$GCC" != yes; then
1871 val="`pwd`/${TK_STUB_LIB_FLAG}"
1873 if test "$val" = "" ; then
1874 { echo "configure: error: Empty value for variable TK_BUILD_STUB_LIB_SPEC" 1>&2; exit 1; }
1878 *windows32* | *mingw32*)
1879 if test "${CYGPATH}" = ""; then
1880 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
1881 elif test "${CYGPATH}" = "echo"; then
1882 # No cygpath when cross compiling
1883 TK_BUILD_STUB_LIB_SPEC=$val
1885 # store literal argument text in a variable
1887 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
1888 val="`${CYGPATH} $val`"
1889 # Convert path like C:\Tmp\foo to C:/Tmp/foo
1890 TK_BUILD_STUB_LIB_SPEC="`echo $val | sed -e s#\\\\\\\\#/#g`"
1894 # Default to a no-op under Unix or Cygwin gcc
1895 TK_BUILD_STUB_LIB_SPEC=$val
1903 if test "$val" = "" ; then
1904 { echo "configure: error: Empty value for variable dirname" 1>&2; exit 1; }
1908 *windows32* | *mingw32*)
1909 if test "${CYGPATH}" = ""; then
1910 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
1911 elif test "${CYGPATH}" = "echo"; then
1912 # No cygpath when cross compiling
1915 # store literal argument text in a variable
1917 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
1918 val="`${CYGPATH} $val`"
1919 # Convert path like C:\Tmp\foo to C:/Tmp/foo
1920 dirname="`echo $val | sed -e s#\\\\\\\\#/#g`"
1924 # Default to a no-op under Unix or Cygwin gcc
1929 TK_BUILD_STUB_LIB_SPEC="-L${dirname} ${TK_STUB_LIB_FLAG}"
1933 TK_BUILD_STUB_LIB_SPEC="-L`pwd` ${TK_STUB_LIB_FLAG}"
1939 *windows32* | *mingw32*)
1940 if test "$GCC" != yes; then
1942 val="${exec_prefix}/lib/${TK_STUB_LIB_FLAG}"
1944 if test "$val" = "" ; then
1945 { echo "configure: error: Empty value for variable TK_STUB_LIB_SPEC" 1>&2; exit 1; }
1949 *windows32* | *mingw32*)
1950 if test "${CYGPATH}" = ""; then
1951 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
1952 elif test "${CYGPATH}" = "echo"; then
1953 # No cygpath when cross compiling
1954 TK_STUB_LIB_SPEC=$val
1956 # store literal argument text in a variable
1958 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
1959 val="`${CYGPATH} $val`"
1960 # Convert path like C:\Tmp\foo to C:/Tmp/foo
1961 TK_STUB_LIB_SPEC="`echo $val | sed -e s#\\\\\\\\#/#g`"
1965 # Default to a no-op under Unix or Cygwin gcc
1966 TK_STUB_LIB_SPEC=$val
1972 val=${exec_prefix}/lib
1974 if test "$val" = "" ; then
1975 { echo "configure: error: Empty value for variable dirname" 1>&2; exit 1; }
1979 *windows32* | *mingw32*)
1980 if test "${CYGPATH}" = ""; then
1981 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
1982 elif test "${CYGPATH}" = "echo"; then
1983 # No cygpath when cross compiling
1986 # store literal argument text in a variable
1988 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
1989 val="`${CYGPATH} $val`"
1990 # Convert path like C:\Tmp\foo to C:/Tmp/foo
1991 dirname="`echo $val | sed -e s#\\\\\\\\#/#g`"
1995 # Default to a no-op under Unix or Cygwin gcc
2000 TK_STUB_LIB_SPEC="-L${dirname} ${TK_STUB_LIB_FLAG}"
2004 TK_STUB_LIB_SPEC="-L${exec_prefix}/lib ${TK_STUB_LIB_FLAG}"
2011 val="`pwd`/${TK_STUB_LIB_FILE}"
2013 if test "$val" = "" ; then
2014 { echo "configure: error: Empty value for variable TK_BUILD_STUB_LIB_PATH" 1>&2; exit 1; }
2018 *windows32* | *mingw32*)
2019 if test "${CYGPATH}" = ""; then
2020 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2021 elif test "${CYGPATH}" = "echo"; then
2022 # No cygpath when cross compiling
2023 TK_BUILD_STUB_LIB_PATH=$val
2025 # store literal argument text in a variable
2027 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2028 val="`${CYGPATH} $val`"
2029 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2030 TK_BUILD_STUB_LIB_PATH="`echo $val | sed -e s#\\\\\\\\#/#g`"
2034 # Default to a no-op under Unix or Cygwin gcc
2035 TK_BUILD_STUB_LIB_PATH=$val
2042 val="${exec_prefix}/lib/${TK_STUB_LIB_FILE}"
2044 if test "$val" = "" ; then
2045 { echo "configure: error: Empty value for variable TK_STUB_LIB_PATH" 1>&2; exit 1; }
2049 *windows32* | *mingw32*)
2050 if test "${CYGPATH}" = ""; then
2051 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2052 elif test "${CYGPATH}" = "echo"; then
2053 # No cygpath when cross compiling
2054 TK_STUB_LIB_PATH=$val
2056 # store literal argument text in a variable
2058 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2059 val="`${CYGPATH} $val`"
2060 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2061 TK_STUB_LIB_PATH="`echo $val | sed -e s#\\\\\\\\#/#g`"
2065 # Default to a no-op under Unix or Cygwin gcc
2066 TK_STUB_LIB_PATH=$val
2072 eval "DLLSUFFIX=${DLLSUFFIX}"
2073 eval "LIBPREFIX=${LIBPREFIX}"
2074 eval "LIBSUFFIX=${LIBSUFFIX}"
2075 eval "EXESUFFIX=${EXESUFFIX}"
2081 if test "$TCL_LIB_SUFFIX" = "" ; then
2082 { echo "configure: error: The TCL_LIB_SUFFIX variable is not defined" 1>&2; exit 1; }
2085 # If the . character is not allowed in lib name, remove it from version
2086 if test "${TCL_LIB_VERSIONS_OK}" != "ok"; then
2087 version=`echo $version | tr -d .`
2091 *windows32* | *mingw32*)
2092 if test "$GCC" != yes; then
2093 eval "short_libname=\"${TCL_VENDOR_PREFIX}${libname}${version}${TCL_LIB_SUFFIX}\""
2095 short_libname="-l${TCL_VENDOR_PREFIX}${libname}${version}${TCL_DBGX}"
2099 short_libname="-l${TCL_VENDOR_PREFIX}${libname}${version}\${TCL_DBGX}"
2103 TK_LIB_FLAG=$short_libname
2107 *windows32* | *mingw32*)
2108 if test "$GCC" != yes; then
2110 val="`pwd`/${TK_LIB_FLAG}"
2112 if test "$val" = "" ; then
2113 { echo "configure: error: Empty value for variable TK_BUILD_LIB_SPEC" 1>&2; exit 1; }
2117 *windows32* | *mingw32*)
2118 if test "${CYGPATH}" = ""; then
2119 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2120 elif test "${CYGPATH}" = "echo"; then
2121 # No cygpath when cross compiling
2122 TK_BUILD_LIB_SPEC=$val
2124 # store literal argument text in a variable
2126 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2127 val="`${CYGPATH} $val`"
2128 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2129 TK_BUILD_LIB_SPEC="`echo $val | sed -e s#\\\\\\\\#/#g`"
2133 # Default to a no-op under Unix or Cygwin gcc
2134 TK_BUILD_LIB_SPEC=$val
2142 if test "$val" = "" ; then
2143 { echo "configure: error: Empty value for variable dirname" 1>&2; exit 1; }
2147 *windows32* | *mingw32*)
2148 if test "${CYGPATH}" = ""; then
2149 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2150 elif test "${CYGPATH}" = "echo"; then
2151 # No cygpath when cross compiling
2154 # store literal argument text in a variable
2156 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2157 val="`${CYGPATH} $val`"
2158 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2159 dirname="`echo $val | sed -e s#\\\\\\\\#/#g`"
2163 # Default to a no-op under Unix or Cygwin gcc
2168 TK_BUILD_LIB_SPEC="-L${dirname} ${TK_LIB_FLAG}"
2172 TK_BUILD_LIB_SPEC="-L`pwd` ${TK_LIB_FLAG}"
2178 *windows32* | *mingw32*)
2179 if test "$GCC" != yes; then
2181 val="${exec_prefix}/lib/${TK_LIB_FLAG}"
2183 if test "$val" = "" ; then
2184 { echo "configure: error: Empty value for variable TK_LIB_SPEC" 1>&2; exit 1; }
2188 *windows32* | *mingw32*)
2189 if test "${CYGPATH}" = ""; then
2190 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2191 elif test "${CYGPATH}" = "echo"; then
2192 # No cygpath when cross compiling
2195 # store literal argument text in a variable
2197 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2198 val="`${CYGPATH} $val`"
2199 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2200 TK_LIB_SPEC="`echo $val | sed -e s#\\\\\\\\#/#g`"
2204 # Default to a no-op under Unix or Cygwin gcc
2211 val=${exec_prefix}/lib
2213 if test "$val" = "" ; then
2214 { echo "configure: error: Empty value for variable dirname" 1>&2; exit 1; }
2218 *windows32* | *mingw32*)
2219 if test "${CYGPATH}" = ""; then
2220 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2221 elif test "${CYGPATH}" = "echo"; then
2222 # No cygpath when cross compiling
2225 # store literal argument text in a variable
2227 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2228 val="`${CYGPATH} $val`"
2229 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2230 dirname="`echo $val | sed -e s#\\\\\\\\#/#g`"
2234 # Default to a no-op under Unix or Cygwin gcc
2239 TK_LIB_SPEC="-L${dirname} ${TK_LIB_FLAG}"
2243 TK_LIB_SPEC="-L${exec_prefix}/lib ${TK_LIB_FLAG}"
2249 val="`pwd`/${TK_LIB_FILE}"
2251 if test "$val" = "" ; then
2252 { echo "configure: error: Empty value for variable TK_LIB_FULL_PATH" 1>&2; exit 1; }
2256 *windows32* | *mingw32*)
2257 if test "${CYGPATH}" = ""; then
2258 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2259 elif test "${CYGPATH}" = "echo"; then
2260 # No cygpath when cross compiling
2261 TK_LIB_FULL_PATH=$val
2263 # store literal argument text in a variable
2265 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2266 val="`${CYGPATH} $val`"
2267 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2268 TK_LIB_FULL_PATH="`echo $val | sed -e s#\\\\\\\\#/#g`"
2272 # Default to a no-op under Unix or Cygwin gcc
2273 TK_LIB_FULL_PATH=$val
2279 if test "$SHARED_BUILD" = 0 -o $TCL_NEEDS_EXP_FILE = 0; then
2280 WISH_RES=wish_static.${RES}
2283 WISH_RES=wish_static.${RES}
2284 TK_RES=tk_dll.${RES}
2286 TK_SHARED_BUILD=${SHARED_BUILD}
2288 CFG_TK_SHARED_LIB_SUFFIX=${TK_SHARED_LIB_SUFFIX}
2289 CFG_TK_UNSHARED_LIB_SUFFIX=${TK_UNSHARED_LIB_SUFFIX}
2290 CFG_TK_EXPORT_FILE_SUFFIX=${TK_EXPORT_FILE_SUFFIX}
2292 # Add X include path, it must be in a format
2293 # like -I"C:/Dir" and not -I"C:\Dir" or VC++ will puke.
2295 val=`cd $srcdir/../xlib; pwd`
2297 if test "$val" = "" ; then
2298 { echo "configure: error: Empty value for variable XINCLUDES" 1>&2; exit 1; }
2302 *windows32* | *mingw32*)
2303 if test "${CYGPATH}" = ""; then
2304 { echo "configure: error: CYGPATH variable is not defined." 1>&2; exit 1; }
2305 elif test "${CYGPATH}" = "echo"; then
2306 # No cygpath when cross compiling
2309 # store literal argument text in a variable
2311 # Convert Cygwin to Windows path (/tmp/foo -> C:\Tmp\foo)
2312 val="`${CYGPATH} $val`"
2313 # Convert path like C:\Tmp\foo to C:/Tmp/foo
2314 XINCLUDES="`echo $val | sed -e s#\\\\\\\\#/#g`"
2318 # Default to a no-op under Unix or Cygwin gcc
2323 XINCLUDES="-I\"${XINCLUDES}\""
2410 cat > confcache <<\EOF
2411 # This file is a shell script that caches the results of configure
2412 # tests run on this system so they can be shared between configure
2413 # scripts and configure runs. It is not useful on other systems.
2414 # If it contains results you don't want to keep, you may remove or edit it.
2416 # By default, configure uses ./config.cache as the cache file,
2417 # creating it if it does not exist already. You can give configure
2418 # the --cache-file=FILE option to use a different cache file; that is
2419 # what configure does when it calls configure scripts in
2420 # subdirectories, so they share the cache.
2421 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2422 # config.status only pays attention to the cache file if you give it the
2423 # --recheck option to rerun configure.
2426 # The following way of writing the cache mishandles newlines in values,
2427 # but we know of no workaround that is simple, portable, and efficient.
2428 # So, don't put newlines in cache variables' values.
2429 # Ultrix sh set writes to stderr and can't be redirected directly,
2430 # and sets the high bit in the cache file unless we assign to the vars.
2432 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2434 # `set' does not quote correctly, so add quotes (double-quote substitution
2435 # turns \\\\ into \\, and sed turns \\ into \).
2437 -e "s/'/'\\\\''/g" \
2438 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2441 # `set' quotes correctly as required by POSIX, so do not add quotes.
2442 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2445 if cmp -s $cache_file confcache; then
2448 if test -w $cache_file; then
2449 echo "updating cache $cache_file"
2450 cat confcache > $cache_file
2452 echo "not updating unwritable cache $cache_file"
2457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2459 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2460 # Let make expand exec_prefix.
2461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2463 # Any assignment to VPATH causes Sun make to only execute
2464 # the first set of double-colon rules, so remove it if not needed.
2465 # If there is a colon in the path, we need to keep it.
2466 if test "x$srcdir" = x.; then
2467 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2470 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2472 # Transform confdefs.h into DEFS.
2473 # Protect against shell expansion while executing Makefile rules.
2474 # Protect against Makefile macro expansion.
2475 cat > conftest.defs <<\EOF
2476 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2477 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2482 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2486 # Without the "./", some shells look in PATH for config.status.
2487 : ${CONFIG_STATUS=./config.status}
2489 echo creating $CONFIG_STATUS
2490 rm -f $CONFIG_STATUS
2491 cat > $CONFIG_STATUS <<EOF
2493 # Generated automatically by configure.
2494 # Run this file to recreate the current configuration.
2495 # This directory was configured as follows,
2496 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2498 # $0 $ac_configure_args
2500 # Compiler output produced by configure, useful for debugging
2501 # configure, is in ./config.log if it exists.
2503 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2506 case "\$ac_option" in
2507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2508 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2509 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2510 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2511 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2513 -help | --help | --hel | --he | --h)
2514 echo "\$ac_cs_usage"; exit 0 ;;
2515 *) echo "\$ac_cs_usage"; exit 1 ;;
2519 ac_given_srcdir=$srcdir
2521 trap 'rm -fr `echo "Makefile tkConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2523 cat >> $CONFIG_STATUS <<EOF
2525 # Protect against being on the right side of a sed subst in config.status.
2526 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2527 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2531 s%@CFLAGS@%$CFLAGS%g
2532 s%@CPPFLAGS@%$CPPFLAGS%g
2533 s%@CXXFLAGS@%$CXXFLAGS%g
2534 s%@FFLAGS@%$FFLAGS%g
2536 s%@LDFLAGS@%$LDFLAGS%g
2538 s%@exec_prefix@%$exec_prefix%g
2539 s%@prefix@%$prefix%g
2540 s%@program_transform_name@%$program_transform_name%g
2541 s%@bindir@%$bindir%g
2542 s%@sbindir@%$sbindir%g
2543 s%@libexecdir@%$libexecdir%g
2544 s%@datadir@%$datadir%g
2545 s%@sysconfdir@%$sysconfdir%g
2546 s%@sharedstatedir@%$sharedstatedir%g
2547 s%@localstatedir@%$localstatedir%g
2548 s%@libdir@%$libdir%g
2549 s%@includedir@%$includedir%g
2550 s%@oldincludedir@%$oldincludedir%g
2551 s%@infodir@%$infodir%g
2552 s%@mandir@%$mandir%g
2555 s%@host_alias@%$host_alias%g
2556 s%@host_cpu@%$host_cpu%g
2557 s%@host_vendor@%$host_vendor%g
2558 s%@host_os@%$host_os%g
2560 s%@build_alias@%$build_alias%g
2561 s%@build_cpu@%$build_cpu%g
2562 s%@build_vendor@%$build_vendor%g
2563 s%@build_os@%$build_os%g
2565 s%@RANLIB@%$RANLIB%g
2567 s%@SET_MAKE@%$SET_MAKE%g
2568 s%@OBJEXT@%$OBJEXT%g
2569 s%@EXEEXT@%$EXEEXT%g
2570 s%@CYGPATH@%$CYGPATH%g
2572 s%@MAN2TCLFLAGS@%$MAN2TCLFLAGS%g
2573 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2574 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
2575 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2576 s%@TK_VERSION@%$TK_VERSION%g
2577 s%@TK_MAJOR_VERSION@%$TK_MAJOR_VERSION%g
2578 s%@TK_MINOR_VERSION@%$TK_MINOR_VERSION%g
2579 s%@TK_PATCH_LEVEL@%$TK_PATCH_LEVEL%g
2580 s%@TK_DBGX@%$TK_DBGX%g
2581 s%@TK_LIB_FILE@%$TK_LIB_FILE%g
2582 s%@GNU_TK_LIB_FILE@%$GNU_TK_LIB_FILE%g
2583 s%@MSVC_TK_LIB_FILE@%$MSVC_TK_LIB_FILE%g
2584 s%@TK_DLL_FILE@%$TK_DLL_FILE%g
2585 s%@TK_DLL_BASE@%$TK_DLL_BASE%g
2586 s%@TK_LIB_FLAG@%$TK_LIB_FLAG%g
2587 s%@TK_STUB_LIB_FILE@%$TK_STUB_LIB_FILE%g
2588 s%@TK_STUB_LIB_FLAG@%$TK_STUB_LIB_FLAG%g
2589 s%@TK_STUB_LIB_SPEC@%$TK_STUB_LIB_SPEC%g
2590 s%@TK_STUB_LIB_PATH@%$TK_STUB_LIB_PATH%g
2591 s%@TK_BUILD_STUB_LIB_SPEC@%$TK_BUILD_STUB_LIB_SPEC%g
2592 s%@TK_BUILD_STUB_LIB_PATH@%$TK_BUILD_STUB_LIB_PATH%g
2593 s%@TK_SRC_DIR@%$TK_SRC_DIR%g
2594 s%@TK_BIN_DIR@%$TK_BIN_DIR%g
2595 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
2596 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
2597 s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
2598 s%@TK_SHARED_BUILD@%$TK_SHARED_BUILD%g
2599 s%@WISH_RES@%$WISH_RES%g
2600 s%@TK_RES@%$TK_RES%g
2601 s%@TCL_VERSION@%$TCL_VERSION%g
2602 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
2603 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
2604 s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g
2605 s%@TCL_DLL_FILE@%$TCL_DLL_FILE%g
2606 s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g
2607 s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g
2608 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2609 s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g
2610 s%@TCL_DBGX@%$TCL_DBGX%g
2611 s%@CFG_TK_SHARED_LIB_SUFFIX@%$CFG_TK_SHARED_LIB_SUFFIX%g
2612 s%@CFG_TK_UNSHARED_LIB_SUFFIX@%$CFG_TK_UNSHARED_LIB_SUFFIX%g
2613 s%@CFG_TK_EXPORT_FILE_SUFFIX@%$CFG_TK_EXPORT_FILE_SUFFIX%g
2614 s%@DEPARG@%$DEPARG%g
2615 s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g
2616 s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
2617 s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
2618 s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g
2619 s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
2620 s%@STLIB_LD@%$STLIB_LD%g
2621 s%@SHLIB_LD@%$SHLIB_LD%g
2622 s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
2623 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2624 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
2625 s%@CC_OBJNAME@%$CC_OBJNAME%g
2626 s%@CC_EXENAME@%$CC_EXENAME%g
2627 s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g
2628 s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g
2629 s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g
2630 s%@LDFLAGS_CONSOLE@%$LDFLAGS_CONSOLE%g
2631 s%@LDFLAGS_WINDOW@%$LDFLAGS_WINDOW%g
2632 s%@RC_OUT@%$RC_OUT%g
2633 s%@RC_TYPE@%$RC_TYPE%g
2634 s%@RC_INCLUDE@%$RC_INCLUDE%g
2636 s%@LIBS_GUI@%$LIBS_GUI%g
2637 s%@DLLSUFFIX@%$DLLSUFFIX%g
2638 s%@LIBPREFIX@%$LIBPREFIX%g
2639 s%@LIBSUFFIX@%$LIBSUFFIX%g
2640 s%@EXESUFFIX@%$EXESUFFIX%g
2641 s%@LIBRARIES@%$LIBRARIES%g
2642 s%@MAKE_LIB@%$MAKE_LIB%g
2643 s%@POST_MAKE_LIB@%$POST_MAKE_LIB%g
2644 s%@MAKE_DLL@%$MAKE_DLL%g
2645 s%@MAKE_EXE@%$MAKE_EXE%g
2646 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
2647 s%@XINCLUDES@%$XINCLUDES%g
2652 cat >> $CONFIG_STATUS <<\EOF
2654 # Split the substitutions into bite-sized pieces for seds with
2655 # small command number limits, like on Digital OSF/1 and HP-UX.
2656 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2657 ac_file=1 # Number of current file.
2658 ac_beg=1 # First line for current file.
2659 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2662 while $ac_more_lines; do
2663 if test $ac_beg -gt 1; then
2664 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2666 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2668 if test ! -s conftest.s$ac_file; then
2670 rm -f conftest.s$ac_file
2672 if test -z "$ac_sed_cmds"; then
2673 ac_sed_cmds="sed -f conftest.s$ac_file"
2675 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2677 ac_file=`expr $ac_file + 1`
2679 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2682 if test -z "$ac_sed_cmds"; then
2687 cat >> $CONFIG_STATUS <<EOF
2689 CONFIG_FILES=\${CONFIG_FILES-"Makefile tkConfig.sh"}
2691 cat >> $CONFIG_STATUS <<\EOF
2692 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2695 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2696 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2697 *) ac_file_in="${ac_file}.in" ;;
2700 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2702 # Remove last slash and all that follows it. Not all systems have dirname.
2703 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2704 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2705 # The file is in a subdirectory.
2706 test ! -d "$ac_dir" && mkdir "$ac_dir"
2707 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2708 # A "../" for each directory in $ac_dir_suffix.
2709 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2711 ac_dir_suffix= ac_dots=
2714 case "$ac_given_srcdir" in
2716 if test -z "$ac_dots"; then top_srcdir=.
2717 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2718 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2720 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2721 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2725 echo creating "$ac_file"
2727 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2729 *Makefile*) ac_comsub="1i\\
2730 # $configure_input" ;;
2734 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2736 s%@configure_input@%$configure_input%g
2737 s%@srcdir@%$srcdir%g
2738 s%@top_srcdir@%$top_srcdir%g
2739 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2744 cat >> $CONFIG_STATUS <<EOF
2747 cat >> $CONFIG_STATUS <<\EOF
2751 chmod +x $CONFIG_STATUS
2752 rm -fr confdefs* $ac_clean_files
2753 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1