3 dnl Copyright (c) 2004-2006
4 dnl The Thunar development team. All rights reserved.
6 dnl Written for Thunar by Benedikt Meurer <benny@xfce.org>.
11 dnl # BM_THUNAR_PLUGIN_APR()
13 dnl # Check whether the "Advanced Properties" plugin
14 dnl # should be built and installed.
16 AC_DEFUN([BM_THUNAR_PLUGIN_APR],
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])
24 dnl Check for libexif (for the "Image" properties page)
25 XDT_CHECK_OPTIONAL_PACKAGE([EXIF], [libexif], [0.6.0], [exif], [Exif support])
30 dnl # BM_THUNAR_PLUGIN_SBR()
32 dnl # Check whether the "Simple Builtin Renamers" plugin
33 dnl # should be built and installed.
35 AC_DEFUN([BM_THUNAR_PLUGIN_SBR],
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])
43 dnl Check for PCRE (for the "Search & Replace" renamer)
44 XDT_CHECK_OPTIONAL_PACKAGE([PCRE], [libpcre], [6.0], [pcre], [Regular expression support])
49 dnl # BM_THUNAR_PLUGIN_TPA()
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).
55 AC_DEFUN([BM_THUNAR_PLUGIN_TPA],
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],
62 dnl # Can only build thunar-tpa if D-BUS was found previously
63 ac_bm_thunar_plugin_tpa=$DBUS_FOUND
66 dnl # Cannot build thunar-tpa if xfce4-panel is not installed
67 ac_bm_thunar_plugin_tpa=no
70 ac_bm_thunar_plugin_tpa=no
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])
79 dnl # BM_THUNAR_PLUGIN_UCA()
81 dnl # Check whether the "User Customizable Actions" plugin
82 dnl # should be built and installed.
84 AC_DEFUN([BM_THUNAR_PLUGIN_UCA],
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])
93 dnl # BM_THUNAR_PLUGIN_WALLPAPER()
95 dnl # Check whether the "Wallpaper" plugin
96 dnl # should be built and installed.
98 AC_DEFUN([BM_THUNAR_PLUGIN_WALLPAPER],
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
109 echo "*** xfconf-query was not found on your system."
110 echo "*** The wallpaper won't work without it installed."