aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorKeith Seitz <keiths@cygnus>1998-01-15 01:19:00 +0000
committerKeith Seitz <keiths@cygnus>1998-01-15 01:19:00 +0000
commitbb3d9f43d3e65689d982033a6491ec40443dbb96 (patch)
tree7f19ac445cc961d9f51781cf4b01c679fada0d7c /gdb/configure.in
parent2ac94d5149f8e348601cd93cfaf88f49ecf6695e (diff)
downloadgdb-bb3d9f43d3e65689d982033a6491ec40443dbb96.zip
gdb-bb3d9f43d3e65689d982033a6491ec40443dbb96.tar.gz
gdb-bb3d9f43d3e65689d982033a6491ec40443dbb96.tar.bz2
* configure.in (--enable-gdbtk): If tcl was built with --enable-shared,
use TCL_SHLIB_SUFFIX to specify the suffix of the library file so that we don't expect to see "libfoo.a" instead of "libfoo.{so,sl, etc}". * configure: Regenerate.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 438796e..2089f29 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -359,12 +359,17 @@ if test "${enable_gdbtk}" = "yes"; then
tixdir=../tix/unix/tk8.0
;;
esac
+ if test "${TCL_SHARED_BUILD}" = "1"; then
+ TIX_LIB_EXT="${TCL_SHLIB_SUFFIX}"
+ else
+ TIX_LIB_EXT=".a"
+ fi
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
- TIX_DEPS="${tixdir}/libtix${TIXVERSION}.a"
+ TIX_DEPS="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
else
TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
- TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`.a"
+ TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
fi
ENABLE_GDBTK=1