Browse Source

configure.ac: fix test for PostProcessor, basic Auth, digest Auth for "--enable-xx=val" case

Evgeny Grin (Karlson2k) 12 năm trước cách đây
mục cha
commit
f55e22f529
1 tập tin đã thay đổi với 7 bổ sung4 xóa
  1. 7 4
      configure.ac

+ 7 - 4
configure.ac

@@ -476,8 +476,9 @@ AC_ARG_ENABLE([postprocessor],
                [disable MHD PostProcessor functionality])],
    [enable_postprocessor=${enableval}],
    [enable_postprocessor=yes])
-AC_MSG_RESULT($disable_postprocessor)
-AM_CONDITIONAL([HAVE_POSTPROCESSOR],test x$enable_postprocessor != xno)
+test "x$enable_postprocessor" = "xno" || enable_postprocessor=yes
+AC_MSG_RESULT([[$enable_postprocessor]])
+AM_CONDITIONAL([HAVE_POSTPROCESSOR],test "x$enable_postprocessor" != "xno")
 
 
 # optional: have zzuf, socat?
@@ -599,8 +600,9 @@ AC_ARG_ENABLE([bauth],
 			[disable HTTP basic Auth support]),
 		[enable_bauth=${enableval}],
 		[enable_bauth=yes])
-if test "$enable_bauth" = "yes"
+if test "x$enable_bauth" != "xno"
 then
+ enable_bauth=yes
  AC_DEFINE([BAUTH_SUPPORT],[1],[include basic Auth support])
 else
  AC_DEFINE([BAUTH_SUPPORT],[0],[disable basic Auth support])
@@ -615,8 +617,9 @@ AC_ARG_ENABLE([dauth],
 			[disable HTTP basic and digest Auth support]),
 		[enable_dauth=${enableval}],
 		[enable_dauth=yes])
-if test "$enable_dauth" = "yes"
+if test "$enable_dauth" != "xno"
 then
+ enable_dauth=yes
  AC_DEFINE([DAUTH_SUPPORT],[1],[include digest Auth support])
 else
  AC_DEFINE([DAUTH_SUPPORT],[0],[disable digest Auth support])