diff options
author | Nick Clifton <nickc@redhat.com> | 2022-10-31 09:35:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-10-31 09:35:16 +0000 |
commit | 18bf56434d1adabbd82fa6a33d08a60ef2d71001 (patch) | |
tree | 10b12e121b5b28db524e1e31c7d2f5792e8afa75 /binutils/configure | |
parent | 0882710510059d9bf10d3e2324e0441029b50ce9 (diff) | |
download | gdb-18bf56434d1adabbd82fa6a33d08a60ef2d71001.zip gdb-18bf56434d1adabbd82fa6a33d08a60ef2d71001.tar.gz gdb-18bf56434d1adabbd82fa6a33d08a60ef2d71001.tar.bz2 |
objdump: Add configure time option to enable colored disassembly output by default.
PR 29457
* configure.ac: Add --enable-colored-disassembly.
* objdump.c: Add --disassembler-color=terminal.
* doc/binutils.texi (objdump): Document the new option.
* NEWS: Mention new feature.
* config.in: Regenerate in.
* configure: Regenerate.
Diffstat (limited to 'binutils/configure')
-rwxr-xr-x | binutils/configure | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/binutils/configure b/binutils/configure index 7a45037..2e33584 100755 --- a/binutils/configure +++ b/binutils/configure @@ -827,6 +827,7 @@ enable_deterministic_archives enable_default_strings_all enable_f_for_ifunc_symbols enable_follow_debug_links +enable_colored_disassembly with_debuginfod enable_libctf enable_werror @@ -1504,6 +1505,9 @@ Optional Features: --enable-follow-debug-links Have readelf and objdump follow debug links by default + --enable-colored-disassembly + Have objdump use colors in its disassembly by + default --enable-libctf Handle .ctf type-info sections [default=yes] --enable-werror treat compile warnings as errors --enable-build-warnings enable build-time compiler warnings @@ -10813,7 +10817,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10816 "configure" +#line 10820 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10919,7 +10923,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10922 "configure" +#line 10926 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11633,6 +11637,28 @@ _ACEOF +# Check whether --enable-colored-disassembly was given. +if test "${enable_colored_disassembly+set}" = set; then : + enableval=$enable_colored_disassembly; +if test "${enableval}" = no; then + default_for_colored_disassembly=0 +else + default_for_colored_disassembly=1 +fi +else + default_for_colored_disassembly=0 +fi + + + +cat >>confdefs.h <<_ACEOF +#define DEFAULT_FOR_COLORED_DISASSEMBLY $default_for_colored_disassembly +_ACEOF + + + + + |