You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.7 KiB

  1. --- a/m4/fd_passing.m4
  2. +++ b/m4/fd_passing.m4
  3. @@ -8,7 +8,7 @@ AC_DEFUN([DOVECOT_FD_PASSING], [
  4. CFLAGS="$CFLAGS -DBUGGY_CMSG_MACROS"
  5. fi
  6. - AC_TRY_RUN([
  7. + AC_TRY_LINK([
  8. #include <sys/types.h>
  9. #include <sys/socket.h>
  10. #include <sys/wait.h>
  11. @@ -16,7 +16,7 @@ AC_DEFUN([DOVECOT_FD_PASSING], [
  12. #include <unistd.h>
  13. #include <fcntl.h>
  14. #include "fdpass.h"
  15. -
  16. + ], [
  17. static
  18. int nopen(void)
  19. {
  20. --- a/m4/glibc.m4
  21. +++ b/m4/glibc.m4
  22. @@ -17,7 +17,7 @@ AC_DEFUN([DOVECOT_GLIBC], [
  23. dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it.
  24. dnl * It may also be broken in AIX.
  25. AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[
  26. - AC_TRY_RUN([
  27. + AC_TRY_LINK([
  28. #define _XOPEN_SOURCE 600
  29. #include <stdio.h>
  30. #include <stdlib.h>
  31. @@ -26,6 +26,7 @@ AC_DEFUN([DOVECOT_GLIBC], [
  32. #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
  33. possibly broken posix_fallocate
  34. #endif
  35. + ], [
  36. int main() {
  37. int fd = creat("conftest.temp", 0600);
  38. int ret;
  39. --- a/m4/ioloop.m4
  40. +++ b/m4/ioloop.m4
  41. @@ -4,9 +4,9 @@ AC_DEFUN([DOVECOT_IOLOOP], [
  42. if test "$ioloop" = "best" || test "$ioloop" = "epoll"; then
  43. AC_CACHE_CHECK([whether we can use epoll],i_cv_epoll_works,[
  44. - AC_TRY_RUN([
  45. + AC_TRY_LINK([
  46. #include <sys/epoll.h>
  47. -
  48. + ], [
  49. int main()
  50. {
  51. return epoll_create(5) < 1;
  52. --- a/m4/mmap_write.m4
  53. +++ b/m4/mmap_write.m4
  54. @@ -1,7 +1,7 @@
  55. dnl * If mmap() plays nicely with write()
  56. AC_DEFUN([DOVECOT_MMAP_WRITE], [
  57. AC_CACHE_CHECK([whether shared mmaps get updated by write()s],i_cv_mmap_plays_with_write,[
  58. - AC_TRY_RUN([
  59. + AC_TRY_LINK([
  60. #include <stdio.h>
  61. #include <sys/types.h>
  62. #include <sys/stat.h>
  63. @@ -9,6 +9,7 @@ AC_DEFUN([DOVECOT_MMAP_WRITE], [
  64. #include <fcntl.h>
  65. #include <sys/mman.h>
  66. #include <string.h>
  67. + ], [
  68. int main() {
  69. /* return 0 if we're signed */
  70. int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC, 0600);
  71. --- a/m4/want_gssapi.m4
  72. +++ b/m4/want_gssapi.m4
  73. @@ -54,7 +54,7 @@ AC_DEFUN([DOVECOT_WANT_GSSAPI], [
  74. # does the kerberos library support SPNEGO?
  75. AC_CACHE_CHECK([whether GSSAPI supports SPNEGO],i_cv_gssapi_spnego,[
  76. - AC_TRY_RUN([
  77. + AC_TRY_LINK([
  78. #ifdef HAVE_GSSAPI_H
  79. # include <gssapi.h>
  80. #else
  81. @@ -62,6 +62,7 @@ AC_DEFUN([DOVECOT_WANT_GSSAPI], [
  82. #endif
  83. #include <krb5.h>
  84. #include <string.h>
  85. + ], [
  86. int main(void) {
  87. OM_uint32 minor_status;
  88. gss_OID_set mech_set;