@@ -71005,29 +71005,27 @@ $as_echo "$glibcxx_cv_fchmodat" >&6; }
71005
71005
$as_echo "#define _GLIBCXX_USE_FCHMODAT 1" >>confdefs.h
71006
71006
71007
71007
fi
71008
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile that can copy files " >&5
71009
- $as_echo_n "checking for sendfile that can copy files ... " >&6; }
71010
- if ${glibcxx_cv_sendfile +:} false; then :
71008
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link " >&5
71009
+ $as_echo_n "checking for link ... " >&6; }
71010
+ if ${glibcxx_cv_link +:} false; then :
71011
71011
$as_echo_n "(cached) " >&6
71012
71012
else
71013
- case "${target_os}" in
71014
- gnu* | linux* | solaris* | uclinux*)
71015
- if test x$gcc_no_link = xyes; then
71013
+ if test x$gcc_no_link = xyes; then
71016
71014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71017
71015
/* end confdefs.h. */
71018
- #include <sys/sendfile .h>
71016
+ #include <unistd .h>
71019
71017
int
71020
71018
main ()
71021
71019
{
71022
- sendfile(1, 2, (off_t*)0, sizeof 1 );
71020
+ link("", "" );
71023
71021
;
71024
71022
return 0;
71025
71023
}
71026
71024
_ACEOF
71027
71025
if ac_fn_cxx_try_compile "$LINENO"; then :
71028
- glibcxx_cv_sendfile =yes
71026
+ glibcxx_cv_link =yes
71029
71027
else
71030
- glibcxx_cv_sendfile =no
71028
+ glibcxx_cv_link =no
71031
71029
fi
71032
71030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71033
71031
else
@@ -71036,40 +71034,35 @@ else
71036
71034
fi
71037
71035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71038
71036
/* end confdefs.h. */
71039
- #include <sys/sendfile .h>
71037
+ #include <unistd .h>
71040
71038
int
71041
71039
main ()
71042
71040
{
71043
- sendfile(1, 2, (off_t*)0, sizeof 1 );
71041
+ link("", "" );
71044
71042
;
71045
71043
return 0;
71046
71044
}
71047
71045
_ACEOF
71048
71046
if ac_fn_cxx_try_link "$LINENO"; then :
71049
- glibcxx_cv_sendfile =yes
71047
+ glibcxx_cv_link =yes
71050
71048
else
71051
- glibcxx_cv_sendfile =no
71049
+ glibcxx_cv_link =no
71052
71050
fi
71053
71051
rm -f core conftest.err conftest.$ac_objext \
71054
71052
conftest$ac_exeext conftest.$ac_ext
71055
71053
fi
71056
- ;;
71057
- *)
71058
- glibcxx_cv_sendfile=no
71059
- ;;
71060
- esac
71061
71054
71062
71055
fi
71063
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sendfile " >&5
71064
- $as_echo "$glibcxx_cv_sendfile " >&6; }
71065
- if test $glibcxx_cv_sendfile = yes; then
71056
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_link " >&5
71057
+ $as_echo "$glibcxx_cv_link " >&6; }
71058
+ if test $glibcxx_cv_link = yes; then
71066
71059
71067
- $as_echo "#define _GLIBCXX_USE_SENDFILE 1" >>confdefs.h
71060
+ $as_echo "#define HAVE_LINK 1" >>confdefs.h
71068
71061
71069
71062
fi
71070
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link " >&5
71071
- $as_echo_n "checking for link ... " >&6; }
71072
- if ${glibcxx_cv_link +:} false; then :
71063
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek " >&5
71064
+ $as_echo_n "checking for lseek ... " >&6; }
71065
+ if ${glibcxx_cv_lseek +:} false; then :
71073
71066
$as_echo_n "(cached) " >&6
71074
71067
else
71075
71068
if test x$gcc_no_link = xyes; then
@@ -71079,15 +71072,15 @@ else
71079
71072
int
71080
71073
main ()
71081
71074
{
71082
- link("", "" );
71075
+ lseek(1, 0, SEEK_SET );
71083
71076
;
71084
71077
return 0;
71085
71078
}
71086
71079
_ACEOF
71087
71080
if ac_fn_cxx_try_compile "$LINENO"; then :
71088
- glibcxx_cv_link =yes
71081
+ glibcxx_cv_lseek =yes
71089
71082
else
71090
- glibcxx_cv_link =no
71083
+ glibcxx_cv_lseek =no
71091
71084
fi
71092
71085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71093
71086
else
@@ -71100,26 +71093,26 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71100
71093
int
71101
71094
main ()
71102
71095
{
71103
- link("", "" );
71096
+ lseek(1, 0, SEEK_SET );
71104
71097
;
71105
71098
return 0;
71106
71099
}
71107
71100
_ACEOF
71108
71101
if ac_fn_cxx_try_link "$LINENO"; then :
71109
- glibcxx_cv_link =yes
71102
+ glibcxx_cv_lseek =yes
71110
71103
else
71111
- glibcxx_cv_link =no
71104
+ glibcxx_cv_lseek =no
71112
71105
fi
71113
71106
rm -f core conftest.err conftest.$ac_objext \
71114
71107
conftest$ac_exeext conftest.$ac_ext
71115
71108
fi
71116
71109
71117
71110
fi
71118
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_link " >&5
71119
- $as_echo "$glibcxx_cv_link " >&6; }
71120
- if test $glibcxx_cv_link = yes; then
71111
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lseek " >&5
71112
+ $as_echo "$glibcxx_cv_lseek " >&6; }
71113
+ if test $glibcxx_cv_lseek = yes; then
71121
71114
71122
- $as_echo "#define HAVE_LINK 1" >>confdefs.h
71115
+ $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
71123
71116
71124
71117
fi
71125
71118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readlink" >&5
@@ -71286,6 +71279,68 @@ $as_echo "$glibcxx_cv_truncate" >&6; }
71286
71279
71287
71280
$as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
71288
71281
71282
+ fi
71283
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile that can copy files" >&5
71284
+ $as_echo_n "checking for sendfile that can copy files... " >&6; }
71285
+ if ${glibcxx_cv_sendfile+:} false; then :
71286
+ $as_echo_n "(cached) " >&6
71287
+ else
71288
+ case "${target_os}" in
71289
+ gnu* | linux* | solaris* | uclinux*)
71290
+ if test x$gcc_no_link = xyes; then
71291
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71292
+ /* end confdefs.h. */
71293
+ #include <sys/sendfile.h>
71294
+ int
71295
+ main ()
71296
+ {
71297
+ sendfile(1, 2, (off_t*)0, sizeof 1);
71298
+ ;
71299
+ return 0;
71300
+ }
71301
+ _ACEOF
71302
+ if ac_fn_cxx_try_compile "$LINENO"; then :
71303
+ glibcxx_cv_sendfile=yes
71304
+ else
71305
+ glibcxx_cv_sendfile=no
71306
+ fi
71307
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71308
+ else
71309
+ if test x$gcc_no_link = xyes; then
71310
+ as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71311
+ fi
71312
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71313
+ /* end confdefs.h. */
71314
+ #include <sys/sendfile.h>
71315
+ int
71316
+ main ()
71317
+ {
71318
+ sendfile(1, 2, (off_t*)0, sizeof 1);
71319
+ ;
71320
+ return 0;
71321
+ }
71322
+ _ACEOF
71323
+ if ac_fn_cxx_try_link "$LINENO"; then :
71324
+ glibcxx_cv_sendfile=yes
71325
+ else
71326
+ glibcxx_cv_sendfile=no
71327
+ fi
71328
+ rm -f core conftest.err conftest.$ac_objext \
71329
+ conftest$ac_exeext conftest.$ac_ext
71330
+ fi
71331
+ ;;
71332
+ *)
71333
+ glibcxx_cv_sendfile=no
71334
+ ;;
71335
+ esac
71336
+
71337
+ fi
71338
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sendfile" >&5
71339
+ $as_echo "$glibcxx_cv_sendfile" >&6; }
71340
+ if test $glibcxx_cv_sendfile = yes && test $glibcxx_cv_lseek = yes; then
71341
+
71342
+ $as_echo "#define _GLIBCXX_USE_SENDFILE 1" >>confdefs.h
71343
+
71289
71344
fi
71290
71345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdopendir" >&5
71291
71346
$as_echo_n "checking for fdopendir... " >&6; }
0 commit comments