-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
124 lines (93 loc) · 3.15 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
121
122
123
124
dnl Process this file with autoconf to produce a configure script.
AC_INIT([imagination],[4.0],[https://github.com/colossus73/imagination/issues])
AC_CONFIG_SRCDIR([src/imagination.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AC_SEARCH_LIBS([strerror],[cposix])
AC_PROG_CC_C_O
AM_SILENT_RULES([yes])
AC_PROG_INSTALL
IT_PROG_INTLTOOL
AC_SEARCH_LIBS([sqrtf], [m], ,AC_MSG_ERROR([Unable to find math library]))
# for plugins
LT_PREREQ([2.2.0])
LT_INIT
LIBTOOL="$LIBTOOL --silent"
pkg_modules="gtk+-3.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
libavcodec="libavcodec >= 57.107.100"
PKG_CHECK_MODULES(LIBAVCODEC, [$libavcodec])
libavutil="libavutil >= 55.78.100"
PKG_CHECK_MODULES(LIBAVUTIL, [$libavutil])
libavformat="libavformat >= 57.83.100"
PKG_CHECK_MODULES(LIBAVFORMAT, [$libavformat])
libswscale="libswscale >= 5.7"
PKG_CHECK_MODULES(LIBSWSCALE, [$libswscale])
PKG_CHECK_MODULES(ALSA, [alsa])
plugins_modules="cairo >= 1.6 glib-2.0 > 2.18.0"
PKG_CHECK_MODULES(PLUGINS, [$plugins_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
AC_SUBST(LIBAVCODEC_CFLAGS)
AC_SUBST(LIBAVCODEC_LIBS)
AC_SUBST(LIBAVFORMAT_CFLAGS)
AC_SUBST(LIBAVFORMAT_LIBS)
AC_SUBST(LIBAVUTIL_CFLAGS)
AC_SUBST(LIBAVUTIL_LIBS)
AC_SUBST(LIBSWSCALE_CFLAGS)
AC_SUBST(LIBSWSCALE_LIBS)
AC_SUBST(ALSA_CFLAGS)
AC_SUBST(ALSA_LIBS)
AC_SUBST(PLUGINS_CFLAGS)
AC_SUBST(PLUGINS_LIBS)
GETTEXT_PACKAGE=imagination
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
AM_GLIB_GNU_GETTEXT
AC_PATH_PROG([XSLTPROC], [xsltproc], [yes])
AM_CONDITIONAL([ENABLE_XSLTPROC], [test x"$enable_xsltproc" = x"yes"])
dnl Add the languages which your application supports here.
ALL_LINGUAS="`sed -e '/^#/d' $srcdir/po/LINGUAS`"
GTK_VERSION=`$PKG_CONFIG --modversion gtk+-3.0`
LIBAVUTIL_VERSION=`$PKG_CONFIG --modversion libavutil`
LIBAVCODEC_VERSION=`$PKG_CONFIG --modversion libavcodec`
LIBAVFORMAT_VERSION=`$PKG_CONFIG --modversion libavformat`
LIBSWSCALE_VERSION=`$PKG_CONFIG --modversion libswscale`
AC_DEFINE_UNQUOTED([IMG_LIBAVUTIL_VERSION], ["$LIBAVUTIL_VERSION"], [Version of libavutil used])
AC_DEFINE_UNQUOTED([IMG_LIBAVCODEC_VERSION], ["$LIBAVCODEC_VERSION"], [Version of libavcodec used])
AC_DEFINE_UNQUOTED([IMG_LIBAVFORMAT_VERSION], ["$LIBAVFORMAT_VERSION"], [Version of libavformat used])
AC_DEFINE_UNQUOTED([IMG_LIBSWSCALE_VERSION], ["$LIBSWSCALE_VERSION"], [Version of libswscale used])
AC_CONFIG_FILES([
Makefile
src/Makefile
transitions/Makefile
doc/Makefile
doc/en/Makefile
doc/en/imagination.xml
doc/en/images/Makefile
doc/fr/Makefile
doc/fr/imagination.xml
doc/fr/images/Makefile
doc/es/Makefile
doc/es/imagination.xml
doc/es/images/Makefile
doc/pt_BR/Makefile
doc/pt_BR/imagination.xml
doc/pt_BR/images/Makefile
po/Makefile.in
icons/Makefile
])
AC_OUTPUT
echo ""
echo "Imagination configuration:"
echo "--------------------------"
echo ""
echo "Install in : ${prefix}/bin"
echo "GTK version : ${GTK_VERSION}"
echo "LibAVcodec : ${LIBAVCODEC_VERSION}"
echo "LibAVutil : ${LIBAVUTIL_VERSION}"
echo "LibAVformat : ${LIBAVFORMAT_VERSION}"
echo "Libswscale : ${LIBSWSCALE_VERSION}"
echo ""