| 1 | # Copyright (C) 2007-2009 Lincoln de Sousa <lincoln@minaslivre.org> |
|---|
| 2 | # Copyright (C) 2007 Gabriel Falcão <gabrielteratos@gmail.com> |
|---|
| 3 | # |
|---|
| 4 | # This program is free software; you can redistribute it and/or |
|---|
| 5 | # modify it under the terms of the GNU General Public License as |
|---|
| 6 | # published by the Free Software Foundation; either version 2 of the |
|---|
| 7 | # License, or (at your option) any later version. |
|---|
| 8 | # |
|---|
| 9 | # This program is distributed in the hope that it will be useful, |
|---|
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 12 | # General Public License for more details. |
|---|
| 13 | # |
|---|
| 14 | # You should have received a copy of the GNU General Public |
|---|
| 15 | # License along with this program; if not, write to the |
|---|
| 16 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|---|
| 17 | # Boston, MA 02111-1307, USA. |
|---|
| 18 | |
|---|
| 19 | AC_INIT([guake], [0.4.2], [http://guake.org/]) |
|---|
| 20 | |
|---|
| 21 | AC_CONFIG_HEADERS([config.h]) |
|---|
| 22 | |
|---|
| 23 | AC_CONFIG_MACRO_DIR([m4]) |
|---|
| 24 | |
|---|
| 25 | AM_INIT_AUTOMAKE([-Wall -Werror]) |
|---|
| 26 | |
|---|
| 27 | AC_PROG_LIBTOOL |
|---|
| 28 | |
|---|
| 29 | AC_PROG_CC |
|---|
| 30 | |
|---|
| 31 | AC_PROG_INTLTOOL([0.35.0]) |
|---|
| 32 | AM_GLIB_GNU_GETTEXT |
|---|
| 33 | |
|---|
| 34 | dnl python checks |
|---|
| 35 | AM_PATH_PYTHON(2.4.0) |
|---|
| 36 | |
|---|
| 37 | PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'` |
|---|
| 38 | PYTHON_LIBS="-lpython$PYTHON_VERSION" |
|---|
| 39 | PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION" |
|---|
| 40 | |
|---|
| 41 | AC_SUBST([PYTHON_LIBS]) |
|---|
| 42 | AC_SUBST([PYTHON_CFLAGS]) |
|---|
| 43 | |
|---|
| 44 | dnl gtk dependencie |
|---|
| 45 | GTK_REQUIRED=2.10.0 |
|---|
| 46 | PKG_CHECK_MODULES([DEPENDENCIES], [ |
|---|
| 47 | gtk+-2.0 >= $GTK_REQUIRED |
|---|
| 48 | pygtk-2.0 |
|---|
| 49 | x11 |
|---|
| 50 | ]) |
|---|
| 51 | AC_SUBST([DEPENDENCIES_CFLAGS]) |
|---|
| 52 | AC_SUBST([DEPENDENCIES_LIBS]) |
|---|
| 53 | |
|---|
| 54 | dnl expanding useful variables |
|---|
| 55 | AS_AC_EXPAND(LIBDIR, ${libdir}) |
|---|
| 56 | AS_AC_EXPAND(BINDIR, ${bindir}) |
|---|
| 57 | AS_AC_EXPAND(DATADIR, ${datarootdir}) |
|---|
| 58 | |
|---|
| 59 | dnl Checking python-vte |
|---|
| 60 | AC_MSG_CHECKING([for the python-vte package]) |
|---|
| 61 | ac_pvte_result=`$PYTHON -c 'try: |
|---|
| 62 | import vte |
|---|
| 63 | except Exception, e: |
|---|
| 64 | print str(e)' 2> /dev/null` |
|---|
| 65 | |
|---|
| 66 | if test -z "$ac_pvte_result"; then |
|---|
| 67 | AC_MSG_RESULT([yes]) |
|---|
| 68 | else |
|---|
| 69 | AC_MSG_RESULT([no]) |
|---|
| 70 | AC_MSG_ERROR([cannot import Python module "vte". |
|---|
| 71 | Please check if you have python-vte installed. The error was: |
|---|
| 72 | $ac_pvte_result]) |
|---|
| 73 | fi |
|---|
| 74 | |
|---|
| 75 | dnl gconf |
|---|
| 76 | AC_PATH_PROG(GCONFTOOL, gconftool-2, no) |
|---|
| 77 | if test x"$GCONFTOOL" = xno; then |
|---|
| 78 | AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf]) |
|---|
| 79 | fi |
|---|
| 80 | AM_GCONF_SOURCE_2 |
|---|
| 81 | |
|---|
| 82 | dnl Internationalization |
|---|
| 83 | GETTEXT_PACKAGE=guake |
|---|
| 84 | ALL_LINGUAS="pt_BR ja es ru pl no de it fa hu el zh_CN fr" |
|---|
| 85 | |
|---|
| 86 | AC_SUBST([GETTEXT_PACKAGE]) |
|---|
| 87 | AC_SUBST([ALL_LINGUAS]) |
|---|
| 88 | |
|---|
| 89 | dnl output files |
|---|
| 90 | AC_CONFIG_FILES([ |
|---|
| 91 | Makefile |
|---|
| 92 | data/Makefile |
|---|
| 93 | data/guake.desktop |
|---|
| 94 | data/guake-prefs.desktop |
|---|
| 95 | data/org.guake.Guake.service |
|---|
| 96 | data/pixmaps/Makefile |
|---|
| 97 | po/Makefile.in |
|---|
| 98 | src/Makefile |
|---|
| 99 | src/globalhotkeys/Makefile |
|---|
| 100 | src/guake_globals.py |
|---|
| 101 | src/guake |
|---|
| 102 | src/guake-prefs |
|---|
| 103 | ]) |
|---|
| 104 | |
|---|
| 105 | AC_OUTPUT |
|---|