diff options
Diffstat (limited to 'src/microhttpd/Makefile.am')
-rw-r--r-- | src/microhttpd/Makefile.am | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index f303b3f9..2c59876a 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am | |||
@@ -62,13 +62,23 @@ libmicrohttpd_la_SOURCES = \ | |||
62 | mhd_limits.h mhd_byteorder.h \ | 62 | mhd_limits.h mhd_byteorder.h \ |
63 | sysfdsetsize.c sysfdsetsize.h \ | 63 | sysfdsetsize.c sysfdsetsize.h \ |
64 | mhd_str.c mhd_str.h \ | 64 | mhd_str.c mhd_str.h \ |
65 | mhd_threads.c mhd_threads.h \ | 65 | mhd_assert.h \ |
66 | mhd_locks.h mhd_assert.h \ | ||
67 | mhd_sockets.c mhd_sockets.h \ | 66 | mhd_sockets.c mhd_sockets.h \ |
68 | mhd_itc.c mhd_itc.h mhd_itc_types.h \ | 67 | mhd_itc.c mhd_itc.h mhd_itc_types.h \ |
69 | mhd_compat.c mhd_compat.h \ | 68 | mhd_compat.c mhd_compat.h \ |
70 | response.c response.h | 69 | response.c response.h |
71 | 70 | ||
71 | if USE_POSIX_THREADS | ||
72 | libmicrohttpd_la_SOURCES += \ | ||
73 | mhd_threads.c mhd_threads.h \ | ||
74 | mhd_locks.h | ||
75 | endif | ||
76 | if USE_W32_THREADS | ||
77 | libmicrohttpd_la_SOURCES += \ | ||
78 | mhd_threads.c mhd_threads.h \ | ||
79 | mhd_locks.h | ||
80 | endif | ||
81 | |||
72 | libmicrohttpd_la_CPPFLAGS = \ | 82 | libmicrohttpd_la_CPPFLAGS = \ |
73 | $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) \ | 83 | $(AM_CPPFLAGS) $(MHD_LIB_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS) \ |
74 | -DBUILDING_MHD_LIB=1 | 84 | -DBUILDING_MHD_LIB=1 |
@@ -150,9 +160,19 @@ check_PROGRAMS = \ | |||
150 | 160 | ||
151 | if HAVE_POSIX_THREADS | 161 | if HAVE_POSIX_THREADS |
152 | if ENABLE_UPGRADE | 162 | if ENABLE_UPGRADE |
163 | if USE_POSIX_THREADS | ||
164 | check_PROGRAMS += test_upgrade | ||
165 | endif | ||
166 | if USE_W32_THREADS | ||
153 | check_PROGRAMS += test_upgrade | 167 | check_PROGRAMS += test_upgrade |
168 | endif | ||
154 | if ENABLE_HTTPS | 169 | if ENABLE_HTTPS |
155 | check_PROGRAMS += test_upgrade_tls | 170 | if USE_POSIX_THREADS |
171 | check_PROGRAMS += test_upgrade_tls | ||
172 | endif | ||
173 | if USE_W32_THREADS | ||
174 | check_PROGRAMS += test_upgrade_tls | ||
175 | endif | ||
156 | endif | 176 | endif |
157 | endif | 177 | endif |
158 | endif | 178 | endif |
@@ -170,6 +190,7 @@ TESTS = $(check_PROGRAMS) | |||
170 | # on Cygwin as this ability is deliberately ignored on Cygwin | 190 | # on Cygwin as this ability is deliberately ignored on Cygwin |
171 | # to improve compatibility with core OS. | 191 | # to improve compatibility with core OS. |
172 | if !CYGWIN_TARGET | 192 | if !CYGWIN_TARGET |
193 | if USE_POSIX_THREADS | ||
173 | if HAVE_LISTEN_SHUTDOWN | 194 | if HAVE_LISTEN_SHUTDOWN |
174 | check_PROGRAMS += \ | 195 | check_PROGRAMS += \ |
175 | test_shutdown_select \ | 196 | test_shutdown_select \ |
@@ -180,6 +201,7 @@ check_PROGRAMS += \ | |||
180 | test_shutdown_poll_ignore | 201 | test_shutdown_poll_ignore |
181 | endif | 202 | endif |
182 | endif | 203 | endif |
204 | endif | ||
183 | 205 | ||
184 | test_start_stop_SOURCES = \ | 206 | test_start_stop_SOURCES = \ |
185 | test_start_stop.c | 207 | test_start_stop.c |