@@ -70,6 +70,7 @@ AC_ARG_ENABLE([libindicator],
7070 [ ] , [ enable_libindicator=yes] )
7171
7272AC_ARG_WITH ( [ libindicator] , AS_HELP_STRING ( [ --with-libindicator=ayatana|unity] , [ Preferred indicator backend [ default=ayatana] ] ) )
73+ have_indicator_ng=no
7374
7475AS_IF ( [ test "x$enable_libindicator" = "xyes"] , [
7576 AS_IF ( [ test "x$with_libindicator" != "xunity" && $PKG_CONFIG --exists "$AYATANA_INDICATOR_PKG >= $AYATANA_INDICATOR_REQUIRED_VERSION" >/dev/null 2>&1] , [
@@ -86,6 +87,7 @@ AS_IF([test "x$enable_libindicator" = "xyes"], [
8687 CPPFLAGS_OLD="$CPPFLAGS"
8788 CPPFLAGS=`$PKG_CONFIG --cflags ${AYATANA_INDICATOR_PKG}`
8889 AC_CHECK_HEADER ( [ libayatana-indicator/indicator-ng.h] , [
90+ have_indicator_ng=yes
8991 AC_DEFINE ( [ HAVE_LIBINDICATOR_NG] , [ 1] , [ Define if "libayatana-indicator/indicator-ng.h" is present] )
9092 AC_DEFINE ( [ HAVE_AYATANA_LIBINDICATOR_NG] , [ 1] , [ Define if "libayatana-indicator/indicator-ng.h" is present] )
9193 ] , [ ] , [ -] )
@@ -110,6 +112,7 @@ AS_IF([test "x$enable_libindicator" = "xyes"], [
110112 CPPFLAGS_OLD="$CPPFLAGS"
111113 CPPFLAGS=`$PKG_CONFIG --cflags ${UNITY_INDICATOR_PKG}`
112114 AC_CHECK_HEADER ( [ libindicator/indicator-ng.h] , [
115+ have_indicator_ng=yes
113116 AC_DEFINE ( [ HAVE_LIBINDICATOR_NG] , [ 1] , [ Define if "libindicator/indicator-ng.h" is present] )
114117 AC_DEFINE ( [ HAVE_UNITY_LIBINDICATOR_NG] , [ 1] , [ Define if "libindicator/indicator-ng.h" is present] )
115118 ] , [ ] , [ -] )
@@ -127,16 +130,26 @@ AS_IF([test "x$enable_libindicator" = "xyes"], [
127130
128131AM_CONDITIONAL([ HAVE_UNITY_LIBINDICATOR] , [ test "x$have_unity_libindicator" = "xyes"] )
129132
133+ AC_ARG_WITH ( [ systemd-service-dir] , AS_HELP_STRING ( [ --with-systemd-service-dir=path] , [ Path where systemd indicator service units are stored] ) )
134+ AS_IF ( [ test "x$with_systemd_service_dir" = "x" || test "x$with_systemd_service_dir" = "x"] , [
135+ with_systemd_service_dir="/usr/lib/systemd/user"
136+ ] , [ ] )
137+ SYSTEMD_SERVICE_DIR="$with_systemd_service_dir"
138+ AC_SUBST ( SYSTEMD_SERVICE_DIR )
139+
130140dnl ###########################################################################
131141
132142AC_ARG_ENABLE ( [ libido] ,
133143 AC_HELP_STRING ( [ --enable-libido] , [ Enable libido support] )
134144 AC_HELP_STRING ( [ --disable-libido] , [ Disable libido support] ) ,
135145 [ ] , [ enable_libido=yes] )
136146
147+ have_ido=no
148+
137149AS_IF ( [ test "x$enable_libido" = "xyes" && test "x$have_libindicator" = "xyes"] , [
138150 AS_IF ( [ test "x$have_ayatana_libindicator" = "xyes" && $PKG_CONFIG --exists "$AYATANA_IDO_PKG" >/dev/null 2>&1] , [
139151 PKG_CHECK_MODULES([ AYATANA_LIBIDO] , [ $AYATANA_IDO_PKG >= $AYATANA_IDO_REQUIRED_VERSION] , [
152+ have_ido=yes
140153 AC_DEFINE ( [ HAVE_LIBIDO] , [ 1] , [ Define if "$AYATANA_IDO_PKG" is present] )
141154 AC_DEFINE ( [ HAVE_AYATANA_LIBIDO] , [ 1] , [ Define if "$AYATANA_IDO_PKG" is present] )
142155 ] )
@@ -147,6 +160,7 @@ AS_IF([test "x$enable_libido" = "xyes" && test "x$have_libindicator" = "xyes"],
147160 ] , [ ] )
148161 AS_IF ( [ $PKG_CONFIG --exists "$UNITY_IDO_PKG" >/dev/null 2>&1] , [
149162 PKG_CHECK_MODULES([ UNITY_LIBIDO] , [ $UNITY_IDO_PKG >= $UNITY_IDO_REQUIRED_VERSION] , [
163+ have_ido=yes
150164 AC_DEFINE ( [ HAVE_LIBIDO] , [ 1] , [ Define if "$UNITY_IDO_PKG" is present] )
151165 AC_DEFINE ( [ HAVE_UNITY_LIBIDO] , [ 1] , [ Define if "$UNITY_IDO_PKG" is present] )
152166 ] )
@@ -169,7 +183,9 @@ AS_IF([test "x$with_libxklavier" = "xyes"],
169183 PKG_CHECK_MODULES([ LIBXKLAVIER] , [ libxklavier] , [ have_xklavier=yes] )
170184 AC_DEFINE ( [ HAVE_LIBXKLAVIER] , [ 1] , [ Define if "libxklavier" is present] )
171185] ,
172- [ ] )
186+ [
187+ with_libxklavier=no
188+ ] )
173189
174190dnl ###########################################################################
175191
@@ -237,3 +253,37 @@ po/Makefile.in
237253src/Makefile
238254] )
239255AC_OUTPUT
256+
257+ AS_IF ( [ test "x$have_libindicator" = "xyes"] , [
258+ AS_IF ( [ test "x$have_ayatana_libindicator" = "xyes"] , [
259+ indicator_backend="ayatana"
260+ ] , [
261+ indicator_backend="unity"
262+ ] )
263+ ] , [
264+ indicator_backend="disabled"
265+ ] )
266+
267+ echo "
268+ ------------------------------------------------------
269+ LightDM GTK+ Greeter $VERSION
270+ ====================================
271+
272+ Installation:
273+ =============
274+ Prefix: $prefix
275+ AT-SPI Service: $enable_at_spi_command
276+ Use libxklavier: $with_libxklavier
277+ Enable SIGTERM Handler: $enable_kill_on_sigterm
278+
279+ Indicators:
280+ ===========
281+ Indicator Support: $indicator_backend
282+ Indicator Services Command: $enable_indicator_services_command
283+ systemd Services: $with_systemd_service_dir
284+ Indicator NG: $have_indicator_ng
285+ IDO: $have_ido
286+
287+ ------------------------------------------------------
288+
289+ Configuration finished, type make to compile"
0 commit comments