From: Ulf Hermann <ulf.hermann@qt.io>
To: elfutils-devel@sourceware.org
Subject: [PATCH 2/2] Output information about buildable components
Date: Mon, 20 Feb 2017 14:14:00 -0000 [thread overview]
Message-ID: <767ac087-8e25-e322-ffc9-e5668b5866fd@qt.io> (raw)
If argp is missing we build without tools and tests. We might also
make libasm optional in the future, as it is only used in maintainer
mode. A libelf-only build without libdw and the ebl backends is also
feasible.
The user should be notified about what is actually buildable with a
given configuration.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
---
ChangeLog | 5 +++++
configure.ac | 16 +++++++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index e93d05f..e97e02b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2017-02-20 Ulf Hermann <ulf.hermann@qt.io>
+ * configure.ac: Track which components are enabled and output
+ a summary in the end.
+
+2017-02-20 Ulf Hermann <ulf.hermann@qt.io>
+
* configure.ac: Don't abort if no argp is found. Only print a
warning, rename have_argp to with_argp (like lzma, bzip2 ..),
and use "yes"/"no" as values, as we do for other variables.
diff --git a/configure.ac b/configure.ac
index 60b8796..ed60be5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -403,6 +403,7 @@ dnl Support library.
AC_CONFIG_FILES([lib/Makefile])
dnl ELF library.
+enable_libelf="yes"
AC_CONFIG_FILES([libelf/Makefile])
dnl Higher-level ELF support library.
@@ -412,6 +413,7 @@ dnl DWARF-ELF Lower-level Functions support library.
AC_CONFIG_FILES([libdwelf/Makefile])
dnl DWARF library.
+enable_libdw="yes"
AC_CONFIG_FILES([libdw/Makefile])
dnl Higher-level DWARF support library.
@@ -421,7 +423,8 @@ dnl CPU handling library.
AC_CONFIG_FILES([libcpu/Makefile])
dnl Assembler library.
-AM_CONDITIONAL(HAVE_LIBASM, true)dnl Used in tests/Makefile.am, which see.
+enable_libasm="yes"
+AM_CONDITIONAL(HAVE_LIBASM, test "x$enable_libasm" = "xyes")dnl Used in tests/Makefile.am, which see.
AC_CONFIG_FILES([libasm/Makefile])
dnl CPU-specific backend libraries.
@@ -433,11 +436,15 @@ AC_CONFIG_FILES([po/Makefile.in])
AM_CONDITIONAL(STANDALONE, false)dnl Used in tests/Makefile.am, which see.
if test "x$with_argp" = "xyes"; then
dnl Tools.
+ enable_tools="yes"
AC_CONFIG_FILES([src/Makefile])
dnl Test suite.
+ enable_tests="yes"
AC_CONFIG_FILES([tests/Makefile])
else
+ enable_tools="no"
+ enable_tests="no"
AC_MSG_WARN("Not building tools or tests.")
fi
@@ -580,4 +587,11 @@ AC_MSG_NOTICE([
gcc undefined behaviour sanitizer : ${use_undefined}
use rpath in tests : ${tests_use_rpath}
test biarch : ${utrace_cv_cc_biarch}
+
+ BUILDABLE COMPONENTS
+ libasm : ${enable_libasm}
+ libelf : ${enable_libelf}
+ libdw and ebl backends : ${enable_libdw}
+ tools : ${enable_tools}
+ tests : ${enable_tests}
])
--
2.1.4
reply other threads:[~2017-02-20 14:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=767ac087-8e25-e322-ffc9-e5668b5866fd@qt.io \
--to=ulf.hermann@qt.io \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).