tomcat4-adapter.patch 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --- webapp/configure.in.dist Tue Jan 14 15:35:38 2003
  2. +++ webapp/configure.in Tue Jan 14 16:58:25 2003
  3. @@ -149,82 +149,9 @@
  4. if test "${APXS_VERSION}" = "1.3" ; then
  5. dnl ----------------------------------------------------------------------
  6. - dnl APXS version 1.3, meaning Apache 1.3. We _require_ APR sources
  7. - dnl ----------------------------------------------------------------------
  8. - WA_HEADER([Apache 1.3 module compilation (APR checks)])
  9. -
  10. - dnl ----------------------------------------------------------------------
  11. - dnl Check where the APR sources are and issue "configure"
  12. - dnl ----------------------------------------------------------------------
  13. - WA_APR([APR_DIR])
  14. - tempret="0"
  15. - tempval="--enable-static --disable-shared --disable-threads"
  16. - tempval="${tempval} --libdir=${TGT_DIR}/objects"
  17. - WA_EXEC(
  18. - [tempret],
  19. - [./configure ${tempval}],
  20. - [apr],
  21. - [${APR_DIR}])
  22. - AC_MSG_CHECKING([for proper command execution])
  23. - if test "${tempret}" = "0" ; then
  24. - AC_MSG_RESULT([ok (${tempret})])
  25. - else
  26. - WA_ERROR([command returned with ${tempret}])
  27. - fi
  28. - unset tempret
  29. - unset tempval
  30. -
  31. - dnl ----------------------------------------------------------------------
  32. - dnl Retrieve APR variables
  33. - dnl ----------------------------------------------------------------------
  34. - WA_APR_GET([CC],[${APR_DIR}],[CC])
  35. - WA_APR_GET([CPP],[${APR_DIR}],[CPP])
  36. - WA_APR_GET([SHELL],[${APR_DIR}],[SHELL])
  37. -
  38. - WA_APR_GET([CFLAGS],[${APR_DIR}],[CFLAGS])
  39. - WA_APR_GET([CPPFLAGS],[${APR_DIR}],[CPPFLAGS])
  40. - WA_APR_GET([LDFLAGS],[${APR_DIR}],[LDFLAGS])
  41. -
  42. - WA_APR_GET([LDFLAGS],[${APR_DIR}],[LIBS])
  43. - WA_APR_GET([CPPFLAGS],[${APR_DIR}],[EXTRA_INCLUDES])
  44. -
  45. - WA_APR_LIB([APR_LIB],[${APR_DIR}])
  46. - WA_APR_LIBNAME([APR_LIBNAME],[${APR_DIR}])
  47. -
  48. - AC_MSG_CHECKING([for apr headers])
  49. - WA_APPEND([INCLUDES],[-I${APR_DIR}/include])
  50. - AC_MSG_RESULT([-I${APR_DIR}/include])
  51. -
  52. - AC_MSG_CHECKING([for apr libtool])
  53. - LIBTOOL="${SHELL} ${APR_DIR}/libtool --silent"
  54. - AC_MSG_RESULT([${LIBTOOL}])
  55. -
  56. - dnl ----------------------------------------------------------------------
  57. - dnl Done with APR, let's see what APXS says
  58. - dnl ----------------------------------------------------------------------
  59. - WA_HEADER([Apache 1.3 module compilation (APXS checks)])
  60. -
  61. - dnl ----------------------------------------------------------------------
  62. - dnl Do a check on the C compiler to see if apxs reports the same one
  63. - dnl ----------------------------------------------------------------------
  64. - WA_APXS_GET([tempval],[${APXS}],[CC])
  65. - AC_MSG_CHECKING([for compiler coherency])
  66. - if test "${tempval}" != "${CC}" ; then
  67. - AC_MSG_RESULT([error])
  68. - AC_MSG_RESULT([compiler discovered by apr: ${CC}])
  69. - AC_MSG_RESULT([compiler used by apache apxs: ${tempval}])
  70. - AC_MSG_ERROR([the apache apxs and apr compilers must be the same])
  71. - exit 1
  72. - fi
  73. - AC_MSG_RESULT([ok (${CC})])
  74. - unset tempval
  75. -
  76. - dnl ----------------------------------------------------------------------
  77. dnl Apache 1.3 configuration complete
  78. dnl ----------------------------------------------------------------------
  79. MODULE="apache-1.3"
  80. - WA_APPEND([EXTRA_BUILD],[apr-build])
  81. - WA_APPEND([EXTRA_CLEAN],[apr-clean])
  82. WA_APXS_GET([tempval],[${APXS}],[INCLUDEDIR])
  83. WA_PATH_DIR([tempdir],[${tempval}],[apache 1.3 headers])
  84. @@ -236,6 +163,15 @@
  85. WA_APXS_GET([EXTRA_LDFLAGS],[${APXS}],[LIBS_SHLIB])
  86. WA_APXS_GET([EXTRA_LDFLAGS],[${APXS}],[LDFLAGS_SHLIB])
  87. + WA_APXS_GET([CC],[${APXS}],[CC])
  88. +
  89. + WA_APPEND([CFLAGS],"-I$prefix/include/apr")
  90. + WA_APPEND([LDFLAGS],"-I$prefix/lib")
  91. +
  92. + APR_LIB=apr
  93. + CPP=$prefix/bin/cc -E
  94. + SHELL=/bin/sh
  95. + LIBTOOL=$prefix/bin/libtool --tag C
  96. else
  97. dnl ----------------------------------------------------------------------
  98. --- webapp/apache-1.3/Makefile.in.dist 2003-07-09 11:06:30.000000000 +0200
  99. +++ webapp/apache-1.3/Makefile.in 2003-07-09 11:06:38.000000000 +0200
  100. @@ -86,7 +86,7 @@
  101. -Wc,"$(CPPFLAGS) $(CFLAGS)" \
  102. -Wl,"$(LDFLAGS) $(LIBS)" \
  103. -L$(LIB_DIR) -l$(APR_LIB) \
  104. - $(OBJ_DIR)/*.o $<
  105. + $(OBJ_DIR)/*.lo $<
  106. # +++ EXPERIMENTAL +++ LIBTOOL COMPILE, APXS LINK +++
  107. # SOURCE = mod_webapp.c