diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 57 |
1 files changed, 22 insertions, 35 deletions
diff --git a/configure.ac b/configure.ac index 2076b005..a2d522a5 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -610,35 +610,30 @@ AC_FUNC_FSEEKO | |||
610 | AC_CHECK_FUNCS([_lseeki64 lseek64 sendfile64]) | 610 | AC_CHECK_FUNCS([_lseeki64 lseek64 sendfile64]) |
611 | 611 | ||
612 | # optional: have error messages ? | 612 | # optional: have error messages ? |
613 | AC_MSG_CHECKING(whether to generate error messages) | 613 | AC_MSG_CHECKING([[whether to generate error messages]]) |
614 | AC_ARG_ENABLE([messages], | 614 | AC_ARG_ENABLE([messages], |
615 | [AS_HELP_STRING([--disable-messages], | 615 | [AS_HELP_STRING([--disable-messages], |
616 | [disable MHD error messages])], | 616 | [disable MHD error messages])], |
617 | [enable_messages=${enableval}], | 617 | [enable_messages=${enableval}], |
618 | [enable_messages=yes]) | 618 | [enable_messages=yes]) |
619 | AC_MSG_RESULT($enable_messages) | 619 | AS_IF([[test "x$enable_messages" = "xyes"]], |
620 | if test "$enable_messages" = "yes" | 620 | [ AC_DEFINE([HAVE_MESSAGES],[1],[Define to 1 to enable support for error messages.]) ], |
621 | then | 621 | [[ enable_messages=no ]]) |
622 | AC_DEFINE([HAVE_MESSAGES],[1],[Include error messages]) | 622 | AC_MSG_RESULT([[$enable_messages]]) |
623 | else | ||
624 | AC_DEFINE([HAVE_MESSAGES],[0],[Disable error messages]) | ||
625 | fi | ||
626 | 623 | ||
627 | 624 | ||
628 | # optional: have postprocessor? | 625 | # optional: have postprocessor? |
629 | AC_MSG_CHECKING(whether to enable postprocessor) | 626 | AC_MSG_CHECKING([[whether to enable postprocessor]]) |
630 | AC_ARG_ENABLE([postprocessor], | 627 | AC_ARG_ENABLE([postprocessor], |
631 | [AS_HELP_STRING([--disable-postprocessor], | 628 | [AS_HELP_STRING([--disable-postprocessor], |
632 | [disable MHD PostProcessor functionality])], | 629 | [disable MHD PostProcessor functionality])], |
633 | [enable_postprocessor=${enableval}], | 630 | [enable_postprocessor=${enableval}], |
634 | [enable_postprocessor=yes]) | 631 | [enable_postprocessor=yes]) |
635 | test "x$enable_postprocessor" = "xno" || enable_postprocessor=yes | 632 | AS_IF([[test "x$enable_postprocessor" != "xno"]], |
633 | [ enable_postprocessor=yes | ||
634 | AC_DEFINE([HAVE_POSTPROCESSOR],[1],[Define to 1 if libmicrohttpd is compiled with postprocessor support.]) ]) | ||
635 | AM_CONDITIONAL([HAVE_POSTPROCESSOR], [test "x$enable_postprocessor" != "xno"]) | ||
636 | AC_MSG_RESULT([[$enable_postprocessor]]) | 636 | AC_MSG_RESULT([[$enable_postprocessor]]) |
637 | AM_CONDITIONAL([HAVE_POSTPROCESSOR],test "x$enable_postprocessor" != "xno") | ||
638 | if test "x$enable_postprocessor" != "xno" | ||
639 | then | ||
640 | AC_DEFINE([HAVE_POSTPROCESSOR],[1],[define to 1 if MHD was build with postprocessor.c]) | ||
641 | fi | ||
642 | 637 | ||
643 | 638 | ||
644 | # optional: have zzuf, socat? | 639 | # optional: have zzuf, socat? |
@@ -819,38 +814,30 @@ AC_MSG_RESULT([$MSG_HTTPS]) | |||
819 | AM_CONDITIONAL([ENABLE_HTTPS], [test "x$enable_https" = "xyes"]) | 814 | AM_CONDITIONAL([ENABLE_HTTPS], [test "x$enable_https" = "xyes"]) |
820 | 815 | ||
821 | # optional: HTTP Basic Auth support. Enabled by default | 816 | # optional: HTTP Basic Auth support. Enabled by default |
822 | AC_MSG_CHECKING(whether to support HTTP basic authentication) | 817 | AC_MSG_CHECKING([[whether to support HTTP basic authentication]]) |
823 | AC_ARG_ENABLE([bauth], | 818 | AC_ARG_ENABLE([bauth], |
824 | AS_HELP_STRING([--disable-bauth], | 819 | AS_HELP_STRING([--disable-bauth], |
825 | [disable HTTP basic Auth support]), | 820 | [disable HTTP basic Auth support]), |
826 | [enable_bauth=${enableval}], | 821 | [enable_bauth=${enableval}], |
827 | [enable_bauth=yes]) | 822 | [enable_bauth=yes]) |
828 | if test "x$enable_bauth" != "xno" | 823 | AS_IF([[test "x$enable_bauth" != "xno"]], |
829 | then | 824 | [ enable_bauth=yes |
830 | enable_bauth=yes | 825 | AC_DEFINE([BAUTH_SUPPORT],[1],[Define to 1 if libmicrohttpd is compiled with basic Auth support.]) ]) |
831 | AC_DEFINE([BAUTH_SUPPORT],[1],[include basic Auth support]) | 826 | AM_CONDITIONAL([ENABLE_BAUTH], [test "x$enable_bauth" != "xno"]) |
832 | else | 827 | AC_MSG_RESULT([[$enable_bauth]]) |
833 | AC_DEFINE([BAUTH_SUPPORT],[0],[disable basic Auth support]) | ||
834 | fi | ||
835 | AC_MSG_RESULT($enable_bauth) | ||
836 | AM_CONDITIONAL(ENABLE_BAUTH, [test "x$enable_bauth" != "xno"]) | ||
837 | 828 | ||
838 | # optional: HTTP Digest Auth support. Enabled by default | 829 | # optional: HTTP Digest Auth support. Enabled by default |
839 | AC_MSG_CHECKING(whether to support HTTP digest authentication) | 830 | AC_MSG_CHECKING([[whether to support HTTP digest authentication]]) |
840 | AC_ARG_ENABLE([dauth], | 831 | AC_ARG_ENABLE([dauth], |
841 | AS_HELP_STRING([--disable-dauth], | 832 | AS_HELP_STRING([--disable-dauth], |
842 | [disable HTTP basic and digest Auth support]), | 833 | [disable HTTP basic and digest Auth support]), |
843 | [enable_dauth=${enableval}], | 834 | [enable_dauth=${enableval}], |
844 | [enable_dauth=yes]) | 835 | [enable_dauth=yes]) |
845 | if test "x$enable_dauth" != "xno" | 836 | AS_IF([[test "x$enable_dauth" != "xno"]], |
846 | then | 837 | [ enable_dauth=yes |
847 | enable_dauth=yes | 838 | AC_DEFINE([DAUTH_SUPPORT],[1],[Define to 1 if libmicrohttpd is compiled with digest Auth support.]) ]) |
848 | AC_DEFINE([DAUTH_SUPPORT],[1],[include digest Auth support]) | 839 | AM_CONDITIONAL([ENABLE_DAUTH], [test "x$enable_dauth" != "xno"]) |
849 | else | 840 | AC_MSG_RESULT([[$enable_dauth]]) |
850 | AC_DEFINE([DAUTH_SUPPORT],[0],[disable digest Auth support]) | ||
851 | fi | ||
852 | AC_MSG_RESULT($enable_dauth) | ||
853 | AM_CONDITIONAL(ENABLE_DAUTH, [test "x$enable_dauth" != "xno"]) | ||
854 | 841 | ||
855 | 842 | ||
856 | 843 | ||