summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d85c345..fdabdbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,11 +36,12 @@ if test x$with_experimental == xyes; then
CXXFLAGS="$CXXFLAGS -DEXPERIMENTAL"
fi
-AC_ARG_WITH(pugl, [ --with-pugl Build with Pugl support])
-if test x$with_pugl == xyes; then
+AC_ARG_ENABLE(pugl, [ --enable-pugl Build with Pugl support])
+if test x$enable_pugl == xyes; then
AC_MSG_WARN([*** Building with pugl support!])
CXXFLAGS="$CXXFLAGS -DPUGL -lGL -lGLU -lglut"
fi
+AM_CONDITIONAL([ENABLE_PUGL], [test "x$enable_pugl" = "xyes"])
AC_ARG_WITH(test, [ --with-test Build unit tests])
if test x$with_test == xyes; then