]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Use AC_TRY_LINK() for sendfile() checks so it works right with Solaris. Did
authorTimo Sirainen <tss@iki.fi>
Sat, 19 Jun 2004 20:22:00 +0000 (23:22 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 19 Jun 2004 20:22:00 +0000 (23:22 +0300)
the same for mremap() too just in case.

--HG--
branch : HEAD

configure.in

index 09f78e3fdea0f89106213a8e02afa451159745a0..9b50263c460c4ffcac76c3db9f79cd46bd59141b 100644 (file)
@@ -700,7 +700,7 @@ AC_TRY_COMPILE([
 
 dnl * Linux compatible mremap()
 AC_MSG_CHECKING([Linux compatible mremap()])
-AC_TRY_COMPILE([
+AC_TRY_LINK([
   #include <unistd.h>
   #define __USE_GNU
   #include <sys/mman.h>
@@ -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 <sys/types.h>
     #include <sys/socket.h>
@@ -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 <sys/types.h>
     #include <sys/socket.h>
     #include <sys/uio.h>