]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix webp test for Android
authorPo Lu <luangruo@yahoo.com>
Thu, 9 Mar 2023 06:57:45 +0000 (14:57 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 9 Mar 2023 06:57:45 +0000 (14:57 +0800)
* configure.ac (HAVE_WEBP): Disable WebPGetInfo check when
REALLY_ANDROID.

configure.ac

index a5c8b3cb3a9e2caf760439081b6b8e68ff5cda85..328b55d96ec69b9672bba28d6d030d30892c397a 100644 (file)
@@ -3455,12 +3455,13 @@ if test "${with_webp}" != "no"; then
       CFLAGS="$CFLAGS $WEBP_CFLAGS"
       LIBS="$LIBS $WEBP_LIBS"
 
-      AC_CHECK_FUNC([WebPGetInfo], [],
-        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
-        HAVE_WEBP=no
-        AS_UNSET([WEBP_LIBS])
-        AS_UNSET([WEBP_CFLAGS])
-        EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
+      AS_IF([test "$REALLY_ANDROID" != "yes"], [
+       AC_CHECK_FUNC([WebPGetInfo], [],
+         [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
+          HAVE_WEBP=no
+          AS_UNSET([WEBP_LIBS])
+          AS_UNSET([WEBP_CFLAGS])
+          EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])])
 
       CFLAGS=$OLD_CFLAGS
       LIBS=$OLD_LIBS