remove dual-thread-based architecture; now that we have mainloop integration, we...
[libeflvala.git] / configure.ac
blob5860534909cafc6809f92c73b11e5eb6d591d942
1 AC_INIT([libeflvala], [0.1.0.0], [mlauer@vanille-media.de], [libeflvala])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
5 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
7 AC_PROG_CC
8 AM_PROG_CC_C_O
9 AC_DISABLE_STATIC
10 AC_PROG_LIBTOOL
12 AC_PATH_PROG(VALAC, valac, valac)
13 AC_SUBST(VALAC)
15 AC_SUBST(CFLAGS)
16 AC_SUBST(CPPFLAGS)
17 AC_SUBST(LDFLAGS)
19 VALA_REQUIRED=0.7.9
20 EINA_REQUIRED=0.0.0
21 EVAS_REQUIRED=0.0.0
22 ECORE_REQUIRED=0.0.0
23 EDJE_REQUIRED=0.0.0
24 ELM_REQUIRED=0.0.0
25 GLIB_REQUIRED=2.18.0
26 DBUS_REQUIRED=1.2.1
27 DBUS_GLIB_REQUIRED=0.74
29 PKG_CHECK_MODULES(VALA,
30   vala-1.0 >= $VALA_REQUIRED)
32 PKG_CHECK_MODULES(DEPS,
33   dbus-1 >= $DBUS_REQUIRED
34   dbus-glib-1 >= $DBUS_GLIB_REQUIRED
35   eina-0 >= $EINA_REQUIRED
36   evas >= $EVAS_REQUIRED
37   ecore >= $ECORE_REQUIRED
38   edje >= $EDJE_REQUIRED
39   elementary >= $ELM_REQUIRED
40   glib-2.0 >= $GLIB_REQUIRED
41   gobject-2.0 >= $GLIB_REQUIRED)
42 AC_SUBST(DEPS_CFLAGS)
43 AC_SUBST(DEPS_LIBS)
45 PKG_CHECK_MODULES(THREAD,
46   gthread-2.0 >= $GLIB_REQUIRED)
47 AC_SUBST(THREAD_CFLAGS)
48 AC_SUBST(THREAD_LIBS)
50 AC_ARG_WITH(edje-cc,
51 [  --with-edje-cc=PATH  specify a specific path to edje_cc],
53   v=$withval;
54   edje_cc=$v
55   echo "  Enlightenment edje_cc explicitly set to "$edje_cc;
56 ],[
57   edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
59 AC_SUBST(edje_cc)
62 # shall we compile the library? [default=yes]
63 AC_ARG_ENABLE(library,      [  --disable-library        skip building the eflvala library [[default=no]]])
64 AM_CONDITIONAL(MAKE_LIBRARY, test x$enable_library != xno)
65 AC_MSG_CHECKING([whether to compile the eflvala library])
66 if test "$enable_library" != no; then
67   AC_MSG_RESULT(yes)
68 else
69   AC_MSG_RESULT(no)
72 # shall we compile the examples? [default=yes]
73 AC_ARG_ENABLE(examples,      [  --disable-examples      skip building the examples [[default=no]]])
74 AM_CONDITIONAL(MAKE_EXAMPLES, test x$enable_examples != xno)
75 AC_MSG_CHECKING([whether to compile the example apps])
76 if test "$enable_examples" != no; then
77   AC_MSG_RESULT(yes)
78 else
79   AC_MSG_RESULT(no)
83 AC_CONFIG_FILES([
84   Makefile
85   data/Makefile
86   data/images/Makefile
87   data/objects/Makefile
88   eflvala/Makefile
89   vapi/Makefile
90   tests/Makefile
91   examples/Makefile
92   examples/eina/Makefile
93   examples/ecore/Makefile
94   examples/ecore-signals/Makefile
95   examples/ecore-glib/Makefile
96   examples/edje/Makefile
97   examples/elementary/Makefile
98   examples/library/Makefile
99   examples/library/mainloops/Makefile
100   examples/library/viewstates/Makefile
101   eflvala-1.0.pc])
103 AC_OUTPUT