-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
91 lines (57 loc) · 2.27 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
90
dnl Process this file with autoconf to produce a configure script.
dnl **************************************************************************
dnl A U T O C O N F E N V I R O N M E N T
dnl **************************************************************************
AC_PREREQ([2.69])
AC_INIT([Nautilus Hide],
[0.3.0],
[madmurphy333@gmail.com],
[nautilus-hide],
[https://gitlab.gnome.org/madmurphy/nautilus-hide])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/nautilus-hide.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile
src/Makefile
po/Makefile.in])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AC_PROG_CC
AC_PROG_GREP
AC_CHECK_PROG([HAVE_PKGCONFIG], [pkg-config], [yes], [no])
AS_IF([test "x${HAVE_PKGCONFIG}" = xno],
[AC_MSG_ERROR([you need to have pkgconfig installed!])])
PKG_CHECK_MODULES([NAUTILUS_HIDE], [glib-2.0 libnautilus-extension-4])
dnl **************************************************************************
dnl I N T E R N A T I O N A L I Z A T I O N
dnl **************************************************************************
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19])
AM_CONDITIONAL([NLS_ENABLED], [test "x${USE_NLS}" != xno])
AM_COND_IF([NLS_ENABLED], [
AC_SUBST([GETTEXT_PACKAGE], AC_PACKAGE_TARNAME)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],
["${GETTEXT_PACKAGE}"], [GETTEXT package name])
])
dnl **************************************************************************
dnl F I N A L I Z A T I O N
dnl **************************************************************************
AC_ARG_WITH([nautilus-libdir],
[AS_HELP_STRING([--without-nautilus-libdir],
[ignore the <libdir> variable used by libnautilus-extension-4
and and use the current <libdir> instead @<:@default=no@:>@])],
[:],
[AS_VAR_SET([with_nautilus_libdir], ['yes'])])
AS_IF([test "x${with_nautilus_libdir}" = xno],
[AS_VAR_SET([NAUTILUS_EXTENSION_DIR], m4_normalize(["$(
"${PKG_CONFIG}" --define-variable='libdir=${libdir}'
--variable=extensiondir libnautilus-extension-4
)"]))],
[AS_VAR_SET([NAUTILUS_EXTENSION_DIR], m4_normalize(["$(
"${PKG_CONFIG}" --variable=extensiondir libnautilus-extension-4
)"]))])
AC_SUBST([NAUTILUS_EXTENSION_DIR])
LT_INIT([disable-static])
AC_OUTPUT
dnl EOF