Add a configure option to disable examples building (useful for distributions, as adding them to noinst will still build them during make all wasting build time.

This commit is contained in:
flameeyes
2008-01-01 03:14:17 +00:00
parent 65e8f2ce29
commit 209f1d3358
3 changed files with 12 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ define(RELEASE_NUM, 80)
define(CDIO_VERSION_STR, 0.$1)
AC_PREREQ(2.52)
AC_REVISION([$Id: configure.ac,v 1.218 2007/12/28 02:11:01 rocky Exp $])dnl
AC_REVISION([$Id: configure.ac,v 1.219 2008/01/01 03:14:17 flameeyes Exp $])dnl
AC_INIT(libcdio, CDIO_VERSION_STR(RELEASE_NUM))
AC_CONFIG_SRCDIR(src/cd-info.c)
@@ -87,6 +87,11 @@ AC_ARG_ENABLE(cpp_progs,
[ --enable-cpp-progs make C++ example programs (default enabled)])
AM_CONDITIONAL(ENABLE_CPP, test x"$enable_cpp_progs" = "xyes")
AC_ARG_ENABLE(example_progs,
AC_HELP_STRING([--disable-example-progs], [Disable libcdio example programs building]))
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_example_progs" != "xno")
dnl We use C
AC_PROG_CC
AM_PROG_CC_C_O