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

Comparing IO-AIO/configure (file contents):
Revision 1.34 by root, Tue Jul 27 07:58:38 2021 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"
5271fi 5301fi
5272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5 5302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
5273printf "%s\n" "$ac_cv_accept4" >&6; } 5303printf "%s\n" "$ac_cv_accept4" >&6; }
5274test $ac_cv_accept4 = yes && 5304test $ac_cv_accept4 = yes &&
5275printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 5305printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
5306
5307
5308ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5309if test "x$ac_cv_header_sys_mount_h" = xyes
5310then :
5311 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5312
5313fi
5314
5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount" >&5
5316printf %s "checking for mount... " >&6; }
5317if test ${ac_cv_mount+y}
5318then :
5319 printf %s "(cached) " >&6
5320else $as_nop
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h. */
5323
5324#include <sys/mount.h>
5325int main (void)
5326{
5327 int res = mount ("path", "path", "fstype", MS_RDONLY, 0);
5328 return 0;
5329}
5330
5331_ACEOF
5332if ac_fn_c_try_link "$LINENO"
5333then :
5334 ac_cv_mount=yes
5335else $as_nop
5336 ac_cv_mount=no
5337fi
5338rm -f core conftest.err conftest.$ac_objext conftest.beam \
5339 conftest$ac_exeext conftest.$ac_ext
5340fi
5341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5
5342printf "%s\n" "$ac_cv_mount" >&6; }
5343test $ac_cv_mount = yes &&
5344printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h
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
5377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5
5378printf %s "checking for umount2... " >&6; }
5379if test ${ac_cv_umount2+y}
5380then :
5381 printf %s "(cached) " >&6
5382else $as_nop
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385
5386#include <sys/mount.h>
5387int main (void)
5388{
5389 int res = umount2 ("path", MNT_FORCE|MNT_DETACH);
5390 return 0;
5391}
5392
5393_ACEOF
5394if ac_fn_c_try_link "$LINENO"
5395then :
5396 ac_cv_umount2=yes
5397else $as_nop
5398 ac_cv_umount2=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.beam \
5401 conftest$ac_exeext conftest.$ac_ext
5402fi
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount2" >&5
5404printf "%s\n" "$ac_cv_umount2" >&6; }
5405test $ac_cv_umount2 = yes &&
5406printf "%s\n" "#define HAVE_UMOUNT2 1" >>confdefs.h
5276 5407
5277 5408
5278cat >confcache <<\_ACEOF 5409cat >confcache <<\_ACEOF
5279# This file is a shell script that caches the results of configure 5410# This file is a shell script that caches the results of configure
5280# tests run on this system so they can be shared between configure 5411# tests run on this system so they can be shared between configure

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines