]> git.ipfire.org Git - thirdparty/collectd.git/commit
AMQP plugin: prefer the `rabbitmq-c/amqp.h` header if available. 4111/head
authorFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 13:14:05 +0000 (14:14 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 13:20:45 +0000 (14:20 +0100)
commitcd07fc46367e17ce9b5c41d353332dd1790ab016
tree9cc4ee27f2812cb9ee58a8fd51960279387e4092
parentfb0047e4796d0d1296119ca9c5c2c77a8faa910f
AMQP plugin: prefer the `rabbitmq-c/amqp.h` header if available.

At some point, RabbitMQ has moved their headers to the `rabbitmq-c/`
subdirectory. The old locations still exist but throw an error, saying
the old headers are "deprecated".

This adds appropriate checks for the new headers to the configure script
and uses those if present.

To simplify both the configure script and plugin, support for ancient
versions of the library is removed. This affects versions that don't
have the `amqp_tcp_socket_new()` function yet.
configure.ac
src/amqp.c