summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-02-02 21:39:28 +0100
committerDavid Tardon <dtardon@redhat.com>2014-02-02 21:41:39 +0100
commit964dd1e47996dd513d94b860649f684b3c3ad1a4 (patch)
treefcd99a2e909e2472abf497b44290a65f639ec9c9 /configure.ac
parentc5b79c8ae224b13a1035ab57998b0fe61d9fb886 (diff)
glm does not provide any .pc file
Change-Id: I8c4560e037e772a10a521931a44594a5f7a7f7ed
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f0e04a8950d1..5ef4025c7356 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8793,7 +8793,20 @@ AC_SUBST([MDDS_CPPFLAGS])
dnl ===================================================================
dnl Check for system glm
dnl ===================================================================
-libo_CHECK_SYSTEM_MODULE([glm], [GLM], [glm >= 0.9.4])
+AC_MSG_CHECKING([which glm to use])
+if test "$with_system_glm" = "yes"; then
+ AC_MSG_RESULT([external])
+ SYSTEM_GLM=YES
+ AC_LANG_PUSH([C++])
+ AC_CHECK_HEADER([glm/glm.hpp], [],
+ [AC_MSG_ERROR([glm/glm.hpp not found. install glm])], [])
+ AC_LANG_POP([C++])
+else
+ AC_MSG_RESULT([internal])
+ BUILD_TYPE="$BUILD_TYPE GLM"
+ SYSTEM_GLM=NO
+fi
+AC_SUBST([SYSTEM_GLM])
dnl ===================================================================
dnl Check for system glew