blob: e0042ec9148332812c7c79bdc9629e75634b83a2 (
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
|
dnl -*- mode: m4 -*-
AC_PREREQ(2.63)
AC_INIT([gnome-screenshot],[3.10.1],[],[gnome-screenshot])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip foreign])
AM_SILENT_RULES([yes])
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
IT_PROG_INTLTOOL(0.40.0)
PKG_PROG_PKG_CONFIG([0.22])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_ISC_POSIX
AC_HEADER_STDC
## don't rerun to this point if we abort
AC_CACHE_SAVE
GLIB_GSETTINGS
GLIB_MIN_VERSION=2.35.1
GTK_MIN_VERSION=3.0.0
msg_xshape=no
PKG_CHECK_MODULES([XSHAPE],
[xext x11],
[
AC_CHECK_HEADERS([X11/extensions/shape.h],
[
XSHAPE_LIBS="-lXext -lX11"
msg_xshape=yes
])
])
AC_SUBST(XSHAPE_LIBS)
PKG_CHECK_MODULES(SCREENSHOT,
glib-2.0 >= $GLIB_MIN_VERSION
gtk+-3.0 >= $GTK_MIN_VERSION
libcanberra-gtk3)
AC_CONFIG_FILES([
Makefile
src/Makefile
po/Makefile.in
])
AC_OUTPUT
dnl ==========================================================================
echo "
GNOME Screenshot $VERSION
=========================
prefix: ${prefix}
compiler: ${CC}
XShape support: ${msg_xshape}
Now type 'make' to build $PACKAGE
"
|