Skip to content

Commit

Permalink
Fail in configure if Allegro 5 is not installed.
Browse files Browse the repository at this point in the history
Before this patch, we would just fail in the build stage instead.
  • Loading branch information
jamesyoungman committed Apr 26, 2020
1 parent 696d30b commit 115986d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 115986d

Please sign in to comment.