diff options
author | Karel Zak | 2014-05-27 14:58:14 +0200 |
---|---|---|
committer | Karel Zak | 2014-05-27 14:58:14 +0200 |
commit | b248c9d416624fe0748bd2caf94f66bb7d0d4a30 (patch) | |
tree | 063140837dfac06ad5d1f7e30b1288d13505bb99 /m4 | |
parent | build-sys: add disable-all.conf to config-gen (diff) | |
download | kernel-qcow2-util-linux-b248c9d416624fe0748bd2caf94f66bb7d0d4a30.tar.gz kernel-qcow2-util-linux-b248c9d416624fe0748bd2caf94f66bb7d0d4a30.tar.xz kernel-qcow2-util-linux-b248c9d416624fe0748bd2caf94f66bb7d0d4a30.zip |
build-sys: fix UL_BUILD_INIT()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ul.m4 | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -336,21 +336,24 @@ dnl AC_DEFUN([UL_BUILD_INIT], [ m4_define([suffix], m4_default([$3],$1)) m4_ifblank([$2], -[build_[]suffix=$enable_[]suffix], -[ -if test "x$ul_default_estate" != x; then +[if test "x$enable_[]suffix" = xno; then + build_[]suffix=no +else + build_[]suffix=yes +fi], +[if test "x$ul_default_estate" != x; then enable_[]suffix=$ul_default_estate else[] ifelse( [$2], [check],[ - build_[]suffix='yes' - enable_[]suffix='check'], + build_[]suffix=yes + enable_[]suffix=check], [$2], [yes],[ - build_[]suffix='yes' - enable_[]suffix='yes'], + build_[]suffix=yes + enable_[]suffix=yes], [$2], [no], [ - build_[]suffix='no' - enable_[]suffix='no']) + build_[]suffix=no + enable_[]suffix=no]) fi]) ]) |