From 573518893a085350ab0623ccf09c91f505b9d43a Mon Sep 17 00:00:00 2001 From: caro Date: Sun, 25 Mar 2012 16:39:51 +0000 Subject: [PATCH] better m4 macro git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@69613 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- m4/common/efl_shm_open.m4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/m4/common/efl_shm_open.m4 b/m4/common/efl_shm_open.m4 index 0bf1b0b..ce3bcf8 100644 --- a/m4/common/efl_shm_open.m4 +++ b/m4/common/efl_shm_open.m4 @@ -31,7 +31,7 @@ fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); AC_MSG_RESULT([${_efl_have_shm_open}]) -if test "x$_efl_have_shm_open" = "xno" ; then +if test "x${_efl_have_shm_open}" = "xno" ; then AC_MSG_CHECKING([for shm_open in librt]) LIBS_save="${LIBS}" @@ -50,7 +50,8 @@ fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); ]])], [ EFL_SHM_OPEN_LIBS="-lrt" - _efl_have_shm_open="yes"], + _efl_have_shm_open="yes" + ], [_efl_have_shm_open="no"]) LIBS="${LIBS_save}" @@ -60,10 +61,10 @@ fi AC_SUBST([EFL_SHM_OPEN_LIBS]) -if test "x$_efl_have_shm_open" = "xyes" ; then +if test "x${_efl_have_shm_open}" = "xyes" ; then AC_DEFINE([HAVE_SHM_OPEN], [1], [Define to 1 if you have the `shm_open' function.]) fi -AS_IF([test "x$_efl_have_shm_open" = "xyes"], [$1], [$2]) +AS_IF([test "x${_efl_have_shm_open}" = "xyes"], [$1], [$2]) ]) -- 2.7.4