summaryrefslogtreecommitdiff
path: root/configure.ac
blob: ff31526f158ecdfefb63cb14d85ddeae28b31adb (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
#                                               -*- Autoconf -*-
AC_INIT([totem-sohu], 0.0.19.3)

dnl AC_INIT([$PACKAGE], [$VERSION])
dnl AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_MACRO_DIR([m4])

dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
dnl AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE

dnl make aclocal work in maintainer mode
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")

dnl check for tools
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL

dnl Add the languages which your application supports to po/LINGUAS
GETTEXT_PACKAGE=totem-sohu
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name])
AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.37.0])

dnl ================================================================
dnl Totem plugins
dnl ================================================================
PLUGINDIR='${libdir}/totem/plugins'
AC_SUBST(PLUGINDIR)

AM_PATH_PYTHON([2.3],[],
	       AC_MSG_ERROR([python2.3 and above is required to install totem-sohu]))

AC_OUTPUT(Makefile
	  m4/Makefile
          po/Makefile.in
	  totem/Makefile
          totem/plugin/Makefile)