diff options
author | Michael Biebl <biebl@debian.org> | 2009-09-01 01:16:11 +0200 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2009-09-13 13:34:59 -0400 |
commit | ef2e1d14e8c27cd0104de256e8c7a7af295784c8 (patch) | |
tree | cf99f357405796fd2bd688e459b07878f5902e34 /configure.ac | |
parent | 784236e9f4ef2688c2c3d9a59494870b8b9d5a6e (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.ac | 5 |
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 |