62
62
GOBJECT_INTROSPECTION_CHECK([$INTROSPECTION_REQUIRED_VERSION])
64
AC_ARG_WITH([indicator-dir],
65
[AS_HELP_STRING([--with-indicator-dir=DIR], [Indicator directory [default=$datadir/unity/indicators]])],
67
[with_indicator_dir=$datadir/unity/indicators])
68
AC_SUBST([INDICATOR_DIR], [$with_indicator_dir])
64
70
###########################
65
71
# gcov coverage reporting
66
72
###########################
100
106
AM_CONDITIONAL([BUILD_TESTS],[test "x$enable_tests" = "xyes"])
102
108
###########################
103
# Check to see if we're local
104
###########################
106
with_localinstall="no"
107
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
109
###########################
111
###########################
113
if test "x$with_localinstall" = "xyes"; then
114
INDICATORDIR="${libdir}/indicators/2/"
116
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
118
AC_SUBST(INDICATORDIR)
120
###########################
122
###########################
124
if test "x$with_localinstall" = "xyes"; then
125
DBUSSERVICEDIR="${datadir}/dbus-1/services/"
127
DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
129
AC_SUBST(DBUSSERVICEDIR)
109
# Vala API Generation
110
###########################
112
AC_ARG_ENABLE([vala],
113
AC_HELP_STRING([--disable-vala], [Disable vala]),
114
[enable_vala=$enableval], [enable_vala=yes])
116
AS_IF([test "x$enable_vala" != "xno"],[
117
AM_COND_IF([HAVE_INTROSPECTION],,[
118
AC_MSG_ERROR([Vala bindings require introspection support, please --enable-introspection])
120
AC_PATH_PROG([VALA_API_GEN], [vapigen])
122
AM_CONDITIONAL([HAVE_VALA], [test -n "$VALA_API_GEN"])
131
124
##############################