All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [RFC PATCH 1/1] configure.ac: Print lib & docparse summary
@ 2021-11-03 16:08 Petr Vorel
  2021-11-04 13:14 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2021-11-03 16:08 UTC (permalink / raw)
  To: ltp

Due many checks of structs, members etc are library presence and
docparser config results quite hidden. Print them in the end.

Disadvantage of this is need to keep sync m4 macros with configure.ac
also quite easily results can be misinterpreted.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

If we want some summary I don't see much better way how to achieve it
with autoconf. Maybe we could introduce extra variables in m4 macros
which would be used in configure.ac.

Kind regards,
Petr

 configure.ac | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/configure.ac b/configure.ac
index 5bf3c52ec..a8b9c6b90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -375,3 +375,22 @@ test "x$with_tirpc" = xyes && LTP_CHECK_TIRPC
 LTP_DETECT_HOST_CPU
 
 AC_OUTPUT
+
+cat << EOF
+
+LIBRARIES
+keyutils: ${have_keyutils:-no}
+libacl: ${have_libacl:-no}
+libaio: ${have_libaio:-no} (aio: ${have_aio:-no})
+libcap: $cap_libs (newer: ${has_newer_libcap:-no})
+libcrypto: $have_libcrypto (sha: ${have_sha:-no})
+libmnl: ${have_libmnl:-no}
+libnuma: ${have_libnuma:-no} (headers: ${have_numa_headers:-no}, v2 headers: ${have_numa_headers_v2:-no})
+libtirpc: ${have_libtirpc:-no}
+glibc SUN-RPC: ${have_rpc_glibc:-no}
+
+METADATA
+metadata generator: $with_metadata_generator
+HTML metadata: $with_metadata_html
+PDF metadata: $with_metadata_pdf
+EOF
-- 
2.33.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [RFC PATCH 1/1] configure.ac: Print lib & docparse summary
  2021-11-03 16:08 [LTP] [RFC PATCH 1/1] configure.ac: Print lib & docparse summary Petr Vorel
@ 2021-11-04 13:14 ` Cyril Hrubis
  2021-11-04 19:45   ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2021-11-04 13:14 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp

Hi!
> Due many checks of structs, members etc are library presence and
> docparser config results quite hidden. Print them in the end.

Another option would be adding 'make info' target to the top level
Makefile that would print these based on config.mk, not sure if that
would be much better than this though.

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [RFC PATCH 1/1] configure.ac: Print lib & docparse summary
  2021-11-04 13:14 ` Cyril Hrubis
@ 2021-11-04 19:45   ` Petr Vorel
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2021-11-04 19:45 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: ltp

Hi Cyril,

> Hi!
> > Due many checks of structs, members etc are library presence and
> > docparser config results quite hidden. Print them in the end.

> Another option would be adding 'make info' target to the top level
> Makefile that would print these based on config.mk, not sure if that
> would be much better than this though.

While using config.mk would make things easier, I slightly prefer to have info
printed after running ./configure.  Maybe we could even have both. Unfortunately
each would have to have its own implementation, as configure.ac setup IMHO does
not allow to use config.mk output.

Whatever option we use, what'd be worth to print? Just libraries and docparse
(as done in this RFC) or more info from config.mk?

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-04 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 16:08 [LTP] [RFC PATCH 1/1] configure.ac: Print lib & docparse summary Petr Vorel
2021-11-04 13:14 ` Cyril Hrubis
2021-11-04 19:45   ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.