]> granicus.if.org Git - apache/blob - build/build-modules-c.awk
OS specific patches for IBM's OS/390.
[apache] / build / build-modules-c.awk
1 BEGIN {
2     RS = " "
3     modules[n++] = "core"
4     pmodules[pn++] = "core"
5
6 { modules[n++] = $1 ; pmodules[pn++] = $1 } 
7 END {
8     print "/*"
9     print " * modules.c --- automatically generated by Apache"
10     print " * configuration script.  DO NOT HAND EDIT!!!!!"
11     print " */"
12     print ""
13     print "#include \"httpd.h\""
14     print "#include \"http_config.h\""
15     print ""
16     for (i = 0; i < pn; ++i) {
17         printf ("extern module %s_module;\n", pmodules[i])
18     }
19     print ""
20     print "/*"
21     print " *  Modules which implicitly form the"
22     print " *  list of activated modules on startup,"
23     print " *  i.e. these are the modules which are"
24     print " *  initially linked into the Apache processing"
25     print " *  [extendable under run-time via AddModule]"
26     print " */"
27     print "module *ap_prelinked_modules[] = {"
28     for (i = 0; i < n; ++i) {
29         printf "  &%s_module,\n", modules[i]
30     }
31     print "  NULL"
32     print "};"
33     print ""
34     print "/*"
35     print " *  Modules which initially form the"
36     print " *  list of available modules on startup,"
37     print " *  i.e. these are the modules which are"
38     print " *  initially loaded into the Apache process"
39     print " *  [extendable under run-time via LoadModule]"
40     print " */"
41     print "module *ap_preloaded_modules[] = {"
42     for (i = 0; i < pn; ++i) {
43         printf "  &%s_module,\n", pmodules[i]
44     }
45     print "  NULL"
46     print "};"
47     print ""
48 }