]> granicus.if.org Git - apache/commitdiff
NetWare build fixes.
authorGuenter Knauf <fuankg@apache.org>
Tue, 6 Dec 2011 14:18:01 +0000 (14:18 +0000)
committerGuenter Knauf <fuankg@apache.org>
Tue, 6 Dec 2011 14:18:01 +0000 (14:18 +0000)
Create mod_cache.imp dynamically; fixed mod_cache_disk NLM name.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1210926 13f79535-47bb-0310-9956-ffa450edef68

build/NWGNUmakefile
build/make_nw_export.awk
modules/cache/NWGNUcach_dsk
modules/cache/mod_cache.imp

index 8e588aeae733aeea4854b4df0e6b0a07d6670c1d..a230bfa3ecac78919746c742b52db395629afeb1 100644 (file)
@@ -23,7 +23,7 @@ FILES_prebuild_headers = \
        $(PCRE)/pcre.h \
        $(EOLIST) 
     
-nlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp
+nlms :: libs $(NWOS)/httpd.imp $(DAV)/main/dav.imp $(STDMOD)/cache/mod_cache.imp
 
 libs :: chkapr $(NWOS)/chartables.c
 
@@ -31,6 +31,10 @@ $(DAV)/main/dav.imp : make_nw_export.awk $(DAV)/main/mod_dav.h
        @echo $(DL)GEN  $@$(DL)
        $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
 
+$(STDMOD)/cache/mod_cache.imp: make_nw_export.awk $(STDMOD)/cache/mod_cache.h $(STDMOD)/cache/cache_util.h
+       @echo $(DL)GEN  $@$(DL)
+       $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
+
 $(NWOS)/httpd.imp : make_nw_export.awk nw_export.i
        @echo $(DL)GEN  $@$(DL)
        $(AWK) -v EXPPREFIX=AP$(VERSION_MAJMIN) -f $^ >$@
@@ -114,6 +118,7 @@ clean ::
        $(call DEL,$(SRC)/include/ap_config_layout.h)
        $(call DEL,$(PCRE)/config.h)
        $(call DEL,$(PCRE)/pcre.h)
+       $(call DEL,$(STDMOD)/cache/mod_cache.imp)
        $(call DEL,$(DAV)/main/dav.imp)
        $(call DEL,$(NWOS)/httpd.imp)
        $(call DEL,nw_export.i)
index da2765d4a7554b49fb5e0d08d236a0fd4ed62654..9334c5d510db5f7b7042a1c1a431dea155ff2630 100644 (file)
@@ -29,8 +29,8 @@ function add_symbol(sym_name) {
 #/ap_some_name/{next}
 /ap_mpm_pod_/{next}
 
-/^[ \t]*(AP|DAV)([RU]|REQ|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
-    sub("[ \t]*(AP|DAV)([RU]|REQ|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
+/^[ \t]*(AP|DAV|CACHE)([RU]|REQ|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
+    sub("[ \t]*(AP|DAV|CACHE)([RU]|REQ|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
     sub("[(].*", "")
     sub("([^ ]* (^([ \t]*[(])))+", "")
     add_symbol($0)
index be925da171e2b95f7d18d52bd5d98a286a49c068..1c45f344f0a1b2888677dceba671c6574ecf1b72 100644 (file)
@@ -99,7 +99,7 @@ endif
 # This is used by the link 'name' directive to name the nlm.  If left blank
 # TARGET_nlm (see below) will be used.
 #
-NLM_NAME       = dsk_cach
+NLM_NAME       = cach_dsk
 
 #
 # This is used by the link '-desc ' directive.
@@ -111,7 +111,7 @@ NLM_DESCRIPTION     = Apache $(VERSION_STR) Memory Cache Sub-Module
 # This is used by the '-threadname' directive.  If left blank,
 # NLM_NAME Thread will be used.
 #
-NLM_THREAD_NAME        = dsk_cach
+NLM_THREAD_NAME        = $(NLM_NAME)
 
 #
 # If this is specified, it will override VERSION value in
@@ -160,7 +160,7 @@ XDCDATA             =
 # If there is an NLM target, put it here
 #
 TARGET_nlm = \
-       $(OBJDIR)/dsk_cach.nlm \
+       $(OBJDIR)/$(NLM_NAME).nlm \
        $(EOLIST)
 
 #
index 71a285c2f05ac0f885ce279a853ca979f9618a15..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,12 +0,0 @@
- (MODCACHE)
- ap_cache_check_allowed,
- ap_cache_current_age,
- ap_cache_liststr,
- ap_cache_tokstr,
- ap_cache_hex2usec,
- ap_cache_usec2hex,
- ap_cache_generate_name,
- ap_cache_cacheable_headers,
- ap_cache_cacheable_headers_in,
- ap_cache_cacheable_headers_out
-