aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/acx_configure_dir.m47
-rwxr-xr-xgdb/configure7
-rw-r--r--gdb/gdbserver/ChangeLog4
-rwxr-xr-xgdb/gdbserver/configure7
5 files changed, 28 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 31a8b5a..9d8244a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-20 Pedro Alves <palves@redhat.com>
+
+ * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
+ $srcdir.
+ * configure: Regenerate.
+
2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
* cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
diff --git a/gdb/acx_configure_dir.m4 b/gdb/acx_configure_dir.m4
index 57a64a6..e431875 100644
--- a/gdb/acx_configure_dir.m4
+++ b/gdb/acx_configure_dir.m4
@@ -89,7 +89,12 @@ AC_DEFUN([ACX_CONFIGURE_DIR],
_AS_ECHO([$ac_msg])
AS_MKDIR_P(["$ac_dir"])
- ac_srcdir=../$srcdir/$in_src
+ case $srcdir in
+ [[\\/]]* | ?:[[\\/]]* )
+ ac_srcdir=$srcdir/$in_src ;;
+ *) # Relative name.
+ ac_srcdir=../$srcdir/$in_src ;;
+ esac
cd "$ac_dir"
diff --git a/gdb/configure b/gdb/configure
index dd1c80a..54c2399 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -4648,7 +4648,12 @@ fi
$as_echo "$ac_msg" >&6
as_dir="$ac_dir"; as_fn_mkdir_p
- ac_srcdir=../$srcdir/$in_src
+ case $srcdir in
+ [\\/]* | ?:[\\/]* )
+ ac_srcdir=$srcdir/$in_src ;;
+ *) # Relative name.
+ ac_srcdir=../$srcdir/$in_src ;;
+ esac
cd "$ac_dir"
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7b48e19..d584b29 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2012-04-20 Pedro Alves <palves@redhat.com>
+
+ * configure: Regenerate.
+
2012-04-19 Pedro Alves <palves@redhat.com>
* Makefile.in (GNULIB_BUILDDIR): New.
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 5ab1885..63e25c2 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -4391,7 +4391,12 @@ done
$as_echo "$ac_msg" >&6
as_dir="$ac_dir"; as_fn_mkdir_p
- ac_srcdir=../$srcdir/$in_src
+ case $srcdir in
+ [\\/]* | ?:[\\/]* )
+ ac_srcdir=$srcdir/$in_src ;;
+ *) # Relative name.
+ ac_srcdir=../$srcdir/$in_src ;;
+ esac
cd "$ac_dir"