From 0eff524c4d6ad0807a667fe8c6ded0c9b8251096 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 29 Aug 2005 13:08:13 +0000 Subject: [PATCH] Fix for an error message when cross-compiling: checking whether getrusage works... guessing no ./configure: line 20174: test: too many arguments --- ChangeLog | 4 ++++ autoconf/aclocal.m4 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cc1e2de..6ca8c78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-08-27 Bruno Haible + + * autoconf/aclocal.m4 (CL_RUSAGE): Fix error when cross-compiling. + 2005-08-16 Richard B. Kreckel The patch of 2005-05-01 made it impossible to test the type of a cl_UP diff --git a/autoconf/aclocal.m4 b/autoconf/aclocal.m4 index 8f92295..3d2e018 100644 --- a/autoconf/aclocal.m4 +++ b/autoconf/aclocal.m4 @@ -812,7 +812,7 @@ cl_cv_func_getrusage_works=no, dnl When cross-compiling, don't assume anything. cl_cv_func_getrusage_works="guessing no")]) fi - if test $cl_cv_func_getrusage_works = yes; then + if test "$cl_cv_func_getrusage_works" = yes; then AC_DEFINE(HAVE_GETRUSAGE,,[have , the getrusage() function, the struct rusage type, and defines RUSAGE_SELF]) AC_DEFINE_UNQUOTED(RUSAGE_WHO_T,$cl_cv_proto_getrusage_arg1,[type of `who' in getrusage() declaration]) fi