On Thu, Dec 19, 2024 at 02:55:55PM +0000, Mark Harmstone wrote: > Change our autoconf macros so that instead of checking for the presence > of liburing.h, we use pkg-config. > > The benefit of this is that we can then check the version of liburing, > and do conditional compilation based on this. There's a macro > IO_URING_CHECK_VERSION already, but it's only in relatively recent > versions of liburing.h. > > This replaces HAVE_URING_H, defined by AC_CHECK_HEADERS, with > HAVE_URING. I also had to rename PKG_{MAJOR,MINOR,REVISION,BUILD} to > start with PACKAGE_, to avoid "possibly undefined macro" errors; it > looks like pkg-config assumes that anything called PKG_* is for its own > use. > > Signed-off-by: Mark Harmstone <maharmstone@xxxxxx> Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Thanks, Josef