s3: add sendfile support for Tru64, which is the same as HP-UX's
authorBjörn Jacke <bj@sernet.de>
Fri, 29 Jun 2012 21:36:24 +0000 (23:36 +0200)
committerBjoern Jacke <bj@sernet.de>
Fri, 29 Jun 2012 22:33:46 +0000 (00:33 +0200)
source3/configure.in

index a9640d87e351938ce3ff15555ef0714915b66bfc..e55114de150bb414692855199e1f17267c16a174 100644 (file)
@@ -5594,8 +5594,8 @@ samba_cv_HAVE_SENDFILE=yes,samba_cv_HAVE_SENDFILE=no)])
        fi
        ;;
 
-       *hpux*)
-               AC_CACHE_CHECK([for hpux sendfile support],samba_cv_HAVE_SENDFILE,[
+       *hpux*|*osf*)
+               AC_CACHE_CHECK([for osf/hpux sendfile support],samba_cv_HAVE_SENDFILE,[
                AC_TRY_LINK([\
 #include <sys/socket.h>
 #include <sys/uio.h>],
@@ -5614,7 +5614,7 @@ samba_cv_HAVE_SENDFILE=yes,samba_cv_HAVE_SENDFILE=no)])
 samba_cv_HAVE_SENDFILE=yes,samba_cv_HAVE_SENDFILE=no)])
        if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
                AC_DEFINE(HAVE_SENDFILE,1,[Whether sendfile() is available])
-               AC_DEFINE(HPUX_SENDFILE_API,1,[Whether the hpux sendfile() API is available])
+               AC_DEFINE(HPUX_SENDFILE_API,1,[Whether the osf/hpux sendfile() API is available])
                AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() support should be included])
        else
                AC_MSG_RESULT(no);