3
dnl Copyright (c) 2003 Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
6
AC_INIT([configure.ac])
1
dnl $Id: configure.ac 18596 2005-11-03 13:26:21Z daichi $
3
dnl Copyright (c) 2003-2005
4
dnl The Xfce development team. All rights reserved.
6
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
9
dnl Version information
10
m4_define([xfsm_version_major], [4])
11
m4_define([xfsm_version_minor], [2])
12
m4_define([xfsm_version_micro], [3])
13
m4_define([xfsm_version], [xfsm_version_major.xfsm_version_minor.xfsm_version_micro])
15
dnl Initialize autoconf
16
AC_COPYRIGHT([Copyright (c) 2003-2005
17
The Xfce development team. All rights reserved.
19
Written for Xfce by Benedikt Meurer <benny@xfce.org>.])
20
AC_INIT([xfce4-session], [xfsm_version], [xfce4-dev@xfce.org])
22
AC_REVISION([$Id: configure.ac 18596 2005-11-03 13:26:21Z daichi $])
24
dnl Initialize automake
25
XFSM_VERSION=xfsm_version
26
AM_INIT_AUTOMAKE([xfce4-session], [$XFSM_VERSION])
8
27
AM_CONFIG_HEADER([config.h])
10
AM_INIT_AUTOMAKE([xfce4-session], [0.1.3])
14
30
dnl check for UNIX variants
34
AM_CONDITIONAL([HAVE_OS_CYGWIN], [test x"`uname | grep \"CYGWIN\"`" != x""])
35
if test x"`uname | grep \"CYGWIN\"`" != x""; then
36
AC_DEFINE([HAVE_OS_CYGWIN], [1], [Compiling under cygwin])
19
39
dnl check for basic programs
33
54
dnl Check for session management support
57
dnl Check for _IceTransNoListen
59
LIBS="$LIBS $LIBSM_LDFLAGS $LIBSM_LIBS"
60
AC_CHECK_FUNCS([_IceTransNoListen])
36
63
dnl Check for i18n support
37
BM_I18N([xfce4-session], [ca de es es_MX hi it ko nl sv ta tr zh_CN zh_TW])
64
BM_I18N([xfce4-session], [af ar az be bn_IN ca cs da de el en_GB eo es es_MX
65
et eu fa fi fr gu he hi hu it ja ko ku lt mr ms nl
66
nb_NO pa pl pt_BR pt_PT ro ru sk sl sv ta tr uk vi
39
69
dnl Check for required packages
40
BM_DEPEND([LIBXFCE4UTIL], [libxfce4util-1.0], [4.0.0])
41
BM_DEPEND([LIBXFCE4MCS_CLIENT], [libxfce4mcs-client-1.0], [4.0.0])
42
BM_DEPEND([LIBXFCEGUI4], [libxfcegui4-1.0], [4.0.0])
70
BM_DEPEND([LIBXFCE4UTIL], [libxfce4util-1.0], [4.2.0])
71
BM_DEPEND([LIBXFCE4MCS_CLIENT], [libxfce4mcs-client-1.0], [4.2.0])
72
BM_DEPEND([LIBXFCEGUI4], [libxfcegui4-1.0], [4.2.0])
44
74
dnl Configure the MCS plugins
45
XFCE_MCS_PLUGIN([XFCE_MCS_MANAGER], [4.0.0])
75
XFCE_MCS_PLUGIN([XFCE_MCS_MANAGER], [4.2.0])
77
dnl Check for gnome support
78
BM_DEPEND_CHECK([GCONF], [gconf-2.0], [2.4.0], [gconf],
79
[Assistive technologies support], [no])
47
81
dnl Check for debugging support
85
AC_PATH_PROG([ICEAUTH], [iceauth])
86
if test x"$ICEAUTH" != x""; then
87
AC_DEFINE_UNQUOTED([ICEAUTH_CMD], ["$ICEAUTH"], [path to iceauth])
89
AC_MSG_ERROR([iceauth missing, please check your X11 installation])
93
AC_PATH_PROG([RM], [rm])
94
if test x"$RM" != x""; then
95
AC_DEFINE_UNQUOTED([RM_CMD], ["$RM"], [path to rm])
98
dnl Check for legacy session management
99
AC_ARG_ENABLE([legacy-sm],
100
AC_HELP_STRING([--enable-legacy-sm], [Enable X11R5 session management])
101
AC_HELP_STRING([--disable-legacy-sm], [Disable X11R5 session management]),
102
[], [enable_legacy_sm=yes])
103
AC_MSG_CHECKING([whether to enable X11R5 session management])
104
if test x"$enable_legacy_sm" != x"yes"; then
107
AC_DEFINE([LEGACY_SESSION_MANAGEMENT], [1], [Define for X11R5 sm compat])
111
dnl Check whether to create session screenshots
112
AC_ARG_ENABLE([session-screenshots],
113
AC_HELP_STRING([--enable-session-screenshots], [Create screenshots of sessions on logout]),
114
[], [enable_session_screenshots=no])
115
AC_MSG_CHECKING([whether to create screenshots of sessions on logout])
116
if test x"$enable_session_screenshots" != x"yes"; then
119
AC_DEFINE([SESSION_SCREENSHOTS], [1], [Define for session screenshots])
123
dnl Check for shutdown method
124
AC_ARG_WITH([shutdown-style],
125
AC_HELP_STRING([--with-shutdown-style=auto/none/sudo], [Shutdown style]),
126
[with_shutdown=$withval], [with_shutdown=auto])
127
AC_MSG_CHECKING([what shutdown style should be used])
128
if test x"$with_shutdown" != x"sudo" -a x"$with_shutdown" != x"none"; then
131
AC_DEFINE_UNQUOTED([XFSM_SHUTDOWN_HELPER_IMPL_C],
132
[<xfce4-session/xfsm-shutdown-helper-$with_shutdown.c>],
133
[Shutdown helper implementation])
134
AC_MSG_RESULT([$with_shutdown])
137
dnl arguments to set shutdown commands
140
dnl AC_MSG_CHECKING([for custom 'poweroff' command])
141
dnl AC_ARG_WITH([poweroff],
142
dnl AC_HELP_STRING([--with-poweroff=cmd], [command used to power down (full path with arguments)]),
143
dnl [with_poweroff="$withval"],
144
dnl [with_poweroff="no"])
145
dnl if test "x$with_poweroff" != "xno"; then
146
dnl AC_DEFINE_UNQUOTED(POWEROFF_CMD, "$with_poweroff", [poweroff command])
148
dnl AC_MSG_RESULT([$with_poweroff])
150
dnl AC_MSG_CHECKING([for custom 'halt' command])
151
dnl AC_ARG_WITH([halt],
152
dnl AC_HELP_STRING([--with-halt=cmd], [command used to halt (full path with arguments)]),
153
dnl [with_halt="$withval"],
154
dnl [with_halt="no"])
155
dnl if test "x$with_halt" != "xno"; then
156
dnl AC_DEFINE_UNQUOTED(HALT_CMD, "$with_halt", [halt command])
158
dnl AC_MSG_RESULT([$with_halt])
160
dnl AC_MSG_CHECKING([for custom 'reboot' command])
161
dnl AC_ARG_WITH([reboot],
162
dnl AC_HELP_STRING([--with-reboot=cmd], [command used to reboot (full path with arguments)]),
163
dnl [with_reboot="$withval"],
164
dnl [with_reboot="no"])
165
dnl if test "x$with_reboot" != "xno"; then
166
dnl AC_DEFINE_UNQUOTED(REBOOT_CMD, "$with_reboot", [reboot command])
168
dnl AC_MSG_RESULT([$with_reboot])
53
defaults/splash/Makefile
175
doc/C/images/Makefile
177
doc/fr/images/Makefile
179
doc/he/images/Makefile
181
engines/balou/Makefile
182
engines/balou/scripts/Makefile
183
engines/balou/themes/Makefile
184
engines/balou/themes/Default/Makefile
185
engines/mice/Makefile
186
engines/simple/Makefile
191
icons/128x128/Makefile
192
icons/scalable/Makefile
194
libxfsm/xfce4-session-1.0.pc
197
settings/session/Makefile
198
settings/splash/Makefile
58
199
xfce4-session/Makefile
59
xfce4-shutdown/Makefile
200
xfce4-session-logout/Makefile
201
xfsm-shutdown-helper/Makefile