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.

89 lines
2.8 KiB

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -67,34 +67,57 @@ AC_TYPE_UINT8_T
  4. AC_FUNC_MALLOC
  5. AC_CHECK_FUNCS([memset])
  6. -PKG_CHECK_MODULES(DAEMON, libdaemon >= 0.12, [
  7. - AC_SUBST(DAEMON_CFLAGS)
  8. - AC_SUBST(DAEMON_LIBS)
  9. - AC_DEFINE(HAVE_LIBDAEMON, [1], ["daemon library is available"])
  10. - AC_CHECK_LIB(daemon, daemon_reset_sigs, [
  11. - AC_DEFINE(HAVE_DAEMON_RESET_SIGS, [1], ["daemon library has daemon_reset_sigs() and daemon_unblock_sigs() functions"])
  12. - ])
  13. -], [
  14. - AC_MSG_WARN([daemon library not found, daemonize features disabled])
  15. -])
  16. +AC_ARG_WITH([libdaemon],
  17. + AS_HELP_STRING([--without-libdaemon], [Build without daemonize support]),
  18. + [
  19. + AC_MSG_NOTICE([daemonize support disabled])
  20. + ], [
  21. + PKG_CHECK_MODULES(DAEMON, libdaemon >= 0.12, [
  22. + AC_SUBST(DAEMON_CFLAGS)
  23. + AC_SUBST(DAEMON_LIBS)
  24. + AC_DEFINE(HAVE_LIBDAEMON, [1], ["daemon library is available"])
  25. + AC_CHECK_LIB(daemon, daemon_reset_sigs, [
  26. + AC_DEFINE(HAVE_DAEMON_RESET_SIGS, [1], ["daemon library has daemon_reset_sigs() and daemon_unblock_sigs() functions"])
  27. + ])
  28. + ], [
  29. + AC_MSG_WARN([daemon library not found, daemonize features disabled])
  30. + ])
  31. + ]
  32. +)
  33. -PKG_CHECK_MODULES(ARCHIVE, libarchive >= 3.0, [
  34. - AC_SUBST(ARCHIVE_CFLAGS)
  35. - AC_SUBST(ARCHIVE_LIBS)
  36. - AC_DEFINE(HAVE_LIBARCHIVE, [1], ["libarchive is available"])
  37. - has_libarchive="yes"
  38. -], [
  39. - AC_MSG_WARN([libarchive not found, dtninbox and dtnoutbox will not be compiled])
  40. -])
  41. +AC_ARG_WITH([libarchive],
  42. + AS_HELP_STRING([--without-libarchive], [Build without archive support]),
  43. + [
  44. + has_libarchive="no"
  45. + AC_MSG_NOTICE([archive support disabled, dtninbox and dtnoutbox will not be compiled])
  46. + ], [
  47. + PKG_CHECK_MODULES(ARCHIVE, libarchive >= 3.0, [
  48. + AC_SUBST(ARCHIVE_CFLAGS)
  49. + AC_SUBST(ARCHIVE_LIBS)
  50. + AC_DEFINE(HAVE_LIBARCHIVE, [1], ["libarchive is available"])
  51. + has_libarchive="yes"
  52. + ], [
  53. + AC_MSG_WARN([libarchive not found, dtninbox and dtnoutbox will not be compiled])
  54. + ])
  55. + ]
  56. +)
  57. -PKG_CHECK_MODULES(OPENSSL, openssl, [
  58. - AC_SUBST(OPENSSL_CFLAGS)
  59. - AC_SUBST(OPENSSL_LIBS)
  60. - AC_DEFINE(HAVE_OPENSSL, [1], ["openssl available"])
  61. - has_openssl="yes"
  62. -], [
  63. - AC_MSG_WARN([openssl not found, dtninbox and dtnoutbox will not be compiled])
  64. -])
  65. +AC_ARG_WITH([openssl],
  66. + AS_HELP_STRING([--without-openssl], [Build without openssl support]),
  67. + [
  68. + has_openssl="no"
  69. + AC_MSG_NOTICE([openssl support disabled, dtninbox and dtnoutbox will not be compiled])
  70. + ], [
  71. + PKG_CHECK_MODULES(OPENSSL, openssl, [
  72. + AC_SUBST(OPENSSL_CFLAGS)
  73. + AC_SUBST(OPENSSL_LIBS)
  74. + AC_DEFINE(HAVE_OPENSSL, [1], ["openssl available"])
  75. + has_openssl="yes"
  76. + ], [
  77. + AC_MSG_WARN([openssl not found, dtninbox and dtnoutbox will not be compiled])
  78. + ])
  79. + ]
  80. +)
  81. AC_ARG_WITH([tffs],
  82. AS_HELP_STRING([--with-tffs=PATH], [set the tffs path for fat-image support in dtnoutbox]), [
  83. --
  84. 1.9.1