From e6eccd233abc2db9603d5044bef211d6c820cd81 Mon Sep 17 00:00:00 2001 From: kamei Date: Sat, 9 Mar 2013 10:49:27 +0900 Subject: [PATCH] Strictly check --with-sendfile-support --- source3/configure.in | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index d0c2a48..f1f4291 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -5510,7 +5510,7 @@ 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() support is available]) AC_DEFINE(FREEBSD_SENDFILE_API,1,[Whether the FreeBSD sendfile() API is available]) - AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() support should be included]) + AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() should be used]) else AC_MSG_RESULT(no); fi @@ -5543,7 +5543,7 @@ 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() support is available]) AC_DEFINE(DARWIN_SENDFILE_API,1,[Whether the Darwin sendfile() API is available]) - AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() support should be included]) + AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() should be used]) else AC_MSG_RESULT(no); fi @@ -5569,7 +5569,7 @@ 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 osf/hpux sendfile() API is available]) - AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() support should be included]) + AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() should be used]) else AC_MSG_RESULT(no); fi @@ -5605,7 +5605,7 @@ samba_cv_HAVE_SENDFILEV=yes,samba_cv_HAVE_SENDFILEV=no)]) if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then AC_DEFINE(HAVE_SENDFILEV,1,[Whether sendfilev() is available]) AC_DEFINE(SOLARIS_SENDFILE_API,1,[Whether the solaris sendfile() API is available]) - AC_DEFINE(WITH_SENDFILE,1,[Whether to include sendfile() support]) + AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() should be used]) else AC_MSG_RESULT(no); fi @@ -5634,7 +5634,7 @@ 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(AIX_SENDFILE_API,1,[Whether the AIX send_file() API is available]) - AC_DEFINE(WITH_SENDFILE,1,[Whether to include sendfile() support]) + AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() should be used]) else AC_MSG_RESULT(no); fi @@ -5644,8 +5644,11 @@ samba_cv_HAVE_SENDFILE=yes,samba_cv_HAVE_SENDFILE=no)]) esac fi -if test x$with_sendfile_support = xyes -a x"$samba_cv_HAVE_SENDFILE" != xyes ; then - AC_MSG_ERROR(sendfile support requested but sendfile not available ) +if test x$with_sendfile_support = xyes; then + if test x"$samba_cv_HAVE_SENDFILE" != xyes -a \ + x"$samba_cv_HAVE_SENDFILEV" != xyes ; then + AC_MSG_ERROR(sendfile support requested but sendfile not available ) + fi fi ############################################ -- 1.7.10.4