hi, I found that when you missing the mid under GNU Hurd, the GDB's configure doesn't complain about that. But you will get a compile error until you do the make. So I add the check. By the way, I just check the existence of mig, have not check whether mig work correct yet.
This is my first time to submit patch, I just build this by git format-patch. If something wrong, just tell me, I will fix it. >From 56d4bd42a8620d0f85987d83eb7720d67350da01 Mon Sep 17 00:00:00 2001 From: hacklu <hacklu.newb...@gmail.com> Date: Fri, 3 May 2013 15:02:50 +0800 Subject: [PATCH] patch for check mig under GNU Hurd if no mig for use then exit! --- gdb/configure | 9 +++++++++ gdb/configure.ac | 9 +++++++++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/gdb/configure b/gdb/configure index c5ad94b..5c071e5 100755 --- a/gdb/configure +++ b/gdb/configure @@ -6229,6 +6229,15 @@ else MIG="$ac_cv_prog_MIG" fi +case "${host}" in + *-linux*|*-k*bsd-gnu*) + ;; + i[3456789]86-*-gnu*) + if test "$MIG" = "" ; then + as_fn_error "no mig for use" "$LINENO" 5 + fi + ;; +esac # ---------------------- # # Checks for libraries. # diff --git a/gdb/configure.ac b/gdb/configure.ac index bb7fbdd..f440ea9 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -488,6 +488,15 @@ AC_CHECK_TOOL(WINDRES, windres) # Needed for GNU/Hurd. AC_CHECK_TOOL(MIG, mig) +case "${host}" in + *-linux*|*-k*bsd-gnu*) + ;; + i[[3456789]]86-*-gnu*) + if test "$MIG" = "" ; then + AC_MSG_ERROR([no mig for use]) + fi + ;; +esac # ---------------------- # # Checks for libraries. # -- 1.7.0.4 -- Yue Lu (陆岳)