summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-10-03 14:34:52 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-10-03 14:34:52 +0100
commitcc4189531bf74e0013b3d4efd22a097c4e4ca072 (patch)
tree6af3655996a0af378b0d004e3ef6a0a03361e5ae /configure.ac
init
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac70
1 files changed, 70 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..922976f
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,70 @@
1dnl Process this file with autoconf to produce a configure script.
2
3# get rid of that stupid cache mechanism
4rm -f config.cache
5
6AC_INIT(desksanity, 0.1, zmike@enlightenment.org)
7AC_CONFIG_MACRO_DIR([m4])
8AC_PREREQ(2.52)
9AC_CONFIG_SRCDIR(configure.ac)
10AC_CANONICAL_BUILD
11AC_CANONICAL_HOST
12AC_ISC_POSIX
13
14AM_INIT_AUTOMAKE([1.8 dist-bzip2])
15AM_CONFIG_HEADER(config.h)
16m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
17
18AC_PROG_CC
19AM_PROG_CC_STDC
20
21define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
22define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
23AC_PROG_LIBTOOL
24
25#m4_ifdef([AM_GNU_GETTEXT_VERSION], [
26#AM_GNU_GETTEXT_VERSION([0.14])
27#])
28
29#m4_ifdef([AM_GNU_GETTEXT], [
30#AM_GNU_GETTEXT([external])
31#po_makefile_in=po/Makefile.in
32#AM_CONDITIONAL([HAVE_PO], [true])
33#],[
34#AM_CONDITIONAL([HAVE_PO], [false])
35#])
36#AC_SUBST(LTLIBINTL)
37
38PKG_CHECK_MODULES([E], [efx enlightenment])
39release=$(pkg-config --variable=release enlightenment)
40MODULE_ARCH="$host_os-$host_cpu-$release"
41AC_SUBST(MODULE_ARCH)
42AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
43
44module_dir="$(pkg-config --variable=modules enlightenment)"
45AC_SUBST(module_dir)
46datadir="$module_dir/desksanity"
47# Find edje_cc
48AC_ARG_WITH(edje-cc,
49 AC_HELP_STRING([--with-edje-cc=PATH], [specify a specific path to edje_cc]),
50 [
51 v=$withval;
52 EDJE_CC=$v
53 ],[
54 EDJE_CC=$(pkg-config --variable=prefix edje)/bin/edje_cc
55 ]
56)
57AC_SUBST(EDJE_CC)
58AC_MSG_CHECKING([Which edje_cc to use])
59AC_MSG_RESULT(${EDJE_CC})
60
61AC_OUTPUT([
62Makefile
63src/Makefile
64module.desktop
65e_modules-desksanity.spec
66], [
67])
68
69#$po_makefile_in
70