From a6b109506042aaa651ae13fad499d1035295996b Mon Sep 17 00:00:00 2001 From: des Date: Thu, 20 Dec 2007 13:35:33 +0000 Subject: [PATCH] Only look for sendfile() on platforms where we know how to use it. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2322 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 647c128e..e0b3c7f9 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -95,9 +95,18 @@ AC_CHECK_FUNCS([strerror]) AC_FUNC_STRERROR_R AC_CHECK_FUNCS([socket]) AC_CHECK_FUNCS([strptime]) -AC_CHECK_FUNCS([sendfile]) AC_CHECK_FUNCS([fmtcheck]) +# This one is tricky, there are multiple versions +case $host in +*-*-freebsd*|*-*-linux*) + AC_CHECK_FUNCS([sendfile]) + ;; +*) + AC_MSG_WARN([won't look for sendfile() on $host]) + ;; +esac + # These functions are provided by libcompat on platforms where they # are not available AC_CHECK_FUNCS([asprintf vasprintf]) -- 2.39.5