aboutsummaryrefslogtreecommitdiff
path: root/m4/ac_ecore.m4
diff options
context:
space:
mode:
authorbeber <beber>2005-12-09 20:56:47 +0000
committerbeber <beber>2005-12-09 20:56:47 +0000
commit994a225682394476b065274f7fe8ef075070d420 (patch)
tree7119c174c4eea6364db4a5d9aec0931c97764d17 /m4/ac_ecore.m4
parentindent (diff)
downloadespik-994a225682394476b065274f7fe8ef075070d420.tar.xz
iadd a macro for ecore
involv in espik debug marcro less bordel autogen.sh
Diffstat (limited to 'm4/ac_ecore.m4')
-rw-r--r--m4/ac_ecore.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/m4/ac_ecore.m4 b/m4/ac_ecore.m4
new file mode 100644
index 0000000..952026a
--- /dev/null
+++ b/m4/ac_ecore.m4
@@ -0,0 +1,20 @@
+AC_DEFUN([AC_CHK_ECORE],
+[
+ AC_ARG_WITH(
+ [ecore-config],
+ [ --with-ecore-config=ECORE_CONFIG_PATH use ecore-config specified ],
+ [ECORE_CONFIG=$withval;
+ if ! test -x "$ECORE_CONFIG"; then
+ AC_MSG_ERROR([$ECORE_CONFIG not found])
+ fi],
+ [AC_PATH_PROG(ECORE_CONFIG, "ecore-config", "", $PATH)
+ if test -z "$ECORE_CONFIG"; then
+ AC_MSG_ERROR([You need ecore !])
+ fi])
+
+ ecore_cflags=`$ECORE_CONFIG --cflags`
+ ecore_libs=`$ECORE_CONFIG --libs`
+
+ AC_SUBST(ecore_cflags)
+ AC_SUBST(ecore_libs)
+])