ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.37 by root, Wed Sep 28 08:24:25 2022 UTC vs.
Revision 1.39 by root, Thu Feb 29 18:02:43 2024 UTC

4425printf "%s\n" "$ac_cv_sync_file_range" >&6; } 4425printf "%s\n" "$ac_cv_sync_file_range" >&6; }
4426test $ac_cv_sync_file_range = yes && 4426test $ac_cv_sync_file_range = yes &&
4427printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 4427printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
4428 4428
4429 4429
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4431printf %s "checking for copy_file_range... " >&6; }
4432if test ${ac_cv_copy_file_range+y}
4433then :
4434 printf %s "(cached) " >&6
4435else $as_nop
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h. */
4438
4439#include <unistd.h>
4440int main (void)
4441{
4442 off64_t o1, o2;
4443 int res = copy_file_range (0, &o1, 1, &o2, 99, 0);
4444 return 0;
4445}
4446
4447_ACEOF
4448if ac_fn_c_try_link "$LINENO"
4449then :
4450 ac_cv_copy_file_range=yes
4451else $as_nop
4452 ac_cv_copy_file_range=no
4453fi
4454rm -f core conftest.err conftest.$ac_objext conftest.beam \
4455 conftest$ac_exeext conftest.$ac_ext
4456fi
4457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5
4458printf "%s\n" "$ac_cv_copy_file_range" >&6; }
4459test $ac_cv_copy_file_range = yes &&
4460printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4461
4462
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 4463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4431printf %s "checking for fallocate... " >&6; } 4464printf %s "checking for fallocate... " >&6; }
4432if test ${ac_cv_linux_fallocate+y} 4465if test ${ac_cv_linux_fallocate+y}
4433then : 4466then :
4434 printf %s "(cached) " >&6 4467 printf %s "(cached) " >&6
4760 4793
4761#include <fcntl.h> 4794#include <fcntl.h>
4762#include <unistd.h> 4795#include <unistd.h>
4763int main (void) 4796int main (void)
4764{ 4797{
4798 char *const argv[] = { "foo", "bar", 0 };
4765 int res = fexecve (-1, "argv", 0); 4799 int res = fexecve (-1, argv, 0);
4766 return 0; 4800 return 0;
4767} 4801}
4768 4802
4769_ACEOF 4803_ACEOF
4770if ac_fn_c_try_link "$LINENO" 4804if ac_fn_c_try_link "$LINENO"
5020fi 5054fi
5021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5
5022printf "%s\n" "$ac_cv_memfd_create" >&6; } 5056printf "%s\n" "$ac_cv_memfd_create" >&6; }
5023test $ac_cv_memfd_create = yes && 5057test $ac_cv_memfd_create = yes &&
5024printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 5058printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
5025
5026
5027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
5028printf %s "checking for copy_file_range... " >&6; }
5029if test ${ac_cv_copy_file_range+y}
5030then :
5031 printf %s "(cached) " >&6
5032else $as_nop
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h. */
5035
5036#include <unistd.h>
5037#include <sys/syscall.h>
5038/*#include <linux/copy.h>*/
5039int main (void)
5040{
5041 int res;
5042 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
5043 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
5044 return 0;
5045}
5046
5047_ACEOF
5048if ac_fn_c_try_link "$LINENO"
5049then :
5050 ac_cv_copy_file_range=yes
5051else $as_nop
5052 ac_cv_copy_file_range=no
5053fi
5054rm -f core conftest.err conftest.$ac_objext conftest.beam \
5055 conftest$ac_exeext conftest.$ac_ext
5056fi
5057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5
5058printf "%s\n" "$ac_cv_copy_file_range" >&6; }
5059test $ac_cv_copy_file_range = yes &&
5060printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
5061 5059
5062 5060
5063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
5064printf %s "checking for st_xtimensec... " >&6; } 5062printf %s "checking for st_xtimensec... " >&6; }
5065if test ${ac_cv_xtimensec+y} 5063if test ${ac_cv_xtimensec+y}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines