configure.ac: Enable egl demos when --enable-egl is passed
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Feb 2010 20:54:59 +0000 (15:54 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Feb 2010 20:55:25 +0000 (15:55 -0500)
configure.ac

index a273a16c891870af86813f21f8f0ed2854850c9f..27405bbc24c7e4632a93cdb09f5f06ec1f7f249b 100644 (file)
@@ -924,6 +924,10 @@ if test "x$enable_egl" = xyes; then
             EGL_DRIVERS_DIRS="$EGL_DRIVERS_DIRS dri2"
         fi
     fi
+
+    if test "$with_demos" = yes; then
+        PROGRAM_DIRS="$PROGRAM_DIRS egl"
+    fi
 fi
 AC_SUBST([EGL_LIB_DEPS])
 AC_SUBST([EGL_DRIVERS_DIRS])