From 0164ed5d151cadfe84721ca5c426bc41ffe9ca1c Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 2 Oct 2001 16:06:41 +0000 Subject: [PATCH] * Call `cln-config --version` only once and safe the result. (needed for autoconf 2.50 since AC_MSG_RESULT escapes backquotes.) --- cln.m4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cln.m4 b/cln.m4 index b477c16..01bab3b 100644 --- a/cln.m4 +++ b/cln.m4 @@ -54,11 +54,12 @@ dnl Parse required version and the result of cln-config. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags` CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs` - cln_config_major_version=`$CLN_CONFIG $cln_config_args --version | \ + cln_config_version=`$CLN_CONFIG $cln_config_args --version` + cln_config_major_version=`echo $cln_config_version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` - cln_config_minor_version=`$CLN_CONFIG $cln_config_args --version | \ + cln_config_minor_version=`echo $cln_config_version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` - cln_config_micro_version=`$CLN_CONFIG $cln_config_args --version | \ + cln_config_micro_version=`echo $cln_config_version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` dnl Check if the installed CLN is sufficiently new according to cln-config. if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \ @@ -122,7 +123,7 @@ int main(void) LIBS="$ac_save_LIBS" fi if test "x$no_cln" = x ; then - AC_MSG_RESULT([yes, `$CLN_CONFIG $cln_config_args --version`]) + AC_MSG_RESULT([yes, $cln_config_version]) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no)