summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-06-04 07:45:13 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-06-04 09:25:58 -0400
commitac54c6537646323aaeabddd34def688e55d97c77 (patch)
tree2812e941e367359f694edd126cec825d7d531c3f /configure.ac
parentd3ed7295cd00d6b23d580cd6cd77ed5e6aa400e5 (diff)
downloadmesa-demos-ac54c6537646323aaeabddd34def688e55d97c77.zip
mesa-demos-ac54c6537646323aaeabddd34def688e55d97c77.tar.xz
configure.ac: Provide a fallback for GLU implementations with no .pc file
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 055530f..1035494 100644
--- a/configure.ac
+++ b/configure.ac
@@ -100,7 +100,15 @@ DEMO_LIBS="$DEMO_LIBS $GLEW_LIBS"
# LIBS was set by AC_CHECK_LIB above
LIBS=""
-PKG_CHECK_MODULES(GLU, [glu])
+PKG_CHECK_MODULES(GLU, [glu], [],
+ [AC_CHECK_HEADER([GL/glu.h],
+ [],
+ AC_MSG_ERROR([GLU not found]))
+ AC_CHECK_LIB([GLU],
+ [gluBeginCurve],
+ [GLU_LIBS=-lGLU],
+ AC_MSG_ERROR([GLU required])) ])
+
DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"