forked from jbazik/flumotion-decklink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
127 lines (102 loc) · 3.12 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
125
126
127
AC_INIT([flumotion-decklink],
m4_esyscmd_s([ test -z "$VERSION" && VERSION=0.10.0; echo $VERSION ]),
[flumotion-decklink], [http://www.flumotion.net/])
AM_INIT_AUTOMAKE([-Wno-portability])
AS_VERSION
AC_SUBST(PACKAGE_VERSION_SPEC, `echo $VERSION | tr '-' '_'`)
AS_NANO
AC_SUBST_FILE(AUTHORS)
AUTHORS=$srcdir/AUTHORS
AC_SUBST(FLU_REQ, 0.10.0)
GST_010_SUPPORTED=yes
AC_SUBST(GST_010_SUPPORTED)
dnl Start commit used to autogenrate ChangeLog from 'git log'
AC_SUBST(GIT_LOG_START_COMMIT, "")
dnl Add parameters for aclocal
AC_SUBST(ACLOCAL_AMFLAGS, "-I common")
dnl set up gettext
dnl the version check needs to stay here because autopoint greps for it
AM_GNU_GETTEXT_VERSION([0.11.5])
AM_GNU_GETTEXT([external])
GETTEXT_PACKAGE=$PACKAGE
AC_SUBST(GETTEXT_PACKAGE)
AC_PROG_INTLTOOL([0.34.2])
AS_AC_EXPAND(LIBDIR, $libdir)
AC_MSG_NOTICE(Storing library files in $LIBDIR)
AS_AC_EXPAND(DATADIR, $datadir)
AC_MSG_NOTICE(Storing data files in $DATADIR)
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
AC_MSG_NOTICE(Storing configuration files in $SYSCONFDIR)
AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
AC_MSG_NOTICE(Using localstatedir $LOCALSTATEDIR)
dnl check for python
AS_PATH_PYTHON(2.3)
dnl useful when we compile our own python modules
dnl AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
export PYTHONPATH=$PYGTK_DIR:$PYTHONPATH
dnl check for epydoc
AC_CHECK_PROG(EPYDOC, epydoc, yes, no)
AM_CONDITIONAL(HAVE_EPYDOC, test "x$EPYDOC" = "xyes")
dnl check for pychecker
AC_CHECK_PROG(PYCHECKER, pychecker, yes, no)
AM_CONDITIONAL(HAVE_PYCHECKER, test "x$PYCHECKER" = "xyes")
dnl check for Twisted
AS_PYTHON_IMPORT(twisted,
[
AC_MSG_CHECKING(for Twisted >= 1.3.0)
prog="
import sys
import twisted.copyright
minver = '1.3.0'
if twisted.copyright.version < minver:
sys.exit(1)
sys.exit(0)
"
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
then
AC_MSG_RESULT(found)
else
AC_MSG_RESULT(too old)
AC_MSG_ERROR([You need at least version 1.3.0 of Twisted])
fi
]
,
AC_MSG_ERROR([You need at least version 1.3.0 of Twisted])
)
dnl check for flumotion
PKG_CHECK_MODULES(FLUMOTION, flumotion >= $FLU_REQ)
FLUMOTION_DIR="`$PKG_CONFIG --variable=flumotiondir flumotion`"
AC_MSG_NOTICE([Flumotion code base directory is $FLUMOTION_DIR])
AC_SUBST(FLUMOTION_DIR)
PREAMBLE=`cat $srcdir/misc/preamble.py`
AC_CONFIG_FILES([env], [chmod +x env])
dnl output stuff
FLUMOTION_SETUP(flumotion/test/setup.py, $FLUMOTION_DIR, $PREAMBLE)
FLUMOTION_SETUP(misc/setup.py, $FLUMOTION_DIR, $PREAMBLE)
dnl output stuff
AC_CONFIG_FILES(
Makefile
common/Makefile
conf/Makefile
misc/Makefile
flumotion/Makefile
flumotion/test/Makefile
flumotion/component/Makefile
flumotion/component/producers/Makefile
flumotion/component/producers/decklink/Makefile
flumotion/project/Makefile
flumotion/project/decklink.py
flumotion/worker/Makefile
flumotion/worker/checks/Makefile
flumotion-decklink.spec
po/Makefile.in
)
AC_OUTPUT
echo
echo " $PACKAGE_STRING ($PACKAGE_VERSION_RELEASE)"
echo
echo " pychecker: $PYCHECKER"
echo " epydoc: $EPYDOC"
echo
echo "Now type \"make\" to build flumotion"