gatuno-terminal/configure.ac

197 lines
4.7 KiB
Plaintext
Raw Normal View History

2011-12-11 04:49:26 -06:00
m4_define([gt_version_major],[1])
2012-07-11 11:58:27 -05:00
m4_define([gt_version_minor],[4])
m4_define([gt_version_micro],[0])
2011-11-06 14:13:49 -06:00
m4_define([gt_version_extra],[])
m4_define([gt_version],[gt_version_major().gt_version_minor().gt_version_micro()gt_version_extra])
m4_define([gt_api_version],[0])
2011-12-11 04:49:26 -06:00
AC_INIT([MATE Terminal],[gt_version],[http://www.mate-desktop.org],[mate-terminal])
2011-11-06 14:13:49 -06:00
AC_CONFIG_SRCDIR([src/terminal.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([no])])
GETTEXT_PACKAGE=mate-terminal
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
AC_C_BIGENDIAN
if test -z "$enable_maintainer_mode"; then
enable_maintainer_mode=yes
fi
AM_MAINTAINER_MODE([enable])
PKG_PROG_PKG_CONFIG
AC_PROG_CC
AC_ISC_POSIX
AC_HEADER_STDC
AM_PROG_LIBTOOL
IT_PROG_INTLTOOL([0.40.0])
MATE_COMMON_INIT
MATE_DEBUG_CHECK
MATE_COMPILE_WARNINGS([maximum])
#MATE_MAINTAINER_MODE_DEFINES
AM_GLIB_GNU_GETTEXT
GLIB_REQUIRED=2.25.0
GIO_REQUIRED=2.25.12
GTK_REQUIRED=2.14.0
#MATECONF_REQUIRED=2.31.3 just testing
2011-12-11 04:49:26 -06:00
MATECONF_REQUIRED=1.1.0
2011-11-06 14:13:49 -06:00
VTE_REQUIRED=0.25.91
AC_MSG_CHECKING([which gtk+ version to compile against])
AC_ARG_WITH([gtk],
[AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 2.0)])],
[case "$with_gtk" in
2.0|3.0) ;;
*) AC_MSG_ERROR([invalid gtk version specified]) ;;
esac],
[with_gtk=2.0])
AC_MSG_RESULT([$with_gtk])
case "$with_gtk" in
2.0) GTK_API_VERSION=2.0
GTK_REQUIRED=2.18.0
VTE_PC_VERSION=
;;
3.0) GTK_API_VERSION=3.0
GTK_REQUIRED=2.90.6
VTE_PC_VERSION=-2.90
;;
esac
GDK_TARGET="$($PKG_CONFIG --variable target gdk-$GTK_API_VERSION)"
case "$GDK_TARGET" in
x11) PLATFORM_DEPS="x11" ;;
*) PLATFORM_DEPS="" ;;
esac
PKG_CHECK_MODULES([TERM],
[vte$VTE_PC_VERSION >= $VTE_REQUIRED
glib-2.0 >= $GLIB_REQUIRED
gthread-2.0
gio-2.0 >= $GIO_REQUIRED
gtk+-$GTK_API_VERSION >= $GTK_REQUIRED
mateconf-2.0 >= $MATECONF_REQUIRED
$PLATFORM_DEPS])
# ********
# smclient
# ********
SMCLIENT_PKGS=
AC_MSG_CHECKING([which smclient backend to use])
AC_ARG_WITH([smclient],
[AS_HELP_STRING([--with-smclient-backend],[which smclient backend to use (xsmp/win32/quartz)])],
[],
[case "$GDK_TARGET" in
x11) with_smclient=xsmp SMCLIENT_PKGS="sm" ;;
win32|quartz) with_smclient=$GDK_TARGET ;;
*) with_smclient=no ;;
esac])
AC_MSG_RESULT([$with_smclient])
if test "$with_smclient" != "no"; then
AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled])
fi
if test -n "$SMCLIENT_PKGS"; then
PKG_CHECK_MODULES([SMCLIENT],[$SMCLIENT_PKGS])
AC_SUBST([SMCLIENT_CFLAGS])
AC_SUBST([SMCLIENT_LIBS])
fi
AM_CONDITIONAL([WITH_SMCLIENT],[test "$with_smclient" != "no"])
AM_CONDITIONAL([WITH_SMCLIENT_XSMP],[test "$with_smclient" = "xsmp"])
AM_CONDITIONAL([WITH_SMCLIENT_WIN32],[test "$with_smclient" = "win32"])
AM_CONDITIONAL([WITH_SMCLIENT_QUARTZ],[test "$with_smclient" = "quartz"])
# *****
# MateConf
# *****
AC_PATH_PROG(MATECONFTOOL, mateconftool-2, no)
if test x"$MATECONFTOOL" = xno; then
AC_MSG_ERROR([mateconftool-2 executable not found in your path - should be installed with MateConf])
fi
AM_MATECONF_SOURCE_2
GLIB_GENMARSHAL="$($PKG_CONFIG --variable=glib_genmarshal glib-2.0)"
AC_SUBST([GLIB_GENMARSHAL])
GLIB_MKENUMS="$($PKG_CONFIG --variable=glib_mkenums glib-2.0)"
AC_SUBST([GLIB_MKENUMS])
AC_PATH_PROG([GTK_BUILDER_CONVERT],[gtk-builder-convert],[false])
if test "$GTK_BUILDER_CONVERT" = "false"; then
AC_MSG_ERROR([gtk-builder-convert not found])
fi
# *****
# S/Key
# *****
AC_MSG_CHECKING([whether to enable s/key support])
AC_ARG_ENABLE([skey],
[AS_HELP_STRING([--disable-skey],[disable s/key support (default: enabled)])],
[],[enable_skey=yes])
AC_MSG_RESULT([$enable_skey])
if test "$enable_skey" = "yes"; then
AC_DEFINE([ENABLE_SKEY],[1],[Define if s/key support is enabled])
fi
AM_CONDITIONAL([ENABLE_SKEY],[test "$enable_skey" = "yes"])
# *************
# Documentation
# *************
MATE_DOC_INIT
# ****************************
AC_SUBST([TERMINAL_MAJOR_VERSION],[gt_version_major])
AC_SUBST([TERMINAL_MINOR_VERSION],[gt_version_minor])
AC_SUBST([TERMINAL_MICRO_VERSION],[gt_version_micro])
AC_SUBST([TERMINAL_API_VERSION],[gt_api_version])
# ****************************
AC_CONFIG_FILES([
Makefile
mate-terminal.desktop.in
src/Makefile
src/terminal-version.h
src/skey/Makefile
help/Makefile
help/bg/Makefile
help/ro/Makefile
help/ja/Makefile
help/zh_TW/Makefile
po/Makefile.in
])
AC_OUTPUT
# ****************************
echo "
2011-11-06 15:45:30 -06:00
mate-terminal-$VERSION:
2011-11-06 14:13:49 -06:00
prefix: ${prefix}
2011-11-06 15:45:30 -06:00
source code location: ${srcdir}
compiler: ${CC}
2011-11-06 14:13:49 -06:00
2011-11-06 15:45:30 -06:00
using smclient: ${with_smclient}
s/key support: ${enable_skey}
2011-11-06 14:13:49 -06:00
"