Subject: [PATCH] Disable tests at build time?

[PATCH] Disable tests at build time?

From: Brad House <brad_at_mainstreetsoftworks.com>
Date: Mon, 22 Feb 2016 11:08:31 -0500

I'm trying to do some testing of c-ares. I checked out the GIT tag for the 1.11.0 release,
and am testing against various OS's. However a *lot* of these do not support C++11 and it
appears this is required for building, even though c-ares itself does not have any such
requirement.

At this point, it appears that means there is no way to build without making changes to the
build system (configure.ac) to disable the config subdir if you don't have a C++11 compiler.
Is this intentional?

I'd think it should just disable the building of the tests if the system doesn't have the
prerequisites ... or at least provide a configure flag to specifically disable building of
the tests.

I've attached a possible patch to automatically select if it should build tests or not,
and if you explicitly pass --enable-tests and it can't be used on that system, it will
cause configure to fail instead of silently disabling them.

-Brad

Received on 2016-02-22