Closed tasleson closed 1 year ago
I see one problem:
./configure --enable-test=yes --enable-library=no
{...}
configure parameters: --enable-systemd=no --enable-library=yes --enable-test=yes
User request is not respected and is overwritten quietly. Personally, I don't like command line interfaces projected this way. I that case we should raise error and abort. I would say that we should make explicit dependency- f you want tests you need to --enable-library too, otherwise configure will fail.
User request is not respected and is overwritten quietly. Personally, I don't like command line interfaces projected this way. I that case we should raise error and abort.
Updated to fail ./configure
in this case
$ ./configure --enable-test
...
checking for LIBCHECK... yes
configure: error: --enable-library is required when specifying --enable-test
If you
--enable-test
during configure we also need to have the library enabled, otherwise we cannot build and thus cannot run the unit test.