POSIX sh uses = and not ==

BUG: 815227
Change-Id: I5a498f1b917fb658914133ee071783e7b8e0d025
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/4151
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
Emmanuel Dreyfus 2012-11-02 09:15:36 +01:00 committed by Anand Avati
parent b872ccf508
commit 04fc3fdb58

View File

@ -379,7 +379,7 @@ AC_ARG_ENABLE([systemtap],
[Enable inclusion of systemtap trace support])], [Enable inclusion of systemtap trace support])],
[ENABLE_SYSTEMTAP="${enableval}"], [ENABLE_SYSTEMTAP="def"]) [ENABLE_SYSTEMTAP="${enableval}"], [ENABLE_SYSTEMTAP="def"])
AM_CONDITIONAL([ENABLE_SYSTEMTAP], [test "x${ENABLE_SYSTEMTAP}" == "xyes"]) AM_CONDITIONAL([ENABLE_SYSTEMTAP], [test "x${ENABLE_SYSTEMTAP}" = "xyes"])
AC_MSG_RESULT(${ENABLE_SYSTEMTAP}) AC_MSG_RESULT(${ENABLE_SYSTEMTAP})
if test "x${ENABLE_SYSTEMTAP}" != "xno"; then if test "x${ENABLE_SYSTEMTAP}" != "xno"; then
@ -388,15 +388,15 @@ if test "x${ENABLE_SYSTEMTAP}" != "xno"; then
[SDT_H_FOUND="no"]) [SDT_H_FOUND="no"])
fi fi
if test "x${ENABLE_SYSTEMTAP}" == "xyes"; then if test "x${ENABLE_SYSTEMTAP}" = "xyes"; then
if test "x${DTRACE}" == "xno"; then if test "x${DTRACE}" = "xno"; then
AC_MSG_ERROR([dtrace not found]) AC_MSG_ERROR([dtrace not found])
elif test "$x{SDT_H_FOUND}" == "xno"; then elif test "$x{SDT_H_FOUND}" = "xno"; then
AC_MSG_ERROR([systemtap support needs sys/sdt.h header]) AC_MSG_ERROR([systemtap support needs sys/sdt.h header])
fi fi
fi fi
if test "x${DTRACE}" == "xyes" -a "x${SDT_H_FOUND}" == "xyes"; then if test "x${DTRACE}" = "xyes" -a "x${SDT_H_FOUND}" = "xyes"; then
AC_MSG_CHECKING([x"${DTRACE}"xy"${SDT_H_FOUND}"y]) AC_MSG_CHECKING([x"${DTRACE}"xy"${SDT_H_FOUND}"y])
AC_DEFINE([HAVE_SYSTEMTAP], [1], [Define to 1 if using probes.]) AC_DEFINE([HAVE_SYSTEMTAP], [1], [Define to 1 if using probes.])
BUILD_SYSTEMTAP=yes BUILD_SYSTEMTAP=yes