Tk-Components

Hex Artifact Content
Login

Artifact 5a641759c1977f33c415d8be6de349e376a423ee:


0000: 23 21 2f 62 69 6e 2f 62 61 73 68 20 2d 6e 6f 72  #!/bin/bash -nor
0010: 63 0a 64 6e 6c 09 54 68 69 73 20 66 69 6c 65 20  c.dnl.This file 
0020: 69 73 20 61 6e 20 69 6e 70 75 74 20 66 69 6c 65  is an input file
0030: 20 75 73 65 64 20 62 79 20 74 68 65 20 47 4e 55   used by the GNU
0040: 20 22 61 75 74 6f 63 6f 6e 66 22 20 70 72 6f 67   "autoconf" prog
0050: 72 61 6d 20 74 6f 0a 64 6e 6c 09 67 65 6e 65 72  ram to.dnl.gener
0060: 61 74 65 20 74 68 65 20 66 69 6c 65 20 22 63 6f  ate the file "co
0070: 6e 66 69 67 75 72 65 22 2c 20 77 68 69 63 68 20  nfigure", which 
0080: 69 73 20 72 75 6e 20 64 75 72 69 6e 67 20 54 63  is run during Tc
0090: 6c 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 0a 64  l installation.d
00a0: 6e 6c 09 74 6f 20 63 6f 6e 66 69 67 75 72 65 20  nl.to configure 
00b0: 74 68 65 20 73 79 73 74 65 6d 20 66 6f 72 20 74  the system for t
00c0: 68 65 20 6c 6f 63 61 6c 20 65 6e 76 69 72 6f 6e  he local environ
00d0: 6d 65 6e 74 2e 0a 23 0a 23 20 52 43 53 3a 20 40  ment..#.# RCS: @
00e0: 28 23 29 20 24 49 64 3a 20 63 6f 6e 66 69 67 75  (#) $Id: configu
00f0: 72 65 2e 69 6e 2c 76 20 31 2e 34 38 20 32 30 30  re.in,v 1.48 200
0100: 38 2f 31 31 2f 30 35 20 30 30 3a 31 33 3a 30 30  8/11/05 00:13:00
0110: 20 68 6f 62 62 73 20 45 78 70 20 24 0a 0a 23 2d   hobbs Exp $..#-
0120: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0130: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0140: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0150: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0160: 2d 2d 2d 2d 2d 2d 0a 23 20 5f 5f 43 48 41 4e 47  ------.# __CHANG
0170: 45 5f 5f 0a 23 20 53 65 74 20 79 6f 75 72 20 70  E__.# Set your p
0180: 61 63 6b 61 67 65 20 6e 61 6d 65 20 61 6e 64 20  ackage name and 
0190: 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 73 20  version numbers 
01a0: 68 65 72 65 2e 0a 23 0a 23 20 54 68 69 73 20 69  here..#.# This i
01b0: 6e 69 74 69 61 6c 69 7a 65 73 20 74 68 65 20 65  nitializes the e
01c0: 6e 76 69 72 6f 6e 6d 65 6e 74 20 77 69 74 68 20  nvironment with 
01d0: 50 41 43 4b 41 47 45 5f 4e 41 4d 45 20 61 6e 64  PACKAGE_NAME and
01e0: 20 50 41 43 4b 41 47 45 5f 56 45 52 53 49 4f 4e   PACKAGE_VERSION
01f0: 0a 23 20 73 65 74 20 61 73 20 70 72 6f 76 69 64  .# set as provid
0200: 65 64 2e 20 20 54 68 65 73 65 20 77 69 6c 6c 20  ed.  These will 
0210: 61 6c 73 6f 20 62 65 20 61 64 64 65 64 20 61 73  also be added as
0220: 20 2d 44 20 64 65 66 73 20 69 6e 20 79 6f 75 72   -D defs in your
0230: 20 4d 61 6b 65 66 69 6c 65 0a 23 20 73 6f 20 79   Makefile.# so y
0240: 6f 75 20 63 61 6e 20 65 6e 63 6f 64 65 20 74 68  ou can encode th
0250: 65 20 70 61 63 6b 61 67 65 20 76 65 72 73 69 6f  e package versio
0260: 6e 20 64 69 72 65 63 74 6c 79 20 69 6e 74 6f 20  n directly into 
0270: 74 68 65 20 73 6f 75 72 63 65 20 66 69 6c 65 73  the source files
0280: 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
0290: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f 49  ----------..AC_I
02d0: 4e 49 54 28 5b 63 6f 63 6f 61 70 72 69 6e 74 5d  NIT([cocoaprint]
02e0: 2c 20 5b 31 2e 34 5d 29 0a 0a 69 66 20 74 65 73  , [1.4])..if tes
02f0: 74 20 22 60 75 6e 61 6d 65 20 2d 73 60 22 20 21  t "`uname -s`" !
0300: 3d 20 22 44 61 72 77 69 6e 22 20 2d 6f 20 5c 0a  = "Darwin" -o \.
0310: 09 22 60 75 6e 61 6d 65 20 2d 72 20 7c 20 61 77  ."`uname -r | aw
0320: 6b 20 2d 46 2e 20 27 7b 70 72 69 6e 74 20 5b 24  k -F. '{print [$
0330: 5d 31 7d 27 60 22 20 2d 6c 74 20 39 3b 20 74 68  ]1}'`" -lt 9; th
0340: 65 6e 0a 20 20 20 20 41 43 5f 4d 53 47 5f 45 52  en.    AC_MSG_ER
0350: 52 4f 52 28 5b 4d 61 63 20 4f 53 20 58 20 31 30  ROR([Mac OS X 10
0360: 2e 35 20 6f 72 20 6c 61 74 65 72 20 72 65 71 75  .5 or later requ
0370: 69 72 65 64 21 5d 29 0a 66 69 0a 0a 23 2d 2d 2d  ired!]).fi..#---
0380: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0390: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
03a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
03b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
03c0: 2d 0a 23 20 43 61 6c 6c 20 54 45 41 5f 49 4e 49  -.# Call TEA_INI
03d0: 54 20 61 73 20 74 68 65 20 66 69 72 73 74 20 54  T as the first T
03e0: 45 41 5f 20 6d 61 63 72 6f 20 74 6f 20 73 65 74  EA_ macro to set
03f0: 20 75 70 20 69 6e 69 74 69 61 6c 20 76 61 72 73   up initial vars
0400: 2e 0a 23 20 54 68 69 73 20 77 69 6c 6c 20 64 65  ..# This will de
0410: 66 69 6e 65 20 61 20 24 7b 54 45 41 5f 50 4c 41  fine a ${TEA_PLA
0420: 54 46 4f 52 4d 7d 20 76 61 72 69 61 62 6c 65 20  TFORM} variable 
0430: 3d 3d 20 22 75 6e 69 78 22 20 6f 72 20 22 77 69  == "unix" or "wi
0440: 6e 64 6f 77 73 22 0a 23 20 61 73 20 77 65 6c 6c  ndows".# as well
0450: 20 61 73 20 50 4b 47 5f 4c 49 42 5f 46 49 4c 45   as PKG_LIB_FILE
0460: 20 61 6e 64 20 50 4b 47 5f 53 54 55 42 5f 4c 49   and PKG_STUB_LI
0470: 42 5f 46 49 4c 45 2e 0a 23 2d 2d 2d 2d 2d 2d 2d  B_FILE..#-------
0480: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0490: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
04a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
04b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54  -------------..T
04c0: 45 41 5f 49 4e 49 54 28 5b 33 2e 37 5d 29 0a 0a  EA_INIT([3.7])..
04d0: 41 43 5f 43 4f 4e 46 49 47 5f 41 55 58 5f 44 49  AC_CONFIG_AUX_DI
04e0: 52 28 74 63 6c 63 6f 6e 66 69 67 29 0a 0a 23 2d  R(tclconfig)..#-
04f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0500: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0510: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0520: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0530: 2d 2d 2d 0a 23 20 4c 6f 61 64 20 74 68 65 20 74  ---.# Load the t
0540: 63 6c 43 6f 6e 66 69 67 2e 73 68 20 66 69 6c 65  clConfig.sh file
0550: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
0560: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0570: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0580: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0590: 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 41 54 48  ------..TEA_PATH
05a0: 5f 54 43 4c 43 4f 4e 46 49 47 0a 54 45 41 5f 4c  _TCLCONFIG.TEA_L
05b0: 4f 41 44 5f 54 43 4c 43 4f 4e 46 49 47 0a 0a 23  OAD_TCLCONFIG..#
05c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0600: 2d 2d 2d 2d 0a 23 20 4c 6f 61 64 20 74 68 65 20  ----.# Load the 
0610: 74 6b 43 6f 6e 66 69 67 2e 73 68 20 66 69 6c 65  tkConfig.sh file
0620: 20 69 66 20 6e 65 63 65 73 73 61 72 79 20 28 54   if necessary (T
0630: 6b 20 65 78 74 65 6e 73 69 6f 6e 29 0a 23 2d 2d  k extension).#--
0640: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0650: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0660: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0670: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0680: 2d 2d 0a 0a 54 45 41 5f 50 41 54 48 5f 54 4b 43  --..TEA_PATH_TKC
0690: 4f 4e 46 49 47 0a 54 45 41 5f 4c 4f 41 44 5f 54  ONFIG.TEA_LOAD_T
06a0: 4b 43 4f 4e 46 49 47 0a 0a 23 2d 2d 2d 2d 2d 2d  KCONFIG..#------
06b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06f0: 2d 0a 23 20 48 61 6e 64 6c 65 20 74 68 65 20 2d  -.# Handle the -
0700: 2d 70 72 65 66 69 78 3d 2e 2e 2e 20 6f 70 74 69  -prefix=... opti
0710: 6f 6e 20 62 79 20 64 65 66 61 75 6c 74 69 6e 67  on by defaulting
0720: 20 74 6f 20 77 68 61 74 20 54 63 6c 20 67 61 76   to what Tcl gav
0730: 65 2e 0a 23 20 4d 75 73 74 20 62 65 20 63 61 6c  e..# Must be cal
0740: 6c 65 64 20 61 66 74 65 72 20 54 45 41 5f 4c 4f  led after TEA_LO
0750: 41 44 5f 54 43 4c 43 4f 4e 46 49 47 20 61 6e 64  AD_TCLCONFIG and
0760: 20 62 65 66 6f 72 65 20 54 45 41 5f 53 45 54 55   before TEA_SETU
0770: 50 5f 43 4f 4d 50 49 4c 45 52 2e 0a 23 2d 2d 2d  P_COMPILER..#---
0780: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0790: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07c0: 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 52 45 46 49 58  ----..TEA_PREFIX
07d0: 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..#-------------
07e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0800: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0810: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 53 74 61  ----------.# Sta
0820: 6e 64 61 72 64 20 63 6f 6d 70 69 6c 65 72 20 63  ndard compiler c
0830: 68 65 63 6b 73 2e 0a 23 20 54 68 69 73 20 73 65  hecks..# This se
0840: 74 73 20 75 70 20 43 43 20 62 79 20 75 73 69 6e  ts up CC by usin
0850: 67 20 74 68 65 20 43 43 20 65 6e 76 20 76 61 72  g the CC env var
0860: 2c 20 6f 72 20 6c 6f 6f 6b 73 20 66 6f 72 20 67  , or looks for g
0870: 63 63 20 6f 74 68 65 72 77 69 73 65 2e 0a 23 20  cc otherwise..# 
0880: 54 68 69 73 20 61 6c 73 6f 20 63 61 6c 6c 73 20  This also calls 
0890: 41 43 5f 50 52 4f 47 5f 43 43 2c 20 41 43 5f 50  AC_PROG_CC, AC_P
08a0: 52 4f 47 5f 49 4e 53 54 41 4c 4c 20 61 6e 64 20  ROG_INSTALL and 
08b0: 61 20 66 65 77 20 6f 74 68 65 72 73 20 74 6f 20  a few others to 
08c0: 63 72 65 61 74 65 0a 23 20 74 68 65 20 62 61 73  create.# the bas
08d0: 69 63 20 73 65 74 75 70 20 6e 65 63 65 73 73 61  ic setup necessa
08e0: 72 79 20 74 6f 20 63 6f 6d 70 69 6c 65 20 65 78  ry to compile ex
08f0: 65 63 75 74 61 62 6c 65 73 2e 0a 23 2d 2d 2d 2d  ecutables..#----
0900: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0910: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0920: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0930: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0940: 2d 2d 2d 0a 0a 54 45 41 5f 53 45 54 55 50 5f 43  ---..TEA_SETUP_C
0950: 4f 4d 50 49 4c 45 52 0a 0a 23 2d 2d 2d 2d 2d 2d  OMPILER..#------
0960: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0980: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0990: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09a0: 2d 0a 23 20 5f 5f 43 48 41 4e 47 45 5f 5f 0a 23  -.# __CHANGE__.#
09b0: 20 53 70 65 63 69 66 79 20 74 68 65 20 43 20 73   Specify the C s
09c0: 6f 75 72 63 65 20 66 69 6c 65 73 20 74 6f 20 63  ource files to c
09d0: 6f 6d 70 69 6c 65 20 69 6e 20 54 45 41 5f 41 44  ompile in TEA_AD
09e0: 44 5f 53 4f 55 52 43 45 53 2c 0a 23 20 70 75 62  D_SOURCES,.# pub
09f0: 6c 69 63 20 68 65 61 64 65 72 73 20 74 68 61 74  lic headers that
0a00: 20 6e 65 65 64 20 74 6f 20 62 65 20 69 6e 73 74   need to be inst
0a10: 61 6c 6c 65 64 20 69 6e 20 54 45 41 5f 41 44 44  alled in TEA_ADD
0a20: 5f 48 45 41 44 45 52 53 2c 0a 23 20 73 74 75 62  _HEADERS,.# stub
0a30: 20 6c 69 62 72 61 72 79 20 43 20 73 6f 75 72 63   library C sourc
0a40: 65 20 66 69 6c 65 73 20 74 6f 20 63 6f 6d 70 69  e files to compi
0a50: 6c 65 20 69 6e 20 54 45 41 5f 41 44 44 5f 53 54  le in TEA_ADD_ST
0a60: 55 42 5f 53 4f 55 52 43 45 53 2c 0a 23 20 61 6e  UB_SOURCES,.# an
0a70: 64 20 72 75 6e 74 69 6d 65 20 54 63 6c 20 6c 69  d runtime Tcl li
0a80: 62 72 61 72 79 20 66 69 6c 65 73 20 69 6e 20 54  brary files in T
0a90: 45 41 5f 41 44 44 5f 54 43 4c 5f 53 4f 55 52 43  EA_ADD_TCL_SOURC
0aa0: 45 53 2e 0a 23 20 54 68 69 73 20 64 65 66 69 6e  ES..# This defin
0ab0: 65 73 20 50 4b 47 28 5f 53 54 55 42 29 5f 53 4f  es PKG(_STUB)_SO
0ac0: 55 52 43 45 53 2c 20 50 4b 47 28 5f 53 54 55 42  URCES, PKG(_STUB
0ad0: 29 5f 4f 42 4a 45 43 54 53 2c 20 50 4b 47 5f 48  )_OBJECTS, PKG_H
0ae0: 45 41 44 45 52 53 0a 23 20 61 6e 64 20 50 4b 47  EADERS.# and PKG
0af0: 5f 54 43 4c 5f 53 4f 55 52 43 45 53 2e 0a 23 2d  _TCL_SOURCES..#-
0b00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b40: 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 41 44 44 5f  ------..TEA_ADD_
0b50: 53 4f 55 52 43 45 53 28 5b 0a 67 65 6e 65 72 69  SOURCES([.generi
0b60: 63 2f 63 6f 63 6f 61 70 72 69 6e 74 2e 6d 0a 20  c/cocoaprint.m. 
0b70: 5d 29 0a 54 45 41 5f 41 44 44 5f 48 45 41 44 45  ]).TEA_ADD_HEADE
0b80: 52 53 28 5b 5d 29 0a 54 45 41 5f 41 44 44 5f 49  RS([]).TEA_ADD_I
0b90: 4e 43 4c 55 44 45 53 28 5b 5d 29 0a 54 45 41 5f  NCLUDES([]).TEA_
0ba0: 41 44 44 5f 4c 49 42 53 28 5b 2d 66 72 61 6d 65  ADD_LIBS([-frame
0bb0: 77 6f 72 6b 20 43 6f 63 6f 61 20 2d 66 72 61 6d  work Cocoa -fram
0bc0: 65 77 6f 72 6b 20 43 61 72 62 6f 6e 5d 29 0a 54  ework Carbon]).T
0bd0: 45 41 5f 41 44 44 5f 43 46 4c 41 47 53 28 5b 2d  EA_ADD_CFLAGS([-
0be0: 73 74 64 3d 67 6e 75 39 39 20 20 2d 66 6f 62 6a  std=gnu99  -fobj
0bf0: 63 2d 67 63 5d 29 20 0a 54 45 41 5f 41 44 44 5f  c-gc]) .TEA_ADD_
0c00: 53 54 55 42 5f 53 4f 55 52 43 45 53 28 5b 5d 29  STUB_SOURCES([])
0c10: 0a 54 45 41 5f 41 44 44 5f 54 43 4c 5f 53 4f 55  .TEA_ADD_TCL_SOU
0c20: 52 43 45 53 28 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  RCES()..#-------
0c30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20  -------------.# 
0c70: 5f 5f 43 48 41 4e 47 45 5f 5f 0a 23 20 41 20 66  __CHANGE__.# A f
0c80: 65 77 20 6d 69 73 63 65 6c 6c 61 6e 65 6f 75 73  ew miscellaneous
0c90: 20 70 6c 61 74 66 6f 72 6d 2d 73 70 65 63 69 66   platform-specif
0ca0: 69 63 20 69 74 65 6d 73 3a 0a 23 0a 23 20 44 65  ic items:.#.# De
0cb0: 66 69 6e 65 20 61 20 73 70 65 63 69 61 6c 20 73  fine a special s
0cc0: 79 6d 62 6f 6c 20 66 6f 72 20 57 69 6e 64 6f 77  ymbol for Window
0cd0: 73 20 28 42 55 49 4c 44 5f 74 6b 57 65 62 56 69  s (BUILD_tkWebVi
0ce0: 65 77 20 69 6e 20 74 68 69 73 20 63 61 73 65 29  ew in this case)
0cf0: 20 73 6f 0a 23 20 74 68 61 74 20 77 65 20 63 72   so.# that we cr
0d00: 65 61 74 65 20 74 68 65 20 65 78 70 6f 72 74 20  eate the export 
0d10: 6c 69 62 72 61 72 79 20 77 69 74 68 20 74 68 65  library with the
0d20: 20 64 6c 6c 2e 0a 23 0a 23 20 57 69 6e 64 6f 77   dll..#.# Window
0d30: 73 20 63 72 65 61 74 65 73 20 61 20 66 65 77 20  s creates a few 
0d40: 65 78 74 72 61 20 66 69 6c 65 73 20 74 68 61 74  extra files that
0d50: 20 6e 65 65 64 20 74 6f 20 62 65 20 63 6c 65 61   need to be clea
0d60: 6e 65 64 20 75 70 2e 0a 23 20 59 6f 75 20 63 61  ned up..# You ca
0d70: 6e 20 61 64 64 20 6d 6f 72 65 20 66 69 6c 65 73  n add more files
0d80: 20 74 6f 20 63 6c 65 61 6e 20 69 66 20 79 6f 75   to clean if you
0d90: 72 20 65 78 74 65 6e 73 69 6f 6e 20 63 72 65 61  r extension crea
0da0: 74 65 73 20 61 6e 79 20 65 78 74 72 61 0a 23 20  tes any extra.# 
0db0: 66 69 6c 65 73 2e 0a 23 0a 23 20 54 45 41 5f 41  files..#.# TEA_A
0dc0: 44 44 5f 2a 20 61 6e 79 20 70 6c 61 74 66 6f 72  DD_* any platfor
0dd0: 6d 20 73 70 65 63 69 66 69 63 20 63 6f 6d 70 69  m specific compi
0de0: 6c 65 72 2f 62 75 69 6c 64 20 69 6e 66 6f 20 68  ler/build info h
0df0: 65 72 65 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ere..#----------
0e00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 20 41 64  ----------..# Ad
0e40: 64 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20 69  d pkgIndex.tcl i
0e50: 66 20 69 74 20 69 73 20 67 65 6e 65 72 61 74 65  f it is generate
0e60: 64 20 69 6e 20 74 68 65 20 4d 61 6b 65 66 69 6c  d in the Makefil
0e70: 65 20 69 6e 73 74 65 61 64 20 6f 66 20 2e 2f 63  e instead of ./c
0e80: 6f 6e 66 69 67 75 72 65 0a 23 20 61 6e 64 20 63  onfigure.# and c
0e90: 68 61 6e 67 65 20 4d 61 6b 65 66 69 6c 65 2e 69  hange Makefile.i
0ea0: 6e 20 74 6f 20 6d 6f 76 65 20 69 74 20 66 72 6f  n to move it fro
0eb0: 6d 20 43 4f 4e 46 49 47 5f 43 4c 45 41 4e 5f 46  m CONFIG_CLEAN_F
0ec0: 49 4c 45 53 20 74 6f 20 42 49 4e 41 52 49 45 53  ILES to BINARIES
0ed0: 20 76 61 72 2e 0a 23 43 4c 45 41 4e 46 49 4c 45   var..#CLEANFILE
0ee0: 53 3d 22 70 6b 67 49 6e 64 65 78 2e 74 63 6c 22  S="pkgIndex.tcl"
0ef0: 0a 69 66 20 74 65 73 74 20 22 24 7b 54 45 41 5f  .if test "${TEA_
0f00: 50 4c 41 54 46 4f 52 4d 7d 22 20 3d 20 22 77 69  PLATFORM}" = "wi
0f10: 6e 64 6f 77 73 22 20 3b 20 74 68 65 6e 0a 20 20  ndows" ; then.  
0f20: 20 20 41 43 5f 44 45 46 49 4e 45 28 42 55 49 4c    AC_DEFINE(BUIL
0f30: 44 5f 74 6b 57 65 62 56 69 65 77 2c 20 31 2c 20  D_tkWebView, 1, 
0f40: 5b 42 75 69 6c 64 20 77 69 6e 64 6f 77 73 20 65  [Build windows e
0f50: 78 70 6f 72 74 20 64 6c 6c 5d 29 0a 20 20 20 20  xport dll]).    
0f60: 43 4c 45 41 4e 46 49 4c 45 53 3d 22 24 43 4c 45  CLEANFILES="$CLE
0f70: 41 4e 46 49 4c 45 53 20 2a 2e 6c 69 62 20 2a 2e  ANFILES *.lib *.
0f80: 64 6c 6c 20 2a 2e 65 78 70 20 2a 2e 69 6c 6b 20  dll *.exp *.ilk 
0f90: 2a 2e 70 64 62 20 76 63 2a 2e 70 63 68 22 0a 20  *.pdb vc*.pch". 
0fa0: 20 20 20 23 54 45 41 5f 41 44 44 5f 53 4f 55 52     #TEA_ADD_SOUR
0fb0: 43 45 53 28 5b 77 69 6e 2f 77 69 6e 46 69 6c 65  CES([win/winFile
0fc0: 2e 63 5d 29 0a 20 20 20 20 23 54 45 41 5f 41 44  .c]).    #TEA_AD
0fd0: 44 5f 49 4e 43 4c 55 44 45 53 28 5b 2d 49 5c 22  D_INCLUDES([-I\"
0fe0: 24 28 24 7b 43 59 47 50 41 54 48 7d 20 24 7b 73  $(${CYGPATH} ${s
0ff0: 72 63 64 69 72 7d 2f 77 69 6e 29 5c 22 5d 29 0a  rcdir}/win)\"]).
1000: 65 6c 73 65 0a 20 20 20 20 23 20 45 6e 73 75 72  else.    # Ensur
1010: 65 20 6e 6f 20 65 6d 70 74 79 20 65 6c 73 65 20  e no empty else 
1020: 63 6c 61 75 73 65 73 0a 20 20 20 20 3a 0a 20 20  clauses.    :.  
1030: 20 20 23 54 45 41 5f 41 44 44 5f 53 4f 55 52 43    #TEA_ADD_SOURC
1040: 45 53 28 5b 75 6e 69 78 2f 75 6e 69 78 46 69 6c  ES([unix/unixFil
1050: 65 2e 63 5d 29 0a 20 20 20 20 23 54 45 41 5f 41  e.c]).    #TEA_A
1060: 44 44 5f 4c 49 42 53 28 5b 2d 6c 73 75 70 65 72  DD_LIBS([-lsuper
1070: 66 6c 79 5d 29 0a 66 69 0a 41 43 5f 53 55 42 53  fly]).fi.AC_SUBS
1080: 54 28 43 4c 45 41 4e 46 49 4c 45 53 29 0a 0a 23  T(CLEANFILES)..#
1090: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10d0: 2d 2d 2d 2d 0a 23 20 5f 5f 43 48 41 4e 47 45 5f  ----.# __CHANGE_
10e0: 5f 0a 23 20 43 68 6f 6f 73 65 20 77 68 69 63 68  _.# Choose which
10f0: 20 68 65 61 64 65 72 73 20 79 6f 75 20 6e 65 65   headers you nee
1100: 64 2e 20 20 45 78 74 65 6e 73 69 6f 6e 20 61 75  d.  Extension au
1110: 74 68 6f 72 73 20 73 68 6f 75 6c 64 20 74 72 79  thors should try
1120: 20 76 65 72 79 0a 23 20 68 61 72 64 20 74 6f 20   very.# hard to 
1130: 6f 6e 6c 79 20 72 65 6c 79 20 6f 6e 20 74 68 65  only rely on the
1140: 20 54 63 6c 20 70 75 62 6c 69 63 20 68 65 61 64   Tcl public head
1150: 65 72 20 66 69 6c 65 73 2e 20 20 49 6e 74 65 72  er files.  Inter
1160: 6e 61 6c 20 68 65 61 64 65 72 73 0a 23 20 63 6f  nal headers.# co
1170: 6e 74 61 69 6e 20 70 72 69 76 61 74 65 20 64 61  ntain private da
1180: 74 61 20 73 74 72 75 63 74 75 72 65 73 20 61 6e  ta structures an
1190: 64 20 61 72 65 20 73 75 62 6a 65 63 74 20 74 6f  d are subject to
11a0: 20 63 68 61 6e 67 65 20 77 69 74 68 6f 75 74 0a   change without.
11b0: 23 20 6e 6f 74 69 63 65 2e 0a 23 20 54 68 69 73  # notice..# This
11c0: 20 4d 55 53 54 20 62 65 20 63 61 6c 6c 65 64 20   MUST be called 
11d0: 61 66 74 65 72 20 54 45 41 5f 4c 4f 41 44 5f 54  after TEA_LOAD_T
11e0: 43 4c 43 4f 4e 46 49 47 20 2f 20 54 45 41 5f 4c  CLCONFIG / TEA_L
11f0: 4f 41 44 5f 54 4b 43 4f 4e 46 49 47 0a 23 2d 2d  OAD_TKCONFIG.#--
1200: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1210: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1220: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1230: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1240: 2d 2d 0a 0a 54 45 41 5f 50 55 42 4c 49 43 5f 54  --..TEA_PUBLIC_T
1250: 43 4c 5f 48 45 41 44 45 52 53 0a 54 45 41 5f 50  CL_HEADERS.TEA_P
1260: 52 49 56 41 54 45 5f 54 43 4c 5f 48 45 41 44 45  RIVATE_TCL_HEADE
1270: 52 53 0a 0a 54 45 41 5f 50 55 42 4c 49 43 5f 54  RS..TEA_PUBLIC_T
1280: 4b 5f 48 45 41 44 45 52 53 0a 54 45 41 5f 50 52  K_HEADERS.TEA_PR
1290: 49 56 41 54 45 5f 54 4b 5f 48 45 41 44 45 52 53  IVATE_TK_HEADERS
12a0: 0a 54 45 41 5f 50 41 54 48 5f 58 0a 0a 23 2d 2d  .TEA_PATH_X..#--
12b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12f0: 2d 2d 0a 23 20 43 68 65 63 6b 20 77 68 65 74 68  --.# Check wheth
1300: 65 72 20 2d 2d 65 6e 61 62 6c 65 2d 74 68 72 65  er --enable-thre
1310: 61 64 73 20 6f 72 20 2d 2d 64 69 73 61 62 6c 65  ads or --disable
1320: 2d 74 68 72 65 61 64 73 20 77 61 73 20 67 69 76  -threads was giv
1330: 65 6e 2e 0a 23 20 54 68 69 73 20 61 75 74 6f 2d  en..# This auto-
1340: 65 6e 61 62 6c 65 73 20 69 66 20 54 63 6c 20 77  enables if Tcl w
1350: 61 73 20 63 6f 6d 70 69 6c 65 64 20 74 68 72 65  as compiled thre
1360: 61 64 65 64 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  aded..#---------
1370: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1380: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1390: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
13a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41  -----------..TEA
13b0: 5f 45 4e 41 42 4c 45 5f 54 48 52 45 41 44 53 0a  _ENABLE_THREADS.
13c0: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
13d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
13e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
13f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1400: 2d 2d 2d 2d 2d 2d 0a 23 20 54 68 65 20 73 74 61  ------.# The sta
1410: 74 65 6d 65 6e 74 20 62 65 6c 6f 77 20 64 65 66  tement below def
1420: 69 6e 65 73 20 61 20 63 6f 6c 6c 65 63 74 69 6f  ines a collectio
1430: 6e 20 6f 66 20 73 79 6d 62 6f 6c 73 20 72 65 6c  n of symbols rel
1440: 61 74 65 64 20 74 6f 0a 23 20 62 75 69 6c 64 69  ated to.# buildi
1450: 6e 67 20 61 73 20 61 20 73 68 61 72 65 64 20 6c  ng as a shared l
1460: 69 62 72 61 72 79 20 69 6e 73 74 65 61 64 20 6f  ibrary instead o
1470: 66 20 61 20 73 74 61 74 69 63 20 6c 69 62 72 61  f a static libra
1480: 72 79 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ry..#-----------
1490: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 45  ---------..TEA_E
14d0: 4e 41 42 4c 45 5f 53 48 41 52 45 44 0a 0a 23 2d  NABLE_SHARED..#-
14e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
14f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1500: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1510: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1520: 2d 2d 2d 0a 23 20 54 68 69 73 20 6d 61 63 72 6f  ---.# This macro
1530: 20 66 69 67 75 72 65 73 20 6f 75 74 20 77 68 61   figures out wha
1540: 74 20 66 6c 61 67 73 20 74 6f 20 75 73 65 20 77  t flags to use w
1550: 69 74 68 20 74 68 65 20 63 6f 6d 70 69 6c 65 72  ith the compiler
1560: 2f 6c 69 6e 6b 65 72 0a 23 20 77 68 65 6e 20 62  /linker.# when b
1570: 75 69 6c 64 69 6e 67 20 73 68 61 72 65 64 2f 73  uilding shared/s
1580: 74 61 74 69 63 20 64 65 62 75 67 2f 6f 70 74 69  tatic debug/opti
1590: 6d 69 7a 65 64 20 6f 62 6a 65 63 74 73 2e 20 20  mized objects.  
15a0: 54 68 69 73 20 69 6e 66 6f 72 6d 61 74 69 6f 6e  This information
15b0: 0a 23 20 63 61 6e 20 62 65 20 74 61 6b 65 6e 20  .# can be taken 
15c0: 66 72 6f 6d 20 74 68 65 20 74 63 6c 43 6f 6e 66  from the tclConf
15d0: 69 67 2e 73 68 20 66 69 6c 65 2c 20 62 75 74 20  ig.sh file, but 
15e0: 74 68 69 73 20 66 69 67 75 72 65 73 20 69 74 20  this figures it 
15f0: 61 6c 6c 20 6f 75 74 2e 0a 23 2d 2d 2d 2d 2d 2d  all out..#------
1600: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1610: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1620: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1630: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
1640: 54 45 41 5f 43 4f 4e 46 49 47 5f 43 46 4c 41 47  TEA_CONFIG_CFLAG
1650: 53 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  S..#------------
1660: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1670: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1680: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1690: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 53 65 74 20 74  --------.# Set t
16a0: 68 65 20 64 65 66 61 75 6c 74 20 63 6f 6d 70 69  he default compi
16b0: 6c 65 72 20 73 77 69 74 63 68 65 73 20 62 61 73  ler switches bas
16c0: 65 64 20 6f 6e 20 74 68 65 20 2d 2d 65 6e 61 62  ed on the --enab
16d0: 6c 65 2d 73 79 6d 62 6f 6c 73 20 6f 70 74 69 6f  le-symbols optio
16e0: 6e 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  n..#------------
16f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1700: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1710: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1720: 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 54 45 41 5f 45 4e  --------..TEA_EN
1730: 41 42 4c 45 5f 53 59 4d 42 4f 4c 53 0a 0a 23 2d  ABLE_SYMBOLS..#-
1740: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1750: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1760: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1770: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1780: 2d 2d 2d 0a 23 20 45 76 65 72 79 6f 6e 65 20 73  ---.# Everyone s
1790: 68 6f 75 6c 64 20 62 65 20 6c 69 6e 6b 69 6e 67  hould be linking
17a0: 20 61 67 61 69 6e 73 74 20 74 68 65 20 54 63 6c   against the Tcl
17b0: 20 73 74 75 62 20 6c 69 62 72 61 72 79 2e 20 20   stub library.  
17c0: 49 66 20 79 6f 75 0a 23 20 63 61 6e 27 74 20 66  If you.# can't f
17d0: 6f 72 20 73 6f 6d 65 20 72 65 61 73 6f 6e 2c 20  or some reason, 
17e0: 72 65 6d 6f 76 65 20 74 68 69 73 20 64 65 66 69  remove this defi
17f0: 6e 69 74 69 6f 6e 2e 20 20 49 66 20 79 6f 75 20  nition.  If you 
1800: 61 72 65 6e 27 74 20 75 73 69 6e 67 0a 23 20 73  aren't using.# s
1810: 74 75 62 73 2c 20 79 6f 75 20 61 6c 73 6f 20 6e  tubs, you also n
1820: 65 65 64 20 74 6f 20 6d 6f 64 69 66 79 20 74 68  eed to modify th
1830: 65 20 53 48 4c 49 42 5f 4c 44 5f 4c 49 42 53 20  e SHLIB_LD_LIBS 
1840: 73 65 74 74 69 6e 67 20 62 65 6c 6f 77 20 74 6f  setting below to
1850: 0a 23 20 6c 69 6e 6b 20 61 67 61 69 6e 73 74 20  .# link against 
1860: 74 68 65 20 6e 6f 6e 2d 73 74 75 62 62 65 64 20  the non-stubbed 
1870: 54 63 6c 20 6c 69 62 72 61 72 79 2e 20 20 41 64  Tcl library.  Ad
1880: 64 20 54 6b 20 74 6f 6f 20 69 66 20 6e 65 63 65  d Tk too if nece
1890: 73 73 61 72 79 2e 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  ssary..#--------
18a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43  ------------..AC
18e0: 5f 44 45 46 49 4e 45 28 55 53 45 5f 54 43 4c 5f  _DEFINE(USE_TCL_
18f0: 53 54 55 42 53 2c 20 31 2c 20 5b 55 73 65 20 54  STUBS, 1, [Use T
1900: 63 6c 20 73 74 75 62 73 5d 29 0a 41 43 5f 44 45  cl stubs]).AC_DE
1910: 46 49 4e 45 28 55 53 45 5f 54 4b 5f 53 54 55 42  FINE(USE_TK_STUB
1920: 53 2c 20 31 2c 20 5b 55 73 65 20 54 6b 20 73 74  S, 1, [Use Tk st
1930: 75 62 73 5d 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  ubs])..#--------
1940: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1960: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54  ------------.# T
1980: 68 69 73 20 6d 61 63 72 6f 20 67 65 6e 65 72 61  his macro genera
1990: 74 65 73 20 61 20 6c 69 6e 65 20 74 6f 20 75 73  tes a line to us
19a0: 65 20 77 68 65 6e 20 62 75 69 6c 64 69 6e 67 20  e when building 
19b0: 61 20 6c 69 62 72 61 72 79 2e 20 20 49 74 0a 23  a library.  It.#
19c0: 20 64 65 70 65 6e 64 73 20 6f 6e 20 76 61 6c 75   depends on valu
19d0: 65 73 20 73 65 74 20 62 79 20 74 68 65 20 54 45  es set by the TE
19e0: 41 5f 45 4e 41 42 4c 45 5f 53 48 41 52 45 44 2c  A_ENABLE_SHARED,
19f0: 20 54 45 41 5f 45 4e 41 42 4c 45 5f 53 59 4d 42   TEA_ENABLE_SYMB
1a00: 4f 4c 53 2c 0a 23 20 61 6e 64 20 54 45 41 5f 4c  OLS,.# and TEA_L
1a10: 4f 41 44 5f 54 43 4c 43 4f 4e 46 49 47 20 6d 61  OAD_TCLCONFIG ma
1a20: 63 72 6f 73 20 61 62 6f 76 65 2e 0a 23 2d 2d 2d  cros above..#---
1a30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1a70: 2d 0a 0a 54 45 41 5f 4d 41 4b 45 5f 4c 49 42 0a  -..TEA_MAKE_LIB.
1a80: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
1a90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1aa0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ab0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ac0: 2d 2d 2d 2d 2d 2d 0a 23 20 44 65 74 65 72 6d 69  ------.# Determi
1ad0: 6e 65 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74  ne the name of t
1ae0: 68 65 20 74 63 6c 73 68 20 61 6e 64 2f 6f 72 20  he tclsh and/or 
1af0: 77 69 73 68 20 65 78 65 63 75 74 61 62 6c 65 73  wish executables
1b00: 20 69 6e 20 74 68 65 0a 23 20 54 63 6c 20 61 6e   in the.# Tcl an
1b10: 64 20 54 6b 20 62 75 69 6c 64 20 64 69 72 65 63  d Tk build direc
1b20: 74 6f 72 69 65 73 20 6f 72 20 74 68 65 20 6c 6f  tories or the lo
1b30: 63 61 74 69 6f 6e 20 74 68 65 79 20 77 65 72 65  cation they were
1b40: 20 69 6e 73 74 61 6c 6c 65 64 0a 23 20 69 6e 74   installed.# int
1b50: 6f 2e 20 54 68 65 73 65 20 70 61 74 68 73 20 61  o. These paths a
1b60: 72 65 20 75 73 65 64 20 74 6f 20 73 75 70 70 6f  re used to suppo
1b70: 72 74 20 72 75 6e 6e 69 6e 67 20 74 65 73 74 20  rt running test 
1b80: 63 61 73 65 73 20 6f 6e 6c 79 2c 0a 23 20 74 68  cases only,.# th
1b90: 65 20 4d 61 6b 65 66 69 6c 65 20 73 68 6f 75 6c  e Makefile shoul
1ba0: 64 20 6e 6f 74 20 62 65 20 6d 61 6b 69 6e 67 20  d not be making 
1bb0: 75 73 65 20 6f 66 20 74 68 65 73 65 20 70 61 74  use of these pat
1bc0: 68 73 20 74 6f 20 67 65 6e 65 72 61 74 65 0a 23  hs to generate.#
1bd0: 20 61 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c 20   a pkgIndex.tcl 
1be0: 66 69 6c 65 20 6f 72 20 61 6e 79 74 68 69 6e 67  file or anything
1bf0: 20 65 6c 73 65 20 61 74 20 65 78 74 65 6e 73 69   else at extensi
1c00: 6f 6e 20 62 75 69 6c 64 20 74 69 6d 65 2e 0a 23  on build time..#
1c10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c50: 2d 2d 2d 2d 0a 0a 54 45 41 5f 50 52 4f 47 5f 54  ----..TEA_PROG_T
1c60: 43 4c 53 48 0a 54 45 41 5f 50 52 4f 47 5f 57 49  CLSH.TEA_PROG_WI
1c70: 53 48 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  SH..#-----------
1c80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ca0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1cb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 46 69 6e 61  ---------.# Fina
1cc0: 6c 6c 79 2c 20 73 75 62 73 74 69 74 75 74 65 20  lly, substitute 
1cd0: 61 6c 6c 20 6f 66 20 74 68 65 20 76 61 72 69 6f  all of the vario
1ce0: 75 73 20 76 61 6c 75 65 73 20 69 6e 74 6f 20 74  us values into t
1cf0: 68 65 20 4d 61 6b 65 66 69 6c 65 2e 0a 23 20 59  he Makefile..# Y
1d00: 6f 75 20 6d 61 79 20 61 6c 74 65 72 6e 61 74 69  ou may alternati
1d10: 76 65 6c 79 20 68 61 76 65 20 61 20 73 70 65 63  vely have a spec
1d20: 69 61 6c 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c  ial pkgIndex.tcl
1d30: 2e 69 6e 20 6f 72 20 6f 74 68 65 72 20 66 69 6c  .in or other fil
1d40: 65 73 0a 23 20 77 68 69 63 68 20 72 65 71 75 69  es.# which requi
1d50: 72 65 20 73 75 62 73 74 69 74 75 74 69 6e 67 20  re substituting 
1d60: 74 68 20 41 43 20 76 61 72 69 61 62 6c 65 73 20  th AC variables 
1d70: 69 6e 2e 20 20 49 6e 63 6c 75 64 65 20 74 68 65  in.  Include the
1d80: 73 65 20 68 65 72 65 2e 0a 23 2d 2d 2d 2d 2d 2d  se here..#------
1d90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1da0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1db0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1dc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
1dd0: 41 43 5f 4f 55 54 50 55 54 28 5b 4d 61 6b 65 66  AC_OUTPUT([Makef
1de0: 69 6c 65 20 70 6b 67 49 6e 64 65 78 2e 74 63 6c  ile pkgIndex.tcl
1df0: 5d 29 0a                                         ]).