gdb/
authorThomas Schwinge <tschwinge@gnu.org>
Thu, 16 May 2013 21:54:34 +0000 (21:54 +0000)
committerThomas Schwinge <tschwinge@gnu.org>
Thu, 16 May 2013 21:54:34 +0000 (21:54 +0000)
2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>

* configure.ac: Ensure MIG is available when building for GNU Hurd
hosts.
* configure: Regenerate.

gdb/ChangeLog
gdb/configure
gdb/configure.ac

index 8df3cff63da3956a7b2603f6aa0d5c2caa11a9a5..fa89ed37e3c1de6ce2a31b682200293756395772 100644 (file)
@@ -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.
index 6033791423199f302a5b7b28eccc41e8720d76b4..f0cdeb20a564b394804c4ba28ac238b4b1df11a5 100755 (executable)
@@ -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.  #
index 3e95c258be4eaba62f2766eb9f17419f65d08dd0..c3f79ec1b4018e528816074a148549485ac0ab73 100644 (file)
@@ -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.  #
This page took 0.035613 seconds and 4 git commands to generate.