summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-03-06 12:38:37 +0000
committerChris Michael <cp.michael@samsung.com>2014-03-06 12:39:46 +0000
commit5eaa275670a76037c1d13caea76f02edfc5cf2ba (patch)
treedcb7fda6b2e8612a18614270cd0470feaac58988 /configure.ac
parentc9f15a2afa119feb2f22a0730c2efb38b1240f02 (diff)
elm: Add Drm Detection
@bugfix: Previous elm config messages did not echo if drm was detected. This adds some (auto)detection, and some output to say if it was found. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4c9263deb..99d8e3b65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -435,6 +435,30 @@ if test "x$want_elementary_wayland" = "xyes" -a "x$have_elementary_wayland" = "x
435 AC_MSG_ERROR([ecore-wayland support requested, but ecore-wayland was not found by pkg-config.]) 435 AC_MSG_ERROR([ecore-wayland support requested, but ecore-wayland was not found by pkg-config.])
436fi 436fi
437 437
438have_elementary_drm="no"
439want_elementary_drm="auto"
440AC_ARG_ENABLE([ecore-drm],
441 [AC_HELP_STRING([--disable-ecore-drm], [disable ecore-drm support. @<:@default=detect@:>@])],
442 [want_elementary_drm=$enableval], [])
443
444if test "x$want_elementary_drm" != "xno"; then
445 PKG_CHECK_MODULES([ELEMENTARY_DRM],
446 [ecore-drm >= efl_version],
447 [
448 AC_DEFINE(HAVE_ELEMENTARY_DRM, 1, [DRM support for Elementary])
449 have_elementary_drm="yes"
450 requirement_elm="ecore-drm >= efl_version ${requirement_elm}"
451 ],
452 [have_elementary_drm="no"]
453 )
454else
455 have_elementary_drm="no"
456fi
457if test "x$want_elementary_drm" = "xyes" -a "x$have_elementary_drm" = "xno"; then
458 AC_MSG_ERROR([ecore-drm support requested, but ecore-drm was not found by pkg-config.])
459fi
460
461
438ELM_ELOCATION_DEF="#undef" 462ELM_ELOCATION_DEF="#undef"
439have_elementary_elocation="no" 463have_elementary_elocation="no"
440want_elementary_elocation="auto" 464want_elementary_elocation="auto"
@@ -733,6 +757,7 @@ echo
733echo " Engines:" 757echo " Engines:"
734echo " X11....................: ${have_elementary_x}" 758echo " X11....................: ${have_elementary_x}"
735echo " Framebuffer............: ${have_elementary_fb}" 759echo " Framebuffer............: ${have_elementary_fb}"
760echo " DRM....................: ${have_elementary_drm}"
736echo " PSL1GHT................: ${have_elementary_psl1ght}" 761echo " PSL1GHT................: ${have_elementary_psl1ght}"
737echo " SDL....................: ${have_elementary_sdl}" 762echo " SDL....................: ${have_elementary_sdl}"
738echo " Cocoa..................: ${have_elementary_cocoa}" 763echo " Cocoa..................: ${have_elementary_cocoa}"