Don't look for objdump on OS X
authorMax Bolingbroke <batterseapower@hotmail.com>
Mon, 9 Jul 2012 14:05:39 +0000 (15:05 +0100)
committerMax Bolingbroke <batterseapower@hotmail.com>
Mon, 9 Jul 2012 14:06:03 +0000 (15:06 +0100)
configure.ac

index f7862ec..74191e4 100644 (file)
@@ -447,11 +447,16 @@ FP_ARG_WITH_PATH_GNU_PROG([NM], [nm], [nm])
 NmCmd="$NM"
 AC_SUBST([NmCmd])
 
-dnl ** Which objdump to use?
-dnl --------------------------------------------------------------
-FP_ARG_WITH_PATH_GNU_PROG([OBJDUMP], [objdump], [objdump])
-ObjdumpCmd="$OBJDUMP"
-AC_SUBST([ObjdumpCmd])
+# Note: we may not have objdump on OS X, and we only need it on Windows (for DLL checks)
+case $HostOS_CPP in
+cygwin32|mingw32)
+    dnl ** Which objdump to use?
+    dnl --------------------------------------------------------------
+    FP_ARG_WITH_PATH_GNU_PROG([OBJDUMP], [objdump], [objdump])
+    ObjdumpCmd="$OBJDUMP"
+    AC_SUBST([ObjdumpCmd])
+    ;;
+esac
 
 dnl ** Which LLVM llc to use?
 dnl --------------------------------------------------------------