2019-11-10 21:53:25 -06:00
|
|
|
m4_define(mt_major_version, 1)
|
2020-02-08 14:36:45 -06:00
|
|
|
m4_define(mt_minor_version, 24)
|
|
|
|
m4_define(mt_micro_version, 0)
|
2020-01-20 15:00:10 -06:00
|
|
|
m4_define(mt_version, mt_major_version.mt_minor_version.mt_micro_version)
|
2011-11-06 14:13:49 -06:00
|
|
|
|
2019-11-10 21:53:25 -06:00
|
|
|
m4_define(mt_api_version, 0)
|
2011-11-06 14:13:49 -06:00
|
|
|
|
2019-11-10 21:53:25 -06:00
|
|
|
AC_INIT([mate-terminal],[mt_version],
|
|
|
|
[https://github.com/mate-desktop/mate-terminal/issues],
|
|
|
|
[mate-terminal], [https://mate-desktop.org])
|
2011-11-06 14:13:49 -06:00
|
|
|
AC_CONFIG_SRCDIR([src/terminal.c])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2013-10-11 05:28:44 -05:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2011-11-06 14:13:49 -06:00
|
|
|
|
2014-02-17 03:41:49 -06:00
|
|
|
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-xz check-news])
|
2019-11-10 21:53:25 -06:00
|
|
|
|
|
|
|
AC_SUBST(TERMINAL_MAJOR_VERSION, mt_major_version)
|
|
|
|
AC_SUBST(TERMINAL_MINOR_VERSION, mt_minor_version)
|
|
|
|
AC_SUBST(TERMINAL_MICRO_VERSION, mt_micro_version)
|
|
|
|
AC_SUBST(TERMINAL_API_VERSION, mt_api_version)
|
|
|
|
|
2015-08-03 15:01:04 -05:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
2011-11-06 14:13:49 -06:00
|
|
|
|
2019-10-10 16:28:27 -05:00
|
|
|
if test -z "$enable_maintainer_mode"; then
|
|
|
|
enable_maintainer_mode=yes
|
|
|
|
fi
|
|
|
|
AM_MAINTAINER_MODE([enable])
|
|
|
|
|
|
|
|
MATE_COMMON_INIT
|
|
|
|
MATE_DEBUG_CHECK([no])
|
2020-04-10 09:29:59 -05:00
|
|
|
MATE_COMPILE_WARNINGS
|
2019-10-10 16:28:27 -05:00
|
|
|
#MATE_MAINTAINER_MODE_DEFINES
|
|
|
|
|
2011-11-06 14:13:49 -06:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2018-01-28 10:57:20 -06:00
|
|
|
GLIB_REQUIRED=2.50.0
|
|
|
|
GIO_REQUIRED=2.50.0
|
|
|
|
GTK_REQUIRED=3.22.0
|
2018-06-16 13:27:22 -05:00
|
|
|
VTE_REQUIRED=0.48
|
2016-05-26 06:19:40 -05:00
|
|
|
DCONF_REQUIRED=0.13.4
|
2011-11-06 14:13:49 -06:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES([TERM],
|
2016-05-26 08:53:00 -05:00
|
|
|
[vte-2.91 >= $VTE_REQUIRED
|
2011-11-06 14:13:49 -06:00
|
|
|
glib-2.0 >= $GLIB_REQUIRED
|
|
|
|
gthread-2.0
|
|
|
|
gio-2.0 >= $GIO_REQUIRED
|
2016-05-26 08:53:00 -05:00
|
|
|
gtk+-3.0 >= $GTK_REQUIRED
|
2016-05-26 06:19:40 -05:00
|
|
|
dconf >= $DCONF_REQUIRED
|
2015-08-25 08:00:41 -05:00
|
|
|
x11])
|
2011-11-06 14:13:49 -06:00
|
|
|
|
|
|
|
# ********
|
|
|
|
# smclient
|
|
|
|
# ********
|
|
|
|
|
2015-08-25 08:00:41 -05:00
|
|
|
PKG_CHECK_MODULES(SMCLIENT, sm >= 1.0.0)
|
|
|
|
AC_SUBST([SMCLIENT_CFLAGS])
|
|
|
|
AC_SUBST([SMCLIENT_LIBS])
|
2011-11-06 14:13:49 -06:00
|
|
|
|
|
|
|
# *****
|
2013-01-17 13:51:56 -06:00
|
|
|
# GSettings
|
2011-11-06 14:13:49 -06:00
|
|
|
# *****
|
|
|
|
|
2013-01-17 13:51:56 -06:00
|
|
|
GLIB_GSETTINGS
|
2011-11-06 14:13:49 -06:00
|
|
|
|
|
|
|
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])
|
|
|
|
|
2019-02-22 05:02:30 -06:00
|
|
|
# **********************
|
|
|
|
# GLIB_COMPILE_RESOURCES
|
|
|
|
# **********************
|
|
|
|
AC_ARG_VAR([GLIB_COMPILE_RESOURCES],[glib-compile-resources bin])
|
|
|
|
AC_PATH_PROG([GLIB_COMPILE_RESOURCES],[glib-compile-resources],[])
|
|
|
|
if test -z "$GLIB_COMPILE_RESOURCES"; then
|
|
|
|
AC_MSG_ERROR([glib-compile-resources not found])
|
|
|
|
fi
|
|
|
|
|
|
|
|
# *******
|
|
|
|
# XMLLINT
|
|
|
|
# *******
|
|
|
|
AC_ARG_VAR([XMLLINT],[xmllint bin])
|
|
|
|
AC_PATH_PROG([XMLLINT],[xmllint],[])
|
|
|
|
if test -z "$XMLLINT"; then
|
|
|
|
AC_MSG_ERROR([xmllint not found])
|
|
|
|
fi
|
|
|
|
|
2011-11-06 14:13:49 -06:00
|
|
|
# *****
|
|
|
|
# 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
|
|
|
|
# *************
|
|
|
|
|
2013-08-02 16:48:37 -05:00
|
|
|
YELP_HELP_INIT
|
2011-11-06 14:13:49 -06:00
|
|
|
|
|
|
|
# ****************************
|
|
|
|
|
|
|
|
# ****************************
|
2019-11-10 21:53:25 -06:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.19.8])
|
|
|
|
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
|
|
|
|
GETTEXT_PACKAGE=mate-terminal
|
|
|
|
AC_SUBST([GETTEXT_PACKAGE])
|
|
|
|
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
|
2011-11-06 14:13:49 -06:00
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
mate-terminal.desktop.in
|
|
|
|
src/Makefile
|
2015-09-08 08:46:15 -05:00
|
|
|
src/org.mate.terminal.gschema.xml
|
2011-11-06 14:13:49 -06:00
|
|
|
src/terminal-version.h
|
|
|
|
help/Makefile
|
|
|
|
po/Makefile.in
|
|
|
|
])
|
2019-10-10 12:33:37 -05:00
|
|
|
|
|
|
|
AM_COND_IF([ENABLE_SKEY],
|
|
|
|
[AC_CONFIG_FILES([src/skey/Makefile])])
|
|
|
|
|
2011-11-06 14:13:49 -06:00
|
|
|
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}
|
2019-10-10 16:28:27 -05:00
|
|
|
cflags: ${CFLAGS}
|
|
|
|
warning flags: ${WARN_CFLAGS}
|
|
|
|
linker flags: ${LDFLAGS}
|
2011-11-06 14:13:49 -06:00
|
|
|
|
2011-11-06 15:45:30 -06:00
|
|
|
s/key support: ${enable_skey}
|
2011-11-06 14:13:49 -06:00
|
|
|
"
|