From: Dmitry Eremin Date: Thu, 11 Dec 2014 13:27:21 +0000 (+0300) Subject: LU-6001 build: fix autoconf DLC detection output X-Git-Tag: 2.6.92~40 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F31%2F13031%2F2;p=fs%2Flustre-release.git LU-6001 build: fix autoconf DLC detection output checking for yaml_parser_initialize in -lyaml... no checking whether to enable dlc... yes no (libyaml not present) Signed-off-by: Dmitry Eremin Change-Id: I29b968295b508522f9158ac920ee3bb862ae4b4e Reviewed-on: http://review.whamcloud.com/13031 Tested-by: Jenkins Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Amir Shehata Reviewed-by: Oleg Drokin --- diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 29f9bdd..9b0924f 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -131,14 +131,16 @@ AC_DEFUN([LN_CONFIG_DLC], [ AC_HELP_STRING([--disable-dlc], [disable building dlc]), [], [enable_dlc="yes"]) - AC_MSG_RESULT([$enable_dlc]) USE_DLC="" AS_IF([test "x$enable_dlc" = xyes], - [AS_IF([test "x$LIBYAML" = xlibyaml], [ + [AS_IF([test "x$LIBYAML" = xlibyaml], [ USE_DLC="yes" + AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no (libyaml not present)]) ]) + ], [ + AC_MSG_RESULT([no]) ]) AC_SUBST(USE_DLC) ])