aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2001-08-16 22:47:00 +0000
committerKeith Seitz <keiths@redhat.com>2001-08-16 22:47:00 +0000
commitd1c3b63ad472a72cb0c2b9c92bf9eafc65c98285 (patch)
tree8b075e5be609417ec6d1a0096104b53bbbec298b /gdb/configure.in
parentbe00bdddadf30549f652e4eebb02dd536b162122 (diff)
downloadgdb-d1c3b63ad472a72cb0c2b9c92bf9eafc65c98285.zip
gdb-d1c3b63ad472a72cb0c2b9c92bf9eafc65c98285.tar.gz
gdb-d1c3b63ad472a72cb0c2b9c92bf9eafc65c98285.tar.bz2
* configure.in (GDBTK_SRC_DIR): We must have autoconf
give us the absolute path to the source directory. * configure: Regenerated. * Makefile.in (GDBTK_SRC_DIR): Add variable so that autoconf can substitue it in for us. (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We really do need an absolute pathname.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index f676877..6c30972 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -941,6 +941,13 @@ configdir="unix"
GDBTKLIBS=
if test "${enable_gdbtk}" = "yes"; then
+ # Gdbtk must have an absolute path to srcdir in order to run
+ # properly when not installed.
+ here=`pwd`
+ cd ${srcdir}
+ GDBTK_SRC_DIR=`pwd`
+ cd $here
+
CY_AC_PATH_TCLCONFIG
if test -z "${no_tcl}"; then
CY_AC_LOAD_TCLCONFIG
@@ -1080,6 +1087,7 @@ AC_SUBST(TIXLIB)
AC_SUBST(TIX_DEPS)
AC_SUBST(GDBTKLIBS)
AC_SUBST(GDBTK_CFLAGS)
+AC_SUBST(GDBTK_SRC_DIR)
AC_PATH_X