Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -9463,6 +9463,55 @@ $as_echo "#define HAVE_ZSTD 1" >>confdefs.h

fi

# Check liburing
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for io_uring_queue_init in -luring" >&5
$as_echo_n "checking for io_uring_queue_init in -luring... " >&6; }
if ${ac_cv_lib_uring_io_uring_queue_init+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-luring $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char io_uring_queue_init ();
int
main ()
{
return io_uring_queue_init ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_uring_io_uring_queue_init=yes
else
ac_cv_lib_uring_io_uring_queue_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uring_io_uring_queue_init" >&5
$as_echo "$ac_cv_lib_uring_io_uring_queue_init" >&6; }
if test "x$ac_cv_lib_uring_io_uring_queue_init" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBURING 1
_ACEOF

LIBS="-luring $LIBS"

else
as_fn_error $? "library 'uring' is required for PAX support" "$LINENO" 5
fi


# Check cmake >= 3.11.0 using AX_COMPARE_VERSION
# Extract the first word of "cmake", so it can be a program name with args.
set dummy cmake; ac_word=$2
Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,10 @@ if test "$enable_pax" = yes; then
[AC_MSG_ERROR([libzstd >= 1.4.0 is required for PAX support])]
)

# Check liburing
AC_CHECK_LIB(uring, io_uring_queue_init, [],
[AC_MSG_ERROR([library 'uring' is required for PAX support])])

# Check cmake >= 3.11.0 using AX_COMPARE_VERSION
AC_PATH_PROG([CMAKE], [cmake], [no])
if test "$CMAKE" = "no"; then
Expand Down
Loading