diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-03-05 13:21:03 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-03-05 13:21:03 +0000 |
commit | f55e22f529fc0a9c176db912cb6e25526c09efed (patch) | |
tree | d964531a6188ce2b43d7b409703ecf4e65dcb643 | |
parent | 90c9b75d5a625e6d8136b64677f1cc8d684639bf (diff) | |
download | libmicrohttpd-f55e22f529fc0a9c176db912cb6e25526c09efed.tar.gz libmicrohttpd-f55e22f529fc0a9c176db912cb6e25526c09efed.zip |
configure.ac: fix test for PostProcessor, basic Auth, digest Auth for "--enable-xx=val" case
-rw-r--r-- | configure.ac | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 367091a9..365d5efb 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -476,8 +476,9 @@ AC_ARG_ENABLE([postprocessor], | |||
476 | [disable MHD PostProcessor functionality])], | 476 | [disable MHD PostProcessor functionality])], |
477 | [enable_postprocessor=${enableval}], | 477 | [enable_postprocessor=${enableval}], |
478 | [enable_postprocessor=yes]) | 478 | [enable_postprocessor=yes]) |
479 | AC_MSG_RESULT($disable_postprocessor) | 479 | test "x$enable_postprocessor" = "xno" || enable_postprocessor=yes |
480 | AM_CONDITIONAL([HAVE_POSTPROCESSOR],test x$enable_postprocessor != xno) | 480 | AC_MSG_RESULT([[$enable_postprocessor]]) |
481 | AM_CONDITIONAL([HAVE_POSTPROCESSOR],test "x$enable_postprocessor" != "xno") | ||
481 | 482 | ||
482 | 483 | ||
483 | # optional: have zzuf, socat? | 484 | # optional: have zzuf, socat? |
@@ -599,8 +600,9 @@ AC_ARG_ENABLE([bauth], | |||
599 | [disable HTTP basic Auth support]), | 600 | [disable HTTP basic Auth support]), |
600 | [enable_bauth=${enableval}], | 601 | [enable_bauth=${enableval}], |
601 | [enable_bauth=yes]) | 602 | [enable_bauth=yes]) |
602 | if test "$enable_bauth" = "yes" | 603 | if test "x$enable_bauth" != "xno" |
603 | then | 604 | then |
605 | enable_bauth=yes | ||
604 | AC_DEFINE([BAUTH_SUPPORT],[1],[include basic Auth support]) | 606 | AC_DEFINE([BAUTH_SUPPORT],[1],[include basic Auth support]) |
605 | else | 607 | else |
606 | AC_DEFINE([BAUTH_SUPPORT],[0],[disable basic Auth support]) | 608 | AC_DEFINE([BAUTH_SUPPORT],[0],[disable basic Auth support]) |
@@ -615,8 +617,9 @@ AC_ARG_ENABLE([dauth], | |||
615 | [disable HTTP basic and digest Auth support]), | 617 | [disable HTTP basic and digest Auth support]), |
616 | [enable_dauth=${enableval}], | 618 | [enable_dauth=${enableval}], |
617 | [enable_dauth=yes]) | 619 | [enable_dauth=yes]) |
618 | if test "$enable_dauth" = "yes" | 620 | if test "$enable_dauth" != "xno" |
619 | then | 621 | then |
622 | enable_dauth=yes | ||
620 | AC_DEFINE([DAUTH_SUPPORT],[1],[include digest Auth support]) | 623 | AC_DEFINE([DAUTH_SUPPORT],[1],[include digest Auth support]) |
621 | else | 624 | else |
622 | AC_DEFINE([DAUTH_SUPPORT],[0],[disable digest Auth support]) | 625 | AC_DEFINE([DAUTH_SUPPORT],[0],[disable digest Auth support]) |