Changes in / [e262b5e:42cd451e]
- Location:
- libcfa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/configure
re262b5e r42cd451e 17014 17014 #io_uring 5.6 and later uses probes 17015 17015 17016 17017 17018 17016 17019 for ac_header in linux/io_uring.h 17017 17020 do : … … 17024 17027 $as_echo "#define CFA_HAVE_LINUX_IO_URING_H 1" >>confdefs.h 17025 17028 17026 # AC_CHECK_HEADER([liburing.h], [ 17027 # AC_CHECK_LIB([uring], [io_uring_get_probe]) 17028 # ]) 17029 ac_fn_c_check_header_mongrel "$LINENO" "liburing.h" "ac_cv_header_liburing_h" "$ac_includes_default" 17030 if test "x$ac_cv_header_liburing_h" = xyes; then : 17031 17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for io_uring_get_probe in -luring" >&5 17033 $as_echo_n "checking for io_uring_get_probe in -luring... " >&6; } 17034 if ${ac_cv_lib_uring_io_uring_get_probe+:} false; then : 17035 $as_echo_n "(cached) " >&6 17036 else 17037 ac_check_lib_save_LIBS=$LIBS 17038 LIBS="-luring $LIBS" 17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17040 /* end confdefs.h. */ 17041 17042 /* Override any GCC internal prototype to avoid an error. 17043 Use char because int might match the return type of a GCC 17044 builtin and then its argument prototype would still apply. */ 17045 #ifdef __cplusplus 17046 extern "C" 17047 #endif 17048 char io_uring_get_probe (); 17049 int 17050 main () 17051 { 17052 return io_uring_get_probe (); 17053 ; 17054 return 0; 17055 } 17056 _ACEOF 17057 if ac_fn_c_try_link "$LINENO"; then : 17058 ac_cv_lib_uring_io_uring_get_probe=yes 17059 else 17060 ac_cv_lib_uring_io_uring_get_probe=no 17061 fi 17062 rm -f core conftest.err conftest.$ac_objext \ 17063 conftest$ac_exeext conftest.$ac_ext 17064 LIBS=$ac_check_lib_save_LIBS 17065 fi 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uring_io_uring_get_probe" >&5 17067 $as_echo "$ac_cv_lib_uring_io_uring_get_probe" >&6; } 17068 if test "x$ac_cv_lib_uring_io_uring_get_probe" = xyes; then : 17069 17070 17071 ac_fn_c_check_decl "$LINENO" "IORING_OP_NOP" "ac_cv_have_decl_IORING_OP_NOP" "#include <linux/io_uring.h> 17072 " 17073 if test "x$ac_cv_have_decl_IORING_OP_NOP" = xyes; then : 17074 17075 if test "$cross_compiling" = yes; then : 17076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17078 as_fn_error $? "cannot run test program while cross compiling 17079 See \`config.log' for more details" "$LINENO" 5; } 17080 else 17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17082 /* end confdefs.h. */ 17083 17084 #include <liburing.h> 17085 int 17086 main () 17087 { 17088 int main() { 17089 struct io_uring_probe *probe = io_uring_get_probe(); 17090 if(io_uring_opcode_supported(probe, IORING_OP_NOP)) 17091 return 0; 17092 else 17093 return 1; 17094 } 17095 17096 ; 17097 return 0; 17098 } 17099 17100 _ACEOF 17101 if ac_fn_c_try_run "$LINENO"; then : 17102 17103 $as_echo "#define CFA_HAVE_IORING_OP_NOP 1" >>confdefs.h 17104 17105 17106 else 17107 17108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17110 as_fn_error $? "Check support for IORING_OP_NOP with liburing failed 17111 See \`config.log' for more details" "$LINENO" 5; } 17112 17113 fi 17114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17115 conftest.$ac_objext conftest.beam conftest.$ac_ext 17116 fi 17117 17118 17119 fi 17120 17121 17122 ac_fn_c_check_decl "$LINENO" "IORING_OP_READV" "ac_cv_have_decl_IORING_OP_READV" "#include <linux/io_uring.h> 17123 " 17124 if test "x$ac_cv_have_decl_IORING_OP_READV" = xyes; then : 17125 17126 if test "$cross_compiling" = yes; then : 17127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17129 as_fn_error $? "cannot run test program while cross compiling 17130 See \`config.log' for more details" "$LINENO" 5; } 17131 else 17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17133 /* end confdefs.h. */ 17134 17135 #include <liburing.h> 17136 int 17137 main () 17138 { 17139 int main() { 17140 struct io_uring_probe *probe = io_uring_get_probe(); 17141 if(io_uring_opcode_supported(probe, IORING_OP_READV)) 17142 return 0; 17143 else 17144 return 1; 17145 } 17146 17147 ; 17148 return 0; 17149 } 17150 17151 _ACEOF 17152 if ac_fn_c_try_run "$LINENO"; then : 17153 17154 $as_echo "#define CFA_HAVE_IORING_OP_READV 1" >>confdefs.h 17155 17156 17157 else 17158 17159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17161 as_fn_error $? "Check support for IORING_OP_READV with liburing failed 17162 See \`config.log' for more details" "$LINENO" 5; } 17163 17164 fi 17165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17166 conftest.$ac_objext conftest.beam conftest.$ac_ext 17167 fi 17168 17169 17170 fi 17171 17172 17173 ac_fn_c_check_decl "$LINENO" "IORING_OP_WRITEV" "ac_cv_have_decl_IORING_OP_WRITEV" "#include <linux/io_uring.h> 17174 " 17175 if test "x$ac_cv_have_decl_IORING_OP_WRITEV" = xyes; then : 17176 17177 if test "$cross_compiling" = yes; then : 17178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17180 as_fn_error $? "cannot run test program while cross compiling 17181 See \`config.log' for more details" "$LINENO" 5; } 17182 else 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184 /* end confdefs.h. */ 17185 17186 #include <liburing.h> 17187 int 17188 main () 17189 { 17190 int main() { 17191 struct io_uring_probe *probe = io_uring_get_probe(); 17192 if(io_uring_opcode_supported(probe, IORING_OP_WRITEV)) 17193 return 0; 17194 else 17195 return 1; 17196 } 17197 17198 ; 17199 return 0; 17200 } 17201 17202 _ACEOF 17203 if ac_fn_c_try_run "$LINENO"; then : 17204 17205 $as_echo "#define CFA_HAVE_IORING_OP_WRITEV 1" >>confdefs.h 17206 17207 17208 else 17209 17210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17212 as_fn_error $? "Check support for IORING_OP_WRITEV with liburing failed 17213 See \`config.log' for more details" "$LINENO" 5; } 17214 17215 fi 17216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17217 conftest.$ac_objext conftest.beam conftest.$ac_ext 17218 fi 17219 17220 17221 fi 17222 17223 17224 ac_fn_c_check_decl "$LINENO" "IORING_OP_FSYNC" "ac_cv_have_decl_IORING_OP_FSYNC" "#include <linux/io_uring.h> 17225 " 17226 if test "x$ac_cv_have_decl_IORING_OP_FSYNC" = xyes; then : 17227 17228 if test "$cross_compiling" = yes; then : 17229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17231 as_fn_error $? "cannot run test program while cross compiling 17232 See \`config.log' for more details" "$LINENO" 5; } 17233 else 17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17235 /* end confdefs.h. */ 17236 17237 #include <liburing.h> 17238 int 17239 main () 17240 { 17241 int main() { 17242 struct io_uring_probe *probe = io_uring_get_probe(); 17243 if(io_uring_opcode_supported(probe, IORING_OP_FSYNC)) 17244 return 0; 17245 else 17246 return 1; 17247 } 17248 17249 ; 17250 return 0; 17251 } 17252 17253 _ACEOF 17254 if ac_fn_c_try_run "$LINENO"; then : 17255 17256 $as_echo "#define CFA_HAVE_IORING_OP_FSYNC 1" >>confdefs.h 17257 17258 17259 else 17260 17261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17263 as_fn_error $? "Check support for IORING_OP_FSYNC with liburing failed 17264 See \`config.log' for more details" "$LINENO" 5; } 17265 17266 fi 17267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17268 conftest.$ac_objext conftest.beam conftest.$ac_ext 17269 fi 17270 17271 17272 fi 17273 17274 17275 ac_fn_c_check_decl "$LINENO" "IORING_OP_READ_FIXED" "ac_cv_have_decl_IORING_OP_READ_FIXED" "#include <linux/io_uring.h> 17276 " 17277 if test "x$ac_cv_have_decl_IORING_OP_READ_FIXED" = xyes; then : 17278 17279 if test "$cross_compiling" = yes; then : 17280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17282 as_fn_error $? "cannot run test program while cross compiling 17283 See \`config.log' for more details" "$LINENO" 5; } 17284 else 17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17286 /* end confdefs.h. */ 17287 17288 #include <liburing.h> 17289 int 17290 main () 17291 { 17292 int main() { 17293 struct io_uring_probe *probe = io_uring_get_probe(); 17294 if(io_uring_opcode_supported(probe, IORING_OP_READ_FIXED)) 17295 return 0; 17296 else 17297 return 1; 17298 } 17299 17300 ; 17301 return 0; 17302 } 17303 17304 _ACEOF 17305 if ac_fn_c_try_run "$LINENO"; then : 17306 17307 $as_echo "#define CFA_HAVE_IORING_OP_READ_FIXED 1" >>confdefs.h 17308 17309 17310 else 17311 17312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17314 as_fn_error $? "Check support for IORING_OP_READ_FIXED with liburing failed 17315 See \`config.log' for more details" "$LINENO" 5; } 17316 17317 fi 17318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17319 conftest.$ac_objext conftest.beam conftest.$ac_ext 17320 fi 17321 17322 17323 fi 17324 17325 17326 ac_fn_c_check_decl "$LINENO" "IORING_OP_WRITE_FIXED" "ac_cv_have_decl_IORING_OP_WRITE_FIXED" "#include <linux/io_uring.h> 17327 " 17328 if test "x$ac_cv_have_decl_IORING_OP_WRITE_FIXED" = xyes; then : 17329 17330 if test "$cross_compiling" = yes; then : 17331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17333 as_fn_error $? "cannot run test program while cross compiling 17334 See \`config.log' for more details" "$LINENO" 5; } 17335 else 17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337 /* end confdefs.h. */ 17338 17339 #include <liburing.h> 17340 int 17341 main () 17342 { 17343 int main() { 17344 struct io_uring_probe *probe = io_uring_get_probe(); 17345 if(io_uring_opcode_supported(probe, IORING_OP_WRITE_FIXED)) 17346 return 0; 17347 else 17348 return 1; 17349 } 17350 17351 ; 17352 return 0; 17353 } 17354 17355 _ACEOF 17356 if ac_fn_c_try_run "$LINENO"; then : 17357 17358 $as_echo "#define CFA_HAVE_IORING_OP_WRITE_FIXED 1" >>confdefs.h 17359 17360 17361 else 17362 17363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17365 as_fn_error $? "Check support for IORING_OP_WRITE_FIXED with liburing failed 17366 See \`config.log' for more details" "$LINENO" 5; } 17367 17368 fi 17369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17370 conftest.$ac_objext conftest.beam conftest.$ac_ext 17371 fi 17372 17373 17374 fi 17375 17376 17377 ac_fn_c_check_decl "$LINENO" "IORING_OP_POLL_ADD" "ac_cv_have_decl_IORING_OP_POLL_ADD" "#include <linux/io_uring.h> 17378 " 17379 if test "x$ac_cv_have_decl_IORING_OP_POLL_ADD" = xyes; then : 17380 17381 if test "$cross_compiling" = yes; then : 17382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17384 as_fn_error $? "cannot run test program while cross compiling 17385 See \`config.log' for more details" "$LINENO" 5; } 17386 else 17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17388 /* end confdefs.h. */ 17389 17390 #include <liburing.h> 17391 int 17392 main () 17393 { 17394 int main() { 17395 struct io_uring_probe *probe = io_uring_get_probe(); 17396 if(io_uring_opcode_supported(probe, IORING_OP_POLL_ADD)) 17397 return 0; 17398 else 17399 return 1; 17400 } 17401 17402 ; 17403 return 0; 17404 } 17405 17406 _ACEOF 17407 if ac_fn_c_try_run "$LINENO"; then : 17408 17409 $as_echo "#define CFA_HAVE_IORING_OP_POLL_ADD 1" >>confdefs.h 17410 17411 17412 else 17413 17414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17416 as_fn_error $? "Check support for IORING_OP_POLL_ADD with liburing failed 17417 See \`config.log' for more details" "$LINENO" 5; } 17418 17419 fi 17420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17421 conftest.$ac_objext conftest.beam conftest.$ac_ext 17422 fi 17423 17424 17425 fi 17426 17427 17428 ac_fn_c_check_decl "$LINENO" "IORING_OP_POLL_REMOVE" "ac_cv_have_decl_IORING_OP_POLL_REMOVE" "#include <linux/io_uring.h> 17429 " 17430 if test "x$ac_cv_have_decl_IORING_OP_POLL_REMOVE" = xyes; then : 17431 17432 if test "$cross_compiling" = yes; then : 17433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17435 as_fn_error $? "cannot run test program while cross compiling 17436 See \`config.log' for more details" "$LINENO" 5; } 17437 else 17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17439 /* end confdefs.h. */ 17440 17441 #include <liburing.h> 17442 int 17443 main () 17444 { 17445 int main() { 17446 struct io_uring_probe *probe = io_uring_get_probe(); 17447 if(io_uring_opcode_supported(probe, IORING_OP_POLL_REMOVE)) 17448 return 0; 17449 else 17450 return 1; 17451 } 17452 17453 ; 17454 return 0; 17455 } 17456 17457 _ACEOF 17458 if ac_fn_c_try_run "$LINENO"; then : 17459 17460 $as_echo "#define CFA_HAVE_IORING_OP_POLL_REMOVE 1" >>confdefs.h 17461 17462 17463 else 17464 17465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17467 as_fn_error $? "Check support for IORING_OP_POLL_REMOVE with liburing failed 17468 See \`config.log' for more details" "$LINENO" 5; } 17469 17470 fi 17471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17472 conftest.$ac_objext conftest.beam conftest.$ac_ext 17473 fi 17474 17475 17476 fi 17477 17478 17479 ac_fn_c_check_decl "$LINENO" "IORING_OP_SYNC_FILE_RANGE" "ac_cv_have_decl_IORING_OP_SYNC_FILE_RANGE" "#include <linux/io_uring.h> 17480 " 17481 if test "x$ac_cv_have_decl_IORING_OP_SYNC_FILE_RANGE" = xyes; then : 17482 17483 if test "$cross_compiling" = yes; then : 17484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17486 as_fn_error $? "cannot run test program while cross compiling 17487 See \`config.log' for more details" "$LINENO" 5; } 17488 else 17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17490 /* end confdefs.h. */ 17491 17492 #include <liburing.h> 17493 int 17494 main () 17495 { 17496 int main() { 17497 struct io_uring_probe *probe = io_uring_get_probe(); 17498 if(io_uring_opcode_supported(probe, IORING_OP_SYNC_FILE_RANGE)) 17499 return 0; 17500 else 17501 return 1; 17502 } 17503 17504 ; 17505 return 0; 17506 } 17507 17508 _ACEOF 17509 if ac_fn_c_try_run "$LINENO"; then : 17510 17511 $as_echo "#define CFA_HAVE_IORING_OP_SYNC_FILE_RANGE 1" >>confdefs.h 17512 17513 17514 else 17515 17516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17518 as_fn_error $? "Check support for IORING_OP_SYNC_FILE_RANGE with liburing failed 17519 See \`config.log' for more details" "$LINENO" 5; } 17520 17521 fi 17522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17523 conftest.$ac_objext conftest.beam conftest.$ac_ext 17524 fi 17525 17526 17527 fi 17528 17529 17530 ac_fn_c_check_decl "$LINENO" "IORING_OP_SENDMSG" "ac_cv_have_decl_IORING_OP_SENDMSG" "#include <linux/io_uring.h> 17531 " 17532 if test "x$ac_cv_have_decl_IORING_OP_SENDMSG" = xyes; then : 17533 17534 if test "$cross_compiling" = yes; then : 17535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17537 as_fn_error $? "cannot run test program while cross compiling 17538 See \`config.log' for more details" "$LINENO" 5; } 17539 else 17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17541 /* end confdefs.h. */ 17542 17543 #include <liburing.h> 17544 int 17545 main () 17546 { 17547 int main() { 17548 struct io_uring_probe *probe = io_uring_get_probe(); 17549 if(io_uring_opcode_supported(probe, IORING_OP_SENDMSG)) 17550 return 0; 17551 else 17552 return 1; 17553 } 17554 17555 ; 17556 return 0; 17557 } 17558 17559 _ACEOF 17560 if ac_fn_c_try_run "$LINENO"; then : 17561 17562 $as_echo "#define CFA_HAVE_IORING_OP_SENDMSG 1" >>confdefs.h 17563 17564 17565 else 17566 17567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17569 as_fn_error $? "Check support for IORING_OP_SENDMSG with liburing failed 17570 See \`config.log' for more details" "$LINENO" 5; } 17571 17572 fi 17573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17574 conftest.$ac_objext conftest.beam conftest.$ac_ext 17575 fi 17576 17577 17578 fi 17579 17580 17581 ac_fn_c_check_decl "$LINENO" "IORING_OP_RECVMSG" "ac_cv_have_decl_IORING_OP_RECVMSG" "#include <linux/io_uring.h> 17582 " 17583 if test "x$ac_cv_have_decl_IORING_OP_RECVMSG" = xyes; then : 17584 17585 if test "$cross_compiling" = yes; then : 17586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17588 as_fn_error $? "cannot run test program while cross compiling 17589 See \`config.log' for more details" "$LINENO" 5; } 17590 else 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592 /* end confdefs.h. */ 17593 17594 #include <liburing.h> 17595 int 17596 main () 17597 { 17598 int main() { 17599 struct io_uring_probe *probe = io_uring_get_probe(); 17600 if(io_uring_opcode_supported(probe, IORING_OP_RECVMSG)) 17601 return 0; 17602 else 17603 return 1; 17604 } 17605 17606 ; 17607 return 0; 17608 } 17609 17610 _ACEOF 17611 if ac_fn_c_try_run "$LINENO"; then : 17612 17613 $as_echo "#define CFA_HAVE_IORING_OP_RECVMSG 1" >>confdefs.h 17614 17615 17616 else 17617 17618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17620 as_fn_error $? "Check support for IORING_OP_RECVMSG with liburing failed 17621 See \`config.log' for more details" "$LINENO" 5; } 17622 17623 fi 17624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17625 conftest.$ac_objext conftest.beam conftest.$ac_ext 17626 fi 17627 17628 17629 fi 17630 17631 17632 ac_fn_c_check_decl "$LINENO" "IORING_OP_TIMEOUT" "ac_cv_have_decl_IORING_OP_TIMEOUT" "#include <linux/io_uring.h> 17633 " 17634 if test "x$ac_cv_have_decl_IORING_OP_TIMEOUT" = xyes; then : 17635 17636 if test "$cross_compiling" = yes; then : 17637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17639 as_fn_error $? "cannot run test program while cross compiling 17640 See \`config.log' for more details" "$LINENO" 5; } 17641 else 17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17643 /* end confdefs.h. */ 17644 17645 #include <liburing.h> 17646 int 17647 main () 17648 { 17649 int main() { 17650 struct io_uring_probe *probe = io_uring_get_probe(); 17651 if(io_uring_opcode_supported(probe, IORING_OP_TIMEOUT)) 17652 return 0; 17653 else 17654 return 1; 17655 } 17656 17657 ; 17658 return 0; 17659 } 17660 17661 _ACEOF 17662 if ac_fn_c_try_run "$LINENO"; then : 17663 17664 $as_echo "#define CFA_HAVE_IORING_OP_TIMEOUT 1" >>confdefs.h 17665 17666 17667 else 17668 17669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17671 as_fn_error $? "Check support for IORING_OP_TIMEOUT with liburing failed 17672 See \`config.log' for more details" "$LINENO" 5; } 17673 17674 fi 17675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17676 conftest.$ac_objext conftest.beam conftest.$ac_ext 17677 fi 17678 17679 17680 fi 17681 17682 17683 ac_fn_c_check_decl "$LINENO" "IORING_OP_TIMEOUT_REMOVE" "ac_cv_have_decl_IORING_OP_TIMEOUT_REMOVE" "#include <linux/io_uring.h> 17684 " 17685 if test "x$ac_cv_have_decl_IORING_OP_TIMEOUT_REMOVE" = xyes; then : 17686 17687 if test "$cross_compiling" = yes; then : 17688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17690 as_fn_error $? "cannot run test program while cross compiling 17691 See \`config.log' for more details" "$LINENO" 5; } 17692 else 17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17694 /* end confdefs.h. */ 17695 17696 #include <liburing.h> 17697 int 17698 main () 17699 { 17700 int main() { 17701 struct io_uring_probe *probe = io_uring_get_probe(); 17702 if(io_uring_opcode_supported(probe, IORING_OP_TIMEOUT_REMOVE)) 17703 return 0; 17704 else 17705 return 1; 17706 } 17707 17708 ; 17709 return 0; 17710 } 17711 17712 _ACEOF 17713 if ac_fn_c_try_run "$LINENO"; then : 17714 17715 $as_echo "#define CFA_HAVE_IORING_OP_TIMEOUT_REMOVE 1" >>confdefs.h 17716 17717 17718 else 17719 17720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17722 as_fn_error $? "Check support for IORING_OP_TIMEOUT_REMOVE with liburing failed 17723 See \`config.log' for more details" "$LINENO" 5; } 17724 17725 fi 17726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17727 conftest.$ac_objext conftest.beam conftest.$ac_ext 17728 fi 17729 17730 17731 fi 17732 17733 17734 ac_fn_c_check_decl "$LINENO" "IORING_OP_ACCEPT" "ac_cv_have_decl_IORING_OP_ACCEPT" "#include <linux/io_uring.h> 17735 " 17736 if test "x$ac_cv_have_decl_IORING_OP_ACCEPT" = xyes; then : 17737 17738 if test "$cross_compiling" = yes; then : 17739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17741 as_fn_error $? "cannot run test program while cross compiling 17742 See \`config.log' for more details" "$LINENO" 5; } 17743 else 17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17745 /* end confdefs.h. */ 17746 17747 #include <liburing.h> 17748 int 17749 main () 17750 { 17751 int main() { 17752 struct io_uring_probe *probe = io_uring_get_probe(); 17753 if(io_uring_opcode_supported(probe, IORING_OP_ACCEPT)) 17754 return 0; 17755 else 17756 return 1; 17757 } 17758 17759 ; 17760 return 0; 17761 } 17762 17763 _ACEOF 17764 if ac_fn_c_try_run "$LINENO"; then : 17765 17766 $as_echo "#define CFA_HAVE_IORING_OP_ACCEPT 1" >>confdefs.h 17767 17768 17769 else 17770 17771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17773 as_fn_error $? "Check support for IORING_OP_ACCEPT with liburing failed 17774 See \`config.log' for more details" "$LINENO" 5; } 17775 17776 fi 17777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17778 conftest.$ac_objext conftest.beam conftest.$ac_ext 17779 fi 17780 17781 17782 fi 17783 17784 17785 ac_fn_c_check_decl "$LINENO" "IORING_OP_ASYNC_CANCEL" "ac_cv_have_decl_IORING_OP_ASYNC_CANCEL" "#include <linux/io_uring.h> 17786 " 17787 if test "x$ac_cv_have_decl_IORING_OP_ASYNC_CANCEL" = xyes; then : 17788 17789 if test "$cross_compiling" = yes; then : 17790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17792 as_fn_error $? "cannot run test program while cross compiling 17793 See \`config.log' for more details" "$LINENO" 5; } 17794 else 17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17796 /* end confdefs.h. */ 17797 17798 #include <liburing.h> 17799 int 17800 main () 17801 { 17802 int main() { 17803 struct io_uring_probe *probe = io_uring_get_probe(); 17804 if(io_uring_opcode_supported(probe, IORING_OP_ASYNC_CANCEL)) 17805 return 0; 17806 else 17807 return 1; 17808 } 17809 17810 ; 17811 return 0; 17812 } 17813 17814 _ACEOF 17815 if ac_fn_c_try_run "$LINENO"; then : 17816 17817 $as_echo "#define CFA_HAVE_IORING_OP_ASYNC_CANCEL 1" >>confdefs.h 17818 17819 17820 else 17821 17822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17824 as_fn_error $? "Check support for IORING_OP_ASYNC_CANCEL with liburing failed 17825 See \`config.log' for more details" "$LINENO" 5; } 17826 17827 fi 17828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17829 conftest.$ac_objext conftest.beam conftest.$ac_ext 17830 fi 17831 17832 17833 fi 17834 17835 17836 ac_fn_c_check_decl "$LINENO" "IORING_OP_LINK_TIMEOUT" "ac_cv_have_decl_IORING_OP_LINK_TIMEOUT" "#include <linux/io_uring.h> 17837 " 17838 if test "x$ac_cv_have_decl_IORING_OP_LINK_TIMEOUT" = xyes; then : 17839 17840 if test "$cross_compiling" = yes; then : 17841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17843 as_fn_error $? "cannot run test program while cross compiling 17844 See \`config.log' for more details" "$LINENO" 5; } 17845 else 17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847 /* end confdefs.h. */ 17848 17849 #include <liburing.h> 17850 int 17851 main () 17852 { 17853 int main() { 17854 struct io_uring_probe *probe = io_uring_get_probe(); 17855 if(io_uring_opcode_supported(probe, IORING_OP_LINK_TIMEOUT)) 17856 return 0; 17857 else 17858 return 1; 17859 } 17860 17861 ; 17862 return 0; 17863 } 17864 17865 _ACEOF 17866 if ac_fn_c_try_run "$LINENO"; then : 17867 17868 $as_echo "#define CFA_HAVE_IORING_OP_LINK_TIMEOUT 1" >>confdefs.h 17869 17870 17871 else 17872 17873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17875 as_fn_error $? "Check support for IORING_OP_LINK_TIMEOUT with liburing failed 17876 See \`config.log' for more details" "$LINENO" 5; } 17877 17878 fi 17879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17880 conftest.$ac_objext conftest.beam conftest.$ac_ext 17881 fi 17882 17883 17884 fi 17885 17886 17887 ac_fn_c_check_decl "$LINENO" "IORING_OP_CONNECT" "ac_cv_have_decl_IORING_OP_CONNECT" "#include <linux/io_uring.h> 17888 " 17889 if test "x$ac_cv_have_decl_IORING_OP_CONNECT" = xyes; then : 17890 17891 if test "$cross_compiling" = yes; then : 17892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17894 as_fn_error $? "cannot run test program while cross compiling 17895 See \`config.log' for more details" "$LINENO" 5; } 17896 else 17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17898 /* end confdefs.h. */ 17899 17900 #include <liburing.h> 17901 int 17902 main () 17903 { 17904 int main() { 17905 struct io_uring_probe *probe = io_uring_get_probe(); 17906 if(io_uring_opcode_supported(probe, IORING_OP_CONNECT)) 17907 return 0; 17908 else 17909 return 1; 17910 } 17911 17912 ; 17913 return 0; 17914 } 17915 17916 _ACEOF 17917 if ac_fn_c_try_run "$LINENO"; then : 17918 17919 $as_echo "#define CFA_HAVE_IORING_OP_CONNECT 1" >>confdefs.h 17920 17921 17922 else 17923 17924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17926 as_fn_error $? "Check support for IORING_OP_CONNECT with liburing failed 17927 See \`config.log' for more details" "$LINENO" 5; } 17928 17929 fi 17930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17931 conftest.$ac_objext conftest.beam conftest.$ac_ext 17932 fi 17933 17934 17935 fi 17936 17937 17938 ac_fn_c_check_decl "$LINENO" "IORING_OP_FALLOCATE" "ac_cv_have_decl_IORING_OP_FALLOCATE" "#include <linux/io_uring.h> 17939 " 17940 if test "x$ac_cv_have_decl_IORING_OP_FALLOCATE" = xyes; then : 17941 17942 if test "$cross_compiling" = yes; then : 17943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17945 as_fn_error $? "cannot run test program while cross compiling 17946 See \`config.log' for more details" "$LINENO" 5; } 17947 else 17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17949 /* end confdefs.h. */ 17950 17951 #include <liburing.h> 17952 int 17953 main () 17954 { 17955 int main() { 17956 struct io_uring_probe *probe = io_uring_get_probe(); 17957 if(io_uring_opcode_supported(probe, IORING_OP_FALLOCATE)) 17958 return 0; 17959 else 17960 return 1; 17961 } 17962 17963 ; 17964 return 0; 17965 } 17966 17967 _ACEOF 17968 if ac_fn_c_try_run "$LINENO"; then : 17969 17970 $as_echo "#define CFA_HAVE_IORING_OP_FALLOCATE 1" >>confdefs.h 17971 17972 17973 else 17974 17975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17977 as_fn_error $? "Check support for IORING_OP_FALLOCATE with liburing failed 17978 See \`config.log' for more details" "$LINENO" 5; } 17979 17980 fi 17981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17982 conftest.$ac_objext conftest.beam conftest.$ac_ext 17983 fi 17984 17985 17986 fi 17987 17988 17989 ac_fn_c_check_decl "$LINENO" "IORING_OP_OPENAT" "ac_cv_have_decl_IORING_OP_OPENAT" "#include <linux/io_uring.h> 17990 " 17991 if test "x$ac_cv_have_decl_IORING_OP_OPENAT" = xyes; then : 17992 17993 if test "$cross_compiling" = yes; then : 17994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17996 as_fn_error $? "cannot run test program while cross compiling 17997 See \`config.log' for more details" "$LINENO" 5; } 17998 else 17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18000 /* end confdefs.h. */ 18001 18002 #include <liburing.h> 18003 int 18004 main () 18005 { 18006 int main() { 18007 struct io_uring_probe *probe = io_uring_get_probe(); 18008 if(io_uring_opcode_supported(probe, IORING_OP_OPENAT)) 18009 return 0; 18010 else 18011 return 1; 18012 } 18013 18014 ; 18015 return 0; 18016 } 18017 18018 _ACEOF 18019 if ac_fn_c_try_run "$LINENO"; then : 18020 18021 $as_echo "#define CFA_HAVE_IORING_OP_OPENAT 1" >>confdefs.h 18022 18023 18024 else 18025 18026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18028 as_fn_error $? "Check support for IORING_OP_OPENAT with liburing failed 18029 See \`config.log' for more details" "$LINENO" 5; } 18030 18031 fi 18032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18033 conftest.$ac_objext conftest.beam conftest.$ac_ext 18034 fi 18035 18036 18037 fi 18038 18039 18040 ac_fn_c_check_decl "$LINENO" "IORING_OP_CLOSE" "ac_cv_have_decl_IORING_OP_CLOSE" "#include <linux/io_uring.h> 18041 " 18042 if test "x$ac_cv_have_decl_IORING_OP_CLOSE" = xyes; then : 18043 18044 if test "$cross_compiling" = yes; then : 18045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18047 as_fn_error $? "cannot run test program while cross compiling 18048 See \`config.log' for more details" "$LINENO" 5; } 18049 else 18050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18051 /* end confdefs.h. */ 18052 18053 #include <liburing.h> 18054 int 18055 main () 18056 { 18057 int main() { 18058 struct io_uring_probe *probe = io_uring_get_probe(); 18059 if(io_uring_opcode_supported(probe, IORING_OP_CLOSE)) 18060 return 0; 18061 else 18062 return 1; 18063 } 18064 18065 ; 18066 return 0; 18067 } 18068 18069 _ACEOF 18070 if ac_fn_c_try_run "$LINENO"; then : 18071 18072 $as_echo "#define CFA_HAVE_IORING_OP_CLOSE 1" >>confdefs.h 18073 18074 18075 else 18076 18077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18079 as_fn_error $? "Check support for IORING_OP_CLOSE with liburing failed 18080 See \`config.log' for more details" "$LINENO" 5; } 18081 18082 fi 18083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18084 conftest.$ac_objext conftest.beam conftest.$ac_ext 18085 fi 18086 18087 18088 fi 18089 18090 18091 ac_fn_c_check_decl "$LINENO" "IORING_OP_FILES_UPDATE" "ac_cv_have_decl_IORING_OP_FILES_UPDATE" "#include <linux/io_uring.h> 18092 " 18093 if test "x$ac_cv_have_decl_IORING_OP_FILES_UPDATE" = xyes; then : 18094 18095 if test "$cross_compiling" = yes; then : 18096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18098 as_fn_error $? "cannot run test program while cross compiling 18099 See \`config.log' for more details" "$LINENO" 5; } 18100 else 18101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18102 /* end confdefs.h. */ 18103 18104 #include <liburing.h> 18105 int 18106 main () 18107 { 18108 int main() { 18109 struct io_uring_probe *probe = io_uring_get_probe(); 18110 if(io_uring_opcode_supported(probe, IORING_OP_FILES_UPDATE)) 18111 return 0; 18112 else 18113 return 1; 18114 } 18115 18116 ; 18117 return 0; 18118 } 18119 18120 _ACEOF 18121 if ac_fn_c_try_run "$LINENO"; then : 18122 18123 $as_echo "#define CFA_HAVE_IORING_OP_FILES_UPDATE 1" >>confdefs.h 18124 18125 18126 else 18127 18128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18130 as_fn_error $? "Check support for IORING_OP_FILES_UPDATE with liburing failed 18131 See \`config.log' for more details" "$LINENO" 5; } 18132 18133 fi 18134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18135 conftest.$ac_objext conftest.beam conftest.$ac_ext 18136 fi 18137 18138 18139 fi 18140 18141 18142 ac_fn_c_check_decl "$LINENO" "IORING_OP_STATX" "ac_cv_have_decl_IORING_OP_STATX" "#include <linux/io_uring.h> 18143 " 18144 if test "x$ac_cv_have_decl_IORING_OP_STATX" = xyes; then : 18145 18146 if test "$cross_compiling" = yes; then : 18147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18149 as_fn_error $? "cannot run test program while cross compiling 18150 See \`config.log' for more details" "$LINENO" 5; } 18151 else 18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18153 /* end confdefs.h. */ 18154 18155 #include <liburing.h> 18156 int 18157 main () 18158 { 18159 int main() { 18160 struct io_uring_probe *probe = io_uring_get_probe(); 18161 if(io_uring_opcode_supported(probe, IORING_OP_STATX)) 18162 return 0; 18163 else 18164 return 1; 18165 } 18166 18167 ; 18168 return 0; 18169 } 18170 18171 _ACEOF 18172 if ac_fn_c_try_run "$LINENO"; then : 18173 18174 $as_echo "#define CFA_HAVE_IORING_OP_STATX 1" >>confdefs.h 18175 18176 18177 else 18178 18179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18181 as_fn_error $? "Check support for IORING_OP_STATX with liburing failed 18182 See \`config.log' for more details" "$LINENO" 5; } 18183 18184 fi 18185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18186 conftest.$ac_objext conftest.beam conftest.$ac_ext 18187 fi 18188 18189 18190 fi 18191 18192 18193 ac_fn_c_check_decl "$LINENO" "IORING_OP_READ" "ac_cv_have_decl_IORING_OP_READ" "#include <linux/io_uring.h> 18194 " 18195 if test "x$ac_cv_have_decl_IORING_OP_READ" = xyes; then : 18196 18197 if test "$cross_compiling" = yes; then : 18198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18200 as_fn_error $? "cannot run test program while cross compiling 18201 See \`config.log' for more details" "$LINENO" 5; } 18202 else 18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18204 /* end confdefs.h. */ 18205 18206 #include <liburing.h> 18207 int 18208 main () 18209 { 18210 int main() { 18211 struct io_uring_probe *probe = io_uring_get_probe(); 18212 if(io_uring_opcode_supported(probe, IORING_OP_READ)) 18213 return 0; 18214 else 18215 return 1; 18216 } 18217 18218 ; 18219 return 0; 18220 } 18221 18222 _ACEOF 18223 if ac_fn_c_try_run "$LINENO"; then : 18224 18225 $as_echo "#define CFA_HAVE_IORING_OP_READ 1" >>confdefs.h 18226 18227 18228 else 18229 18230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18232 as_fn_error $? "Check support for IORING_OP_READ with liburing failed 18233 See \`config.log' for more details" "$LINENO" 5; } 18234 18235 fi 18236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18237 conftest.$ac_objext conftest.beam conftest.$ac_ext 18238 fi 18239 18240 18241 fi 18242 18243 18244 ac_fn_c_check_decl "$LINENO" "IORING_OP_WRITE" "ac_cv_have_decl_IORING_OP_WRITE" "#include <linux/io_uring.h> 18245 " 18246 if test "x$ac_cv_have_decl_IORING_OP_WRITE" = xyes; then : 18247 18248 if test "$cross_compiling" = yes; then : 18249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18251 as_fn_error $? "cannot run test program while cross compiling 18252 See \`config.log' for more details" "$LINENO" 5; } 18253 else 18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18255 /* end confdefs.h. */ 18256 18257 #include <liburing.h> 18258 int 18259 main () 18260 { 18261 int main() { 18262 struct io_uring_probe *probe = io_uring_get_probe(); 18263 if(io_uring_opcode_supported(probe, IORING_OP_WRITE)) 18264 return 0; 18265 else 18266 return 1; 18267 } 18268 18269 ; 18270 return 0; 18271 } 18272 18273 _ACEOF 18274 if ac_fn_c_try_run "$LINENO"; then : 18275 18276 $as_echo "#define CFA_HAVE_IORING_OP_WRITE 1" >>confdefs.h 18277 18278 18279 else 18280 18281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18283 as_fn_error $? "Check support for IORING_OP_WRITE with liburing failed 18284 See \`config.log' for more details" "$LINENO" 5; } 18285 18286 fi 18287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18288 conftest.$ac_objext conftest.beam conftest.$ac_ext 18289 fi 18290 18291 18292 fi 18293 18294 18295 ac_fn_c_check_decl "$LINENO" "IORING_OP_FADVISE" "ac_cv_have_decl_IORING_OP_FADVISE" "#include <linux/io_uring.h> 18296 " 18297 if test "x$ac_cv_have_decl_IORING_OP_FADVISE" = xyes; then : 18298 18299 if test "$cross_compiling" = yes; then : 18300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18302 as_fn_error $? "cannot run test program while cross compiling 18303 See \`config.log' for more details" "$LINENO" 5; } 18304 else 18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18306 /* end confdefs.h. */ 18307 18308 #include <liburing.h> 18309 int 18310 main () 18311 { 18312 int main() { 18313 struct io_uring_probe *probe = io_uring_get_probe(); 18314 if(io_uring_opcode_supported(probe, IORING_OP_FADVISE)) 18315 return 0; 18316 else 18317 return 1; 18318 } 18319 18320 ; 18321 return 0; 18322 } 18323 18324 _ACEOF 18325 if ac_fn_c_try_run "$LINENO"; then : 18326 18327 $as_echo "#define CFA_HAVE_IORING_OP_FADVISE 1" >>confdefs.h 18328 18329 18330 else 18331 18332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18334 as_fn_error $? "Check support for IORING_OP_FADVISE with liburing failed 18335 See \`config.log' for more details" "$LINENO" 5; } 18336 18337 fi 18338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18339 conftest.$ac_objext conftest.beam conftest.$ac_ext 18340 fi 18341 18342 18343 fi 18344 18345 18346 ac_fn_c_check_decl "$LINENO" "IORING_OP_MADVISE" "ac_cv_have_decl_IORING_OP_MADVISE" "#include <linux/io_uring.h> 18347 " 18348 if test "x$ac_cv_have_decl_IORING_OP_MADVISE" = xyes; then : 18349 18350 if test "$cross_compiling" = yes; then : 18351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18353 as_fn_error $? "cannot run test program while cross compiling 18354 See \`config.log' for more details" "$LINENO" 5; } 18355 else 18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18357 /* end confdefs.h. */ 18358 18359 #include <liburing.h> 18360 int 18361 main () 18362 { 18363 int main() { 18364 struct io_uring_probe *probe = io_uring_get_probe(); 18365 if(io_uring_opcode_supported(probe, IORING_OP_MADVISE)) 18366 return 0; 18367 else 18368 return 1; 18369 } 18370 18371 ; 18372 return 0; 18373 } 18374 18375 _ACEOF 18376 if ac_fn_c_try_run "$LINENO"; then : 18377 18378 $as_echo "#define CFA_HAVE_IORING_OP_MADVISE 1" >>confdefs.h 18379 18380 18381 else 18382 18383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18385 as_fn_error $? "Check support for IORING_OP_MADVISE with liburing failed 18386 See \`config.log' for more details" "$LINENO" 5; } 18387 18388 fi 18389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18390 conftest.$ac_objext conftest.beam conftest.$ac_ext 18391 fi 18392 18393 18394 fi 18395 18396 18397 ac_fn_c_check_decl "$LINENO" "IORING_OP_SEND" "ac_cv_have_decl_IORING_OP_SEND" "#include <linux/io_uring.h> 18398 " 18399 if test "x$ac_cv_have_decl_IORING_OP_SEND" = xyes; then : 18400 18401 if test "$cross_compiling" = yes; then : 18402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18404 as_fn_error $? "cannot run test program while cross compiling 18405 See \`config.log' for more details" "$LINENO" 5; } 18406 else 18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18408 /* end confdefs.h. */ 18409 18410 #include <liburing.h> 18411 int 18412 main () 18413 { 18414 int main() { 18415 struct io_uring_probe *probe = io_uring_get_probe(); 18416 if(io_uring_opcode_supported(probe, IORING_OP_SEND)) 18417 return 0; 18418 else 18419 return 1; 18420 } 18421 18422 ; 18423 return 0; 18424 } 18425 18426 _ACEOF 18427 if ac_fn_c_try_run "$LINENO"; then : 18428 18429 $as_echo "#define CFA_HAVE_IORING_OP_SEND 1" >>confdefs.h 18430 18431 18432 else 18433 18434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18436 as_fn_error $? "Check support for IORING_OP_SEND with liburing failed 18437 See \`config.log' for more details" "$LINENO" 5; } 18438 18439 fi 18440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18441 conftest.$ac_objext conftest.beam conftest.$ac_ext 18442 fi 18443 18444 18445 fi 18446 18447 18448 ac_fn_c_check_decl "$LINENO" "IORING_OP_RECV" "ac_cv_have_decl_IORING_OP_RECV" "#include <linux/io_uring.h> 18449 " 18450 if test "x$ac_cv_have_decl_IORING_OP_RECV" = xyes; then : 18451 18452 if test "$cross_compiling" = yes; then : 18453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18455 as_fn_error $? "cannot run test program while cross compiling 18456 See \`config.log' for more details" "$LINENO" 5; } 18457 else 18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18459 /* end confdefs.h. */ 18460 18461 #include <liburing.h> 18462 int 18463 main () 18464 { 18465 int main() { 18466 struct io_uring_probe *probe = io_uring_get_probe(); 18467 if(io_uring_opcode_supported(probe, IORING_OP_RECV)) 18468 return 0; 18469 else 18470 return 1; 18471 } 18472 18473 ; 18474 return 0; 18475 } 18476 18477 _ACEOF 18478 if ac_fn_c_try_run "$LINENO"; then : 18479 18480 $as_echo "#define CFA_HAVE_IORING_OP_RECV 1" >>confdefs.h 18481 18482 18483 else 18484 18485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18487 as_fn_error $? "Check support for IORING_OP_RECV with liburing failed 18488 See \`config.log' for more details" "$LINENO" 5; } 18489 18490 fi 18491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18492 conftest.$ac_objext conftest.beam conftest.$ac_ext 18493 fi 18494 18495 18496 fi 18497 18498 18499 ac_fn_c_check_decl "$LINENO" "IORING_OP_OPENAT2" "ac_cv_have_decl_IORING_OP_OPENAT2" "#include <linux/io_uring.h> 18500 " 18501 if test "x$ac_cv_have_decl_IORING_OP_OPENAT2" = xyes; then : 18502 18503 if test "$cross_compiling" = yes; then : 18504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18506 as_fn_error $? "cannot run test program while cross compiling 18507 See \`config.log' for more details" "$LINENO" 5; } 18508 else 18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18510 /* end confdefs.h. */ 18511 18512 #include <liburing.h> 18513 int 18514 main () 18515 { 18516 int main() { 18517 struct io_uring_probe *probe = io_uring_get_probe(); 18518 if(io_uring_opcode_supported(probe, IORING_OP_OPENAT2)) 18519 return 0; 18520 else 18521 return 1; 18522 } 18523 18524 ; 18525 return 0; 18526 } 18527 18528 _ACEOF 18529 if ac_fn_c_try_run "$LINENO"; then : 18530 18531 $as_echo "#define CFA_HAVE_IORING_OP_OPENAT2 1" >>confdefs.h 18532 18533 18534 else 18535 18536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18538 as_fn_error $? "Check support for IORING_OP_OPENAT2 with liburing failed 18539 See \`config.log' for more details" "$LINENO" 5; } 18540 18541 fi 18542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18543 conftest.$ac_objext conftest.beam conftest.$ac_ext 18544 fi 18545 18546 18547 fi 18548 18549 18550 ac_fn_c_check_decl "$LINENO" "IORING_OP_EPOLL_CTL" "ac_cv_have_decl_IORING_OP_EPOLL_CTL" "#include <linux/io_uring.h> 18551 " 18552 if test "x$ac_cv_have_decl_IORING_OP_EPOLL_CTL" = xyes; then : 18553 18554 if test "$cross_compiling" = yes; then : 18555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18557 as_fn_error $? "cannot run test program while cross compiling 18558 See \`config.log' for more details" "$LINENO" 5; } 18559 else 18560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18561 /* end confdefs.h. */ 18562 18563 #include <liburing.h> 18564 int 18565 main () 18566 { 18567 int main() { 18568 struct io_uring_probe *probe = io_uring_get_probe(); 18569 if(io_uring_opcode_supported(probe, IORING_OP_EPOLL_CTL)) 18570 return 0; 18571 else 18572 return 1; 18573 } 18574 18575 ; 18576 return 0; 18577 } 18578 18579 _ACEOF 18580 if ac_fn_c_try_run "$LINENO"; then : 18581 18582 $as_echo "#define CFA_HAVE_IORING_OP_EPOLL_CTL 1" >>confdefs.h 18583 18584 18585 else 18586 18587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18589 as_fn_error $? "Check support for IORING_OP_EPOLL_CTL with liburing failed 18590 See \`config.log' for more details" "$LINENO" 5; } 18591 18592 fi 18593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18594 conftest.$ac_objext conftest.beam conftest.$ac_ext 18595 fi 18596 18597 18598 fi 18599 18600 18601 ac_fn_c_check_decl "$LINENO" "IORING_OP_SPLICE" "ac_cv_have_decl_IORING_OP_SPLICE" "#include <linux/io_uring.h> 18602 " 18603 if test "x$ac_cv_have_decl_IORING_OP_SPLICE" = xyes; then : 18604 18605 if test "$cross_compiling" = yes; then : 18606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18608 as_fn_error $? "cannot run test program while cross compiling 18609 See \`config.log' for more details" "$LINENO" 5; } 18610 else 18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18612 /* end confdefs.h. */ 18613 18614 #include <liburing.h> 18615 int 18616 main () 18617 { 18618 int main() { 18619 struct io_uring_probe *probe = io_uring_get_probe(); 18620 if(io_uring_opcode_supported(probe, IORING_OP_SPLICE)) 18621 return 0; 18622 else 18623 return 1; 18624 } 18625 18626 ; 18627 return 0; 18628 } 18629 18630 _ACEOF 18631 if ac_fn_c_try_run "$LINENO"; then : 18632 18633 $as_echo "#define CFA_HAVE_IORING_OP_SPLICE 1" >>confdefs.h 18634 18635 18636 else 18637 18638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18640 as_fn_error $? "Check support for IORING_OP_SPLICE with liburing failed 18641 See \`config.log' for more details" "$LINENO" 5; } 18642 18643 fi 18644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18645 conftest.$ac_objext conftest.beam conftest.$ac_ext 18646 fi 18647 18648 18649 fi 18650 18651 18652 ac_fn_c_check_decl "$LINENO" "IORING_OP_PROVIDE_BUFFERS" "ac_cv_have_decl_IORING_OP_PROVIDE_BUFFERS" "#include <linux/io_uring.h> 18653 " 18654 if test "x$ac_cv_have_decl_IORING_OP_PROVIDE_BUFFERS" = xyes; then : 18655 18656 if test "$cross_compiling" = yes; then : 18657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18659 as_fn_error $? "cannot run test program while cross compiling 18660 See \`config.log' for more details" "$LINENO" 5; } 18661 else 18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18663 /* end confdefs.h. */ 18664 18665 #include <liburing.h> 18666 int 18667 main () 18668 { 18669 int main() { 18670 struct io_uring_probe *probe = io_uring_get_probe(); 18671 if(io_uring_opcode_supported(probe, IORING_OP_PROVIDE_BUFFERS)) 18672 return 0; 18673 else 18674 return 1; 18675 } 18676 18677 ; 18678 return 0; 18679 } 18680 18681 _ACEOF 18682 if ac_fn_c_try_run "$LINENO"; then : 18683 18684 $as_echo "#define CFA_HAVE_IORING_OP_PROVIDE_BUFFERS 1" >>confdefs.h 18685 18686 18687 else 18688 18689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18691 as_fn_error $? "Check support for IORING_OP_PROVIDE_BUFFERS with liburing failed 18692 See \`config.log' for more details" "$LINENO" 5; } 18693 18694 fi 18695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18696 conftest.$ac_objext conftest.beam conftest.$ac_ext 18697 fi 18698 18699 18700 fi 18701 18702 18703 ac_fn_c_check_decl "$LINENO" "IORING_OP_REMOVE_BUFFER" "ac_cv_have_decl_IORING_OP_REMOVE_BUFFER" "#include <linux/io_uring.h> 18704 " 18705 if test "x$ac_cv_have_decl_IORING_OP_REMOVE_BUFFER" = xyes; then : 18706 18707 if test "$cross_compiling" = yes; then : 18708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18710 as_fn_error $? "cannot run test program while cross compiling 18711 See \`config.log' for more details" "$LINENO" 5; } 18712 else 18713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18714 /* end confdefs.h. */ 18715 18716 #include <liburing.h> 18717 int 18718 main () 18719 { 18720 int main() { 18721 struct io_uring_probe *probe = io_uring_get_probe(); 18722 if(io_uring_opcode_supported(probe, IORING_OP_REMOVE_BUFFER)) 18723 return 0; 18724 else 18725 return 1; 18726 } 18727 18728 ; 18729 return 0; 18730 } 18731 18732 _ACEOF 18733 if ac_fn_c_try_run "$LINENO"; then : 18734 18735 $as_echo "#define CFA_HAVE_IORING_OP_REMOVE_BUFFER 1" >>confdefs.h 18736 18737 18738 else 18739 18740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18742 as_fn_error $? "Check support for IORING_OP_REMOVE_BUFFER with liburing failed 18743 See \`config.log' for more details" "$LINENO" 5; } 18744 18745 fi 18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18747 conftest.$ac_objext conftest.beam conftest.$ac_ext 18748 fi 18749 18750 18751 fi 18752 18753 18754 18755 else 18756 18757 17029 18758 17030 18759 ac_fn_c_check_decl "$LINENO" "IORING_OP_NOP" "ac_cv_have_decl_IORING_OP_NOP" "#include <linux/io_uring.h> … … 17288 19017 if test "x$ac_cv_have_decl_IORING_OP_REMOVE_BUFFER" = xyes; then : 17289 19018 $as_echo "#define CFA_HAVE_IORING_OP_REMOVE_BUFFER 1" >>confdefs.h 19019 19020 fi 19021 19022 19023 19024 19025 fi 19026 19027 19028 else 19029 19030 19031 19032 ac_fn_c_check_decl "$LINENO" "IORING_OP_NOP" "ac_cv_have_decl_IORING_OP_NOP" "#include <linux/io_uring.h> 19033 " 19034 if test "x$ac_cv_have_decl_IORING_OP_NOP" = xyes; then : 19035 $as_echo "#define CFA_HAVE_IORING_OP_NOP 1" >>confdefs.h 19036 19037 fi 19038 19039 19040 ac_fn_c_check_decl "$LINENO" "IORING_OP_READV" "ac_cv_have_decl_IORING_OP_READV" "#include <linux/io_uring.h> 19041 " 19042 if test "x$ac_cv_have_decl_IORING_OP_READV" = xyes; then : 19043 $as_echo "#define CFA_HAVE_IORING_OP_READV 1" >>confdefs.h 19044 19045 fi 19046 19047 19048 ac_fn_c_check_decl "$LINENO" "IORING_OP_WRITEV" "ac_cv_have_decl_IORING_OP_WRITEV" "#include <linux/io_uring.h> 19049 " 19050 if test "x$ac_cv_have_decl_IORING_OP_WRITEV" = xyes; then : 19051 $as_echo "#define CFA_HAVE_IORING_OP_WRITEV 1" >>confdefs.h 19052 19053 fi 19054 19055 19056 ac_fn_c_check_decl "$LINENO" "IORING_OP_FSYNC" "ac_cv_have_decl_IORING_OP_FSYNC" "#include <linux/io_uring.h> 19057 " 19058 if test "x$ac_cv_have_decl_IORING_OP_FSYNC" = xyes; then : 19059 $as_echo "#define CFA_HAVE_IORING_OP_FSYNC 1" >>confdefs.h 19060 19061 fi 19062 19063 19064 ac_fn_c_check_decl "$LINENO" "IORING_OP_READ_FIXED" "ac_cv_have_decl_IORING_OP_READ_FIXED" "#include <linux/io_uring.h> 19065 " 19066 if test "x$ac_cv_have_decl_IORING_OP_READ_FIXED" = xyes; then : 19067 $as_echo "#define CFA_HAVE_IORING_OP_READ_FIXED 1" >>confdefs.h 19068 19069 fi 19070 19071 19072 ac_fn_c_check_decl "$LINENO" "IORING_OP_WRITE_FIXED" "ac_cv_have_decl_IORING_OP_WRITE_FIXED" "#include <linux/io_uring.h> 19073 " 19074 if test "x$ac_cv_have_decl_IORING_OP_WRITE_FIXED" = xyes; then : 19075 $as_echo "#define CFA_HAVE_IORING_OP_WRITE_FIXED 1" >>confdefs.h 19076 19077 fi 19078 19079 19080 ac_fn_c_check_decl "$LINENO" "IORING_OP_POLL_ADD" "ac_cv_have_decl_IORING_OP_POLL_ADD" "#include <linux/io_uring.h> 19081 " 19082 if test "x$ac_cv_have_decl_IORING_OP_POLL_ADD" = xyes; then : 19083 $as_echo "#define CFA_HAVE_IORING_OP_POLL_ADD 1" >>confdefs.h 19084 19085 fi 19086 19087 19088 ac_fn_c_check_decl "$LINENO" "IORING_OP_POLL_REMOVE" "ac_cv_have_decl_IORING_OP_POLL_REMOVE" "#include <linux/io_uring.h> 19089 " 19090 if test "x$ac_cv_have_decl_IORING_OP_POLL_REMOVE" = xyes; then : 19091 $as_echo "#define CFA_HAVE_IORING_OP_POLL_REMOVE 1" >>confdefs.h 19092 19093 fi 19094 19095 19096 ac_fn_c_check_decl "$LINENO" "IORING_OP_SYNC_FILE_RANGE" "ac_cv_have_decl_IORING_OP_SYNC_FILE_RANGE" "#include <linux/io_uring.h> 19097 " 19098 if test "x$ac_cv_have_decl_IORING_OP_SYNC_FILE_RANGE" = xyes; then : 19099 $as_echo "#define CFA_HAVE_IORING_OP_SYNC_FILE_RANGE 1" >>confdefs.h 19100 19101 fi 19102 19103 19104 ac_fn_c_check_decl "$LINENO" "IORING_OP_SENDMSG" "ac_cv_have_decl_IORING_OP_SENDMSG" "#include <linux/io_uring.h> 19105 " 19106 if test "x$ac_cv_have_decl_IORING_OP_SENDMSG" = xyes; then : 19107 $as_echo "#define CFA_HAVE_IORING_OP_SENDMSG 1" >>confdefs.h 19108 19109 fi 19110 19111 19112 ac_fn_c_check_decl "$LINENO" "IORING_OP_RECVMSG" "ac_cv_have_decl_IORING_OP_RECVMSG" "#include <linux/io_uring.h> 19113 " 19114 if test "x$ac_cv_have_decl_IORING_OP_RECVMSG" = xyes; then : 19115 $as_echo "#define CFA_HAVE_IORING_OP_RECVMSG 1" >>confdefs.h 19116 19117 fi 19118 19119 19120 ac_fn_c_check_decl "$LINENO" "IORING_OP_TIMEOUT" "ac_cv_have_decl_IORING_OP_TIMEOUT" "#include <linux/io_uring.h> 19121 " 19122 if test "x$ac_cv_have_decl_IORING_OP_TIMEOUT" = xyes; then : 19123 $as_echo "#define CFA_HAVE_IORING_OP_TIMEOUT 1" >>confdefs.h 19124 19125 fi 19126 19127 19128 ac_fn_c_check_decl "$LINENO" "IORING_OP_TIMEOUT_REMOVE" "ac_cv_have_decl_IORING_OP_TIMEOUT_REMOVE" "#include <linux/io_uring.h> 19129 " 19130 if test "x$ac_cv_have_decl_IORING_OP_TIMEOUT_REMOVE" = xyes; then : 19131 $as_echo "#define CFA_HAVE_IORING_OP_TIMEOUT_REMOVE 1" >>confdefs.h 19132 19133 fi 19134 19135 19136 ac_fn_c_check_decl "$LINENO" "IORING_OP_ACCEPT" "ac_cv_have_decl_IORING_OP_ACCEPT" "#include <linux/io_uring.h> 19137 " 19138 if test "x$ac_cv_have_decl_IORING_OP_ACCEPT" = xyes; then : 19139 $as_echo "#define CFA_HAVE_IORING_OP_ACCEPT 1" >>confdefs.h 19140 19141 fi 19142 19143 19144 ac_fn_c_check_decl "$LINENO" "IORING_OP_ASYNC_CANCEL" "ac_cv_have_decl_IORING_OP_ASYNC_CANCEL" "#include <linux/io_uring.h> 19145 " 19146 if test "x$ac_cv_have_decl_IORING_OP_ASYNC_CANCEL" = xyes; then : 19147 $as_echo "#define CFA_HAVE_IORING_OP_ASYNC_CANCEL 1" >>confdefs.h 19148 19149 fi 19150 19151 19152 ac_fn_c_check_decl "$LINENO" "IORING_OP_LINK_TIMEOUT" "ac_cv_have_decl_IORING_OP_LINK_TIMEOUT" "#include <linux/io_uring.h> 19153 " 19154 if test "x$ac_cv_have_decl_IORING_OP_LINK_TIMEOUT" = xyes; then : 19155 $as_echo "#define CFA_HAVE_IORING_OP_LINK_TIMEOUT 1" >>confdefs.h 19156 19157 fi 19158 19159 19160 ac_fn_c_check_decl "$LINENO" "IORING_OP_CONNECT" "ac_cv_have_decl_IORING_OP_CONNECT" "#include <linux/io_uring.h> 19161 " 19162 if test "x$ac_cv_have_decl_IORING_OP_CONNECT" = xyes; then : 19163 $as_echo "#define CFA_HAVE_IORING_OP_CONNECT 1" >>confdefs.h 19164 19165 fi 19166 19167 19168 ac_fn_c_check_decl "$LINENO" "IORING_OP_FALLOCATE" "ac_cv_have_decl_IORING_OP_FALLOCATE" "#include <linux/io_uring.h> 19169 " 19170 if test "x$ac_cv_have_decl_IORING_OP_FALLOCATE" = xyes; then : 19171 $as_echo "#define CFA_HAVE_IORING_OP_FALLOCATE 1" >>confdefs.h 19172 19173 fi 19174 19175 19176 ac_fn_c_check_decl "$LINENO" "IORING_OP_OPENAT" "ac_cv_have_decl_IORING_OP_OPENAT" "#include <linux/io_uring.h> 19177 " 19178 if test "x$ac_cv_have_decl_IORING_OP_OPENAT" = xyes; then : 19179 $as_echo "#define CFA_HAVE_IORING_OP_OPENAT 1" >>confdefs.h 19180 19181 fi 19182 19183 19184 ac_fn_c_check_decl "$LINENO" "IORING_OP_CLOSE" "ac_cv_have_decl_IORING_OP_CLOSE" "#include <linux/io_uring.h> 19185 " 19186 if test "x$ac_cv_have_decl_IORING_OP_CLOSE" = xyes; then : 19187 $as_echo "#define CFA_HAVE_IORING_OP_CLOSE 1" >>confdefs.h 19188 19189 fi 19190 19191 19192 ac_fn_c_check_decl "$LINENO" "IORING_OP_FILES_UPDATE" "ac_cv_have_decl_IORING_OP_FILES_UPDATE" "#include <linux/io_uring.h> 19193 " 19194 if test "x$ac_cv_have_decl_IORING_OP_FILES_UPDATE" = xyes; then : 19195 $as_echo "#define CFA_HAVE_IORING_OP_FILES_UPDATE 1" >>confdefs.h 19196 19197 fi 19198 19199 19200 ac_fn_c_check_decl "$LINENO" "IORING_OP_STATX" "ac_cv_have_decl_IORING_OP_STATX" "#include <linux/io_uring.h> 19201 " 19202 if test "x$ac_cv_have_decl_IORING_OP_STATX" = xyes; then : 19203 $as_echo "#define CFA_HAVE_IORING_OP_STATX 1" >>confdefs.h 19204 19205 fi 19206 19207 19208 ac_fn_c_check_decl "$LINENO" "IORING_OP_READ" "ac_cv_have_decl_IORING_OP_READ" "#include <linux/io_uring.h> 19209 " 19210 if test "x$ac_cv_have_decl_IORING_OP_READ" = xyes; then : 19211 $as_echo "#define CFA_HAVE_IORING_OP_READ 1" >>confdefs.h 19212 19213 fi 19214 19215 19216 ac_fn_c_check_decl "$LINENO" "IORING_OP_WRITE" "ac_cv_have_decl_IORING_OP_WRITE" "#include <linux/io_uring.h> 19217 " 19218 if test "x$ac_cv_have_decl_IORING_OP_WRITE" = xyes; then : 19219 $as_echo "#define CFA_HAVE_IORING_OP_WRITE 1" >>confdefs.h 19220 19221 fi 19222 19223 19224 ac_fn_c_check_decl "$LINENO" "IORING_OP_FADVISE" "ac_cv_have_decl_IORING_OP_FADVISE" "#include <linux/io_uring.h> 19225 " 19226 if test "x$ac_cv_have_decl_IORING_OP_FADVISE" = xyes; then : 19227 $as_echo "#define CFA_HAVE_IORING_OP_FADVISE 1" >>confdefs.h 19228 19229 fi 19230 19231 19232 ac_fn_c_check_decl "$LINENO" "IORING_OP_MADVISE" "ac_cv_have_decl_IORING_OP_MADVISE" "#include <linux/io_uring.h> 19233 " 19234 if test "x$ac_cv_have_decl_IORING_OP_MADVISE" = xyes; then : 19235 $as_echo "#define CFA_HAVE_IORING_OP_MADVISE 1" >>confdefs.h 19236 19237 fi 19238 19239 19240 ac_fn_c_check_decl "$LINENO" "IORING_OP_SEND" "ac_cv_have_decl_IORING_OP_SEND" "#include <linux/io_uring.h> 19241 " 19242 if test "x$ac_cv_have_decl_IORING_OP_SEND" = xyes; then : 19243 $as_echo "#define CFA_HAVE_IORING_OP_SEND 1" >>confdefs.h 19244 19245 fi 19246 19247 19248 ac_fn_c_check_decl "$LINENO" "IORING_OP_RECV" "ac_cv_have_decl_IORING_OP_RECV" "#include <linux/io_uring.h> 19249 " 19250 if test "x$ac_cv_have_decl_IORING_OP_RECV" = xyes; then : 19251 $as_echo "#define CFA_HAVE_IORING_OP_RECV 1" >>confdefs.h 19252 19253 fi 19254 19255 19256 ac_fn_c_check_decl "$LINENO" "IORING_OP_OPENAT2" "ac_cv_have_decl_IORING_OP_OPENAT2" "#include <linux/io_uring.h> 19257 " 19258 if test "x$ac_cv_have_decl_IORING_OP_OPENAT2" = xyes; then : 19259 $as_echo "#define CFA_HAVE_IORING_OP_OPENAT2 1" >>confdefs.h 19260 19261 fi 19262 19263 19264 ac_fn_c_check_decl "$LINENO" "IORING_OP_EPOLL_CTL" "ac_cv_have_decl_IORING_OP_EPOLL_CTL" "#include <linux/io_uring.h> 19265 " 19266 if test "x$ac_cv_have_decl_IORING_OP_EPOLL_CTL" = xyes; then : 19267 $as_echo "#define CFA_HAVE_IORING_OP_EPOLL_CTL 1" >>confdefs.h 19268 19269 fi 19270 19271 19272 ac_fn_c_check_decl "$LINENO" "IORING_OP_SPLICE" "ac_cv_have_decl_IORING_OP_SPLICE" "#include <linux/io_uring.h> 19273 " 19274 if test "x$ac_cv_have_decl_IORING_OP_SPLICE" = xyes; then : 19275 $as_echo "#define CFA_HAVE_IORING_OP_SPLICE 1" >>confdefs.h 19276 19277 fi 19278 19279 19280 ac_fn_c_check_decl "$LINENO" "IORING_OP_PROVIDE_BUFFERS" "ac_cv_have_decl_IORING_OP_PROVIDE_BUFFERS" "#include <linux/io_uring.h> 19281 " 19282 if test "x$ac_cv_have_decl_IORING_OP_PROVIDE_BUFFERS" = xyes; then : 19283 $as_echo "#define CFA_HAVE_IORING_OP_PROVIDE_BUFFERS 1" >>confdefs.h 19284 19285 fi 19286 19287 19288 ac_fn_c_check_decl "$LINENO" "IORING_OP_REMOVE_BUFFER" "ac_cv_have_decl_IORING_OP_REMOVE_BUFFER" "#include <linux/io_uring.h> 19289 " 19290 if test "x$ac_cv_have_decl_IORING_OP_REMOVE_BUFFER" = xyes; then : 19291 $as_echo "#define CFA_HAVE_IORING_OP_REMOVE_BUFFER 1" >>confdefs.h 19292 19293 fi 19294 19295 19296 17290 19297 17291 19298 fi -
libcfa/configure.ac
re262b5e r42cd451e 128 128 #io_uring 5.5 uses enum values 129 129 #io_uring 5.6 and later uses probes 130 define(ioring_ops, [IORING_OP_NOP,IORING_OP_READV,IORING_OP_WRITEV,IORING_OP_FSYNC,IORING_OP_READ_FIXED,IORING_OP_WRITE_FIXED,IORING_OP_POLL_ADD,IORING_OP_POLL_REMOVE,IORING_OP_SYNC_FILE_RANGE,IORING_OP_SENDMSG,IORING_OP_RECVMSG,IORING_OP_TIMEOUT,IORING_OP_TIMEOUT_REMOVE,IORING_OP_ACCEPT,IORING_OP_ASYNC_CANCEL,IORING_OP_LINK_TIMEOUT,IORING_OP_CONNECT,IORING_OP_FALLOCATE,IORING_OP_OPENAT,IORING_OP_CLOSE,IORING_OP_FILES_UPDATE,IORING_OP_STATX,IORING_OP_READ,IORING_OP_WRITE,IORING_OP_FADVISE,IORING_OP_MADVISE,IORING_OP_SEND,IORING_OP_RECV,IORING_OP_OPENAT2,IORING_OP_EPOLL_CTL,IORING_OP_SPLICE,IORING_OP_PROVIDE_BUFFERS,IORING_OP_REMOVE_BUFFER]) 131 132 define(ioring_from_decls, [ 133 m4_foreach([op], [ioring_ops], [ 134 AC_CHECK_DECL(op, [AC_DEFINE([CFA_HAVE_]op)], [], [[#include <linux/io_uring.h>]]) 135 ]) 136 ]) 130 137 131 138 AC_CHECK_HEADERS([linux/io_uring.h], [ 132 139 AC_DEFINE(CFA_HAVE_LINUX_IO_URING_H) 133 # AC_CHECK_HEADER([liburing.h], [ 134 # AC_CHECK_LIB([uring], [io_uring_get_probe]) 135 # ]) 136 m4_foreach([op], [IORING_OP_NOP,IORING_OP_READV,IORING_OP_WRITEV,IORING_OP_FSYNC,IORING_OP_READ_FIXED,IORING_OP_WRITE_FIXED,IORING_OP_POLL_ADD,IORING_OP_POLL_REMOVE,IORING_OP_SYNC_FILE_RANGE,IORING_OP_SENDMSG,IORING_OP_RECVMSG,IORING_OP_TIMEOUT,IORING_OP_TIMEOUT_REMOVE,IORING_OP_ACCEPT,IORING_OP_ASYNC_CANCEL,IORING_OP_LINK_TIMEOUT,IORING_OP_CONNECT,IORING_OP_FALLOCATE,IORING_OP_OPENAT,IORING_OP_CLOSE,IORING_OP_FILES_UPDATE,IORING_OP_STATX,IORING_OP_READ,IORING_OP_WRITE,IORING_OP_FADVISE,IORING_OP_MADVISE,IORING_OP_SEND,IORING_OP_RECV,IORING_OP_OPENAT2,IORING_OP_EPOLL_CTL,IORING_OP_SPLICE,IORING_OP_PROVIDE_BUFFERS,IORING_OP_REMOVE_BUFFER], [ 137 AC_CHECK_DECL(op, [AC_DEFINE([CFA_HAVE_]op)], [], [[#include <linux/io_uring.h>]]) 140 AC_CHECK_HEADER([liburing.h], [ 141 AC_CHECK_LIB([uring], [io_uring_get_probe], [ 142 m4_foreach([op], [ioring_ops], [ 143 AC_CHECK_DECL(op, [ 144 AC_RUN_IFELSE([ 145 AC_LANG_PROGRAM( 146 [[#include <liburing.h>]], 147 [[int main() {]] 148 [[ struct io_uring_probe *probe = io_uring_get_probe();]] 149 [[ if(io_uring_opcode_supported(probe, ]]op[[))]] 150 [[ return 0;]] 151 [[ else]] 152 [[ return 1;]] 153 [[}]] 154 ) 155 ],[ 156 AC_DEFINE([CFA_HAVE_]op) 157 ],[ 158 AC_MSG_FAILURE([Check support for] op [ with liburing failed]) 159 ]) 160 ], [], [[#include <linux/io_uring.h>]]) 161 ]) 162 ], [ 163 ioring_from_decls 164 ]) 165 ], [ 166 ioring_from_decls 138 167 ]) 139 168 ])
Note: See TracChangeset
for help on using the changeset viewer.