summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authortschwinge <tschwinge>2013-05-16 21:54:34 +0000
committertschwinge <tschwinge>2013-05-16 21:54:34 +0000
commit8e8d0e321d16b1c1bdb71ad268df467a13ad3b81 (patch)
tree9bac96efa21522b66491826a15d94731c14c1323 /gdb
parent5aa148e4cbf9f25d8a1a33d71c029abe3a7d9f6c (diff)
downloadgdb-8e8d0e321d16b1c1bdb71ad268df467a13ad3b81.tar.gz
gdb/
2013-05-16 Yue Lu <hacklu.newborn@gmail.com> * configure.ac: Ensure MIG is available when building for GNU Hurd hosts. * configure: Regenerate.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rwxr-xr-xgdb/configure11
-rw-r--r--gdb/configure.ac11
3 files changed, 24 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8df3cff63da..fa89ed37e3c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2013-05-16 Yue Lu <hacklu.newborn@gmail.com>
+
+ * configure.ac: Ensure MIG is available when building for GNU Hurd
+ hosts.
+ * configure: Regenerate.
+
2013-05-16 Joel Brobecker <brobecker@adacore.com>
* dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
diff --git a/gdb/configure b/gdb/configure
index 60337914231..f0cdeb20a56 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -6136,8 +6136,10 @@ else
fi
-# Needed for GNU/Hurd.
-if test -n "$ac_tool_prefix"; then
+case $host_os in
+ gnu*)
+ # Needed for GNU Hurd hosts.
+ if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
set dummy ${ac_tool_prefix}mig; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -6229,6 +6231,11 @@ else
MIG="$ac_cv_prog_MIG"
fi
+ if test x"$MIG" = x; then
+ as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
+ fi
+ ;;
+esac
# ---------------------- #
# Checks for libraries. #
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 3e95c258be4..c3f79ec1b40 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -486,8 +486,15 @@ AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(DLLTOOL, dlltool)
AC_CHECK_TOOL(WINDRES, windres)
-# Needed for GNU/Hurd.
-AC_CHECK_TOOL(MIG, mig)
+case $host_os in
+ gnu*)
+ # Needed for GNU Hurd hosts.
+ AC_CHECK_TOOL(MIG, mig)
+ if test x"$MIG" = x; then
+ AC_MSG_ERROR([MIG not found but required for $host hosts])
+ fi
+ ;;
+esac
# ---------------------- #
# Checks for libraries. #