summaryrefslogtreecommitdiffstats
path: root/build/build-modules-c.awk
diff options
context:
space:
mode:
Diffstat (limited to 'build/build-modules-c.awk')
-rw-r--r--build/build-modules-c.awk12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/build-modules-c.awk b/build/build-modules-c.awk
index 27ebbde1e6..fda31c2860 100644
--- a/build/build-modules-c.awk
+++ b/build/build-modules-c.awk
@@ -32,6 +32,7 @@ END {
print ""
print "#include \"ap_config.h\""
print "#include \"httpd.h\""
+ print "#define CORE_PRIVATE"
print "#include \"http_config.h\""
print ""
for (i = 0; i < pn; ++i) {
@@ -53,6 +54,17 @@ END {
print "};"
print ""
print "/*"
+ print " * We need the symbols as strings for <IfModule> containers"
+ print " */"
+ print ""
+ print "ap_module_symbol_t ap_prelinked_module_symbols[] = {"
+ for (i = 0; i < n; ++i) {
+ printf (" {\"%s_module\", &%s_module},\n", modules[i], modules[i])
+ }
+ print " {NULL, NULL}"
+ print "};"
+ print ""
+ print "/*"
print " * Modules which initially form the"
print " * list of available modules on startup,"
print " * i.e. these are the modules which are"