gnome-common.m4 1.64 KB
Newer Older
1
# gnome-common.m4
2
#
3
# serial 3
4 5 6 7
# 

dnl GNOME_COMMON_INIT

8
AU_DEFUN([GNOME_COMMON_INIT],
9
[
10 11 12
  dnl this macro should come after AC_CONFIG_MACRO_DIR
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])

James Henstridge's avatar
James Henstridge committed
13 14 15
  dnl ensure that when the Automake generated makefile calls aclocal,
  dnl it honours the $ACLOCAL_FLAGS environment variable
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
16 17 18 19
  if test -n "$ac_macro_dir"; then
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
  fi

James Henstridge's avatar
James Henstridge committed
20
  AC_SUBST([ACLOCAL_AMFLAGS])
21 22 23 24
],
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
in your top-level Makefile.am, instead, where "m4" is the macro directory set
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
25

26
AU_DEFUN([GNOME_DEBUG_CHECK],
27
[
28 29 30 31
	AX_CHECK_ENABLE_DEBUG([no],[GNOME_ENABLE_DEBUG])
],
[[$0: This macro is deprecated. You should use AX_CHECK_ENABLE_DEBUG instead and
replace uses of GNOME_ENABLE_DEBUG with ENABLE_DEBUG.
32
See: http://www.gnu.org/software/autoconf-archive/ax_check_enable_debug.html#ax_check_enable_debug]])
33

34 35
dnl GNOME_MAINTAINER_MODE_DEFINES ()
dnl define DISABLE_DEPRECATED
36
dnl
37
AU_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
38
[
James Henstridge's avatar
James Henstridge committed
39 40
	AC_REQUIRE([AM_MAINTAINER_MODE])

41
	DISABLE_DEPRECATED=""
42
	if test $USE_MAINTAINER_MODE = yes; then
43
	        DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
44 45 46
	        for DOMAIN in $DOMAINS; do
	               DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
	        done
47
	fi
48

49
	AC_SUBST(DISABLE_DEPRECATED)
50 51 52
],
[[$0: This macro is deprecated. All of the modules it disables deprecations for
are obsolete. Remove it and all uses of DISABLE_DEPRECATED.]])