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

Comparing IO-AIO/configure (file contents):
Revision 1.35 by root, Mon Sep 5 08:43:58 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
4747 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 4780 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
4748 4781
4749fi 4782fi
4750 4783
4751 4784
4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fexecve" >&5
4786printf %s "checking for fexecve... " >&6; }
4787if test ${ac_cv_fexecve+y}
4788then :
4789 printf %s "(cached) " >&6
4790else $as_nop
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792/* end confdefs.h. */
4793
4794#include <fcntl.h>
4795#include <unistd.h>
4796int main (void)
4797{
4798 char *const argv[] = { "foo", "bar", 0 };
4799 int res = fexecve (-1, argv, 0);
4800 return 0;
4801}
4802
4803_ACEOF
4804if ac_fn_c_try_link "$LINENO"
4805then :
4806 ac_cv_fexecve=yes
4807else $as_nop
4808 ac_cv_fexecve=no
4809fi
4810rm -f core conftest.err conftest.$ac_objext conftest.beam \
4811 conftest$ac_exeext conftest.$ac_ext
4812fi
4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fexecve" >&5
4814printf "%s\n" "$ac_cv_fexecve" >&6; }
4815test $ac_cv_fexecve = yes &&
4816printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
4817
4818
4752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5
4753printf %s "checking for siginfo_t... " >&6; } 4820printf %s "checking for siginfo_t... " >&6; }
4754if test ${ac_cv_siginfo_t+y} 4821if test ${ac_cv_siginfo_t+y}
4755then : 4822then :
4756 printf %s "(cached) " >&6 4823 printf %s "(cached) " >&6
4987fi 5054fi
4988{ 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
4989printf "%s\n" "$ac_cv_memfd_create" >&6; } 5056printf "%s\n" "$ac_cv_memfd_create" >&6; }
4990test $ac_cv_memfd_create = yes && 5057test $ac_cv_memfd_create = yes &&
4991printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 5058printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
4992
4993
4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4995printf %s "checking for copy_file_range... " >&6; }
4996if test ${ac_cv_copy_file_range+y}
4997then :
4998 printf %s "(cached) " >&6
4999else $as_nop
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h. */
5002
5003#include <unistd.h>
5004#include <sys/syscall.h>
5005/*#include <linux/copy.h>*/
5006int main (void)
5007{
5008 int res;
5009 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
5010 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
5011 return 0;
5012}
5013
5014_ACEOF
5015if ac_fn_c_try_link "$LINENO"
5016then :
5017 ac_cv_copy_file_range=yes
5018else $as_nop
5019 ac_cv_copy_file_range=no
5020fi
5021rm -f core conftest.err conftest.$ac_objext conftest.beam \
5022 conftest$ac_exeext conftest.$ac_ext
5023fi
5024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5
5025printf "%s\n" "$ac_cv_copy_file_range" >&6; }
5026test $ac_cv_copy_file_range = yes &&
5027printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
5028 5059
5029 5060
5030{ 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
5031printf %s "checking for st_xtimensec... " >&6; } 5062printf %s "checking for st_xtimensec... " >&6; }
5032if test ${ac_cv_xtimensec+y} 5063if test ${ac_cv_xtimensec+y}
5252 5283
5253#include <sys/types.h> 5284#include <sys/types.h>
5254#include <sys/socket.h> 5285#include <sys/socket.h>
5255int main (void) 5286int main (void)
5256{ 5287{
5257 int res;
5258 res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); 5288 int res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC);
5259 return 0; 5289 return 0;
5260} 5290}
5261 5291
5262_ACEOF 5292_ACEOF
5263if ac_fn_c_try_link "$LINENO" 5293if ac_fn_c_try_link "$LINENO"
5280then : 5310then :
5281 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h 5311 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5282 5312
5283fi 5313fi
5284 5314
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount/umount" >&5 5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount" >&5
5286printf %s "checking for mount/umount... " >&6; } 5316printf %s "checking for mount... " >&6; }
5287if test ${ac_cv_mount+y} 5317if test ${ac_cv_mount+y}
5288then : 5318then :
5289 printf %s "(cached) " >&6 5319 printf %s "(cached) " >&6
5290else $as_nop 5320else $as_nop
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h. */ 5322/* end confdefs.h. */
5293 5323
5294#include <sys/mount.h> 5324#include <sys/mount.h>
5295int main (void) 5325int main (void)
5296{ 5326{
5297 int res;
5298 res = mount ("path", "path", "fstype", MS_RDONLY, 0); 5327 int res = mount ("path", "path", "fstype", MS_RDONLY, 0);
5299 res = umount ("path");
5300 return 0; 5328 return 0;
5301} 5329}
5302 5330
5303_ACEOF 5331_ACEOF
5304if ac_fn_c_try_link "$LINENO" 5332if ac_fn_c_try_link "$LINENO"
5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 5341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5
5314printf "%s\n" "$ac_cv_mount" >&6; } 5342printf "%s\n" "$ac_cv_mount" >&6; }
5315test $ac_cv_mount = yes && 5343test $ac_cv_mount = yes &&
5316printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h 5344printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h
5317 5345
5346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount" >&5
5347printf %s "checking for umount... " >&6; }
5348if test ${ac_cv_umount+y}
5349then :
5350 printf %s "(cached) " >&6
5351else $as_nop
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354
5355#include <sys/mount.h>
5356int main (void)
5357{
5358 int res = umount ("path");
5359 return 0;
5360}
5361
5362_ACEOF
5363if ac_fn_c_try_link "$LINENO"
5364then :
5365 ac_cv_umount=yes
5366else $as_nop
5367 ac_cv_umount=no
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.beam \
5370 conftest$ac_exeext conftest.$ac_ext
5371fi
5372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount" >&5
5373printf "%s\n" "$ac_cv_umount" >&6; }
5374test $ac_cv_umount = yes &&
5375printf "%s\n" "#define HAVE_UMOUNT 1" >>confdefs.h
5376
5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 5377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5
5319printf %s "checking for umount2... " >&6; } 5378printf %s "checking for umount2... " >&6; }
5320if test ${ac_cv_umount2+y} 5379if test ${ac_cv_umount2+y}
5321then : 5380then :
5322 printf %s "(cached) " >&6 5381 printf %s "(cached) " >&6
5325/* end confdefs.h. */ 5384/* end confdefs.h. */
5326 5385
5327#include <sys/mount.h> 5386#include <sys/mount.h>
5328int main (void) 5387int main (void)
5329{ 5388{
5330 int res;
5331 res = umount2 ("path", MNT_FORCE|MNT_DETACH); 5389 int res = umount2 ("path", MNT_FORCE|MNT_DETACH);
5332 return 0; 5390 return 0;
5333} 5391}
5334 5392
5335_ACEOF 5393_ACEOF
5336if ac_fn_c_try_link "$LINENO" 5394if ac_fn_c_try_link "$LINENO"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines