… | |
… | |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
4382 | test $ac_cv_renameat2 = yes && |
4382 | test $ac_cv_renameat2 = yes && |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4384 | |
4384 | |
4385 | |
4385 | |
|
|
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4387 | $as_echo_n "checking for copy_file_range... " >&6; } |
|
|
4388 | if ${ac_cv_copy_file_range+:} false; then : |
|
|
4389 | $as_echo_n "(cached) " >&6 |
|
|
4390 | else |
|
|
4391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4392 | /* end confdefs.h. */ |
|
|
4393 | |
|
|
4394 | #include <unistd.h> |
|
|
4395 | #include <sys/syscall.h> |
|
|
4396 | /*#include <linux/copy.h>*/ |
|
|
4397 | int res; |
|
|
4398 | int main (void) |
|
|
4399 | { |
|
|
4400 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
4401 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
4402 | return 0; |
|
|
4403 | } |
|
|
4404 | |
|
|
4405 | _ACEOF |
|
|
4406 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4407 | ac_cv_copy_file_range=yes |
|
|
4408 | else |
|
|
4409 | ac_cv_copy_file_range=no |
|
|
4410 | fi |
|
|
4411 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4412 | conftest$ac_exeext conftest.$ac_ext |
|
|
4413 | fi |
|
|
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4415 | $as_echo "$ac_cv_copy_file_range" >&6; } |
|
|
4416 | test $ac_cv_copy_file_range = yes && |
|
|
4417 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4418 | |
|
|
4419 | |
4386 | |
4420 | |
4387 | |
4421 | |
4388 | cat >confcache <<\_ACEOF |
4422 | cat >confcache <<\_ACEOF |
4389 | # This file is a shell script that caches the results of configure |
4423 | # This file is a shell script that caches the results of configure |
4390 | # tests run on this system so they can be shared between configure |
4424 | # tests run on this system so they can be shared between configure |