[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] [PATCH] configure: CPIO_MT_COND fix (--enable-mt)

From: Pavel Raiskup
Subject: [Bug-cpio] [PATCH] configure: CPIO_MT_COND fix (--enable-mt)
Date: Tue, 15 Sep 2015 06:47:29 +0200

Not quoted $build_mt in 'test $build_mt = yes' statement caused
'./configure: line 26866: test: =: unary operator expected' error.

* configure.ac (CPIO_MT_COND): If-fork based on "${enable_mt-no}".
 configure.ac | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index c68bd44..d83a0a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,10 +60,9 @@ CPIO_SYSDEP
- AC_HELP_STRING([--enable-mt], [Enable building of mt program]),
- [build_mt=$enableval])
+ AC_HELP_STRING([--enable-mt], [Enable building of mt program]))
-AM_CONDITIONAL([CPIO_MT_COND], [test $build_mt = yes])
+AM_CONDITIONAL([CPIO_MT_COND], [test "${enable_mt-no}" = yes])
 AC_CHECK_HEADERS([unistd.h stdlib.h string.h fcntl.h pwd.h grp.h 
sys/io/trioctl.h utmp.h getopt.h locale.h libintl.h sys/wait.h utime.h locale.h 
process.h sys/ioctl.h])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]