From 2bf5d0bb546ba7034a8a785f9980700e7c894621 Mon Sep 17 00:00:00 2001 From: Sjur N Moshagen Date: Mon, 26 Feb 2024 12:31:46 +0200 Subject: [PATCH] Add configure test for convert --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index d6affe5..9f10ec8 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,12 @@ AS_IF([test x$KBDGEN = xno ], [AC_MSG_ERROR([You need kbdgen to build the keyboards. See https://github.com/divvun/kbdgen]) ]) +# `convert` is needed for icon generation, it must be available. +AC_PATH_PROG([CONVERT], [convert], [no], [$PATH$PATH_SEPARATOR$with_convert]) +AS_IF([test x$CONVERT = xno ], + [AC_MSG_ERROR([The ImageMagic command 'convert' is needed for icon generation. Please install ImageMagic using your preferred package manager.]) +]) + # List all non-script files processed by Autoconf. AC_CONFIG_FILES([Makefile])