configure --with-openjp2 to switch library path (#1871)
https://github.com/ImageMagick/ImageMagick/issues/1869
diff --git a/configure b/configure
index d448408..7d93b61 100755
--- a/configure
+++ b/configure
@@ -4566,7 +4566,7 @@
MAGICK_VERSION=7.0.10-3
-MAGICK_GIT_REVISION=17089:263fc2ce1:20200322
+MAGICK_GIT_REVISION=17090:4b25060:20200324
# Substitute library versioning
@@ -31410,7 +31410,7 @@
LIBOPENJP2_CFLAGS=""
LIBOPENJP2_LIBS=""
LIBOPENJP2_PKG=""
-if test "x$with_openjp2" = "xyes"; then
+if test "$with_openjp2" != 'no'; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
$as_echo "-------------------------------------------------------------" >&6; }
diff --git a/configure.ac b/configure.ac
index 2b76906..6449c21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2413,7 +2413,7 @@
LIBOPENJP2_CFLAGS=""
LIBOPENJP2_LIBS=""
LIBOPENJP2_PKG=""
-if test "x$with_openjp2" = "xyes"; then
+if test "$with_openjp2" != 'no'; then
AC_MSG_RESULT([-------------------------------------------------------------])
PKG_CHECK_MODULES(LIBOPENJP2,[libopenjp2 >= 2.1.0], have_openjp2=yes, have_openjp2=no)
AC_MSG_RESULT([])