From ff450cdcb898f1fef2fa583f082e8ba419d7e6db Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 19 Mar 2009 18:31:21 -0700 Subject: [PATCH] Slightly more portable version of configure test. (cherry picked from commit 90f37fe3cbd3bfbfd593ec3430e671ccf86691b0) --- configure.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 9d684e487..8b9407138 100644 --- a/configure.in +++ b/configure.in @@ -181,21 +181,21 @@ AX_C_UNDERSCORES_TRAILING ####################### AC_MSG_CHECKING(for sanity of prefix) -if test X`echo "$prefix" | wc -w` != X1 +if test `echo "$prefix" | wc -w` != 1 then AC_MSG_ERROR(cannot configure white space in prefix: $prefix) fi AC_MSG_RESULT(ok) AC_MSG_CHECKING(for sanity of exec_prefix) -if test X`echo "$exec_prefix" | wc -w` != X1 +if test `echo "$exec_prefix" | wc -w` != 1 then AC_MSG_ERROR(cannot configure white space in exec_prefix: $exec_prefix) fi AC_MSG_RESULT(ok) AC_MSG_CHECKING(for sanity of libdir) -if test X`echo "$libdir" | wc -w` != X1 +if test `echo "$libdir" | wc -w` != 1 then AC_MSG_ERROR(cannot configure white space in libdir: $libdir) fi