dnl vi:set et ai sw=2 sts=2 ts=2: */ dnl dnl Copyright (c) 2011 Jannis Pohlmann dnl dnl This library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Library General Public dnl License as published by the Free Software Foundation; either dnl version 2 of the License, or (at your option) any later version. dnl dnl This library is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU Library General Public License for more details. dnl dnl You should have received a copy of the GNU Library General dnl Public License along with this library; if not, write to the dnl Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, dnl Boston, MA 02110-1301, USA. dnl *************************** dnl *** Version information *** dnl *************************** m4_define([thunar_desktop_plugin_verinfo], [0:0:0]) m4_define([thunar_desktop_plugin_version_api_major], [1]) m4_define([thunar_desktop_plugin_version_major], [0]) m4_define([thunar_desktop_plugin_version_minor], [0]) m4_define([thunar_desktop_plugin_version_micro], [0]) m4_define([thunar_desktop_plugin_version_build], [@REVISION@]) m4_define([thunar_desktop_plugin_version_tag], [git]) m4_define([thunar_desktop_plugin_version], [thunar_desktop_plugin_version_major().thunar_desktop_plugin_version_minor().thunar_desktop_plugin_version_micro()ifelse(thunar_desktop_plugin_version_tag(), [git], [thunar_desktop_plugin_version_tag()-thunar_desktop_plugin_version_build()], [thunar_desktop_plugin_version_tag()])]) dnl ******************************************** dnl *** Full debug support for SVN snapshots *** dnl ******************************************** m4_define([thunar_desktop_plugin_debug_default], [ifelse(thunar_desktop_plugin_version_tag(), [git], [full], [minimum])]) dnl *************************** dnl *** Initialize autoconf *** dnl *************************** AC_COPYRIGHT([Copyright (c) 2011 Jannis Pohlmann ]) AC_INIT([thunar-desktop-plugin], [thunar_desktop_plugin_version], [http://bugzilla.xfce.org/]) AC_PREREQ([2.50]) AC_REVISION([@REVISION@]) AC_CANONICAL_TARGET() dnl *************************** dnl *** Initialize automake *** dnl *************************** AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()]) AM_CONFIG_HEADER([config.h]) AM_MAINTAINER_MODE() m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) dnl ************************** dnl *** Libtool versioning *** dnl ************************** THUNAR_DESKTOP_PLUGIN_VERINFO=thunar_desktop_plugin_verinfo() AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERINFO]) dnl ************************************************ dnl *** Substitute thunar-desktop-plugin version *** dnl ************************************************ THUNAR_DESKTOP_PLUGIN_VERSION_MAJOR=thunar_desktop_plugin_version_major() THUNAR_DESKTOP_PLUGIN_VERSION_MINOR=thunar_desktop_plugin_version_minor() THUNAR_DESKTOP_PLUGIN_VERSION_MICRO=thunar_desktop_plugin_version_micro() THUNAR_DESKTOP_PLUGIN_VERSION_API_MAJOR=thunar_desktop_plugin_version_api_major() THUNAR_DESKTOP_PLUGIN_VERSION_API=$THUNAR_DESKTOP_PLUGIN_VERSION_API_MAJOR AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_MAJOR]) AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_MINOR]) AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_MICRO]) AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_API_MAJOR]) AC_SUBST([THUNAR_DESKTOP_PLUGIN_VERSION_API]) dnl ******************************* dnl *** Check for UNIX variants *** dnl ******************************* AC_AIX() AC_ISC_POSIX() AC_MINIX() dnl ******************************** dnl *** Check for basic programs *** dnl ******************************** AM_PROG_AS() AC_PROG_CC() AC_PROG_INSTALL() AC_PROG_INTLTOOL([0.31], [no-xml]) AC_PROG_LIBTOOL() AM_PROG_CC_C_O() dnl *************************************** dnl *** Check for standard header files *** dnl *************************************** AC_HEADER_STDC() AC_CHECK_HEADERS([]) dnl ************************************ dnl *** Check for standard functions *** dnl ************************************ AC_FUNC_MMAP() AC_CHECK_FUNCS([]) dnl ****************************** dnl *** Check for i18n support *** dnl ****************************** XDT_I18N([@LINGUAS@]) dnl *********************************** dnl *** Check for required packages *** dnl *********************************** XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.24.0]) XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.24.0]) XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [2.24.0]) XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.24.0]) XDT_CHECK_PACKAGE([THUNARX], [thunarx-2], [1.3.0]) dnl *********************************** dnl *** Check for debugging support *** dnl *********************************** XDT_FEATURE_DEBUG() dnl ************************************** dnl *** Check for linker optimizations *** dnl ************************************** XDT_FEATURE_LINKER_OPTS() AC_OUTPUT([ Makefile thunar-desktop-plugin/Makefile po/Makefile.in ]) dnl *************************** dnl *** Print configuration *** dnl *************************** echo echo "Build Configuration:" echo echo "* Debug Support: $enable_debug" echo