1 dnl Process this file with autoconf to produce a configure script.
3 # get rid of that stupid cache mechanism
6 AC_INIT(e-mod-tizen-wm-policy, 0.1, kk.moon@samsung.com)
8 AC_CONFIG_SRCDIR(configure.ac)
13 AM_INIT_AUTOMAKE(1.8 subdir-objects)
14 AM_CONFIG_HEADER(config.h)
15 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
24 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
25 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
28 #AM_GNU_GETTEXT([external])
29 #AM_GNU_GETTEXT_VERSION(0.14)
32 AC_ARG_ENABLE([wayland-only],
33 AS_HELP_STRING([--enable-wayland-only],[enable wayland-only version of enlightenment @<:@default=disabled@:>@]),
34 [have_wayland_only=$enableval],
35 [have_wayland_only=no])
36 AC_MSG_CHECKING([whether wayland-only version is enabled])
37 if test "x${have_wayland_only}" != "xno"; then
38 AC_DEFINE_UNQUOTED([HAVE_WAYLAND_ONLY],[1],[enable wayland-only version of enlightenment])
40 AM_CONDITIONAL(HAVE_WAYLAND_ONLY, [test "x${have_wayland_only}" = xyes])
42 PKG_CHECK_MODULES(ENLIGHTENMENT, [enlightenment])
43 AC_SUBST(ENLIGHTENMENT_CFLAGS)
44 AC_SUBST(ENLIGHTENMENT_LIBS)
46 PKG_CHECK_MODULES(CAPI_SYSTEM_INFO, [capi-system-info])
47 AC_SUBST(CAPI_SYSTEM_INFO_CFLAGS)
48 AC_SUBST(CAPI_SYSTEM_INFO_LIBS)
50 # Checks for ttrace header files
51 PKG_CHECK_MODULES(TTRACE,
53 [have_ttrace="yes"], [have_ttrace="no"])
55 if test "x$have_ttrace" = "xyes"; then
56 AC_DEFINE(ENABLE_TTRACE, 1, [ttrace available])
59 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
62 release=$(pkg-config --variable=release enlightenment)
63 MODULE_ARCH="$host_os-$host_cpu-$release"
65 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
67 datadir=$(pkg-config --variable=modules enlightenment)/${PACKAGE}
69 # for include e_comp_wl.h
70 if test "x${have_wayland_only}" != "xno"; then
71 AC_DEFINE_UNQUOTED([HAVE_WAYLAND],[1],[enable wayland support])
78 AC_ARG_ENABLE([auto-rotation],
79 [AS_HELP_STRING([--enable-auto-rotation], [enable auto rotation @<:@default=disabled@:>@])],
80 [want_auto_rotation=$enableval],
81 [want_auto_rotation=no])
83 AC_MSG_CHECKING([whether auto rotation is enabled])
84 AC_MSG_RESULT([${want_auto_rotation}])
86 if test "x${want_auto_rotation}" == "xyes"; then
88 PKG_CHECK_MODULES([SENSORD], [sensor],
90 have_auto_rotation=yes
91 AC_DEFINE_UNQUOTED([HAVE_AUTO_ROTATION], [1], [enable auto rotation])
93 [have_auto_rotation=no])
96 AM_CONDITIONAL([HAVE_AUTO_ROTATION], [test "x${have_auto_rotation}" = "xyes"])
97 #### End of WM Rotation
99 AC_CONFIG_FILES([Makefile