~ubuntu-branches/ubuntu/karmic/xfce4-session/karmic

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2005-11-06 22:01:12 UTC
  • mto: (4.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051106220112-5rusox237ymjghsp
Tags: upstream-4.2.3
ImportĀ upstreamĀ versionĀ 4.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl configure.ac
2
 
dnl
3
 
dnl Copyright (c) 2003 Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
4
 
dnl
5
 
 
6
 
AC_INIT([configure.ac])
7
 
 
 
1
dnl $Id: configure.ac 18596 2005-11-03 13:26:21Z daichi $
 
2
dnl
 
3
dnl Copyright (c) 2003-2005
 
4
dnl         The Xfce development team. All rights reserved.
 
5
dnl
 
6
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
 
7
dnl
 
8
 
 
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])
 
14
 
 
15
dnl Initialize autoconf
 
16
AC_COPYRIGHT([Copyright (c) 2003-2005
 
17
        The Xfce development team. All rights reserved.
 
18
        
 
19
Written for Xfce by Benedikt Meurer <benny@xfce.org>.])
 
20
AC_INIT([xfce4-session], [xfsm_version], [xfce4-dev@xfce.org])
 
21
AC_PREREQ([2.50])
 
22
AC_REVISION([$Id: configure.ac 18596 2005-11-03 13:26:21Z daichi $])
 
23
 
 
24
dnl Initialize automake
 
25
XFSM_VERSION=xfsm_version
 
26
AM_INIT_AUTOMAKE([xfce4-session], [$XFSM_VERSION])
8
27
AM_CONFIG_HEADER([config.h])
9
 
 
10
 
AM_INIT_AUTOMAKE([xfce4-session], [0.1.3])
11
 
 
12
28
AM_MAINTAINER_MODE
13
29
 
14
30
dnl check for UNIX variants
15
31
AC_AIX
16
32
AC_ISC_POSIX
17
33
AC_MINIX
 
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])
 
37
fi
18
38
 
19
39
dnl check for basic programs
20
40
AC_PROG_CC
23
43
 
24
44
dnl check for standard header files
25
45
AC_HEADER_STDC
26
 
AC_CHECK_FUNCS([gethostname mkdir setenv sigaction])
27
 
AC_CHECK_HEADERS([errno.h fcntl.h limits.h signal.h sys/param.h sys/utsname.h \
28
 
  sys/wait.h time.h])
 
46
AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname sigaction strdup sync])
 
47
AC_CHECK_HEADERS([errno.h fcntl.h limits.h netdb.h signal.h stdarg.h \
 
48
  sys/param.h sys/resource.h sys/socket.h sys/time.h sys/wait.h sys/utsname.h \
 
49
  time.h unistd.h])
29
50
 
30
51
dnl Check for X11 installed
31
52
BM_LIBX11_REQUIRE
33
54
dnl Check for session management support
34
55
BM_LIBSM
35
56
 
 
57
dnl Check for _IceTransNoListen
 
58
ac_LIBS="$LIBS"
 
59
LIBS="$LIBS $LIBSM_LDFLAGS $LIBSM_LIBS"
 
60
AC_CHECK_FUNCS([_IceTransNoListen])
 
61
LIBS="$ac_LIBS"
 
62
 
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
 
67
                          zh_CN zh_TW])
38
68
 
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])
43
73
 
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])
 
76
 
 
77
dnl Check for gnome support
 
78
BM_DEPEND_CHECK([GCONF], [gconf-2.0], [2.4.0], [gconf],
 
79
  [Assistive technologies support], [no])
46
80
 
47
81
dnl Check for debugging support
48
82
BM_DEBUG_SUPPORT
49
83
 
 
84
dnl Check for iceauth
 
85
AC_PATH_PROG([ICEAUTH], [iceauth])
 
86
if test x"$ICEAUTH" != x""; then
 
87
  AC_DEFINE_UNQUOTED([ICEAUTH_CMD], ["$ICEAUTH"], [path to iceauth])
 
88
else
 
89
  AC_MSG_ERROR([iceauth missing, please check your X11 installation])
 
90
fi
 
91
 
 
92
dnl Check for rm
 
93
AC_PATH_PROG([RM], [rm])
 
94
if test x"$RM" != x""; then
 
95
  AC_DEFINE_UNQUOTED([RM_CMD], ["$RM"], [path to rm])
 
96
fi
 
97
 
 
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
 
105
  AC_MSG_RESULT([no])
 
106
else
 
107
  AC_DEFINE([LEGACY_SESSION_MANAGEMENT], [1], [Define for X11R5 sm compat])
 
108
  AC_MSG_RESULT([yes])
 
109
fi
 
110
 
 
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
 
117
  AC_MSG_RESULT([no])
 
118
else
 
119
  AC_DEFINE([SESSION_SCREENSHOTS], [1], [Define for session screenshots])
 
120
  AC_MSG_RESULT([yes])
 
121
fi
 
122
 
 
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
 
129
  with_shutdown="sudo"
 
130
fi
 
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])
 
135
 
 
136
dnl
 
137
dnl arguments to set shutdown commands
 
138
dnl
 
139
 
 
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])
 
147
dnl fi
 
148
dnl AC_MSG_RESULT([$with_poweroff])
 
149
dnl 
 
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])
 
157
dnl fi
 
158
dnl AC_MSG_RESULT([$with_halt])
 
159
dnl 
 
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])
 
167
dnl fi
 
168
dnl AC_MSG_RESULT([$with_reboot])
 
169
 
50
170
AC_OUTPUT([
51
171
Makefile
52
 
defaults/Makefile
53
 
defaults/splash/Makefile
54
 
docs/Makefile
 
172
xfce4-session.spec
 
173
doc/Makefile
 
174
doc/C/Makefile
 
175
doc/C/images/Makefile
 
176
doc/fr/Makefile
 
177
doc/fr/images/Makefile
 
178
doc/he/Makefile
 
179
doc/he/images/Makefile
 
180
engines/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
 
187
icons/Makefile
 
188
icons/48x48/Makefile
 
189
icons/64x64/Makefile
 
190
icons/72x72/Makefile
 
191
icons/128x128/Makefile
 
192
icons/scalable/Makefile
 
193
libxfsm/Makefile
 
194
libxfsm/xfce4-session-1.0.pc
 
195
po/Makefile.in
55
196
settings/Makefile
56
 
po/Makefile.in
57
 
xfce4-session.spec
 
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
60
202
])