source: trunk/kitgen/8.x/blt/configure.in@ 175

Last change on this file since 175 was 175, checked in by demin, 12 years ago

initial commit

File size: 8.4 KB
Line 
1#!/bin/bash -norc
2dnl This file is an input file used by the GNU "autoconf" program to
3dnl generate the file "configure", which is run during Tcl installation
4dnl to configure the system for the local environment.
5#
6# RCS: @(#) $Id: configure.in,v 1.48 2008/11/05 00:13:00 hobbs Exp $
7
8#-----------------------------------------------------------------------
9# Sample configure.in for Tcl Extensions. The only places you should
10# need to modify this file are marked by the string __CHANGE__
11#-----------------------------------------------------------------------
12
13#-----------------------------------------------------------------------
14# __CHANGE__
15# Set your package name and version numbers here.
16#
17# This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
18# set as provided. These will also be added as -D defs in your Makefile
19# so you can encode the package version directly into the source files.
20# This will also define a special symbol for Windows (BUILD_sample in
21# this case) so that we create the export library with the dll.
22#-----------------------------------------------------------------------
23
24AC_INIT([BLT], [2.4])
25
26#--------------------------------------------------------------------
27# Call TEA_INIT as the first TEA_ macro to set up initial vars.
28# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
29# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
30# --------------------------------------------------------------------
31
32TEA_INIT([3.9])
33
34AC_CONFIG_AUX_DIR(tclconfig)
35
36#--------------------------------------------------------------------
37# Load the tclConfig.sh file
38#--------------------------------------------------------------------
39
40TEA_PATH_TCLCONFIG
41TEA_LOAD_TCLCONFIG
42
43#--------------------------------------------------------------------
44# Load the tkConfig.sh file if necessary (Tk extension)
45#--------------------------------------------------------------------
46
47#TEA_PATH_TKCONFIG
48#TEA_LOAD_TKCONFIG
49
50#-----------------------------------------------------------------------
51# Handle the --prefix=... option by defaulting to what Tcl gave.
52# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
53#-----------------------------------------------------------------------
54
55TEA_PREFIX
56
57#-----------------------------------------------------------------------
58# Standard compiler checks.
59# This sets up CC by using the CC env var, or looks for gcc otherwise.
60# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
61# the basic setup necessary to compile executables.
62#-----------------------------------------------------------------------
63
64TEA_SETUP_COMPILER
65
66#-----------------------------------------------------------------------
67# __CHANGE__
68# Specify the C source files to compile in TEA_ADD_SOURCES,
69# public headers that need to be installed in TEA_ADD_HEADERS,
70# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
71# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
72# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
73# and PKG_TCL_SOURCES.
74#-----------------------------------------------------------------------
75
76TEA_ADD_SOURCES([bltAlloc.c bltArrayObj.c bltBind.c bltBitmap.c bltBusy.c bltChain.c bltColor.c bltConfig.c bltGrAxis.c bltGrBar.c bltGrElem.c bltGrGrid.c bltGrHairs.c bltGrLegd.c bltGrLine.c bltGrMarker.c bltGrMisc.c bltGrPen.c bltGrPs.c bltGraph.c bltHash.c bltImage.c bltInit.c bltList.c bltNsUtil.c bltParse.c bltPool.c bltPs.c bltSpline.c bltSwitch.c bltTable.c bltTabnotebook.c bltText.c bltTile.c bltObjConfig.c bltTree.h bltTreeView.h bltTreeViewEdit.c bltObjConfig.h bltTreeCmd.c bltTreeViewCmd.c bltTreeViewStyle.c bltTree.c bltTreeView.c bltTreeViewColumn.c bltUtil.c bltVecCmd.c bltVecObjCmd.c bltVector.c bltWindow.c])
77TEA_ADD_HEADERS([generic/blt.h generic/bltHash.h generic/bltPool.h generic/bltVector.h])
78TEA_ADD_INCLUDES([-I. -I\"$(${CYGPATH} ${srcdir}/generic)\"])
79TEA_ADD_LIBS([])
80TEA_ADD_CFLAGS([])
81TEA_ADD_STUB_SOURCES([])
82TEA_ADD_TCL_SOURCES([library/graph.tcl library/tabnotebook.tcl library/treeview.cur library/treeview.xbm library/treeview.tcl library/treeview_m.xbm library/bltCanvEps.pro library/bltGraph.pro])
83
84#--------------------------------------------------------------------
85# __CHANGE__
86#
87# You can add more files to clean if your extension creates any extra
88# files by extending CLEANFILES.
89# Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
90# and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
91#
92# A few miscellaneous platform-specific items:
93# TEA_ADD_* any platform specific compiler/build info here.
94#--------------------------------------------------------------------
95
96CLEANFILES="$CLEANFILES pkgIndex.tcl"
97if test "${TEA_PLATFORM}" = "windows" ; then
98 CLEANFILES="$CLEANFILES *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
99 TEA_ADD_SOURCES([win/bltWinDraw.c win/bltWinImage.c win/bltWinPrnt.c win/bltWinUtil.c])
100 TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
101else
102 AC_DEFINE(NO_PRINTER, 1, [No printer support for unix systems])
103 TEA_ADD_SOURCES([unix/bltUnixImage.c])
104fi
105
106#--------------------------------------------------------------------
107# __CHANGE__
108# Choose which headers you need. Extension authors should try very
109# hard to only rely on the Tcl public header files. Internal headers
110# contain private data structures and are subject to change without
111# notice.
112# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
113#--------------------------------------------------------------------
114
115TEA_PUBLIC_TCL_HEADERS
116#TEA_PRIVATE_TCL_HEADERS
117
118#TEA_PUBLIC_TK_HEADERS
119#TEA_PRIVATE_TK_HEADERS
120#TEA_PATH_X
121
122#--------------------------------------------------------------------
123# Check whether --enable-threads or --disable-threads was given.
124# This auto-enables if Tcl was compiled threaded.
125#--------------------------------------------------------------------
126
127TEA_ENABLE_THREADS
128
129#--------------------------------------------------------------------
130# The statement below defines a collection of symbols related to
131# building as a shared library instead of a static library.
132#--------------------------------------------------------------------
133
134TEA_ENABLE_SHARED
135
136#--------------------------------------------------------------------
137# This macro figures out what flags to use with the compiler/linker
138# when building shared/static debug/optimized objects. This information
139# can be taken from the tclConfig.sh file, but this figures it all out.
140#--------------------------------------------------------------------
141
142TEA_CONFIG_CFLAGS
143
144#--------------------------------------------------------------------
145# Set the default compiler switches based on the --enable-symbols option.
146#--------------------------------------------------------------------
147
148TEA_ENABLE_SYMBOLS
149
150#--------------------------------------------------------------------
151# Everyone should be linking against the Tcl stub library. If you
152# can't for some reason, remove this definition. If you aren't using
153# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
154# link against the non-stubbed Tcl library. Add Tk too if necessary.
155#--------------------------------------------------------------------
156
157AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs])
158#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
159
160#--------------------------------------------------------------------
161# This macro generates a line to use when building a library. It
162# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
163# and TEA_LOAD_TCLCONFIG macros above.
164#--------------------------------------------------------------------
165
166TEA_MAKE_LIB
167
168#--------------------------------------------------------------------
169# Determine the name of the tclsh and/or wish executables in the
170# Tcl and Tk build directories or the location they were installed
171# into. These paths are used to support running test cases only,
172# the Makefile should not be making use of these paths to generate
173# a pkgIndex.tcl file or anything else at extension build time.
174#--------------------------------------------------------------------
175
176TEA_PROG_TCLSH
177#TEA_PROG_WISH
178
179#--------------------------------------------------------------------
180# Finally, substitute all of the various values into the Makefile.
181# You may alternatively have a special pkgIndex.tcl.in or other files
182# which require substituting th AC variables in. Include these here.
183#--------------------------------------------------------------------
184
185AC_OUTPUT([Makefile pkgIndex.tcl])
Note: See TracBrowser for help on using the repository browser.