summaryrefslogtreecommitdiff
path: root/m4/evas_check_engine.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/evas_check_engine.m4')
-rw-r--r--m4/evas_check_engine.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 5e6655ccf5..907bc8c155 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -585,6 +585,41 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
585 585
586]) 586])
587 587
588dnl use: EVAS_CHECK_ENGINE_DEP_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
589
590AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
591[
592
593requirement=""
594have_dep="no"
595evas_engine_[]$1[]_cflags=""
596evas_engine_[]$1[]_libs=""
597
598PKG_CHECK_EXISTS([libdrm],
599 [
600 have_dep="yes"
601 requirement="libdrm"
602 ],
603 [have_dep="no"])
604
605if test "x${have_dep}" = "xyes" ; then
606 if test "x$3" = "xstatic" ; then
607 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
608 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
609 else
610 PKG_CHECK_MODULES([DRM], [${requirement}])
611 evas_engine_[]$1[]_cflags="${DRM_CFLAGS}"
612 evas_engine_[]$1[]_libs="${DRM_LIBS}"
613 fi
614fi
615
616AC_SUBST([evas_engine_$1_cflags])
617AC_SUBST([evas_engine_$1_libs])
618
619AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
620
621])
622
588 623
589dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE]) 624dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE])
590dnl 625dnl