summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure4
-rwxr-xr-xconfigure.in3
-rwxr-xr-xpkgIndex.tcl.in5
3 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index 48c652c..b372ad6 100755
--- a/configure
+++ b/configure
@@ -9267,6 +9267,7 @@ $as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
$as_echo "#define USE_TK_STUBS 1" >>confdefs.h
+SHLIB_LD_LIBS='${LIBS} -lstdc++'
#--------------------------------------------------------------------
# This macro generates a line to use when building a library. It
@@ -9450,7 +9451,7 @@ $as_echo "${WISH_PROG}" >&6; }
# which require substituting th AC variables in. Include these here.
#--------------------------------------------------------------------
-ac_config_files="$ac_config_files Makefile"
+ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -10160,6 +10161,7 @@ for ac_config_target in $ac_config_targets
do
case $ac_config_target in
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
diff --git a/configure.in b/configure.in
index 1c2e010..1a14aff 100755
--- a/configure.in
+++ b/configure.in
@@ -204,6 +204,7 @@ TEA_ENABLE_SYMBOLS
AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs])
AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
+SHLIB_LD_LIBS='${LIBS} -lstdc++'
#--------------------------------------------------------------------
# This macro generates a line to use when building a library. It
@@ -230,4 +231,4 @@ TEA_PROG_WISH
# which require substituting th AC variables in. Include these here.
#--------------------------------------------------------------------
-AC_OUTPUT([Makefile])
+AC_OUTPUT([Makefile pkgIndex.tcl])
diff --git a/pkgIndex.tcl.in b/pkgIndex.tcl.in
new file mode 100755
index 0000000..d7566b4
--- /dev/null
+++ b/pkgIndex.tcl.in
@@ -0,0 +1,5 @@
+#
+# Tcl package index file
+#
+package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \
+ [list load [file join $dir @PKG_LIB_FILE@] @PACKAGE_NAME@]