summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-16 17:09:06 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-16 17:12:26 +0200
commit8a64235c2c34953083d9a17530a40ee9a2ac28aa (patch)
tree0381e72f05f475f8f0782ba34d03cbc64cbd70f4
parent4a49922497980049696f81924c168eda853f28a9 (diff)
Autotools build: Add --disable-deprecated-api
Make it possible to exclude deprecated API from the build. See #29
-rw-r--r--cairommconfig.h.in3
-rw-r--r--configure.ac1
2 files changed, 4 insertions, 0 deletions
diff --git a/cairommconfig.h.in b/cairommconfig.h.in
index 5b186ee..eb6ab73 100644
--- a/cairommconfig.h.in
+++ b/cairommconfig.h.in
@@ -1,5 +1,8 @@
/* This file is part of cairomm. */
+/* Define to omit deprecated API from the library. */
+#undef CAIROMM_DISABLE_DEPRECATED
+
/* Defined when the --enable-api-exceptions configure argument was given */
#undef CAIROMM_EXCEPTIONS_ENABLED
diff --git a/configure.ac b/configure.ac
index d224409..382045a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,6 +73,7 @@ MM_ARG_ENABLE_WARNINGS([CAIROMM_WXXFLAGS],
[-Wall],
[-pedantic -Wall -Wextra -Wformat-security -Wsuggest-override],
[SIGCXX])
+MM_ARG_DISABLE_DEPRECATED_API
AC_ARG_ENABLE([tests],
[AS_HELP_STRING([--enable-tests], [enable automated tests [default=no]])],