1dnl 2dnl This file was autogenerated from "configure.ac.in". 3dnl Edit that file instead! 4dnl 5 6dnl *************************** 7dnl *** Version information *** 8dnl *************************** 9m4_define([mousepad_version_major], [0]) 10m4_define([mousepad_version_minor], [5]) 11m4_define([mousepad_version_micro], [8]) 12m4_define([mousepad_version_nano], []) dnl leave this empty to have no nano version 13m4_define([mousepad_version_build], [0665c82e]) 14m4_define([mousepad_version_tag], []) 15m4_define([mousepad_version], [mousepad_version_major().mousepad_version_minor().mousepad_version_micro()ifelse(mousepad_version_nano(), [], [], [.mousepad_version_nano()])ifelse(mousepad_version_tag(), [git], [mousepad_version_tag()-mousepad_version_build()], [mousepad_version_tag()])]) 16 17dnl ******************************************* 18dnl *** Debugging support for GIT snapshots *** 19dnl ******************************************* 20m4_define([mousepad_debug_default], [ifelse(mousepad_version_tag(), [git], [yes], [minimum])]) 21 22dnl *************************** 23dnl *** Initialize autoconf *** 24dnl *************************** 25AC_COPYRIGHT([Copyright (C) 2005-2021 26 The Mousepad developers. All rights reserved.]) 27AC_INIT([Mousepad], [mousepad_version], [https://gitlab.xfce.org/apps/mousepad], [mousepad]) 28AC_PREREQ([2.50]) 29AC_CONFIG_MACRO_DIRS([m4]) 30AC_CANONICAL_TARGET() 31AC_REVISION([]) 32 33dnl *************************** 34dnl *** Initialize automake *** 35dnl *************************** 36AM_INIT_AUTOMAKE([1.8 no-dist-gzip dist-bzip2 tar-ustar foreign]) 37AC_CONFIG_HEADERS([config.h]) 38AM_MAINTAINER_MODE() 39m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 40 41dnl ******************************* 42dnl *** Check for UNIX variants *** 43dnl ******************************* 44AC_USE_SYSTEM_EXTENSIONS 45AC_SEARCH_LIBS([strerror],[cposix]) 46 47dnl ******************************** 48dnl *** Check for basic programs *** 49dnl ******************************** 50AC_PROG_CC() 51AM_PROG_CC_C_O() 52LT_PATH_LD([]) 53AC_PROG_INSTALL() 54IT_PROG_INTLTOOL([0.35.0]) 55 56dnl ************************** 57dnl *** Initialize libtool *** 58dnl ************************** 59LT_PREREQ([2.2.6]) 60LT_INIT([disable-static]) 61 62dnl ************************************** 63dnl *** Substitute version information *** 64dnl ************************************** 65MOUSEPAD_VERSION_MAJOR=mousepad_version_major() 66MOUSEPAD_VERSION_MINOR=mousepad_version_minor() 67MOUSEPAD_VERSION_MICRO=mousepad_version_micro() 68MOUSEPAD_VERSION_NANO=mousepad_version_nano() 69AC_SUBST([MOUSEPAD_VERSION_MAJOR]) 70AC_SUBST([MOUSEPAD_VERSION_MINOR]) 71AC_SUBST([MOUSEPAD_VERSION_MICRO]) 72AC_SUBST([MOUSEPAD_VERSION_NANO]) 73 74dnl ************************************ 75dnl *** Check for standard libraries *** 76dnl ************************************ 77AC_SEARCH_LIBS([round], [m], [], [ 78 AC_MSG_ERROR([unable to find the round() function in math library]) 79]) 80AC_CHECK_FUNCS(realpath) 81 82dnl ********************************** 83dnl *** Check for standard headers *** 84dnl ********************************** 85AC_CHECK_HEADERS([errno.h libintl.h locale.h math.h stdio.h stdlib.h string.h]) 86 87dnl ****************************** 88dnl *** Check for i18n support *** 89dnl ****************************** 90XDT_I18N([]) 91 92dnl *********************************** 93dnl *** Check for required packages *** 94dnl *********************************** 95AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_52, Warn when using post 2_52 APIs) 96AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_52, Don't warn about post 2_52 deprecations) 97XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.52.0]) 98XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.52.0]) 99XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0]) 100 101dnl ******************************* 102dnl *** GtkSourceView 4 support *** 103dnl ******************************* 104AC_ARG_ENABLE([gtksourceview4], 105 [AS_HELP_STRING([--enable-gtksourceview4], 106 [Build against GtkSourceView 4 instead of GtkSourceView 3])], 107 [enable_gtksourceview4=$enableval], 108 [enable_gtksourceview4=auto]) 109AS_IF([test "x$enable_gtksourceview4" = "xauto"], 110 [PKG_CHECK_MODULES([GTKSOURCEVIEW], [gtksourceview-4], 111 [enable_gtksourceview4=yes], [enable_gtksourceview4=no])]) 112AS_IF([test "x$enable_gtksourceview4" = "xyes"], 113 [PKG_CHECK_MODULES([GTKSOURCEVIEW], [gtksourceview-4 >= 4.0.0])]) 114AS_IF([test "x$enable_gtksourceview4" = "xno"], 115 [PKG_CHECK_MODULES([GTKSOURCEVIEW], [gtksourceview-3.0 >= 3.24.0])]) 116 117dnl ************************************ 118dnl *** Enable support for GSettings *** 119dnl ************************************ 120GLIB_GSETTINGS 121 122AC_ARG_ENABLE([keyfile-settings], 123 [AS_HELP_STRING([--enable-keyfile-settings], 124 [Use the GSettings keyfile backend rather than the default])], 125 [enable_keyfile_settings="yes"], 126 [enable_keyfile_settings="default"]) 127 128AM_CONDITIONAL([WITH_KEYFILE_SETTINGS], 129 [test "x$enable_keyfile_settings" = "xyes"]) 130 131dnl ************************* 132dnl *** Check for plugins *** 133dnl ************************* 134MOUSEPAD_PLUGIN_GSPELL() 135MOUSEPAD_PLUGIN_TEST() 136 137dnl *********************************** 138dnl *** Check for debugging support *** 139dnl *********************************** 140XDT_FEATURE_DEBUG([mousepad_debug_default]) 141 142dnl ************************************** 143dnl *** Check for linker optimizations *** 144dnl ************************************** 145XDT_FEATURE_LINKER_OPTS() 146 147dnl ********************************* 148dnl *** Substitute platform flags *** 149dnl ********************************* 150AC_MSG_CHECKING([PLATFORM_CPPFLAGS]) 151AC_MSG_RESULT([$PLATFORM_CPPFLAGS]) 152AC_SUBST([PLATFORM_CPPFLAGS]) 153AC_MSG_CHECKING([PLATFORM_CFLAGS]) 154AC_MSG_RESULT([$PLATFORM_CFLAGS]) 155AC_SUBST([PLATFORM_CFLAGS]) 156AC_MSG_CHECKING([PLATFORM_LDFLAGS]) 157AC_MSG_RESULT([$PLATFORM_LDFLAGS]) 158AC_SUBST([PLATFORM_LDFLAGS]) 159 160AC_CONFIG_FILES([ 161Makefile 162mousepad/Makefile 163plugins/Makefile 164plugins/gspell-plugin/Makefile 165plugins/test-plugin/Makefile 166po/Makefile.in 167icons/Makefile 168icons/16x16/Makefile 169icons/48x48/Makefile 170icons/128x128/Makefile 171icons/scalable/Makefile 172]) 173AC_OUTPUT 174 175dnl *************************** 176dnl *** Print configuration *** 177dnl *************************** 178echo 179echo "Build Configuration:" 180echo 181echo "* Debug Support: $enable_debug" 182echo "* Use keyfile backend: $enable_keyfile_settings" 183echo "* Build with GtkSourceView 4: $enable_gtksourceview4" 184echo 185echo "Plugins:" 186echo 187echo "* gspell: $ac_mousepad_plugin_gspell" 188echo "* test: $ac_mousepad_plugin_test" 189echo 190