From: Timo Sirainen Date: Sat, 19 Jun 2004 20:22:00 +0000 (+0300) Subject: Use AC_TRY_LINK() for sendfile() checks so it works right with Solaris. Did X-Git-Tag: 1.1.alpha1~3925 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0487f07bd84464cc93f402f2ff80b4ce1d6039c;p=thirdparty%2Fdovecot%2Fcore.git Use AC_TRY_LINK() for sendfile() checks so it works right with Solaris. Did the same for mremap() too just in case. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 09f78e3fde..9b50263c46 100644 --- a/configure.in +++ b/configure.in @@ -700,7 +700,7 @@ AC_TRY_COMPILE([ dnl * Linux compatible mremap() AC_MSG_CHECKING([Linux compatible mremap()]) -AC_TRY_COMPILE([ +AC_TRY_LINK([ #include #define __USE_GNU #include @@ -761,7 +761,7 @@ AC_CHECK_LIB(sendfile, sendfile, [ dnl * Linux compatible sendfile() - don't check if Solaris one was found. dnl * This seems to pass with Solaris for some reason.. AC_MSG_CHECKING([Linux compatible sendfile()]) - AC_TRY_COMPILE([ + AC_TRY_LINK([ #undef _FILE_OFFSET_BITS #include #include @@ -777,7 +777,7 @@ AC_CHECK_LIB(sendfile, sendfile, [ dnl * FreeBSD compatible sendfile() AC_MSG_CHECKING([FreeBSD compatible sendfile()]) - AC_TRY_COMPILE([ + AC_TRY_LINK([ #include #include #include