forked from hellosiyan/Viewnior
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
executable file
·120 lines (95 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
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([viewnior], [1.6], [[email protected]])
AM_INIT_AUTOMAKE
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AM_PROG_CC_C_O
AC_HEADER_STDC
AC_PROG_CXX
VNR_WARNINGS=-Wall
AC_SUBST(VNR_WARNINGS)
# ******
# Translation
# ******
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package.])
AM_GLIB_GNU_GETTEXT
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
# Checks for library functions.
# ******
# Libs
# ******
GTK_REQUIRED=2.20
GLIB_REQUIRED=2.32
SHARED_MIME_INFO_REQUIRED=0.20
GDKPIXBUF_REQUIRED=2.4.0
EXIV2_REQUIRED=0.21
VNR_MODULES="gtk+-2.0 >= $GTK_REQUIRED \
glib-2.0 >= $GLIB_REQUIRED \
gio-2.0 >= $GLIB_REQUIRED \
shared-mime-info >= $SHARED_MIME_INFO_REQUIRED \
gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED \
exiv2 >= $EXIV2_REQUIRED"
# ******
# Wallpaper support
# ******
AC_MSG_CHECKING([whether Wallpaper change functionality is enabled])
AC_ARG_ENABLE([wallpaper],
AS_HELP_STRING([--disable-wallpaper],[Disable Wallpaper change functionality]),
,[enable_wallpaper=yes])
AM_CONDITIONAL(ENABLE_WALLPAPER, test "x$enable_wallpaper" = xyes)
if test x$enable_wallpaper = xyes ; then
AC_DEFINE(HAVE_WALLPAPER, 1, [Define to 1 if wallpaper change functionality is included])
fi
AC_MSG_RESULT([$ENABLE_WALLPAPERlpaper])
# ****************
# CFLAGS/LIBS init
# ****************
PKG_CHECK_MODULES(VNR, $VNR_MODULES)
AC_SUBST(VNR_CFLAGS)
AC_SUBST(VNR_LIBS)
AC_CONFIG_FILES([Makefile
src/Makefile
data/Makefile
data/viewnior.desktop.in
data/icons/Makefile
data/icons/16x16/Makefile
data/icons/16x16/apps/Makefile
data/icons/22x22/Makefile
data/icons/22x22/apps/Makefile
data/icons/24x24/Makefile
data/icons/24x24/apps/Makefile
data/icons/32x32/Makefile
data/icons/32x32/apps/Makefile
data/icons/48x48/Makefile
data/icons/48x48/apps/Makefile
data/icons/scalable/Makefile
data/icons/scalable/apps/Makefile
po/Makefile.in
man/Makefile])
AC_OUTPUT
echo "
Viewnior ........... : Version $VERSION
Location ........... : $prefix/bin
CFLAGS ............. : $CFLAGS
Wallpaper support .. : $enable_wallpaper
"
echo "
To compile and install:
1. Become root (using su)
2. Type 'make install'
"