]> granicus.if.org Git - shadow/commitdiff
configure.ac: fix configure error with dash
authorYi Zhao <yi.zhao@windriver.com>
Mon, 17 Jun 2019 07:36:34 +0000 (15:36 +0800)
committerYi Zhao <yi.zhao@windriver.com>
Mon, 17 Jun 2019 07:42:07 +0000 (15:42 +0800)
A configure error occurs when /bin/sh -> dash:
  checking for is_selinux_enabled in -lselinux... yes
  checking for semanage_connect in -lsemanage... yes
  configure: 16322: test: yesyes: unexpected operator

Use "=" instead of "==" since dash doesn't support this operator.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
configure.ac

index 67625564406f9c5c560d5a346e0ee9ca3d1f6b09..1907afbd83e67b0f0bbfba5708e68a3e3bf43598 100644 (file)
@@ -500,7 +500,7 @@ if test "$with_selinux" != "no"; then
                        AC_MSG_ERROR([libsemanage not found])
                fi
 
-               if test "$selinux_lib$semanage_lib" == "yesyes" ; then
+               if test "$selinux_lib$semanage_lib" = "yesyes" ; then
                        AC_DEFINE(WITH_SELINUX, 1,
                                  [Build shadow with SELinux support])
                        LIBSELINUX="-lselinux"