2011-12-11 04:49:26 -06:00
|
|
|
m4_define([gt_version_major],[1])
|
2019-02-24 02:41:42 -06:00
|
|
|
m4_define([gt_version_minor],[22])
|
2019-04-23 04:26:24 -05:00
|
|
|
m4_define([gt_version_micro],[1])
|
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])
|
|
|
|
|
2021-07-17 01:06:31 -05:00
|
|
|
AC_INIT([Gatuno Terminal],[gt_version],[http://git.gatuno.mx/gatuno/gatuno-terminal],[gatuno-terminal])
|
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])
|
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
|
|
|
|
2021-07-17 01:06:31 -05:00
|
|
|
GETTEXT_PACKAGE=gatuno-terminal
|
2011-11-06 14:13:49 -06:00
|
|
|
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_HEADER_STDC
|
|
|
|
AM_PROG_LIBTOOL
|
2021-07-17 22:09:29 -05:00
|
|
|
IT_PROG_INTLTOOL([0.50.1])
|
2011-11-06 14:13:49 -06:00
|
|
|
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
|
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
|
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
|
2015-08-25 08:00:41 -05:00
|
|
|
x11])
|
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"])
|
|
|
|
|
|
|
|
# ****************************
|
|
|
|
|
|
|
|
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
|
2021-07-17 01:06:31 -05:00
|
|
|
gatuno-terminal.desktop.in
|
2011-11-06 14:13:49 -06:00
|
|
|
src/Makefile
|
|
|
|
src/terminal-version.h
|
|
|
|
src/skey/Makefile
|
|
|
|
po/Makefile.in
|
|
|
|
])
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
# ****************************
|
|
|
|
|
|
|
|
echo "
|
2021-07-17 01:06:31 -05:00
|
|
|
gatuno-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
|
|
|
s/key support: ${enable_skey}
|
2011-11-06 14:13:49 -06:00
|
|
|
"
|