X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=configure.in;h=4d74a8a3ccf1e9ae4b138ecd3593d15eca1e2ebd;hb=fdfa727422da81ef7438fa2eb6d98fe814804391;hp=e16b40f8c39bc42d339a41f76ceb54f2018b9bd6;hpb=59df9eb838b273295a6b86ce9f522dc4ad71dc4d;p=xournal.git diff --git a/configure.in b/configure.in index e16b40f..4d74a8a 100644 --- a/configure.in +++ b/configure.in @@ -1,31 +1,45 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) -AM_INIT_AUTOMAKE(xournal, 0.3) +AM_INIT_AUTOMAKE(xournal, 0.4.5) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC +AC_PROG_RANLIB AC_HEADER_STDC -dnl set this var to NONE (PC) or other thing (Maemo) -usehildon='NONE' -if test "x$usehildon" != xNONE -then - pkg_modules="gtk+-2.0 >= 2.4.0 libgnomecanvas-2.0 >= 2.4.0 libgnomeprintui-2.2 >= 2.0.0 hildon-libs libosso" -else - pkg_modules="gtk+-2.0 >= 2.4.0 libgnomecanvas-2.0 >= 2.4.0 libgnomeprintui-2.2 >= 2.0.0" -fi +pkg_modules="gtk+-2.0 >= 2.10.0 libgnomecanvas-2.0 >= 2.4.0 poppler-glib >= 0.5.4 pangoft2 >= 1.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) -AM_CONDITIONAL(USE_HILDON, test "x$usehildon" != xNONE) +dnl detect Win32 environment... +AC_CANONICAL_HOST +AC_MSG_CHECKING([for Win32 environment]) +case "$host" in + *-*-mingw*) + os_win32=yes;; + *) + os_win32=no;; +esac +AC_MSG_RESULT([$os_win32]) +AM_CONDITIONAL(WIN32, test "$os_win32" = "yes") + +GETTEXT_PACKAGE=xournal +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) + +dnl Add the languages which your application supports here. +ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`" +AM_GLIB_GNU_GETTEXT AC_OUTPUT([ Makefile src/Makefile +src/ttsubset/Makefile +po/Makefile.in ])