trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2020

Re: Re: How to easily check build configuration

From: deloptes <deloptes@...>
Date: Sun, 08 Mar 2020 11:13:16 +0100
Michele Calgaro via trinity-devel wrote:

> On 2020/03/07 04:01 PM, deloptes wrote:
>> Thank you Michele, but doesn't it look like manual process? Usually the
>> configure script may or may not print the results of the configuration.
>> 
>> Can this be automated?
> Hi Emanoil,
> not sure to understand what you are looking for then... Perhaps you can
> explain better Cheers
>   Michele

I think this was correct, what you understood.

For example tdelibs during configuration says

-- Found PCSCLITE: /usr/lib/x86_64-linux-gnu/libpcsclite.so
-- Checking for one of the modules 'libcryptsetup'
-- Performing Test HAVE_NEW_CRYPTSETUP
-- Performing Test HAVE_NEW_CRYPTSETUP - Success
-- Performing Test HAVE_CRYPTSETUP_GET_TYPE
-- Performing Test HAVE_CRYPTSETUP_GET_TYPE - Success
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "62")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.36")
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.1.0")
-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found
version "1.900.1")

in many cases there are conditions in the make system (automake or cmake)
that will enable or disable an optional feature if the library is found or
not found.

How one could know what feature was compiled at the end?