configure.ac: Use automake subdir-objects flag

To make automake 1.14 happy

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Handle the case where hostnamed is not active or available

This is code path should be resilient to the hostnamed service
not running. In addition, allows us to test in places where
no systemd is running.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Fix link ordering to cope with picky compilers

The gcc compiler in Ubuntu 12.04 complains when linking these
libraries and archives out of order.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Disable various Gio plugins and backends

These are totally not relevant in a daemon process like ours. This
includes gvfs, gsettings, and the proxy resolver.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Add m4 include directory to autogen.sh

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
configure.ac: Don't use PKG_CHECK_VAR from recent pkg.m4

Older versions of pkg-config on some of our target platforms don't
have this macro.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Add support for building with travis-ci.org

This means putting in a .travis.yml file.

We use packages from the latest trusty version of ubuntu in order to
get the build to succeed, as well building jsl as part of our build.
libgsystem and storaged are also not available, so we bring in enough
for cockpit to get past 'make check'

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
configure.ac: Add --enable-strict option to build with Werror

This lets us run our automated testing and personal development
machines in a stricter mode than other builders.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Fix a bunch of warnings that are raised by clang 3.3

Some of these are serious, such as the ones in CockpitRestJson
and others are innocuous, but seem worth fixing so we can rely
on the warnings.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test: Don't use ifconfig, as it's less available on linux

Use the 'ip' command to test for the presence of an interface
instead.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
* Fixed the path to the IP binary to be more compatible
agent: Document and implement cancelling of restjson requests.

Fixes #372
Closes #344

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Tell the channel when a restjson request is cancelled.

Fixes #372
Closes #444

Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Fix invalid memory accesses in resource monitors.

Wrap the index correctly in GetSamples and don't run it in a thread.
The samples can not be read from multiple threads.

Closes #449

Reviewed-by: Stef Walter <stefw@redhat.com>
travis: Do a distcheck in our travis CI build

Allows us to catch even more issues

Closes #447
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
agent: Fix dead code in CockpitRestJson

Found by Coverity scan

Closes #446
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Fix memory leak in CGroup show code

Found by Coverity scan

Closes #446
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Track when we sent an EOF to each agent

This prevents races while shutting down, and is a patch
that was accidentally not pushed in the earlier multi-agent
work.

Closes #443
Remove last traces of libtool from our build and tests

We got rid of libtool usage a while back, remove some last vestiges
which were breaking our check-memory target if libtool wasn't installed
and other little bits.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Don't run test-server phantomjs tests under valgrind

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
tools: Make tap-gtester more compatible with older python

The argparse in older python seems to behave differently
with regards to the '--' argument so use argparse.REMAINDER
to catch the command line.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>