aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-09-05 18:46:07 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-09-06 11:34:44 -0700
commit9d284915bffe270d21b33e813e06c09a9283f2f2 (patch)
tree1895eec681bc8bf885f1ec60f17a1944f91fb9a2 /configure.ac
parent06b1ebbe4b397fc1b1b3fc27f1cb996404a8fa49 (diff)
downloadriscv-gnu-toolchain-9d284915bffe270d21b33e813e06c09a9283f2f2.zip
riscv-gnu-toolchain-9d284915bffe270d21b33e813e06c09a9283f2f2.tar.gz
riscv-gnu-toolchain-9d284915bffe270d21b33e813e06c09a9283f2f2.tar.bz2
Add a "--disable-gdb" argument
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 949c73d..af31113 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,4 +157,15 @@ AS_IF([test "x$with_guile" != xdefault],
[AC_SUBST(with_guile,--with-guile=$with_guile)],
[AC_SUBST(with_guile,"")])
+AC_ARG_ENABLE(gdb,
+ [AS_HELP_STRING([--disable-gdb],
+ [Don't build GDB, as it's not upstream])],
+ [],
+ [enable_gdb=yes]
+ )
+
+AS_IF([test "x$enable_gdb" != xno],
+ [AC_SUBST(enable_gdb, --enable-gdb)],
+ [AC_SUBST(enable_gdb, --disable-gdb)])
+
AC_OUTPUT