actarsnap.m4 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # CHECK_BROKEN_TCP_NOPUSH
  2. # -----------------------
  3. AC_DEFUN([CHECK_BROKEN_TCP_NOPUSH],
  4. [AC_REQUIRE([AC_CANONICAL_TARGET])
  5. case $target_os in
  6. darwin*)
  7. AC_DEFINE([BROKEN_TCP_NOPUSH], [1],
  8. [Define to 1 if the OS has a broken TCP_NOPUSH implementation])
  9. ;;
  10. cygwin*)
  11. AC_DEFINE([BROKEN_TCP_NOPUSH], [1],
  12. [Define to 1 if the OS has a broken TCP_NOPUSH implementation])
  13. ;;
  14. esac
  15. AC_SUBST([BROKEN_TCP_NOPUSH])
  16. ])# CHECK_BROKEN_TCP_NOPUSH
  17. # CHECK_FREEBSD_PORTRANGE_BUG
  18. # ---------------------------
  19. AC_DEFUN([CHECK_FREEBSD_PORTRANGE_BUG],
  20. [AC_REQUIRE([AC_CANONICAL_TARGET])
  21. case $target_os in
  22. freebsd*)
  23. AC_DEFINE([FREEBSD_PORTRANGE_BUG], [1],
  24. [Define to 1 if the OS has FreeBSD's randomized portrange bug])
  25. ;;
  26. esac
  27. AC_SUBST([FREEBSD_PORTRANGE_BUG])
  28. ])# CHECK_FREEBSD_PORTRANGE_BUG
  29. # CHECK_LINUX_EXT2FS
  30. # ---------------------------
  31. AC_DEFUN([CHECK_LINUX_EXT2FS],
  32. [AC_REQUIRE([AC_CANONICAL_TARGET])
  33. case $target_os in
  34. linux*)
  35. AC_CHECK_HEADER(ext2fs/ext2_fs.h,
  36. AC_DEFINE([HAVE_EXT2FS_EXT2_FS_H], [1],
  37. [Define to 1 if you have the <ext2fs/ext2_fs.h> header file.]),
  38. AC_MSG_ERROR([*** ext2fs/ext2_fs.h missing ***]))
  39. ;;
  40. esac
  41. AC_SUBST([HAVE_EXT2FS_EXT2_FS_H])
  42. ])# CHECK_LINUX_EXT2FS
  43. # CHECK_SOLARIS_PATHS
  44. # -------------------
  45. AC_DEFUN([CHECK_SOLARIS_PATHS],
  46. [AC_REQUIRE([AC_CANONICAL_TARGET])
  47. case $target_os in
  48. *solaris* | *sunos*)
  49. CPPFLAGS="${CPPFLAGS} -I/usr/sfw/include"
  50. LDFLAGS="${LDFLAGS} -L/usr/sfw/lib -R/usr/sfw/lib"
  51. LIBS="${LIBS} -lsocket -lnsl"
  52. ;;
  53. esac
  54. ])# CHECK_SOLARIS_PATHS
  55. # CHECK_MDOC_OR_MAN
  56. # -----------------
  57. # If 'nroff -mdoc' returns with an exit status of 0, we will install man
  58. # pages which use mdoc macros; otherwise, we will install man pages which
  59. # have had mdoc macros stripped out. On systems which support them, the
  60. # mdoc versions are preferable; but we err on the side of caution -- there
  61. # may be systems where man(1) does not use nroff(1) but still have mdoc
  62. # macros available, yet we will use the mdoc-less man pages on them.
  63. AC_DEFUN([CHECK_MDOC_OR_MAN],
  64. [if nroff -mdoc </dev/null >/dev/null 2>/dev/null; then
  65. MANVER=mdoc;
  66. else
  67. MANVER=man;
  68. fi
  69. AC_SUBST([MANVER])
  70. ])# CHECK_MDOC_OR_MAN