summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2012-07-17 19:42:32 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-07-17 19:42:32 (GMT)
commit4ebe26af1a527a269ae9f78e41186dda03450c53 (patch)
tree289f356ab1a55ce5db29d3f634b846c57b75baca
parent9c75afd9d322a42573a69e9a45347eb2e3fa4b7c (diff)
configure: add checks for objcopy and objdump
These two went MIA after the migration to an autoconf-based ./configure. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r--configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e9950c6..19c904e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -121,6 +121,25 @@ AC_PROG_CC
AS_IF([test -z "$CC"],
[AC_MSG_ERROR([no suitable compiler found])])
AC_PROG_CPP
+
+# But we still need a way to specify the PATH to GNU versions (Damn MacOS)
+AC_ARG_WITH([objcopy],
+ AS_HELP_STRING([--with-objcopy=PATH],
+ [Specify the full PATH to GNU objcopy]),
+ [OBJCOPY=$withval])
+AC_ARG_WITH([objdump],
+ AS_HELP_STRING([--with-objdump=PATH],
+ [Specify the full PATH to GNU objdump]),
+ [OBJDUMP=$withval])
+AC_ARG_WITH([ranlib],
+ AS_HELP_STRING([--with-ranlib=PATH],
+ [Specify the full PATH to GNU ranlib]),
+ [RANLIB=$withval])
+AC_ARG_WITH([readelf],
+ AS_HELP_STRING([--with-readelf=PATH],
+ [Specify the full PATH to GNU readelf]),
+ [READELF=$withval])
+
AC_PROG_RANLIB
ACX_PATH_TOOL_REQ([OBJCOPY], [objcopy])
ACX_PATH_TOOL_REQ([OBJDUMP], [objdump])