diff options
-rw-r--r-- | Makefile.in | 170 | ||||
-rw-r--r-- | configure.ac | 24 | ||||
-rw-r--r-- | contrib/Makefile.in | 53 | ||||
-rw-r--r-- | docs/Makefile.in | 24 | ||||
-rwxr-xr-x | gen_todo.pl | 64 | ||||
-rw-r--r-- | include/apache13.h (renamed from apache13.h) | 2 | ||||
-rw-r--r-- | include/apache20.h (renamed from apache20.h) | 2 | ||||
-rw-r--r-- | include/mod_log_sql.h (renamed from mod_log_sql.h) | 0 | ||||
-rw-r--r-- | include/winconfig.h (renamed from winconfig.h) | 0 | ||||
-rw-r--r-- | src/Makefile.in | 165 | ||||
-rw-r--r-- | src/functions.h (renamed from functions.h) | 0 | ||||
-rw-r--r-- | src/functions13.h (renamed from functions13.h) | 0 | ||||
-rw-r--r-- | src/functions20.h (renamed from functions20.h) | 0 | ||||
-rw-r--r-- | src/mod_log_sql.c (renamed from mod_log_sql.c) | 0 | ||||
-rw-r--r-- | src/mod_log_sql_dbd.c (renamed from mod_log_sql_dbd.c) | 0 | ||||
-rw-r--r-- | src/mod_log_sql_dbi.c (renamed from mod_log_sql_dbi.c) | 0 | ||||
-rw-r--r-- | src/mod_log_sql_logio.c (renamed from mod_log_sql_logio.c) | 0 | ||||
-rw-r--r-- | src/mod_log_sql_mysql.c (renamed from mod_log_sql_mysql.c) | 0 | ||||
-rw-r--r-- | src/mod_log_sql_pgsql.c (renamed from mod_log_sql_pgsql.c) | 0 | ||||
-rw-r--r-- | src/mod_log_sql_ssl.c (renamed from mod_log_sql_ssl.c) | 0 |
20 files changed, 196 insertions, 308 deletions
diff --git a/Makefile.in b/Makefile.in index 2647d2e..fb4ea42 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,108 +1,17 @@ | |||
1 | # @configure_input@ | 1 | # @configure_input@ |
2 | 2 | ||
3 | # Modify these top variables. | 3 | # Modify these top variables. |
4 | SUBDIRS = docs contrib | 4 | SUBDIRS = docs contrib src |
5 | |||
6 | HEADERS = mod_log_sql.h \ | ||
7 | functions.h \ | ||
8 | functions13.h \ | ||
9 | functions20.h \ | ||
10 | apache13.h \ | ||
11 | apache20.h \ | ||
12 | winconfig.h | ||
13 | |||
14 | CFLAGS = -Wc,-Wall -Wc,-fno-strict-aliasing | ||
15 | |||
16 | ifeq (@OOO_MAINTAIN@,1) | ||
17 | CFLAGS += -Wc,-Werror | ||
18 | endif | ||
19 | 5 | ||
20 | EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG \ | 6 | EXTRA_DIST = AUTHORS INSTALL TODO LICENSE CHANGELOG \ |
21 | build-apache13.bat build-apache2.bat \ | 7 | build-apache13.bat build-apache2.bat \ |
22 | 8 | ||
23 | coreSOURCES = @PACKAGE_NAME@.c | ||
24 | coreTARGET = @PACKAGE_NAME@@APXS_EXTENSION@ | ||
25 | coreLDADD = @RT_LIBS@ | ||
26 | coreCFLAGS = | ||
27 | coreNAME = log_sql | ||
28 | TARGETS = $(coreTARGET) | ||
29 | |||
30 | sslSOURCES = @PACKAGE_NAME@_ssl.c | ||
31 | sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@ | ||
32 | sslLDADD = | ||
33 | sslCFLAGS = @MOD_SSL_CFLAGS@ | ||
34 | sslNAME = log_sql_ssl | ||
35 | |||
36 | ifeq (@WANT_SSL_MOD@,1) | ||
37 | TARGETS += $(sslTARGET) | ||
38 | endif | ||
39 | |||
40 | logioSOURCES = @PACKAGE_NAME@_logio.c | ||
41 | logioTARGET = @PACKAGE_NAME@_logio@APXS_EXTENSION@ | ||
42 | logioLDADD = | ||
43 | logioCFLAGS = | ||
44 | logioNAME = log_sql_logio | ||
45 | |||
46 | ifeq (@WANT_LOGIO_MOD@,1) | ||
47 | TARGETS += $(logioTARGET) | ||
48 | endif | ||
49 | |||
50 | mysqlSOURCES = @PACKAGE_NAME@_mysql.c | ||
51 | mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@ | ||
52 | mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@ | ||
53 | mysqlCFLAGS = @MYSQL_CFLAGS@ | ||
54 | mysqlNAME = log_sql_mysql | ||
55 | |||
56 | ifeq (@WANT_MYSQL_MOD@,1) | ||
57 | TARGETS += $(mysqlTARGET) | ||
58 | endif | ||
59 | |||
60 | pgsqlSOURCES = @PACKAGE_NAME@_pgsql.c | ||
61 | pgsqlTARGET = @PACKAGE_NAME@_pgsql@APXS_EXTENSION@ | ||
62 | pgsqlLDADD = @PGSQL_LDFLAGS@ @PGSQL_LIBS@ | ||
63 | pgsqlCFLAGS = @PGSQL_CFLAGS@ | ||
64 | pgsqlNAME = log_sql_pgsql | ||
65 | |||
66 | ifeq (@WANT_PGSQL_MOD@,1) | ||
67 | TARGETS += $(pgsqlTARGET) | ||
68 | endif | ||
69 | |||
70 | dbiSOURCES = @PACKAGE_NAME@_dbi.c | ||
71 | dbiTARGET = @PACKAGE_NAME@_dbi@APXS_EXTENSION@ | ||
72 | dbiLDADD = @DBI_LDFLAGS@ @DBI_LIBS@ | ||
73 | dbiCFLAGS = @DBI_CFLAGS@ | ||
74 | dbiNAME = log_sql_dbi | ||
75 | |||
76 | ifeq (@WANT_DBI_MOD@,1) | ||
77 | TARGETS += $(dbiTARGET) | ||
78 | endif | ||
79 | |||
80 | dbdSOURCES = @PACKAGE_NAME@_dbd.c | ||
81 | dbdTARGET = @PACKAGE_NAME@_dbd@APXS_EXTENSION@ | ||
82 | dbdLDADD = | ||
83 | dbdCFLAGS = | ||
84 | dbdNAME = log_sql_dbd | ||
85 | |||
86 | ifeq (@WANT_DBD_MOD@,1) | ||
87 | TARGETS += $(dbdTARGET) | ||
88 | endif | ||
89 | |||
90 | #Don't modify anything below here | 9 | #Don't modify anything below here |
91 | 10 | ||
92 | PROVIDERS_SUBDIRS = @subdirs@ | 11 | top_srcdir = @top_srcdir@ |
93 | |||
94 | srcdir = @abs_srcdir@ | 12 | srcdir = @abs_srcdir@ |
95 | builddir = @abs_builddir@ | 13 | builddir = @abs_builddir@ |
96 | 14 | ||
97 | OBJ = $(coreSOURCES:.c=.o) $(logioSOURCES:.c=.o) $(sslSOURCES:.c=.o) $(mysqlSOURCES:.c=.o) \ | ||
98 | $(dbiSOURCES:.c=.o) $(pgsqlSOURCES:.c=.o) $(dbdSOURCES:.c=.o) | ||
99 | |||
100 | LO = $(coreSOURCES:.c=.lo) $(logioSOURCES:.c=.lo) $(sslSOURCES:.c=.lo) $(mysqlSOURCES:.c=.lo) \ | ||
101 | $(dbiSOURCES:.c=.lo) $(pgsqlSOURCES:.c=.lo) $(dbdSOURCES:.c=.lo) | ||
102 | |||
103 | SLO = $(coreSOURCES:.c=.slo) $(logioSOURCES:.c=.slo) $(sslSOURCES:.c=.slo) $(mysqlSOURCES:.c=.slo) \ | ||
104 | $(dbiSOURCES:.c=.slo) $(pgsqlSOURCES:.c=.slo) $(dbdSOURCES:.c=.slo) | ||
105 | |||
106 | STD_DIST = install-sh \ | 15 | STD_DIST = install-sh \ |
107 | config.sub \ | 16 | config.sub \ |
108 | config.guess \ | 17 | config.guess \ |
@@ -111,16 +20,15 @@ STD_DIST = install-sh \ | |||
111 | configure.ac \ | 20 | configure.ac \ |
112 | configure \ | 21 | configure \ |
113 | stamp-h.in \ | 22 | stamp-h.in \ |
114 | config.h.in | 23 | include/config.h.in |
115 | 24 | ||
116 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(coreSOURCES) $(HEADERS) \ | 25 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) |
117 | $(sslSOURCES) $(logioSOURCES) $(mysqlSOURCES) $(pgsqlSOURCES) $(dbiSOURCES) $(dbdSOURCES) | ||
118 | 26 | ||
119 | all: $(TARGETS) all-subdirs | 27 | all: all-subdirs |
120 | 28 | ||
121 | all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs: | 29 | all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs: |
122 | @otarget=`echo $@|sed s/-subdirs//`; \ | 30 | @otarget=`echo $@|sed s/-subdirs//`; \ |
123 | list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \ | 31 | list=' $(SUBDIRS)'; \ |
124 | for i in $$list; do \ | 32 | for i in $$list; do \ |
125 | if test -d "$$i"; then \ | 33 | if test -d "$$i"; then \ |
126 | target="$$otarget"; \ | 34 | target="$$otarget"; \ |
@@ -134,57 +42,9 @@ all-subdirs install-subdirs activate-subdirs clean-subdirs distclean-subdirs: | |||
134 | done; | 42 | done; |
135 | 43 | ||
136 | TODO: TODO.in | 44 | TODO: TODO.in |
137 | @./gen_todo.pl | 45 | @./m4/scripts/gen_todo.pl |
138 | |||
139 | $(coreTARGET): $(coreSOURCES) $(HEADERS) | ||
140 | @@APXS_BIN@ -c -o $(coreTARGET) $(coreCFLAGS) $(CFLAGS) \ | ||
141 | @DEFS@ @AP_DEFS@ $(coreLDADD) $(coreSOURCES) | ||
142 | |||
143 | $(logioTARGET): $(logioSOURCES) $(HEADERS) | ||
144 | @@APXS_BIN@ -c -o $(logioTARGET) $(logioCFLAGS) $(CFLAGS) \ | ||
145 | @DEFS@ @AP_DEFS@ $(logioLDADD) $(logioSOURCES) | ||
146 | 46 | ||
147 | $(sslTARGET): $(sslSOURCES) $(HEADERS) | 47 | install: install-subdirs |
148 | @@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \ | ||
149 | @DEFS@ @AP_DEFS@ $(sslLDADD) $(sslSOURCES) | ||
150 | |||
151 | $(mysqlTARGET): $(mysqlSOURCES) $(HEADERS) | ||
152 | @@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \ | ||
153 | @DEFS@ @AP_DEFS@ $(mysqlLDADD) $(mysqlSOURCES) | ||
154 | |||
155 | $(pgsqlTARGET): $(pgsqlSOURCES) $(HEADERS) | ||
156 | @@APXS_BIN@ -c -o $(pgsqlTARGET) $(pgsqlCFLAGS) $(CFLAGS) \ | ||
157 | @DEFS@ @AP_DEFS@ $(pgsqlLDADD) $(pgsqlSOURCES) | ||
158 | |||
159 | $(dbiTARGET): $(dbiSOURCES) $(HEADERS) | ||
160 | @@APXS_BIN@ -c -o $(dbiTARGET) $(dbiCFLAGS) $(CFLAGS) \ | ||
161 | @DEFS@ @AP_DEFS@ $(dbiLDADD) $(dbiSOURCES) | ||
162 | |||
163 | $(dbdTARGET): $(dbdSOURCES) $(HEADERS) | ||
164 | @@APXS_BIN@ -c -o $(dbdTARGET) $(dbdCFLAGS) $(CFLAGS) \ | ||
165 | @DEFS@ @AP_DEFS@ $(dbdLDADD) $(dbdSOURCES) | ||
166 | |||
167 | |||
168 | install: $(TARGETS) install-subdirs | ||
169 | @@APXS_BIN@ -n $(coreNAME) -i $(coreTARGET); \ | ||
170 | if test @WANT_MYSQL_MOD@ -eq 1; then \ | ||
171 | @APXS_BIN@ -n $(mysqlNAME) -i $(mysqlTARGET); \ | ||
172 | fi; \ | ||
173 | if test @WANT_PGSQL_MOD@ -eq 1; then \ | ||
174 | @APXS_BIN@ -n $(pgsqlNAME) -i $(pgsqlTARGET); \ | ||
175 | fi; \ | ||
176 | if test @WANT_DBI_MOD@ -eq 1; then \ | ||
177 | @APXS_BIN@ -n $(dbiNAME) -i $(dbiTARGET); \ | ||
178 | fi; \ | ||
179 | if test @WANT_DBD_MOD@ -eq 1; then \ | ||
180 | @APXS_BIN@ -n $(dbdNAME) -i $(dbdTARGET); \ | ||
181 | fi; \ | ||
182 | if test @WANT_SSL_MOD@ -eq 1; then \ | ||
183 | @APXS_BIN@ -n $(sslNAME) -i $(sslTARGET); \ | ||
184 | fi; \ | ||
185 | if test @WANT_LOGIO_MOD@ -eq 1; then \ | ||
186 | @APXS_BIN@ -n $(logioNAME) -i $(logioTARGET); \ | ||
187 | fi; \ | ||
188 | echo "*************************************************************************"; \ | 48 | echo "*************************************************************************"; \ |
189 | echo "*** The mod_log_sql modules have been installed."; \ | 49 | echo "*** The mod_log_sql modules have been installed."; \ |
190 | echo "*** Please edit your Apache configuration files and"; \ | 50 | echo "*** Please edit your Apache configuration files and"; \ |
@@ -201,17 +61,11 @@ install: $(TARGETS) install-subdirs | |||
201 | echo "*************************************************************************"; | 61 | echo "*************************************************************************"; |
202 | 62 | ||
203 | activate: activate-subdirs | 63 | activate: activate-subdirs |
204 | @@APXS_BIN@ -n $(coreNAME) -i -a $(coreTARGET); \ | ||
205 | if test @WANT_SSL_MOD@ -eq 1; then \ | ||
206 | @APXS_BIN@ -n $(sslNAME) -i -a $(sslTARGET); \ | ||
207 | fi | ||
208 | 64 | ||
209 | clean: clean-subdirs | 65 | clean: clean-subdirs |
210 | $(RM) $(OBJ) $(SLO) $(LO) $(TARGETS) | ||
211 | $(RM) -r .libs | ||
212 | 66 | ||
213 | distclean: clean distclean-subdirs | 67 | distclean: clean distclean-subdirs |
214 | $(RM) config.status config.log config.h config.h.in \ | 68 | $(RM) config.status config.log include/config.h include/config.h.in \ |
215 | configure stamp-h stamp-h.in Makefile aclocal.m4 | 69 | configure stamp-h stamp-h.in Makefile aclocal.m4 |
216 | $(RM) -r autom4te-2.53.cache | 70 | $(RM) -r autom4te-2.53.cache |
217 | 71 | ||
@@ -219,7 +73,7 @@ DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@ | |||
219 | DESTTGZ = $(DESTDIR).tar.gz | 73 | DESTTGZ = $(DESTDIR).tar.gz |
220 | dist: | 74 | dist: |
221 | @rm -rf $(DESTDIR); \ | 75 | @rm -rf $(DESTDIR); \ |
222 | list=' $(PROVIDERS_SUBDIRS) $(SUBDIRS)'; \ | 76 | list=' $(SUBDIRS)'; \ |
223 | for i in $$list; do \ | 77 | for i in $$list; do \ |
224 | if test -d "$$i"; then \ | 78 | if test -d "$$i"; then \ |
225 | target=local-dist; \ | 79 | target=local-dist; \ |
@@ -240,8 +94,8 @@ dist: | |||
240 | rm -rf $(DESTDIR); \ | 94 | rm -rf $(DESTDIR); \ |
241 | 95 | ||
242 | local-dist: $(DISTFILES) | 96 | local-dist: $(DISTFILES) |
243 | @mkdir -p $(DESTDIR); \ | 97 | mkdir -p $(DESTDIR) |
244 | cp -dp --parents $(DISTFILES) $(DESTDIR); | 98 | cp -dp --parents $(DISTFILES) $(DESTDIR) |
245 | 99 | ||
246 | .PHONY: include all-subdirs activate-subdirs install-subdirs \ | 100 | .PHONY: include all-subdirs activate-subdirs install-subdirs \ |
247 | clean-subdirs distclean-subdirs dist | 101 | clean-subdirs distclean-subdirs dist |
diff --git a/configure.ac b/configure.ac index 55de120..07ac486 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,9 +1,9 @@ | |||
1 | dnl Required initializer | 1 | dnl Required initializer |
2 | AC_INIT(mod_log_sql, 1.102) | 2 | AC_INIT([mod_log_sql],[1.102]) |
3 | OOO_CONFIG_NICE(config.nice) | 3 | OOO_CONFIG_NICE(config.nice) |
4 | AC_PREREQ(2.53) | 4 | AC_PREREQ(2.59) |
5 | AC_CONFIG_HEADERS(config.h) | 5 | AC_CONFIG_HEADERS(include/config.h) |
6 | AC_CONFIG_SRCDIR(mod_log_sql.c) | 6 | AC_CONFIG_SRCDIR(src/mod_log_sql.c) |
7 | 7 | ||
8 | OOO_MAINTAIN_MODE | 8 | OOO_MAINTAIN_MODE |
9 | 9 | ||
@@ -18,7 +18,7 @@ CHECK_APACHE($APACHE13_VERSION,$APACHE20_VERSION, | |||
18 | :, | 18 | :, |
19 | AC_MSG_ERROR([*** The correct version Apache was not found!]) | 19 | AC_MSG_ERROR([*** The correct version Apache was not found!]) |
20 | AC_MSG_ERROR([*** You need either Apache 1.3 version $APACHE13_VERSION or greater]) | 20 | AC_MSG_ERROR([*** You need either Apache 1.3 version $APACHE13_VERSION or greater]) |
21 | AC_MSG_ERROR([*** or Apache 2.0/2.1 version $APACHE20_VERSION or greater!]) | 21 | AC_MSG_ERROR([*** or Apache 2.0/2.2 version $APACHE20_VERSION or greater!]) |
22 | ) | 22 | ) |
23 | 23 | ||
24 | if test $AP_VERSION = "2.0"; then | 24 | if test $AP_VERSION = "2.0"; then |
@@ -29,11 +29,9 @@ fi | |||
29 | 29 | ||
30 | AC_SUBST(WANT_LOGIO_MOD) | 30 | AC_SUBST(WANT_LOGIO_MOD) |
31 | 31 | ||
32 | if test $AP_VERSION = "2.0"; then | 32 | CHECK_APU_HEADERS([apr_dbd.h], |
33 | WANT_DBD_MOD=1 | 33 | WANT_DBD_MOD=1, |
34 | else | 34 | WANT_DBD_MOD=0) |
35 | WANT_DBD_MOD=0 | ||
36 | fi | ||
37 | 35 | ||
38 | AC_SUBST(WANT_DBD_MOD) | 36 | AC_SUBST(WANT_DBD_MOD) |
39 | 37 | ||
@@ -84,9 +82,11 @@ AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h]) | |||
84 | 82 | ||
85 | dnl Write config.status and the Makefile | 83 | dnl Write config.status and the Makefile |
86 | 84 | ||
87 | AC_OUTPUT(Makefile | 85 | AC_CONFIG_FILES([Makefile |
86 | src/Makefile | ||
88 | docs/Makefile | 87 | docs/Makefile |
89 | contrib/Makefile) | 88 | contrib/Makefile]) |
89 | AC_OUTPUT | ||
90 | 90 | ||
91 | 91 | ||
92 | AC_MSG_RESULT([------------------------------------]) | 92 | AC_MSG_RESULT([------------------------------------]) |
diff --git a/contrib/Makefile.in b/contrib/Makefile.in index b384fd0..c2bd203 100644 --- a/contrib/Makefile.in +++ b/contrib/Makefile.in | |||
@@ -17,60 +17,17 @@ STD_DIST = Makefile.in | |||
17 | 17 | ||
18 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) | 18 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) |
19 | 19 | ||
20 | all: all-subdirs | 20 | all: |
21 | 21 | ||
22 | all-subdirs install-subdirs update-subdirs clean-subdirs distclean-subdirs: | 22 | install: |
23 | @otarget=`echo $@|sed s/-subdirs//`; \ | ||
24 | list=' $(SUBDIRS)'; \ | ||
25 | for i in $$list; do \ | ||
26 | if test -d "$$i"; then \ | ||
27 | target="$$otarget"; \ | ||
28 | echo "Making $$target in $$i"; \ | ||
29 | if test "$$i" = "."; then \ | ||
30 | made_local=yes; \ | ||
31 | target="local-$$target"; \ | ||
32 | fi; \ | ||
33 | (cd $$i && $(MAKE) $$target) || exit 1; \ | ||
34 | fi; \ | ||
35 | done; \ | ||
36 | 23 | ||
37 | include: | 24 | update: |
38 | rm -rf include | ||
39 | ln -s @APACHE_INCDIR@ include | ||
40 | 25 | ||
41 | install: install-subdirs | 26 | clean: |
42 | 27 | ||
43 | update: update-subdirs | 28 | distclean: clean |
44 | |||
45 | clean: clean-subdirs | ||
46 | |||
47 | distclean: clean distclean-subdirs | ||
48 | $(RM) Makefile | 29 | $(RM) Makefile |
49 | 30 | ||
50 | DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@ | ||
51 | DESTTGZ = $(DESTDIR).tar.gz | ||
52 | dist: | ||
53 | @rm -rf $(DESTDIR); \ | ||
54 | list=' $(SUBDIRS)'; \ | ||
55 | for i in $$list; do \ | ||
56 | if test -d "$$i"; then \ | ||
57 | target=local-dist; \ | ||
58 | echo "Making $$target in $$i"; \ | ||
59 | if test "$$i" = "."; then \ | ||
60 | made_local=yes; \ | ||
61 | target="local-dist"; \ | ||
62 | fi; \ | ||
63 | NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \ | ||
64 | echo $(NEWDESTDIR); \ | ||
65 | (cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \ | ||
66 | fi; \ | ||
67 | done; | ||
68 | if test "$$made_local" != "yes"; then \ | ||
69 | $(MAKE) "local-dist" || exit 1; \ | ||
70 | fi | ||
71 | tar -zcf $(DESTTGZ) $(DESTDIR) | ||
72 | rm -rf $(DESTDIR) | ||
73 | |||
74 | local-dist: $(DISTFILES) | 31 | local-dist: $(DISTFILES) |
75 | mkdir -p $(DESTDIR) | 32 | mkdir -p $(DESTDIR) |
76 | cp -dp --parents $(DISTFILES) $(DESTDIR) | 33 | cp -dp --parents $(DISTFILES) $(DESTDIR) |
diff --git a/docs/Makefile.in b/docs/Makefile.in index fa1bd2e..d88e72b 100644 --- a/docs/Makefile.in +++ b/docs/Makefile.in | |||
@@ -52,30 +52,6 @@ clean: clean-subdirs | |||
52 | distclean: clean distclean-subdirs | 52 | distclean: clean distclean-subdirs |
53 | $(RM) Makefile | 53 | $(RM) Makefile |
54 | 54 | ||
55 | DESTDIR = @PACKAGE_NAME@-@PACKAGE_VERSION@ | ||
56 | DESTTGZ = $(DESTDIR).tar.gz | ||
57 | dist: | ||
58 | @rm -rf $(DESTDIR); \ | ||
59 | list=' $(SUBDIRS)'; \ | ||
60 | for i in $$list; do \ | ||
61 | if test -d "$$i"; then \ | ||
62 | target=local-dist; \ | ||
63 | echo "Making $$target in $$i"; \ | ||
64 | if test "$$i" = "."; then \ | ||
65 | made_local=yes; \ | ||
66 | target="local-dist"; \ | ||
67 | fi; \ | ||
68 | NEWDESTDIR=$(builddir)/$(DESTDIR)/$$i; \ | ||
69 | echo $(NEWDESTDIR); \ | ||
70 | (cd $$i && $(MAKE) DESTDIR=$(builddir)/$(DESTDIR)/$$i $$target) || exit 1; \ | ||
71 | fi; \ | ||
72 | done; | ||
73 | if test "$$made_local" != "yes"; then \ | ||
74 | $(MAKE) "local-dist" || exit 1; \ | ||
75 | fi | ||
76 | tar -zcf $(DESTTGZ) $(DESTDIR) | ||
77 | rm -rf $(DESTDIR) | ||
78 | |||
79 | local-dist: $(DISTFILES) | 55 | local-dist: $(DISTFILES) |
80 | mkdir -p $(DESTDIR) | 56 | mkdir -p $(DESTDIR) |
81 | cp -dp --parents $(DISTFILES) $(DESTDIR) | 57 | cp -dp --parents $(DISTFILES) $(DESTDIR) |
diff --git a/gen_todo.pl b/gen_todo.pl deleted file mode 100755 index 20b0894..0000000 --- a/gen_todo.pl +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | # Copyright 2003-2004 Edward Rudd | ||
4 | # | ||
5 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
6 | # you may not use this file except in compliance with the License. | ||
7 | # You may obtain a copy of the License at | ||
8 | # | ||
9 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
10 | # | ||
11 | # Unless required by applicable law or agreed to in writing, software | ||
12 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
14 | # See the License for the specific language governing permissions and | ||
15 | # limitations under the License. | ||
16 | |||
17 | use strict; | ||
18 | my $rootdir = "."; | ||
19 | opendir(MYDIR, $rootdir) or die "Unable to open directory"; | ||
20 | print "Building TODO file for source directory\n"; | ||
21 | my $todo_header = "* Things TODO *\n\n"; | ||
22 | if (open ( TODOFILE, "TODO.in")) { | ||
23 | $todo_header = do { local $/; <TODOFILE> }; | ||
24 | close (TODOFILE); | ||
25 | } | ||
26 | open (TODOFILE, "> TODO"); | ||
27 | print TODOFILE $todo_header; | ||
28 | print "Parsing..."; | ||
29 | while (my $entry = readdir(MYDIR)) { | ||
30 | next if (!($entry =~ /\.[ch]$/)); | ||
31 | print "$entry..."; | ||
32 | open(DAFILE, $rootdir.'/'.$entry) or die "Unable to open file\n"; | ||
33 | my $linenumber = 0; | ||
34 | my $status = 0; # 0=no comment 1=comment 2=in todo block | ||
35 | while (my $line = <DAFILE>) { | ||
36 | $linenumber++; | ||
37 | if ($status==0) { | ||
38 | if ( ($line =~ /\/\/\s+TODO: (.*)/) || ($line =~ /\/\*\s+TODO: (.*)\s*\*\//) ){ | ||
39 | print TODOFILE $entry.":".$linenumber.": ".$1."\n"; | ||
40 | } else { | ||
41 | if ($line =~ /\/\*\*/) { | ||
42 | $status = 1; | ||
43 | } | ||
44 | } | ||
45 | } else { | ||
46 | if ($line =~ /\*\//) { | ||
47 | $status = 0; | ||
48 | } else { | ||
49 | if ($status==1) { | ||
50 | if ($line =~ /TODO:/) { | ||
51 | $status=2; | ||
52 | } | ||
53 | } else { | ||
54 | if ($line =~ /\* \s+-?\s*(.*)/) { | ||
55 | print TODOFILE $entry.":".$linenumber.": ".$1."\n"; | ||
56 | } | ||
57 | } | ||
58 | } | ||
59 | } | ||
60 | } | ||
61 | close(DAFILE); | ||
62 | } | ||
63 | print "\n"; | ||
64 | closedir(MYDIR); | ||
diff --git a/apache13.h b/include/apache13.h index 8174263..5659420 100644 --- a/apache13.h +++ b/include/apache13.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id$ */ | 1 | /* $Id: apache13.h 175 2007-10-20 13:18:20Z urkle@drip.ws $ */ |
2 | #ifndef APACHE13_H | 2 | #ifndef APACHE13_H |
3 | #define APACHE13_H | 3 | #define APACHE13_H |
4 | 4 | ||
diff --git a/apache20.h b/include/apache20.h index 9d87588..4c755ab 100644 --- a/apache20.h +++ b/include/apache20.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id$ */ | 1 | /* $Id: apache20.h 125 2004-04-29 18:05:25Z urkle@drip.ws $ */ |
2 | #ifndef APACHE20_H | 2 | #ifndef APACHE20_H |
3 | #define APACHE20_H | 3 | #define APACHE20_H |
4 | 4 | ||
diff --git a/mod_log_sql.h b/include/mod_log_sql.h index c1d9bff..c1d9bff 100644 --- a/mod_log_sql.h +++ b/include/mod_log_sql.h | |||
diff --git a/winconfig.h b/include/winconfig.h index 702c35f..702c35f 100644 --- a/winconfig.h +++ b/include/winconfig.h | |||
diff --git a/src/Makefile.in b/src/Makefile.in new file mode 100644 index 0000000..558b621 --- /dev/null +++ b/src/Makefile.in | |||
@@ -0,0 +1,165 @@ | |||
1 | # @configure_input@ | ||
2 | |||
3 | top_srcdir = @top_srcdir@ | ||
4 | srcdir = @abs_srcdir@ | ||
5 | builddir = @abs_builddir@ | ||
6 | |||
7 | HEADERS = ../include/mod_log_sql.h \ | ||
8 | functions.h \ | ||
9 | functions13.h \ | ||
10 | functions20.h \ | ||
11 | ../include/apache13.h \ | ||
12 | ../include/apache20.h \ | ||
13 | ../include/winconfig.h | ||
14 | |||
15 | CFLAGS = -Wc,-Wall -Wc,-fno-strict-aliasing -I$(top_srcdir)/include | ||
16 | |||
17 | ifeq (@OOO_MAINTAIN@,1) | ||
18 | CFLAGS += -Wc,-Werror | ||
19 | endif | ||
20 | |||
21 | coreSOURCES = @PACKAGE_NAME@.c | ||
22 | coreTARGET = @PACKAGE_NAME@@APXS_EXTENSION@ | ||
23 | coreLDADD = @RT_LIBS@ | ||
24 | coreCFLAGS = | ||
25 | coreNAME = log_sql | ||
26 | TARGETS = $(coreTARGET) | ||
27 | |||
28 | sslSOURCES = @PACKAGE_NAME@_ssl.c | ||
29 | sslTARGET = @PACKAGE_NAME@_ssl@APXS_EXTENSION@ | ||
30 | sslLDADD = | ||
31 | sslCFLAGS = @MOD_SSL_CFLAGS@ | ||
32 | sslNAME = log_sql_ssl | ||
33 | |||
34 | ifeq (@WANT_SSL_MOD@,1) | ||
35 | TARGETS += $(sslTARGET) | ||
36 | endif | ||
37 | |||
38 | logioSOURCES = @PACKAGE_NAME@_logio.c | ||
39 | logioTARGET = @PACKAGE_NAME@_logio@APXS_EXTENSION@ | ||
40 | logioLDADD = | ||
41 | logioCFLAGS = | ||
42 | logioNAME = log_sql_logio | ||
43 | |||
44 | ifeq (@WANT_LOGIO_MOD@,1) | ||
45 | TARGETS += $(logioTARGET) | ||
46 | endif | ||
47 | |||
48 | mysqlSOURCES = @PACKAGE_NAME@_mysql.c | ||
49 | mysqlTARGET = @PACKAGE_NAME@_mysql@APXS_EXTENSION@ | ||
50 | mysqlLDADD = @MYSQL_LDFLAGS@ @MYSQL_LIBS@ | ||
51 | mysqlCFLAGS = @MYSQL_CFLAGS@ | ||
52 | mysqlNAME = log_sql_mysql | ||
53 | |||
54 | ifeq (@WANT_MYSQL_MOD@,1) | ||
55 | TARGETS += $(mysqlTARGET) | ||
56 | endif | ||
57 | |||
58 | pgsqlSOURCES = @PACKAGE_NAME@_pgsql.c | ||
59 | pgsqlTARGET = @PACKAGE_NAME@_pgsql@APXS_EXTENSION@ | ||
60 | pgsqlLDADD = @PGSQL_LDFLAGS@ @PGSQL_LIBS@ | ||
61 | pgsqlCFLAGS = @PGSQL_CFLAGS@ | ||
62 | pgsqlNAME = log_sql_pgsql | ||
63 | |||
64 | ifeq (@WANT_PGSQL_MOD@,1) | ||
65 | TARGETS += $(pgsqlTARGET) | ||
66 | endif | ||
67 | |||
68 | dbiSOURCES = @PACKAGE_NAME@_dbi.c | ||
69 | dbiTARGET = @PACKAGE_NAME@_dbi@APXS_EXTENSION@ | ||
70 | dbiLDADD = @DBI_LDFLAGS@ @DBI_LIBS@ | ||
71 | dbiCFLAGS = @DBI_CFLAGS@ | ||
72 | dbiNAME = log_sql_dbi | ||
73 | |||
74 | ifeq (@WANT_DBI_MOD@,1) | ||
75 | TARGETS += $(dbiTARGET) | ||
76 | endif | ||
77 | |||
78 | dbdSOURCES = @PACKAGE_NAME@_dbd.c | ||
79 | dbdTARGET = @PACKAGE_NAME@_dbd@APXS_EXTENSION@ | ||
80 | dbdLDADD = | ||
81 | dbdCFLAGS = | ||
82 | dbdNAME = log_sql_dbd | ||
83 | |||
84 | ifeq (@WANT_DBD_MOD@,1) | ||
85 | TARGETS += $(dbdTARGET) | ||
86 | endif | ||
87 | |||
88 | OBJ = $(coreSOURCES:.c=.o) $(logioSOURCES:.c=.o) $(sslSOURCES:.c=.o) $(mysqlSOURCES:.c=.o) \ | ||
89 | $(dbiSOURCES:.c=.o) $(pgsqlSOURCES:.c=.o) $(dbdSOURCES:.c=.o) | ||
90 | |||
91 | LO = $(coreSOURCES:.c=.lo) $(logioSOURCES:.c=.lo) $(sslSOURCES:.c=.lo) $(mysqlSOURCES:.c=.lo) \ | ||
92 | $(dbiSOURCES:.c=.lo) $(pgsqlSOURCES:.c=.lo) $(dbdSOURCES:.c=.lo) | ||
93 | |||
94 | SLO = $(coreSOURCES:.c=.slo) $(logioSOURCES:.c=.slo) $(sslSOURCES:.c=.slo) $(mysqlSOURCES:.c=.slo) \ | ||
95 | $(dbiSOURCES:.c=.slo) $(pgsqlSOURCES:.c=.slo) $(dbdSOURCES:.c=.slo) | ||
96 | |||
97 | STD_DIST = Makefile.in | ||
98 | |||
99 | DISTFILES = $(STD_DIST) $(EXTRA_DIST) $(coreSOURCES) $(HEADERS) \ | ||
100 | $(sslSOURCES) $(logioSOURCES) $(mysqlSOURCES) $(pgsqlSOURCES) $(dbiSOURCES) $(dbdSOURCES) | ||
101 | |||
102 | all: $(TARGETS) | ||
103 | |||
104 | $(coreTARGET): $(coreSOURCES) $(HEADERS) | ||
105 | @@APXS_BIN@ -c -o $(coreTARGET) $(coreCFLAGS) $(CFLAGS) \ | ||
106 | @DEFS@ @AP_DEFS@ $(coreLDADD) $(coreSOURCES) | ||
107 | |||
108 | $(logioTARGET): $(logioSOURCES) $(HEADERS) | ||
109 | @@APXS_BIN@ -c -o $(logioTARGET) $(logioCFLAGS) $(CFLAGS) \ | ||
110 | @DEFS@ @AP_DEFS@ $(logioLDADD) $(logioSOURCES) | ||
111 | |||
112 | $(sslTARGET): $(sslSOURCES) $(HEADERS) | ||
113 | @@APXS_BIN@ -c -o $(sslTARGET) $(sslCFLAGS) $(CFLAGS) \ | ||
114 | @DEFS@ @AP_DEFS@ $(sslLDADD) $(sslSOURCES) | ||
115 | |||
116 | $(mysqlTARGET): $(mysqlSOURCES) $(HEADERS) | ||
117 | @@APXS_BIN@ -c -o $(mysqlTARGET) $(mysqlCFLAGS) $(CFLAGS) \ | ||
118 | @DEFS@ @AP_DEFS@ $(mysqlLDADD) $(mysqlSOURCES) | ||
119 | |||
120 | $(pgsqlTARGET): $(pgsqlSOURCES) $(HEADERS) | ||
121 | @@APXS_BIN@ -c -o $(pgsqlTARGET) $(pgsqlCFLAGS) $(CFLAGS) \ | ||
122 | @DEFS@ @AP_DEFS@ $(pgsqlLDADD) $(pgsqlSOURCES) | ||
123 | |||
124 | $(dbiTARGET): $(dbiSOURCES) $(HEADERS) | ||
125 | @@APXS_BIN@ -c -o $(dbiTARGET) $(dbiCFLAGS) $(CFLAGS) \ | ||
126 | @DEFS@ @AP_DEFS@ $(dbiLDADD) $(dbiSOURCES) | ||
127 | |||
128 | $(dbdTARGET): $(dbdSOURCES) $(HEADERS) | ||
129 | @@APXS_BIN@ -c -o $(dbdTARGET) $(dbdCFLAGS) $(CFLAGS) \ | ||
130 | @DEFS@ @AP_DEFS@ $(dbdLDADD) $(dbdSOURCES) | ||
131 | |||
132 | install: $(TARGETS) | ||
133 | @@APXS_BIN@ -n $(coreNAME) -i $(coreTARGET); \ | ||
134 | if test @WANT_MYSQL_MOD@ -eq 1; then \ | ||
135 | @APXS_BIN@ -n $(mysqlNAME) -i $(mysqlTARGET); \ | ||
136 | fi; \ | ||
137 | if test @WANT_PGSQL_MOD@ -eq 1; then \ | ||
138 | @APXS_BIN@ -n $(pgsqlNAME) -i $(pgsqlTARGET); \ | ||
139 | fi; \ | ||
140 | if test @WANT_DBI_MOD@ -eq 1; then \ | ||
141 | @APXS_BIN@ -n $(dbiNAME) -i $(dbiTARGET); \ | ||
142 | fi; \ | ||
143 | if test @WANT_DBD_MOD@ -eq 1; then \ | ||
144 | @APXS_BIN@ -n $(dbdNAME) -i $(dbdTARGET); \ | ||
145 | fi; \ | ||
146 | if test @WANT_SSL_MOD@ -eq 1; then \ | ||
147 | @APXS_BIN@ -n $(sslNAME) -i $(sslTARGET); \ | ||
148 | fi; \ | ||
149 | if test @WANT_LOGIO_MOD@ -eq 1; then \ | ||
150 | @APXS_BIN@ -n $(logioNAME) -i $(logioTARGET); \ | ||
151 | fi; | ||
152 | |||
153 | activate: | ||
154 | @@APXS_BIN@ -n $(coreNAME) -i -a $(coreTARGET); \ | ||
155 | if test @WANT_SSL_MOD@ -eq 1; then \ | ||
156 | @APXS_BIN@ -n $(sslNAME) -i -a $(sslTARGET); \ | ||
157 | fi | ||
158 | |||
159 | clean: | ||
160 | $(RM) $(OBJ) $(SLO) $(LO) $(TARGETS) | ||
161 | $(RM) -r .libs | ||
162 | |||
163 | local-dist: $(DISTFILES) | ||
164 | mkdir -p $(DESTDIR) | ||
165 | cp -dp --parents $(DISTFILES) $(DESTDIR) | ||
diff --git a/functions.h b/src/functions.h index 07711d2..07711d2 100644 --- a/functions.h +++ b/src/functions.h | |||
diff --git a/functions13.h b/src/functions13.h index 54e3138..54e3138 100644 --- a/functions13.h +++ b/src/functions13.h | |||
diff --git a/functions20.h b/src/functions20.h index 5220b7c..5220b7c 100644 --- a/functions20.h +++ b/src/functions20.h | |||
diff --git a/mod_log_sql.c b/src/mod_log_sql.c index d319e97..d319e97 100644 --- a/mod_log_sql.c +++ b/src/mod_log_sql.c | |||
diff --git a/mod_log_sql_dbd.c b/src/mod_log_sql_dbd.c index c78a128..c78a128 100644 --- a/mod_log_sql_dbd.c +++ b/src/mod_log_sql_dbd.c | |||
diff --git a/mod_log_sql_dbi.c b/src/mod_log_sql_dbi.c index 40a972b..40a972b 100644 --- a/mod_log_sql_dbi.c +++ b/src/mod_log_sql_dbi.c | |||
diff --git a/mod_log_sql_logio.c b/src/mod_log_sql_logio.c index ed69acf..ed69acf 100644 --- a/mod_log_sql_logio.c +++ b/src/mod_log_sql_logio.c | |||
diff --git a/mod_log_sql_mysql.c b/src/mod_log_sql_mysql.c index 942c03a..942c03a 100644 --- a/mod_log_sql_mysql.c +++ b/src/mod_log_sql_mysql.c | |||
diff --git a/mod_log_sql_pgsql.c b/src/mod_log_sql_pgsql.c index 4e12920..4e12920 100644 --- a/mod_log_sql_pgsql.c +++ b/src/mod_log_sql_pgsql.c | |||
diff --git a/mod_log_sql_ssl.c b/src/mod_log_sql_ssl.c index 47bba8b..47bba8b 100644 --- a/mod_log_sql_ssl.c +++ b/src/mod_log_sql_ssl.c | |||