-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
56 lines (44 loc) · 1.33 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
AC_INIT([Subconvert], [m4_esyscmd_s([sh tools/subconvert_version.sh])], [https://github.com/mgoral/subconvert/issues])
AM_INIT_AUTOMAKE([foreign -Wall])
AC_PREFIX_DEFAULT([/usr])
AC_CONFIG_FILES([
Makefile
subconvert/Makefile
subconvert/cli/Makefile
subconvert/gui/Makefile
subconvert/parsing/Makefile
subconvert/utils/Makefile
icons/Makefile
img/Makefile
po/Makefile.in
])
AM_PATH_PYTHON([3.2])
AC_PROG_LN_S
AC_PROG_MKDIR_P
AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external], [need-ngettext])
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [gettext package])
AC_CHECK_PROGS([SED], [sed], [:])
if test "$SED" = :; then
AC_MSG_ERROR([Could not find program: sed])
fi
AC_CHECK_PROGS([PYRCC], [pyrcc5], [:])
if test "$PYRCC" = :; then
AC_MSG_ERROR([Could not find program: pyrcc5])
fi
AC_CHECK_PROGS([MPLAYER], [mplayer], [:])
if test "$MPLAYER" = :; then
AC_MSG_ERROR([Could not find program: mplayer])
fi
AM_CHECK_PYMOD(chardet,,,[AC_MSG_ERROR(Could not find python module: chardet)])
AM_CHECK_PYMOD(PyQt5,,,[AC_MSG_ERROR(Could not find python module: PyQt5)])
AC_OUTPUT([
subconvert/utils/Locale.py
subconvert/utils/version.py
])
echo ""
echo "Subconvert options:"
echo "Prefix: ${prefix}"