configure.ac.in 9.9 KB
Newer Older
1 2 3
# vi:set et ai sw=2 sts=2 ts=2: */
#-
# Copyright (c) 2004-2007 Benedikt Meurer <benny@xfce.org>
Jannis Pohlmann's avatar
Jannis Pohlmann committed
4
# Copyright (c) 2009-2011 Jannis Pohlmann <jannis@xfce.org>
Harald Judt's avatar
Harald Judt committed
5
# Copyright (c) 2004-2015 Xfce Development Team <xfce4-dev@xfce.org>
6
#
Andre Miranda's avatar
Andre Miranda committed
7
# This program is free software; you can redistribute it and/or
8
# modify it under the terms of the GNU General Public License as
Andre Miranda's avatar
Andre Miranda committed
9
# published by the Free Software Foundation; either version 2 of
10 11 12 13
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Andre Miranda's avatar
Andre Miranda committed
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 16
# GNU General Public License for more details.
#
Andre Miranda's avatar
Andre Miranda committed
17 18
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
19 20
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
21

22 23 24
dnl ***************************
dnl *** Version information ***
dnl ***************************
25
m4_define([thunarx_verinfo], [0:0:0])
Andre Miranda's avatar
Andre Miranda committed
26
m4_define([thunarx_version_api], [3])
Stephan Arts's avatar
Stephan Arts committed
27
m4_define([thunar_version_major], [1])
Alexander Schwinn's avatar
Alexander Schwinn committed
28
m4_define([thunar_version_minor], [8])
Andre Miranda's avatar
Andre Miranda committed
29
m4_define([thunar_version_micro], [9])
Stephan Arts's avatar
Stephan Arts committed
30
m4_define([thunar_version_nano], [])
31
m4_define([thunar_version_build], [@REVISION@])
Andre Miranda's avatar
Andre Miranda committed
32
m4_define([thunar_version_tag], [])
33
m4_define([thunar_version], [thunar_version_major().thunar_version_minor().thunar_version_micro()ifelse(thunar_version_nano(), [], [], [.thunar_version_nano()])ifelse(thunar_version_tag(), [git], [thunar_version_tag()-thunar_version_build()], [thunar_version_tag()])])
34

35
dnl *******************************************
Nick Schermer's avatar
Nick Schermer committed
36
dnl *** Debugging support for GIT snapshots ***
37
dnl *******************************************
38
m4_define([thunar_debug_default], [ifelse(thunar_version_tag(), [git], [yes], [minimum])])
39

40 41 42
dnl ***************************
dnl *** Initialize autoconf ***
dnl ***************************
Andre Miranda's avatar
Andre Miranda committed
43
AC_COPYRIGHT([Copyright (c) 2004-2019 The Thunar development team. All rights reserved.])
Andre Miranda's avatar
Andre Miranda committed
44
AC_INIT([Thunar], [thunar_version], [https://bugzilla.xfce.org/], [Thunar])
Harald Judt's avatar
Harald Judt committed
45 46
AC_PREREQ([2.60])
AC_CONFIG_MACRO_DIR([m4])
47
AC_CANONICAL_TARGET()
Harald Judt's avatar
Harald Judt committed
48
AC_REVISION([thunar_version_build])
49

50 51 52
dnl ***************************
dnl *** Initialize automake ***
dnl ***************************
Harald Judt's avatar
Harald Judt committed
53
AM_INIT_AUTOMAKE([1.11 dist-bzip2 tar-ustar no-dist-gzip])
Nick Schermer's avatar
Nick Schermer committed
54
AC_CONFIG_HEADERS([config.h])
55
AM_MAINTAINER_MODE()
56
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
57

58 59 60
dnl *******************************
dnl *** Check for UNIX variants ***
dnl *******************************
61 62 63 64
AC_AIX()
AC_ISC_POSIX()
AC_MINIX()

65 66 67 68
if test "x$target_os" = "xlinux-gnu"; then
  AC_DEFINE([HAVE_LINUX], [], [Whether we are building on Linux or not])
fi

69 70 71
dnl ********************************
dnl *** Check for basic programs ***
dnl ********************************
72
AC_PROG_CC()
73
AC_PROG_LD()
74
AM_PROG_CC_C_O()
75
AC_PROG_INSTALL()
Eric Koegel's avatar
Eric Koegel committed
76
IT_PROG_INTLTOOL()
77
AC_CHECK_PROGS([PERL], [perl5 perl])
78
m4_ifdef([AC_PROG_SED], [AC_PROG_SED], [AC_CHECK_PROG(SED, sed, sed)])
79 80 81 82

dnl **************************
dnl *** Initialize libtool ***
dnl **************************
Harald Judt's avatar
Harald Judt committed
83
LT_PREREQ([2.4])
84
LT_INIT([disable-static])
85

86 87 88
dnl **************************************
dnl *** Substitute version information ***
dnl **************************************
89 90
THUNARX_VERINFO=thunarx_verinfo()
THUNARX_VERSION_API=thunarx_version_api()
91 92 93
THUNAR_VERSION_MAJOR=thunar_version_major()
THUNAR_VERSION_MINOR=thunar_version_minor()
THUNAR_VERSION_MICRO=thunar_version_micro()
94 95
AC_SUBST([THUNARX_VERINFO])
AC_SUBST([THUNARX_VERSION_API])
96 97 98
AC_SUBST([THUNAR_VERSION_MAJOR])
AC_SUBST([THUNAR_VERSION_MINOR])
AC_SUBST([THUNAR_VERSION_MICRO])
99

100 101 102 103 104 105 106 107 108 109
dnl ******************************
dnl *** Set helper path prefix ***
dnl ******************************
AC_ARG_WITH([helper-path-prefix],
            [AC_HELP_STRING([--with-helper-path-prefix=PATH],
                            [Path prefix under which helper executables will be installed (default: $libdir)])],
            [HELPER_PATH_PREFIX="$withval"],
            [HELPER_PATH_PREFIX="$libdir"])
AC_SUBST([HELPER_PATH_PREFIX])

110 111 112 113 114
dnl ***********************************************
dnl *** Work-around system-specific limitations ***
dnl ***********************************************
AC_SYS_LARGEFILE()

115 116 117
dnl **********************************
dnl *** Check for standard headers ***
dnl **********************************
118 119
AC_CHECK_HEADERS([ctype.h errno.h fcntl.h grp.h limits.h locale.h memory.h \
                  paths.h pwd.h sched.h signal.h stdarg.h stdlib.h string.h \
120 121
                  sys/mman.h sys/param.h sys/stat.h sys/time.h sys/types.h \
                  sys/uio.h sys/wait.h time.h])
122

123 124 125
dnl ************************************
dnl *** Check for standard functions ***
dnl ************************************
126
AC_FUNC_MMAP()
127
AC_CHECK_FUNCS([localeconv mkdtemp pread pwrite sched_yield setgroupent \
Nick Schermer's avatar
Nick Schermer committed
128
                setpassent strcoll strlcpy strptime symlink atexit])
129

Benedikt Meurer's avatar
 
Benedikt Meurer committed
130 131 132
dnl ******************************
dnl *** Check for i18n support ***
dnl ******************************
133
XDT_I18N([@LINGUAS@])
Benedikt Meurer's avatar
 
Benedikt Meurer committed
134

135 136 137 138 139
dnl *********************
dnl *** Check for X11 ***
dnl *********************
XDT_CHECK_LIBX11_REQUIRE()

Andre Miranda's avatar
Andre Miranda committed
140 141 142 143 144
dnl *************************
dnl *** Check for gtk-doc ***
dnl *************************
GTK_DOC_CHECK([1.9])

145 146 147
dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
Andre Miranda's avatar
Andre Miranda committed
148
XDT_CHECK_PACKAGE([EXO], [exo-2], [0.12.0])
149 150 151 152
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.42.0])
XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.42.0])
XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.42.0])
XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.42.0])
Andre Miranda's avatar
Andre Miranda committed
153
XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0])
154
XDT_CHECK_PACKAGE([GDK_PIXBUF], [gdk-pixbuf-2.0], [2.14.0])
155
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.12.0])
156
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0])
157
XDT_CHECK_PACKAGE([LIBXFCE4KBD_PRIVATE], [libxfce4kbd-private-3], [4.12.0])
158
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.12.0])
159

160 161 162 163 164
dnl ******************************
dnl *** GObject Instrospection ***
dnl ******************************
GOBJECT_INTROSPECTION_CHECK([1.30.0])

165 166 167 168 169
dnl ********************************************
dnl *** Check for session management support ***
dnl ********************************************
XDT_CHECK_LIBSM()

170
dnl **********************************
171
dnl *** Optional GIO UNIX features ***
172
dnl **********************************
173
XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0],
Nick Schermer's avatar
Nick Schermer committed
174
                           [2.30.0], [gio-unix], [GIO UNIX features])
175

176 177 178
dnl ***************************************************************
dnl *** Optional support for GUDev (required for thunar-volman) ***
dnl ***************************************************************
Andre Miranda's avatar
Andre Miranda committed
179
XDT_CHECK_OPTIONAL_PACKAGE([GUDEV], [gudev-1.0], [145], [gudev],
180 181
                           [GUDev (required for thunar-volman)])

182 183 184 185 186 187
dnl **************************************
dnl *** Optional support for libnotify ***
dnl **************************************
XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY], [libnotify], [0.4.0], [notifications],
                           [Mount notification support], [yes])

188 189 190
dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
191
XDT_FEATURE_DEBUG([thunar_debug_default])
192 193 194 195

dnl **************************************
dnl *** Check for linker optimizations ***
dnl **************************************
196
XDT_FEATURE_LINKER_OPTS()
197

198 199 200 201
dnl dnl ****************************************
dnl dnl *** Check for ELF visibility support ***
dnl dnl ****************************************
dnl XDT_FEATURE_VISIBILITY()
202

203 204 205
dnl *********************************
dnl *** Substitute platform flags ***
dnl *********************************
206 207
AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
208
AC_SUBST([PLATFORM_CPPFLAGS])
209 210 211 212 213
AC_MSG_CHECKING([PLATFORM_CFLAGS])
AC_MSG_RESULT([$PLATFORM_CFLAGS])
AC_SUBST([PLATFORM_CFLAGS])
AC_MSG_CHECKING([PLATFORM_LDFLAGS])
AC_MSG_RESULT([$PLATFORM_LDFLAGS])
214 215
AC_SUBST([PLATFORM_LDFLAGS])

216 217 218
dnl ************************************
dnl *** Check for additional plugins ***
dnl ************************************
219
BM_THUNAR_PLUGIN_APR()
220
BM_THUNAR_PLUGIN_SBR()
221
BM_THUNAR_PLUGIN_TPA()
222
BM_THUNAR_PLUGIN_UCA()
223
BM_THUNAR_PLUGIN_WALLPAPER()
224

225 226
AC_OUTPUT([
Makefile
227 228
docs/Makefile
docs/design/Makefile
229
docs/papers/Makefile
Andre Miranda's avatar
Andre Miranda committed
230 231 232
docs/reference/Makefile
docs/reference/thunarx/Makefile
docs/reference/thunarx/version.xml
233
examples/Makefile
234
examples/tex-open-terminal/Makefile
235
icons/Makefile
236
icons/16x16/Makefile
237 238
icons/24x24/Makefile
icons/48x48/Makefile
239 240
icons/64x64/Makefile
icons/128x128/Makefile
241
icons/scalable/Makefile
242 243
pixmaps/Makefile
plugins/Makefile
244
plugins/thunar-apr/Makefile
245
plugins/thunar-sbr/Makefile
246
plugins/thunar-sendto-email/Makefile
247
plugins/thunar-tpa/Makefile
248
plugins/thunar-uca/Makefile
249
plugins/thunar-wallpaper/Makefile
Benedikt Meurer's avatar
 
Benedikt Meurer committed
250
po/Makefile.in
251
thunar/Makefile
252
thunarx/Makefile
Andre Miranda's avatar
Andre Miranda committed
253
thunarx/thunarx-3.pc
254
thunarx/thunarx-config.h
255
])
256 257 258 259 260 261 262

dnl ***************************
dnl *** Print configuration ***
dnl ***************************
echo
echo "Build Configuration:"
echo
263
if test x"$GIO_UNIX_FOUND" = x"yes"; then
264
echo "* GIO UNIX features:                  yes"
265
else
266
echo "* GIO UNIX features:                  no"
267
fi
268 269
if test x"$GUDEV_FOUND" = x"yes"; then
echo "* GUDev (required for thunar-volman): yes"
270
else
271
echo "* GUDev (required for thunar-volman): no"
272
fi
273 274 275 276 277 278
if test x"$LIBNOTIFY_FOUND" = x"yes"; then
echo "* Mount notification support:         yes"
else
echo "* Mount notification support:         no"
fi
echo "* Debug Support:                      $enable_debug"
279
echo "* GObject Instrospection support:     $enable_introspection"
280 281 282
echo
echo "Additional Plugins:"
echo
283
echo "* Advanced Properties:                $ac_bm_thunar_plugin_apr"
284
echo "* Simple Builtin Renamers:            $ac_bm_thunar_plugin_sbr"
285 286 287
echo "* Trash Panel Applet:                 $ac_bm_thunar_plugin_tpa"
echo "* User Customizable Actions:          $ac_bm_thunar_plugin_uca"
echo "* Wallpaper support:                  $ac_bm_thunar_plugin_wallpaper"
288
echo