From 88add42eb56c4c01d708720773e3b484f9c2a346 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 27 Aug 2013 17:40:47 +0200 Subject: [PATCH] add --disable-tutorials --- configure.ac | 11 +++++++++++ coreapi/help/Makefile.am | 3 +++ 2 files changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index b6a91244e..7954f08c5 100644 --- a/configure.ac +++ b/configure.ac @@ -740,6 +740,17 @@ AC_SUBST(ORTP_LIBS) AC_SUBST([ORTP_VERSION]) AC_SUBST([ORTP_DIR]) +AC_ARG_ENABLE(tutorials, + [AS_HELP_STRING([--disable-tutorials], [Disable compilation of tutorials])], + [case "${enableval}" in + yes) tutorials_enabled=true ;; + no) tutorials_enabled=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --disable-tutorials) ;; + esac], + [tutorials_enabled=yes] +) +AM_CONDITIONAL(ENABLE_TUTORIALS, test x$tutorials_enabled = xyes) + AC_ARG_ENABLE(tests, [AS_HELP_STRING([--disable-tests], [Disable compilation of tests])], [case "${enableval}" in diff --git a/coreapi/help/Makefile.am b/coreapi/help/Makefile.am index 6ba24a9b1..d9320afd3 100644 --- a/coreapi/help/Makefile.am +++ b/coreapi/help/Makefile.am @@ -33,6 +33,8 @@ clean-local: #tutorials +if ENABLE_TUTORIALS + noinst_PROGRAMS=helloworld registration buddy_status chatroom notify helloworld_SOURCES=helloworld.c @@ -78,3 +80,4 @@ AM_CFLAGS=\ tutodir=$(datadir)/tutorials/linphone tuto_DATA=$(LINPHONE_TUTOS) +endif