diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-12-19 14:16:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-12-19 14:16:49 +0000 |
commit | 0f9d6e9946afc5fce3f6cec62c43fec091f6ca4d (patch) | |
tree | 01933f9e91ea406c3a7d0203753e843a073336de | |
parent | 59c74bf14f6c3b892953e891d1b8790a86cd5abb (diff) | |
download | libmicrohttpd-0f9d6e9946afc5fce3f6cec62c43fec091f6ca4d.tar.gz libmicrohttpd-0f9d6e9946afc5fce3f6cec62c43fec091f6ca4d.zip |
fix enable/disable options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.ac | 75 |
2 files changed, 35 insertions, 43 deletions
@@ -1,3 +1,6 @@ | |||
1 | Sun Dec 19 15:16:16 CET 2010 | ||
2 | Fixing --enable and --disable configure options to behave properly. -CG | ||
3 | |||
1 | Sun Dec 19 13:46:52 CET 2010 | 4 | Sun Dec 19 13:46:52 CET 2010 |
2 | Added option to specify size of stacks for threads created by MHD. -CG | 5 | Added option to specify size of stacks for threads created by MHD. -CG |
3 | 6 | ||
diff --git a/configure.ac b/configure.ac index 61a731dd..2d464b12 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -198,11 +198,11 @@ AC_CHECK_DECLS([TCP_NOPUSH], [], [], [[#include <netinet/tcp.h>]]) | |||
198 | SAVE_LIBS=$LIBS | 198 | SAVE_LIBS=$LIBS |
199 | 199 | ||
200 | AC_MSG_CHECKING(whether to use libcurl for testing) | 200 | AC_MSG_CHECKING(whether to use libcurl for testing) |
201 | AC_ARG_ENABLE(curl, | 201 | AC_ARG_ENABLE([curl], |
202 | [AS_HELP_STRING([--enable-curl],[support cURL based testcases])], | 202 | [AS_HELP_STRING([--disable-curl],[disable cURL based testcases])], |
203 | [enable_curl=$enableval], | 203 | [enable_curl=${enableval}], |
204 | [enable_curl="yes"]) | 204 | [enable_curl=no]) |
205 | 205 | AC_MSG_RESULT($enable_curl) | |
206 | curl=0 | 206 | curl=0 |
207 | if test "$enable_curl" = "yes" | 207 | if test "$enable_curl" = "yes" |
208 | then | 208 | then |
@@ -225,20 +225,18 @@ AC_SYS_LARGEFILE | |||
225 | AC_FUNC_FSEEKO | 225 | AC_FUNC_FSEEKO |
226 | 226 | ||
227 | # optional: have error messages ? | 227 | # optional: have error messages ? |
228 | AC_MSG_CHECKING(whether to disable error messages) | 228 | AC_MSG_CHECKING(whether to generate error messages) |
229 | AC_ARG_ENABLE([messages], | 229 | AC_ARG_ENABLE([messages], |
230 | [AS_HELP_STRING([--disable-messages], | 230 | [AS_HELP_STRING([--disable-messages], |
231 | [disable MHD error messages (default is NO)])], | 231 | [disable MHD error messages])], |
232 | [disable_messages="yes"], | 232 | [enable_messages=${enableval}], |
233 | [disable_messages="no"]) | 233 | [enable_messages=no]) |
234 | AC_MSG_RESULT($disable_messages) | 234 | AC_MSG_RESULT($enable_messages) |
235 | if test "$disable_messages" = "no" | 235 | if test "$enable_messages" = "yes" |
236 | then | 236 | then |
237 | AC_DEFINE([HAVE_MESSAGES],[1],[Include error messages]) | 237 | AC_DEFINE([HAVE_MESSAGES],[1],[Include error messages]) |
238 | enable_messages="yes" | ||
239 | else | 238 | else |
240 | AC_DEFINE([HAVE_MESSAGES],[0],[Disable error messages]) | 239 | AC_DEFINE([HAVE_MESSAGES],[0],[Disable error messages]) |
241 | enable_messages="no" | ||
242 | fi | 240 | fi |
243 | 241 | ||
244 | 242 | ||
@@ -246,17 +244,11 @@ fi | |||
246 | AC_MSG_CHECKING(whether to enable postprocessor) | 244 | AC_MSG_CHECKING(whether to enable postprocessor) |
247 | AC_ARG_ENABLE([postprocessor], | 245 | AC_ARG_ENABLE([postprocessor], |
248 | [AS_HELP_STRING([--disable-postprocessor], | 246 | [AS_HELP_STRING([--disable-postprocessor], |
249 | [disable MHD PostProcessor functionality (default is NO)])], | 247 | [disable MHD PostProcessor functionality])], |
250 | [disable_postprocessor="yes"], | 248 | [enable_postprocessor=${enableval}], |
251 | [disable_postprocessor="no"]) | 249 | [enable_postprocessor=no]) |
252 | AC_MSG_RESULT($disable_postprocessor) | 250 | AC_MSG_RESULT($disable_postprocessor) |
253 | if test "$disable_postprocessor" = "no" | 251 | AM_CONDITIONAL([HAVE_POSTPROCESSOR],test x$enable_postprocessor != xno) |
254 | then | ||
255 | enable_postprocessor="yes" | ||
256 | else | ||
257 | enable_postprocessor="no" | ||
258 | fi | ||
259 | AM_CONDITIONAL([HAVE_POSTPROCESSOR],test x$disable_postprocessor != xyes) | ||
260 | 252 | ||
261 | 253 | ||
262 | # optional: have zzuf, socat? | 254 | # optional: have zzuf, socat? |
@@ -308,19 +300,18 @@ AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have gnutls]) | |||
308 | 300 | ||
309 | 301 | ||
310 | # optional: HTTPS support. Enabled by default | 302 | # optional: HTTPS support. Enabled by default |
311 | AC_MSG_CHECKING(whether to disable HTTPS support) | 303 | AC_MSG_CHECKING(whether to support HTTPS) |
312 | AC_ARG_ENABLE([https], | 304 | AC_ARG_ENABLE([https], |
313 | [AS_HELP_STRING([--disable-https], | 305 | [AS_HELP_STRING([--disable-https], |
314 | [disable HTTPS support (default is NO)])], | 306 | [disable HTTPS support])], |
315 | [disable_https="yes"], | 307 | [enable_https=${enableval}], |
316 | [disable_https="no"]) | 308 | [enable_https=no]) |
317 | if test "$disable_https" = "no" | 309 | if test "$enable_https" = "yes" |
318 | then | 310 | then |
319 | if test "$gcrypt" = "true" -a "$gnutls" = "true" | 311 | if test "$gcrypt" = "true" -a "$gnutls" = "true" |
320 | then | 312 | then |
321 | AC_DEFINE([HTTPS_SUPPORT],[1],[include HTTPS support]) | 313 | AC_DEFINE([HTTPS_SUPPORT],[1],[include HTTPS support]) |
322 | MHD_LIBDEPS="$LIBGCRYPT_LIBS" | 314 | MHD_LIBDEPS="$LIBGCRYPT_LIBS" |
323 | enable_https="yes" | ||
324 | else | 315 | else |
325 | AC_DEFINE([HTTPS_SUPPORT],[0],[no libgcrypt or libgnutls]) | 316 | AC_DEFINE([HTTPS_SUPPORT],[0],[no libgcrypt or libgnutls]) |
326 | enable_https="no (lacking libgcrypt or libgnutls)" | 317 | enable_https="no (lacking libgcrypt or libgnutls)" |
@@ -329,29 +320,27 @@ else | |||
329 | AC_DEFINE([HTTPS_SUPPORT],[0],[disable HTTPS support]) | 320 | AC_DEFINE([HTTPS_SUPPORT],[0],[disable HTTPS support]) |
330 | enable_https="no (disabled)" | 321 | enable_https="no (disabled)" |
331 | fi | 322 | fi |
332 | AC_MSG_RESULT($disable_https) | 323 | AC_MSG_RESULT($enable_https) |
333 | 324 | ||
334 | AM_CONDITIONAL(ENABLE_HTTPS, test "$enable_https" = "yes") | 325 | AM_CONDITIONAL(ENABLE_HTTPS, test "$enable_https" = "yes") |
335 | 326 | ||
336 | # optional: HTTP Digest Auth support. Enabled by default | 327 | # optional: HTTP Digest Auth support. Enabled by default |
337 | AC_MSG_CHECKING(whether to disable HTTP Digest Auth support) | 328 | AC_MSG_CHECKING(whether to support HTTP Digest authentication) |
338 | AC_ARG_ENABLE([dauth], | 329 | AC_ARG_ENABLE([dauth], |
339 | AS_HELP_STRING([--disable-dauth], | 330 | AS_HELP_STRING([--disable-dauth], |
340 | [disable HTTP Digest Auth support (default is NO)]), | 331 | [disable HTTP Digest Auth support]), |
341 | [disable_dauth="yes"], | 332 | [enable_dauth=${enableval}], |
342 | [disable_dauth="no"]) | 333 | [enable_dauth=no]) |
343 | 334 | ||
344 | if test "x$disable_dauth" != "xyes" | 335 | if test "$enable_dauth" = "yes" |
345 | then | 336 | then |
346 | AC_DEFINE([DAUTH_SUPPORT],[1],[include Digest Auth support]) | 337 | AC_DEFINE([DAUTH_SUPPORT],[1],[include Digest Auth support]) |
347 | enable_dauth="yes" | ||
348 | else | 338 | else |
349 | AC_DEFINE([DAUTH_SUPPORT],[0],[disable Digest Auth support]) | 339 | AC_DEFINE([DAUTH_SUPPORT],[0],[disable Digest Auth support]) |
350 | enable_dauth="no" | ||
351 | fi | 340 | fi |
352 | AC_MSG_RESULT($disable_dauth) | 341 | AC_MSG_RESULT($enable_dauth) |
353 | 342 | ||
354 | AM_CONDITIONAL(ENABLE_DAUTH, [test "x$disable_dauth" != "xyes"]) | 343 | AM_CONDITIONAL(ENABLE_DAUTH, [test "x$enable_dauth" != "xno"]) |
355 | 344 | ||
356 | MHD_LIB_LDFLAGS="-export-dynamic -no-undefined" | 345 | MHD_LIB_LDFLAGS="-export-dynamic -no-undefined" |
357 | 346 | ||
@@ -367,11 +356,11 @@ AC_CACHE_CHECK([whether -export-symbols-regex works], | |||
367 | 356 | ||
368 | 357 | ||
369 | # gcov compilation | 358 | # gcov compilation |
370 | use_gcov=no | ||
371 | AC_ARG_ENABLE([coverage], | 359 | AC_ARG_ENABLE([coverage], |
372 | AS_HELP_STRING([--enable-coverage], | 360 | AS_HELP_STRING([--enable-coverage], |
373 | [compile the library with code coverage support (default is NO)]), | 361 | [compile the library with code coverage support]), |
374 | [use_gcov=yes], [use_gcov=no]) | 362 | [use_gcov=${enableval}], |
363 | [use_gcov=yes]) | ||
375 | AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) | 364 | AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) |
376 | 365 | ||
377 | 366 | ||