summaryrefslogtreecommitdiff
path: root/m4/efl_pkg_config.m4
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-06 23:19:35 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-06 23:19:35 +0000
commit4476601805b687d59ffd69e3ea05b0197c17460e (patch)
tree0ac881c41a2f867a2b2de70b6d7a47b8ff294ea2 /m4/efl_pkg_config.m4
parentd338bcac632280a8742741dd840a3c5a6cf852c4 (diff)
efl: m4 is a macro-expansion language, use that.
instead of replicating common patterns all around, let's use the common patterns as m4 macros. EFL_DEPEND_PKG() will use pkg-config and add the dependency. EFL_OPTIONAL_DEPEND_PKG() will use the former, but also defines have_XYZ and does the if statement for you. SVN revision: 80402
Diffstat (limited to 'm4/efl_pkg_config.m4')
-rw-r--r--m4/efl_pkg_config.m45
1 files changed, 2 insertions, 3 deletions
diff --git a/m4/efl_pkg_config.m4 b/m4/efl_pkg_config.m4
index c4f3c1e..13a9516 100644
--- a/m4/efl_pkg_config.m4
+++ b/m4/efl_pkg_config.m4
@@ -4,8 +4,7 @@ dnl EFL_PKG_CHECK_STRICT(MODULE, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
4dnl similar to PKG_CHECK_EXISTS() that will AC_MSG_ERROR() if not found 4dnl similar to PKG_CHECK_EXISTS() that will AC_MSG_ERROR() if not found
5AC_DEFUN([EFL_PKG_CHECK_STRICT], 5AC_DEFUN([EFL_PKG_CHECK_STRICT],
6[ 6[
7 PKG_CHECK_EXISTS([$1], 7 PKG_CHECK_EXISTS([$1], [$2],
8 [m4_if([$2], [$2], [:])], 8 [m4_ifval([$3], [$3], [AC_MSG_ERROR([pkg-config missing $1])])]
9 [m4_if([$3], [$3], [AC_MSG_ERROR([pkg-config missing $1])])]
10 ) 9 )
11]) 10])