-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
89 lines (77 loc) · 2.97 KB
/
configure.ac
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
dnl
dnl Copyright (c) 2009-2010
dnl Daniel Morales <[email protected]>
dnl
dnl -------------------------------------------------------
dnl Version
dnl -------------------------------------------------------
XDT_VERSION_INIT([0.4.0], [git])
dnl -------------------------------------------------------
dnl Init autoconf
dnl -------------------------------------------------------
AC_COPYRIGHT([Copyright (c) 2009-2010 Daniel Morales <[email protected]>.])
AC_INIT([thunar-shares-plugin], [xdt_version], [https://gitlab.xfce.org/thunar-plugins/thunar-shares-plugin])
AC_REVISION([xdt_version_build])
AC_CONFIG_SRCDIR([thunar-plugin/thunar-shares-plugin.c])
AC_PREREQ(2.69)
AC_CANONICAL_TARGET()
AC_CONFIG_MACRO_DIRS([m4])
dnl -------------------------------------------------------
dnl Init automake
dnl -------------------------------------------------------
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar no-dist-gzip foreign])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl -------------------------------------------------------
dnl Programs
dnl -------------------------------------------------------
AC_PROG_CC
AC_PROG_INSTALL
dnl -------------------------------------------------------
dnl Initialize libtool
dnl-------------------------------------------------------
LT_PREREQ([2.2.6])
LT_INIT([disable-static])
dnl -------------------------------------------------------
dnl Check headers
dnl -------------------------------------------------------
AC_CHECK_INCLUDES_DEFAULT
AC_CHECK_HEADERS([string.h sys/types.h sys/wait.h time.h sys/stat.h unistd.h])
dnl -------------------------------------------------------
dnl Packages checks
dnl -------------------------------------------------------
XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0])
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.26.0])
XDT_CHECK_PACKAGE([THUNARX], [thunarx-3], [1.0.1])
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.12.0])
dnl -------------------------------------------------------
dnl Languages
dnl -------------------------------------------------------
GETTEXT_PACKAGE="$PACKAGE"
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain])
AC_SUBST([GETTEXT_PACKAGE])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.8])
AC_SEARCH_LIBS([bind_textdomain_codeset], [intl],
[AC_DEFINE([HAVE_BIND_TEXTDOMAIN_CODESET], [1], [Define to 1 if you have the 'bind_textdomain_codeset' function.])],
[])
dnl -------------------------------------------------------
dnl Debugging support
dnl -------------------------------------------------------
XDT_FEATURE_DEBUG([xdt_debug_default])
dnl -------------------------------------------------------
dnl Check for linker optimizations
dnl -------------------------------------------------------
XDT_FEATURE_LINKER_OPTS()
AC_CONFIG_FILES([
Makefile
po/Makefile.in
libshares/Makefile
thunar-plugin/Makefile
])
AC_OUTPUT()
echo
echo "Prefix: $prefix"
echo "Debug Support: $enable_debug"
echo