From 115986dc630b4a2e7549296d29e07d826ec10b47 Mon Sep 17 00:00:00 2001 From: James Youngman Date: Sun, 26 Apr 2020 07:54:21 +0100 Subject: [PATCH] Fail in configure if Allegro 5 is not installed. Before this patch, we would just fail in the build stage instead. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 0d90a356..0bdd8a13 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,8 @@ AC_CHECK_LIB([z], [gzopen]) # Checks for header files. AC_CHECK_HEADERS([inttypes.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h unistd.h]) +AC_CHECK_HEADER([allegro5/allegro.h],[], + [AC_MSG_FAILURE([The Allegro version 5 library is needed but not installed], 1)],[]) AM_CONDITIONAL(OS_WIN, test "$host_os" = "win")