Git Repositories

Update trash panel plugin to new framework.
[thunar.git] / acinclude.m4
1 dnl $Id$
2 dnl
3 dnl Copyright (c) 2004-2006
4 dnl         The Thunar development team. All rights reserved.
5 dnl
6 dnl Written for Thunar by Benedikt Meurer <benny@xfce.org>.
7 dnl
8
9
10
11 dnl # BM_THUNAR_PLUGIN_APR()
12 dnl #
13 dnl # Check whether the "Advanced Properties" plugin
14 dnl # should be built and installed.
15 dnl #
16 AC_DEFUN([BM_THUNAR_PLUGIN_APR],
17 [
18 AC_ARG_ENABLE([apr-plugin], [AC_HELP_STRING([--disable-apr-plugin], [Don't build the thunar-apr plugin, see plugins/thunar-apr/README])],
19   [ac_bm_thunar_plugin_apr=$enableval], [ac_bm_thunar_plugin_apr=yes])
20 AC_MSG_CHECKING([whether to build the thunar-apr plugin])
21 AM_CONDITIONAL([THUNAR_PLUGIN_APR], [test x"$ac_bm_thunar_plugin_apr" = x"yes"])
22 AC_MSG_RESULT([$ac_bm_thunar_plugin_apr])
23
24 dnl Check for libexif (for the "Image" properties page)
25 XDT_CHECK_OPTIONAL_PACKAGE([EXIF], [libexif], [0.6.0], [exif], [Exif support])
26 ])
27
28
29
30 dnl # BM_THUNAR_PLUGIN_SBR()
31 dnl #
32 dnl # Check whether the "Simple Builtin Renamers" plugin
33 dnl # should be built and installed.
34 dnl #
35 AC_DEFUN([BM_THUNAR_PLUGIN_SBR],
36 [
37 AC_ARG_ENABLE([sbr-plugin], AC_HELP_STRING([--disable-sbr-plugin], [Don't build the thunar-sbr plugin, see plugins/thunar-sbr/README]),
38   [ac_bm_thunar_plugin_sbr=$enableval], [ac_bm_thunar_plugin_sbr=yes])
39 AC_MSG_CHECKING([whether to build the thunar-sbr plugin])
40 AM_CONDITIONAL([THUNAR_PLUGIN_SBR], [test x"$ac_bm_thunar_plugin_sbr" = x"yes"])
41 AC_MSG_RESULT([$ac_bm_thunar_plugin_sbr])
42
43 dnl Check for PCRE (for the "Search & Replace" renamer)
44 XDT_CHECK_OPTIONAL_PACKAGE([PCRE], [libpcre], [6.0], [pcre], [Regular expression support])
45 ])
46
47
48
49 dnl # BM_THUNAR_PLUGIN_TPA()
50 dnl #
51 dnl # Check whether the "Trash Panel Applet" plugin should
52 dnl # be built and installed (this is actually a plugin
53 dnl # for the Xfce panel, not for Thunar).
54 dnl #
55 AC_DEFUN([BM_THUNAR_PLUGIN_TPA],
56 [
57 AC_ARG_ENABLE([tpa-plugin], AC_HELP_STRING([--disable-tpa-plugin], [Don't build the thunar-tpa plugin, see plugins/thunar-tpa/README]),
58   [ac_bm_thunar_plugin_tpa=$enableval], [ac_bm_thunar_plugin_tpa=yes])
59 if test x"$ac_bm_thunar_plugin_tpa" = x"yes"; then
60   XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.7.0],
61   [
62     dnl # Can only build thunar-tpa if D-BUS was found previously
63     ac_bm_thunar_plugin_tpa=$DBUS_FOUND
64   ],
65   [
66     dnl # Cannot build thunar-tpa if xfce4-panel is not installed
67     ac_bm_thunar_plugin_tpa=no
68   ])
69 else
70   ac_bm_thunar_plugin_tpa=no
71 fi
72 AC_MSG_CHECKING([whether to build the thunar-tpa plugin])
73 AM_CONDITIONAL([THUNAR_PLUGIN_TPA], [test x"$ac_bm_thunar_plugin_tpa" = x"yes"])
74 AC_MSG_RESULT([$ac_bm_thunar_plugin_tpa])
75 ])
76
77
78
79 dnl # BM_THUNAR_PLUGIN_UCA()
80 dnl #
81 dnl # Check whether the "User Customizable Actions" plugin
82 dnl # should be built and installed.
83 dnl #
84 AC_DEFUN([BM_THUNAR_PLUGIN_UCA],
85 [
86 AC_ARG_ENABLE([uca-plugin], AC_HELP_STRING([--disable-uca-plugin], [Don't build the thunar-uca plugin, see plugins/thunar-uca/README]),
87   [ac_bm_thunar_plugin_uca=$enableval], [ac_bm_thunar_plugin_uca=yes])
88 AC_MSG_CHECKING([whether to build the thunar-uca plugin])
89 AM_CONDITIONAL([THUNAR_PLUGIN_UCA], [test x"$ac_bm_thunar_plugin_uca" = x"yes"])
90 AC_MSG_RESULT([$ac_bm_thunar_plugin_uca])
91 ])
92
93 dnl # BM_THUNAR_PLUGIN_WALLPAPER()
94 dnl #
95 dnl # Check whether the "Wallpaper" plugin
96 dnl # should be built and installed.
97 dnl #
98 AC_DEFUN([BM_THUNAR_PLUGIN_WALLPAPER],
99 [
100 AC_ARG_ENABLE([wallpaper-plugin], AC_HELP_STRING([--disable-wallpaper-plugin], [Don't build the thunar-wallpaper plugin, see plugins/thunar-wallpaper/README]),
101   [ac_bm_thunar_plugin_wallpaper=$enableval], [ac_bm_thunar_plugin_wallpaper=yes])
102 AC_MSG_CHECKING([whether to build the thunar-wallpaper plugin])
103 AM_CONDITIONAL([THUNAR_PLUGIN_WALLPAPER], [test x"$ac_bm_thunar_plugin_wallpaper" = x"yes"])
104 AC_MSG_RESULT([$ac_bm_thunar_plugin_wallpaper])
105 if test x"$ac_bm_thunar_plugin_wallpaper" = x"yes"; then
106         AC_CHECK_PROG([xfconf_query_found], [xfconf-query], [yes], [no])
107         if test x"$xfconf_query_found" = x"no"; then
108                 echo "***"
109                 echo "*** xfconf-query was not found on your system."
110                 echo "*** The wallpaper won't work without it installed."
111                 echo "***"
112         fi
113 fi
114 ])