From 705bfd327ce66dc6d1e204c212908c283e631a71 Mon Sep 17 00:00:00 2001
From: Heinz-Bernd Eggenstein <heinz-bernd.eggenstein@aei.mpg.de>
Date: Fri, 17 Jan 2014 01:02:45 +0100
Subject: [PATCH] Bug fix: Do not try to compile graphics part of API if
 jpeglib.h is missing on host.

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 3c4098b..00a21b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -566,7 +566,7 @@ HINT: on MacOSX/Darwin these libs/includes are sometimes found in '/sw/' (if usi
    fi
 fi
 
-AM_CONDITIONAL(BUILD_GRAPHICS_API, [ test "$have_glut" = yes ])
+AM_CONDITIONAL(BUILD_GRAPHICS_API, [ test "$have_glut" = yes -a "$have_jpeg" = 1 ])
 
 dnl check for X screen saver lib
 if test "$enable_xss" == yes; then
-- 
1.8.0

