1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
dnl configure.ac
dnl
dnl xfdesktop - xfce4's desktop manager
dnl
dml version info
m4_define([xfdesktop_version], [4.1.99.2])
dnl init autoconf
AC_INIT([xfdesktop], [xfdesktop_version], [bjt23@cornell.edu])
AC_PREREQ([2.50])
dnl init automake
XFDESKTOP_VERSION=xfdesktop_version
AM_INIT_AUTOMAKE([xfdesktop], [$XFDESKTOP_VERSION])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
dnl check for UNIX variants
AC_AIX
AC_ISC_POSIX
AC_MINIX
AM_CONDITIONAL([HAVE_CYGWIN], [test "`uname | grep \"CYGWIN\"`" != ""])
dnl check for basic programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
dnl check for standard header files
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h math.h signal.h stddef.h string.h sys/stat.h sys/types.h sys/wait.h time.h unistd.h)
AC_CHECK_FUNCS(mmap sigaction srandom)
dnl Check for i18n support
BM_I18N([xfdesktop], [ar az be bg ca cs de es es_MX et eu fa fi fr gu he hi
hu it ja pl ko lt ms nl pa pt_BR pt_PT ru sk sv ta tr uk
vi zh_CN zh_TW])
dnl Check for X11 installed
BM_LIBX11_REQUIRE
BM_LIBSM
dnl required
BM_DEPEND([GMODULE], [gmodule-2.0], [2.2.0])
BM_DEPEND([GOBJECT], [gobject-2.0], [2.2.0])
BM_DEPEND([GTK], [gtk+-2.0], [2.2.0])
BM_DEPEND([LIBXFCE4UTIL], libxfce4util-1.0, 4.1.99)
BM_DEPEND([LIBXFCEGUI4], libxfcegui4-1.0, 4.1.99)
BM_DEPEND([LIBXFCE4MCS_CLIENT], libxfce4mcs-client-1.0, [4.1.99])
XFCE_PANEL_PLUGIN([XFCE4_PANEL], [4.1.99])
XFCE_MCS_PLUGIN([XFCE_MCS_MANAGER], [4.1.99])
dnl check for libxml2 for menueditor
BM_DEPEND_CHECK([LIBXML], libxml-2.0, 2.4.0, [libxml2],
[libxml2 (for xfce4-menueditor)], [yes])
AM_CONDITIONAL([BUILD_MENUEDITOR], [test "x$LIBXML_FOUND" = "xyes"])
if test "x$LIBXML_FOUND" = "xyes"; then
build_menueditor="yes"
else
build_menueditor="no"
fi
dnl Build options
AC_ARG_ENABLE([desktop-menu],
AC_HELP_STRING([--disable-desktop-menu],
[Do not build the desktop menu module (default=enabled)]),
[ac_cv_enable_desktop_menu=$enableval],
[ac_cv_enable_desktop_menu=yes])
if test "x$ac_cv_enable_desktop_menu" = "xno"; then
build_desktop_menu="no"
else
build_desktop_menu="yes"
AC_DEFINE([USE_DESKTOP_MENU], [1],
[Define if we should build the desktop menu module])
fi
AC_SUBST(DESKTOP_MENU_DIR)
AM_CONDITIONAL([BUILD_DESKTOP_MENU], [test "x$build_desktop_menu" = "xyes"])
AC_ARG_ENABLE([panel-plugin],
[AC_HELP_STRING([--disable-panel-plugin],
[Do not build the panel plugin (default=enabled)])],
[ac_cv_enable_panel_plugin=$enableval],
[ac_cv_enable_panel_plugin=yes])
if test "x$ac_cv_enable_panel_plugin" = "xno" -o "x$build_desktop_menu" = "xno"; then
build_panel_plugin="no"
else
build_panel_plugin="yes"
fi
AM_CONDITIONAL([BUILD_PANEL_PLUGIN], [test "x$build_panel_plugin" = "xyes"])
dnl check for debugging support
BM_DEBUG_SUPPORT
AC_OUTPUT([
Makefile
backdrops/Makefile
common/Makefile
doc/Makefile
doc/C/Makefile
doc/C/images/Makefile
doc/fr/Makefile
doc/fr/images/Makefile
doc/it/Makefile
doc/it/images/Makefile
menueditor/Makefile
modules/Makefile
modules/menu/Makefile
panel-plugin/Makefile
pixmaps/Makefile
po/Makefile.in
settings/Makefile
src/Makefile
xfdesktop.spec
])
echo
echo "Build Configuration:"
echo " Build menu editor (requires libxml2): $build_menueditor"
echo " Build desktop menu module: $build_desktop_menu"
echo " Build desktop menu panel plugin: $build_panel_plugin"
echo
|