summaryrefslogtreecommitdiff
path: root/macros2/mate-common.m4
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 21:46:33 -0300
committerPerberos <[email protected]>2011-12-01 21:46:33 -0300
commit9d1d71a22f9acf0c5c283064b805166ad612013b (patch)
tree10546fa370323cb9468ab9da26a36eb2147037b9 /macros2/mate-common.m4
downloadmate-common-9d1d71a22f9acf0c5c283064b805166ad612013b.tar.bz2
mate-common-9d1d71a22f9acf0c5c283064b805166ad612013b.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'macros2/mate-common.m4')
-rw-r--r--macros2/mate-common.m450
1 files changed, 50 insertions, 0 deletions
diff --git a/macros2/mate-common.m4 b/macros2/mate-common.m4
new file mode 100644
index 0000000..e3719f1
--- /dev/null
+++ b/macros2/mate-common.m4
@@ -0,0 +1,50 @@
+# mate-common.m4
+#
+
+dnl MATE_COMMON_INIT
+
+AC_DEFUN([MATE_COMMON_INIT],
+[
+ dnl this macro should come after AC_CONFIG_MACRO_DIR
+ AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
+
+ dnl ensure that when the Automake generated makefile calls aclocal,
+ dnl it honours the $ACLOCAL_FLAGS environment variable
+ ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
+ if test -n "$ac_macro_dir"; then
+ ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
+ fi
+
+ AC_SUBST([ACLOCAL_AMFLAGS])
+])
+
+AC_DEFUN([MATE_DEBUG_CHECK],
+[
+ AC_ARG_ENABLE([debug],
+ AC_HELP_STRING([--enable-debug],
+ [turn on debugging]),,
+ [enable_debug=no])
+
+ if test x$enable_debug = xyes ; then
+ AC_DEFINE(MATE_ENABLE_DEBUG, 1,
+ [Enable additional debugging at the expense of performance and size])
+ fi
+])
+
+dnl MATE_MAINTAINER_MODE_DEFINES ()
+dnl define DISABLE_DEPRECATED
+dnl
+AC_DEFUN([MATE_MAINTAINER_MODE_DEFINES],
+[
+ AC_REQUIRE([AM_MAINTAINER_MODE])
+
+ DISABLE_DEPRECATED=""
+ if test $USE_MAINTAINER_MODE = yes; then
+ DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK MATECONF MATECOMPONENT MATECOMPONENT_UI MATE LIBGLADE VTE MATE_VFS WNCK LIBSOUP"
+ for DOMAIN in $DOMAINS; do
+ DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
+ done
+ fi
+
+ AC_SUBST(DISABLE_DEPRECATED)
+])