aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-19 14:16:49 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-19 14:16:49 +0000
commit0f9d6e9946afc5fce3f6cec62c43fec091f6ca4d (patch)
tree01933f9e91ea406c3a7d0203753e843a073336de
parent59c74bf14f6c3b892953e891d1b8790a86cd5abb (diff)
downloadlibmicrohttpd-0f9d6e9946afc5fce3f6cec62c43fec091f6ca4d.tar.gz
libmicrohttpd-0f9d6e9946afc5fce3f6cec62c43fec091f6ca4d.zip
fix enable/disable options
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac75
2 files changed, 35 insertions, 43 deletions
diff --git a/ChangeLog b/ChangeLog
index 067208eb..81376826 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Sun Dec 19 15:16:16 CET 2010
2 Fixing --enable and --disable configure options to behave properly. -CG
3
1Sun Dec 19 13:46:52 CET 2010 4Sun 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>]])
198SAVE_LIBS=$LIBS 198SAVE_LIBS=$LIBS
199 199
200AC_MSG_CHECKING(whether to use libcurl for testing) 200AC_MSG_CHECKING(whether to use libcurl for testing)
201AC_ARG_ENABLE(curl, 201AC_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 205AC_MSG_RESULT($enable_curl)
206curl=0 206curl=0
207if test "$enable_curl" = "yes" 207if test "$enable_curl" = "yes"
208then 208then
@@ -225,20 +225,18 @@ AC_SYS_LARGEFILE
225AC_FUNC_FSEEKO 225AC_FUNC_FSEEKO
226 226
227# optional: have error messages ? 227# optional: have error messages ?
228AC_MSG_CHECKING(whether to disable error messages) 228AC_MSG_CHECKING(whether to generate error messages)
229AC_ARG_ENABLE([messages], 229AC_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])
234AC_MSG_RESULT($disable_messages) 234AC_MSG_RESULT($enable_messages)
235if test "$disable_messages" = "no" 235if test "$enable_messages" = "yes"
236then 236then
237 AC_DEFINE([HAVE_MESSAGES],[1],[Include error messages]) 237 AC_DEFINE([HAVE_MESSAGES],[1],[Include error messages])
238 enable_messages="yes"
239else 238else
240 AC_DEFINE([HAVE_MESSAGES],[0],[Disable error messages]) 239 AC_DEFINE([HAVE_MESSAGES],[0],[Disable error messages])
241 enable_messages="no"
242fi 240fi
243 241
244 242
@@ -246,17 +244,11 @@ fi
246AC_MSG_CHECKING(whether to enable postprocessor) 244AC_MSG_CHECKING(whether to enable postprocessor)
247AC_ARG_ENABLE([postprocessor], 245AC_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])
252AC_MSG_RESULT($disable_postprocessor) 250AC_MSG_RESULT($disable_postprocessor)
253if test "$disable_postprocessor" = "no" 251AM_CONDITIONAL([HAVE_POSTPROCESSOR],test x$enable_postprocessor != xno)
254then
255 enable_postprocessor="yes"
256else
257 enable_postprocessor="no"
258fi
259AM_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
311AC_MSG_CHECKING(whether to disable HTTPS support) 303AC_MSG_CHECKING(whether to support HTTPS)
312AC_ARG_ENABLE([https], 304AC_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])
317if test "$disable_https" = "no" 309if test "$enable_https" = "yes"
318then 310then
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)"
331fi 322fi
332AC_MSG_RESULT($disable_https) 323AC_MSG_RESULT($enable_https)
333 324
334AM_CONDITIONAL(ENABLE_HTTPS, test "$enable_https" = "yes") 325AM_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
337AC_MSG_CHECKING(whether to disable HTTP Digest Auth support) 328AC_MSG_CHECKING(whether to support HTTP Digest authentication)
338AC_ARG_ENABLE([dauth], 329AC_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
344if test "x$disable_dauth" != "xyes" 335if test "$enable_dauth" = "yes"
345then 336then
346 AC_DEFINE([DAUTH_SUPPORT],[1],[include Digest Auth support]) 337 AC_DEFINE([DAUTH_SUPPORT],[1],[include Digest Auth support])
347 enable_dauth="yes"
348else 338else
349 AC_DEFINE([DAUTH_SUPPORT],[0],[disable Digest Auth support]) 339 AC_DEFINE([DAUTH_SUPPORT],[0],[disable Digest Auth support])
350 enable_dauth="no"
351fi 340fi
352AC_MSG_RESULT($disable_dauth) 341AC_MSG_RESULT($enable_dauth)
353 342
354AM_CONDITIONAL(ENABLE_DAUTH, [test "x$disable_dauth" != "xyes"]) 343AM_CONDITIONAL(ENABLE_DAUTH, [test "x$enable_dauth" != "xno"])
355 344
356MHD_LIB_LDFLAGS="-export-dynamic -no-undefined" 345MHD_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
370use_gcov=no
371AC_ARG_ENABLE([coverage], 359AC_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])
375AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) 364AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
376 365
377 366