diff options
author | Nick Clifton <nickc@redhat.com> | 2019-05-29 11:31:16 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-05-29 11:32:34 +0100 |
commit | 90bd54236cb8b1c31c3662977159be971044c20d (patch) | |
tree | ae40336bf812074b3c26b51190e33a59946ef2e8 /binutils/configure | |
parent | 9698cf9b1c485edbbeabc9f65bfd0fdef92e3854 (diff) | |
download | fsf-binutils-gdb-90bd54236cb8b1c31c3662977159be971044c20d.zip fsf-binutils-gdb-90bd54236cb8b1c31c3662977159be971044c20d.tar.gz fsf-binutils-gdb-90bd54236cb8b1c31c3662977159be971044c20d.tar.bz2 |
Do not build libctf for targets that do not use the ELF file format.
top * configure.ac (noconfigdirs): Add libctf if the target does not use
the ELF file format.
* configure: Regenerate.
binutils* configure.ac (LIBCTF): Export. Set to empty for non-ELF based
targets.
(HAVE_LIBCTF): Define if libctf support is available.
* Makefile.am (LIBCTF): Set value to @LIBCTF@.
* objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
defined.
* readelf.c: Likewise.
* configure: Regenerate.
* Makefile.in: Regenerate.
* config.in: Regenerate.
Diffstat (limited to 'binutils/configure')
-rwxr-xr-x | binutils/configure | 64 |
1 files changed, 62 insertions, 2 deletions
diff --git a/binutils/configure b/binutils/configure index 17cca12..a653a71 100755 --- a/binutils/configure +++ b/binutils/configure @@ -636,6 +636,7 @@ LTLIBOBJS LIBOBJS EMULATION_VECTOR EMULATION +LIBCTF OBJDUMP_PRIVATE_OFILES OBJDUMP_DEFS BUILD_INSTALL_MISC @@ -11523,7 +11524,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11526 "configure" +#line 11527 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11629,7 +11630,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11632 "configure" +#line 11633 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -15082,6 +15083,64 @@ do fi done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libctf support" >&5 +$as_echo_n "checking for libctf support... " >&6; } +case "${target}" in + *-*-pe | *-*-*vms* | *-*-darwin | *-*-*coff* | *-*-wince | *-*-mingw*) + if ${bu_cv_libctf_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + bu_cv_libctf_support=no +fi + + ;; + *-*-aout | *-*-osf* | *-*-go32 | *-*-macos* | *-*-rhapsody*) + if ${bu_cv_libctf_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + bu_cv_libctf_support=no +fi + + ;; + *-*-netbsdpe | *-*-cygwin* | *-*-pep | *-*-msdos | *-*-winnt) + if ${bu_cv_libctf_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + bu_cv_libctf_support=no +fi + + ;; + ns32k-*-* | pdp11-*-* | *-*-aix* | *-*-netbsdaout) + if ${bu_cv_libctf_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + bu_cv_libctf_support=no +fi + + ;; + *) + if ${bu_cv_libctf_support+:} false; then : + $as_echo_n "(cached) " >&6 +else + bu_cv_libctf_support=yes +fi + + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_libctf_support" >&5 +$as_echo "$bu_cv_libctf_support" >&6; } +if test $bu_cv_libctf_support = yes; then + +$as_echo "#define HAVE_LIBCTF 1" >>confdefs.h + +fi +LIBCTF= +if test $bu_cv_libctf_support = yes; then + LIBCTF=../libctf/libctf.a +fi + + # Uniq objdump private vector, build objdump target ofiles. od_files= f="" @@ -15140,6 +15199,7 @@ OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECT + cat >>confdefs.h <<_ACEOF #define TARGET "${target}" _ACEOF |