This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
configure eCos host tools and modern Tcl config
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: eCos patches list <ecos-patches at ecos dot sourceware dot org>
- Date: Sun, 16 Mar 2008 20:29:56 +0200
- Subject: configure eCos host tools and modern Tcl config
Hi,
Last time, when I rebuild eCos host tools, host's configure stick on a
check the Tcl stuff. Well, I know all about those --with-tcl* configure
options and I know what they are for, but, my today's configure call is
TCL_INC_DIR=/usr/include/tcl8.4 ../configure --with-tcl-version=8.4
because the varibale TCL_INC_DIR is absent in my tclConfig.sh. A bit
google about TCL_INC_DIR issue, I knew that TCL_INCLUDE_SPEC is a
standard for the Tcl 8.5a tclConfig.sh too.
An attached patch enter a check in eCos M4 for new variable to find Tcl
stuff.
Request for comments:
I know what 'eCos configure' != 'Gnu configure' and it's possible the
attached patch won't be useful without autoreconf eCos build tree. Is
it better just to point on the TCL_INC_DIR issue in eCos' README.host?
Sergei
P.S.
my host environment is
$ tclsh
% info patchlevel
8.4.15
% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 7.10
Release: 7.10
Codename: gutsy
diff -ur A/acsupport/acinclude.m4 B/acsupport/acinclude.m4
--- A/acsupport/acinclude.m4
+++ B/acsupport/acinclude.m4
@@ -503,6 +503,7 @@
else
. ${tclconfig}/tclConfig.sh
+ if test -z "${TCL_INCLUDE_SPEC}" ; then
dnl Now we need to figure out where to find the Tcl header files.
dnl tclConfig.sh may define a variable TCL_INC_DIR, otherwise
dnl use TCL_PREFIX/include
@@ -522,6 +523,12 @@
ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}"
fi
fi
+ else
+ dnl The variable TCL_INC_DIR went away from the tclConfig.sh in
+ dnl the latest Tcl distributions, a variable TCL_INCLUDE_SPEC
+ dnl is used there instead.
+ ecos_INCLUDES="${ecos_INCLUDES} ${TCL_INCLUDE_SPEC}"
+ fi
dnl There should be a variable TCL_LIB_SPEC which defines
dnl exactly how to link with Tcl. Unfortunately this is not
diff -ur A/acsupport/ChangeLog B/acsupport/ChangeLog
--- A/acsupport/ChangeLog
+++ B/acsupport/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-16 Sergei Gavrikov <sergei.gavrikov@gmail.com>
+
+ * acinclude.m4: Add a check for new variable TCL_INCLUDE_SPEC, so,
+ the TCL_INC_DIR will going away from the modern Tcl configs at all.
+
2003-02-12 Bart Veer <bartv@ecoscentric.com>
* acinclude.m4: Another attempt at the Tcl macro, to cope with