apachetop-0.12.6-configure.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Index: apachetop-0.12.6/configure.ac
  2. ===================================================================
  3. --- apachetop-0.12.6.orig/configure.ac
  4. +++ apachetop-0.12.6/configure.ac
  5. @@ -52,48 +52,60 @@ AC_FUNC_VPRINTF
  6. AC_CHECK_FUNCS([inet_aton memset strchr strdup kqueue strerror strstr])
  7. # pcre {{{
  8. -AC_ARG_WITH(pcre,
  9. - [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)],
  10. - [
  11. - CPPFLAGS="$CPPFLAGS -I $withval/include"
  12. - LDFLAGS="$LDFLAGS -L $withval/lib"
  13. - ]
  14. -)
  15. -
  16. -AC_CHECK_HEADERS(pcre.h,
  17. - AC_SEARCH_LIBS([pcre_compile], [pcre]) ,
  18. - AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre])
  19. -)
  20. +AC_ARG_WITH([pcre],
  21. + [ --with-pcre=<path> prefix of pcre installation (eg /usr/local)],
  22. + [case "${withval}" in
  23. + yes) with_pcre="/usr";;
  24. + no) with_pcre="no";;
  25. + *) with_pcre="/usr";;
  26. + esac],
  27. + [with_pcre="/usr"])
  28. +
  29. +if test x$with_pcre != xno; then
  30. + CPPFLAGS="$CPPFLAGS -I $withval/include"
  31. + LDFLAGS="$LDFLAGS -L $withval/lib"
  32. + AC_CHECK_HEADERS(pcre.h,
  33. + AC_SEARCH_LIBS([pcre_compile], [pcre]),
  34. + AC_MSG_WARN([*** pcre.h not found -- consider using --with-pcre]))
  35. +fi
  36. # }}}
  37. # fam {{{
  38. -AC_ARG_WITH(fam,
  39. - [ --with-fam=<path> prefix of fam installation (eg /usr/local)],
  40. - [
  41. - CPPFLAGS="$CPPFLAGS -I $withval/include"
  42. - LDFLAGS="$LDFLAGS -L $withval/lib"
  43. - ]
  44. -)
  45. -
  46. -AC_CHECK_HEADERS(fam.h,
  47. - AC_SEARCH_LIBS([FAMOpen], [fam]) ,
  48. - AC_MSG_WARN([*** fam.h not found -- consider using --with-fam])
  49. -)
  50. +AC_ARG_WITH([fam],
  51. + [ --with-fam=<path> prefix of fam installation (eg /usr/local)],
  52. + [case "${withval}" in
  53. + yes) with_fam="/usr";;
  54. + no) with_fam="no";;
  55. + *) with_fam="/usr";;
  56. + esac],
  57. + [with_fam="/usr"])
  58. +
  59. +if test x$with_fam != xno; then
  60. + CPPFLAGS="$CPPFLAGS -I $with_fam/include"
  61. + LDFLAGS="$LDFLAGS -L $with_fam/lib"
  62. + AC_CHECK_HEADERS(fam.h,
  63. + AC_SEARCH_LIBS([FAMOpen], [fam]),
  64. + AC_MSG_WARN([*** fam.h not found -- consider using --with-fam]))
  65. +fi
  66. # }}}
  67. # adns {{{
  68. -AC_ARG_WITH(adns,
  69. - [ --with-adns=<path> prefix of adns installation (eg /usr/local)],
  70. - [
  71. - CPPFLAGS="$CPPFLAGS -I $withval/include"
  72. - LDFLAGS="$LDFLAGS -L $withval/lib"
  73. - ]
  74. -)
  75. -
  76. -AC_CHECK_HEADERS(adns.h,
  77. - AC_SEARCH_LIBS([adns_submit], [adns]) ,
  78. - AC_MSG_WARN([*** adns.h not found -- consider using --with-adns])
  79. -)
  80. +AC_ARG_WITH([adns],
  81. + [ --with-adns=<path> prefix of adns installation (eg /usr/local)],
  82. + [case "${withval}" in
  83. + yes) with_adns="/usr";;
  84. + no) with_adns="no";;
  85. + *) with_adns="/usr";;
  86. + esac],
  87. + [with_adns="/usr"])
  88. +
  89. +if test x$with_adns != xno; then
  90. + CPPFLAGS="$CPPFLAGS -I $with_adns/include"
  91. + LDFLAGS="$LDFLAGS -L $with_adns/lib"
  92. + AC_CHECK_HEADERS(adns.h,
  93. + AC_SEARCH_LIBS([adns_submit], [adns]),
  94. + AC_MSG_WARN([*** adns.h not found -- consider using --with-adns]))
  95. +fi
  96. # }}}
  97. # --with-logfile {{{