?RCS: $Id: Sendfile64.U 7637 2004-12-28 15:29:06Z rmanfredi $ ?RCS: ?RCS: @COPYRIGHT@ ?RCS: ?MAKE:Sendfile64: Largefile d_sendfile i_syssendfile cc ccflags ldflags rm cat ?MAKE: -pick add $@ %< ?LINT:change i_syssendfile d_sendfile : determine whether sendfile works with 64-bit file support echo " " case "$i_syssendfile" in "$define") echo "Checking whether we can use sendfile() with large file support..." >&4 $cat >try.c <<'EOC' #include int main(void) { return 0; } EOC if $cc $ccflags $ldflags -o try try.c >/dev/null 2>&1; then echo "It looks like we can use sendfile()." else echo "Sorry, I'll have to disable sendfile()." i_syssendfile="$undef" d_sendfile="$undef" fi $rm -f try try.c ;; *) echo "No , sendfile() should be safe with large files." >&4 ;; esac