From 7bbcf5dacd1e392a1857c58ca17753a334e75a12 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 7 Nov 2014 21:11:12 -0500 Subject: configure: Check for freeimage. * configure.ac: Perform a primitive check for libfreeimage. --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e23db07..489e0e2 100644 --- a/configure.ac +++ b/configure.ac @@ -16,8 +16,11 @@ GUILE_MODULE_REQUIRED([sdl mixer]) GUILE_MODULE_REQUIRED([sdl ttf]) GUILE_MODULE_REQUIRED([gl]) +dnl Freeimage doesn't have a pkg-config file, so use this primitive +dnl test instead. +AC_CHECK_LIB([freeimage], [FreeImage_GetVersion],, + [AC_MSG_ERROR([freeimage not found.])]) + PKG_CHECK_MODULES([GSL], [gsl]) -# Why doesn't freeimage have a pkg-config file? -#PKG_CHECK_MODULES([freeimage], [freeimage >= 3.0]) AC_OUTPUT -- cgit v1.2.3