summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac46
1 files changed, 46 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..ff31526
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,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)