summaryrefslogtreecommitdiff
path: root/configure.in.in
blob: c2c9575933b5d6a000e0a06de15ef58b7f1b0a75 (plain)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
dnl vi:set et ai sw=2 sts=2 ts=2: */
dnl 
dnl Copyright (c) 2011 Jannis Pohlmann <jannis@xfce.org>
dnl 
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl 
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
dnl GNU Library General Public License for more details.
dnl 
dnl You should have received a copy of the GNU Library General 
dnl Public License along with this library; if not, write to the 
dnl Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
dnl Boston, MA 02110-1301, USA.

dnl ***************************
dnl *** Version information ***
dnl ***************************
m4_define([thunar_desktop_plugin_verinfo], [0:0:0])
m4_define([thunar_desktop_plugin_version_api_major], [1])
m4_define([thunar_desktop_plugin_version_major], [0])
m4_define([thunar_desktop_plugin_version_minor], [0])
m4_define([thunar_desktop_plugin_version_micro], [0])
m4_define([thunar_desktop_plugin_version_build], [@REVISION@])
m4_define([thunar_desktop_plugin_version_tag], [git])
m4_define([thunar_desktop_plugin_version], [thunar_desktop_plugin_version_major().thunar_desktop_plugin_version_minor().thunar_desktop_plugin_version_micro()ifelse(thunar_desktop_plugin_version_tag(), [git], [thunar_desktop_plugin_version_tag()-thunar_desktop_plugin_version_build()], [thunar_desktop_plugin_version_tag()])])

dnl ********************************************
dnl *** Full debug support for SVN snapshots ***
dnl ********************************************
m4_define([thunar_desktop_plugin_debug_default], [ifelse(thunar_desktop_plugin_version_tag(), [git], [full], [minimum])])

dnl ***************************
dnl *** Initialize autoconf ***
dnl ***************************
AC_COPYRIGHT([Copyright (c) 2011 Jannis Pohlmann <jannis@xfce.org>])
AC_INIT([thunar-desktop-plugin], [thunar_desktop_plugin_version], [http://bugzilla.xfce.org/])
AC_PREREQ([2.50])
AC_REVISION([@REVISION@])
AC_CANONICAL_TARGET()

dnl ***************************
dnl *** Initialize automake ***
dnl ***************************
AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE()
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

dnl **************************
dnl *** Libtool versioning ***
dnl **************************
THUNAR_DESKTOP_PLUGIN_VERINFO=thunar_desktop_plugin_verinfo()
AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERINFO])

dnl ************************************************
dnl *** Substitute thunar-desktop-plugin version ***
dnl ************************************************
THUNAR_DESKTOP_PLUGIN_VERSION_MAJOR=thunar_desktop_plugin_version_major()
THUNAR_DESKTOP_PLUGIN_VERSION_MINOR=thunar_desktop_plugin_version_minor()
THUNAR_DESKTOP_PLUGIN_VERSION_MICRO=thunar_desktop_plugin_version_micro()
THUNAR_DESKTOP_PLUGIN_VERSION_API_MAJOR=thunar_desktop_plugin_version_api_major()
THUNAR_DESKTOP_PLUGIN_VERSION_API=$THUNAR_DESKTOP_PLUGIN_VERSION_API_MAJOR
AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_MAJOR])
AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_MINOR])
AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_MICRO])
AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_API_MAJOR])
AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_API])

dnl *******************************
dnl *** Check for UNIX variants ***
dnl *******************************
AC_AIX()
AC_ISC_POSIX()
AC_MINIX()

dnl ********************************
dnl *** Check for basic programs ***
dnl ********************************
AM_PROG_AS()
AC_PROG_CC()
AC_PROG_INSTALL()
AC_PROG_INTLTOOL([0.31], [no-xml])
AC_PROG_LIBTOOL()
AM_PROG_CC_C_O()

dnl ***************************************
dnl *** Check for standard header files ***
dnl ***************************************
AC_HEADER_STDC()
AC_CHECK_HEADERS([])

dnl ************************************
dnl *** Check for standard functions ***
dnl ************************************
AC_FUNC_MMAP()
AC_CHECK_FUNCS([])

dnl ******************************
dnl *** Check for i18n support ***
dnl ******************************
XDT_I18N([@LINGUAS@])

dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.24.0])
XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.24.0])
XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [2.24.0])
XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.24.0])
XDT_CHECK_PACKAGE([THUNARX], [thunarx-2], [1.3.0])

dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
XDT_FEATURE_DEBUG()

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

AC_OUTPUT([
Makefile
thunar-desktop-plugin/Makefile
po/Makefile.in
])

dnl ***************************
dnl *** Print configuration ***
dnl ***************************
echo
echo "Build Configuration:"
echo
echo "* Debug Support:  $enable_debug"
echo