summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-09-08 15:34:58 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-09-08 16:04:22 +0100
commit5eda1a5383a4134fd843debee4ee3d278575965b (patch)
treefd8d0e2c07671c78f362433309e8d7fb08c693a6 /configure.ac
parent837507cf3c7f6166d54c6a04dcad4e8df93cad6e (diff)
add enchilada module
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac57
1 files changed, 51 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 25a973f..cb46587 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,19 +47,14 @@ AC_PROG_LIBTOOL
47AC_PROG_INSTALL 47AC_PROG_INSTALL
48AC_PROG_CC 48AC_PROG_CC
49AM_PROG_CC_C_O 49AM_PROG_CC_C_O
50AC_PROG_CXX
50AC_PROG_MAKE_SET 51AC_PROG_MAKE_SET
51AC_HEADER_STDC
52
53AC_C_CONST
54AC_C_INLINE
55AC_TYPE_SIZE_T
56 52
57AC_FUNC_ALLOCA 53AC_FUNC_ALLOCA
58AC_CHECK_FUNCS([strdup strndup]) 54AC_CHECK_FUNCS([strdup strndup])
59 55
60PKG_PROG_PKG_CONFIG 56PKG_PROG_PKG_CONFIG
61 57
62PKG_CHECK_MODULES([EFL], [ecore-evas])
63PKG_CHECK_MODULES([SPICE], [spice-client-gtk-2.0 ecore]) 58PKG_CHECK_MODULES([SPICE], [spice-client-gtk-2.0 ecore])
64 59
65if test -z "$($PKG_CONFIG --variable=evas spice-client-gtk-2.0)" ; then 60if test -z "$($PKG_CONFIG --variable=evas spice-client-gtk-2.0)" ; then
@@ -68,6 +63,55 @@ fi
68 63
69############################## 64##############################
70 65
66AC_ARG_ENABLE([demos],
67 [AC_HELP_STRING([--disable-demos], [disable demo apps @<:@default=no@:>@])],
68 [want_demos=$enableval],
69 [want_demos="yes"]
70)
71
72if test "x$want_demos" = "xyes" ; then
73 PKG_CHECK_EXISTS([ecore-evas], [build_demos="yes"], [build_demos="no"])
74fi
75
76if test "x$build_demos" = "xyes" ; then
77 PKG_CHECK_MODULES([DEMO], [ecore-evas])
78fi
79AM_CONDITIONAL([BUILD_DEMOS], [test "x${build_demos}" = "xyes"])
80
81
82AC_ARG_ENABLE([enchilada],
83 [AC_HELP_STRING([--disable-enchilada], [disable enchilada module for enlightenment. @<:@default=yes@:>@])],
84 [want_enchilada=$enableval],
85 [want_enchilada="yes"]
86)
87
88build_enchilada="no"
89if test "x$want_enchilada" = "xyes" ; then
90 PKG_CHECK_MODULES([E], [enlightenment libvirt],
91 [
92 build_enchilada="yes"
93 MODULE_DIR=$(${PKG_CONFIG} --variable=modules enlightenment)
94 release=$(${PKG_CONFIG} --variable=release enlightenment)
95 MODULE_ARCH="$host_os-$host_cpu-$release"
96 AC_DEFINE_UNQUOTED([MODULE_ARCH], [$MODULE_ARCH], ["Module architecture"])
97 enchilada_desktop="src/modules/module.desktop"
98 ],
99 [build_enchilada="no"])
100fi
101
102AC_SUBST([MODULE_ARCH])
103
104AM_CONDITIONAL([BUILD_ENCHILADA], [test "x$build_enchilada" = "xyes"])
105
106AC_ARG_ENABLE(enchilada-homedir-install,
107 AS_HELP_STRING([--enable-enchilada-homedir-install], [Install modules in homedir]),
108 [MODULE_DIR="${HOME}/.e/e/modules"]
109)
110
111AC_SUBST([MODULE_DIR])
112
113##############################
114
71m4_ifdef([v_rev], 115m4_ifdef([v_rev],
72 [ 116 [
73 EFL_COMPILER_FLAG([-Wshadow]) 117 EFL_COMPILER_FLAG([-Wshadow])
@@ -77,6 +121,7 @@ m4_ifdef([v_rev],
77 121
78AC_CONFIG_FILES([ 122AC_CONFIG_FILES([
79 Makefile 123 Makefile
124 $enchilada_desktop
80]) 125])
81AC_OUTPUT 126AC_OUTPUT
82 127