summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2009-09-01 01:16:11 +0200
committerDavid Zeuthen <davidz@redhat.com>2009-09-13 13:34:59 -0400
commitef2e1d14e8c27cd0104de256e8c7a7af295784c8 (patch)
treecf99f357405796fd2bd688e459b07878f5902e34 /configure.ac
parent784236e9f4ef2688c2c3d9a59494870b8b9d5a6e (diff)
Make examples optional
Add --enable-examples configure switch which allows to disable the compilation and installation of the examples. Default is off.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7b34692..16f9a9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -414,6 +414,11 @@ if test "x$enable_introspection" = xyes; then
fi
AM_CONDITIONAL([ENABLE_INTROSPECTION], [test "x$enable_introspection" = xyes])
+AC_ARG_ENABLE([examples],
+ AS_HELP_STRING([--enable-examples], [Build the example programs]),,
+ [enable_examples=no])
+
+AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_examples" = "xyes")
# ********************
# Internationalization