[libvirt] [libvirt-php][PATCH 1/8] configure: Prefer /bin/echo before printf

Michal Privoznik mprivozn at redhat.com
Fri Jun 26 09:06:13 UTC 2015


For some reason, configure think it's good to use 'printf %s\n'
as $(ECHO). Well, it's not. Problem is, the \n at the end - it
does not do what you think. It merely adds 'n' at the end of each
printed string. Therefore, use echo which does not need anything
special.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 9e9fee0..39ec71c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@ AC_LANG([C])
 AC_PROG_INSTALL
 AC_PROG_SED
 AC_PROG_AWK
-AC_CHECK_TOOL([ECHO], [echo])
+AC_PATH_PROG([ECHO], [echo], [])
 AC_CHECK_TOOL([RM], [rm])
 
 dnl Need to test if pkg-config exists
-- 
2.3.6




More information about the libvir-list mailing list