1 Add options to enable/disable docs and demos
3 Originally written by Anthony Viallard
4 <viallard@syscom-instruments.com>.
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Index: gnuplot-4.6.0/configure.in
9 ===================================================================
10 --- gnuplot-4.6.0.orig/configure.in 2012-03-08 05:34:42.000000000 +0100
11 +++ gnuplot-4.6.0/configure.in 2013-01-07 11:50:03.003804463 +0100
13 AC_ARG_WITH(lisp-files,dnl
14 [ --without-lisp-files do not build emacs lisp files])
16 +dnl Whether we want to build the demo files
17 +dnl Does nothing here, is passed on to the demo subdir
18 +AC_ARG_ENABLE(demo,dnl
19 +[ --disable-demo do not build demo files])
21 +dnl Whether we want to build the doc files
22 +dnl Does nothing here, is passed on to the doc subdir
23 +AC_ARG_ENABLE(doc,dnl
24 +[ --disable-doc do not build doc files])
26 dnl Sort help/subtopic tables by row or column
27 AC_ARG_WITH(row-help,dnl
28 [ --with-row-help format help and subtopic tables by row (default)
29 @@ -1200,6 +1210,24 @@
34 +if test "$enable_demo" != no; then
35 + AC_CONFIG_SUBDIRS(demo)
43 +if test "$enable_doc" != no; then
44 + AC_CONFIG_SUBDIRS(docs)
51 dnl Substitute variables
53 AC_SUBST(VERSION_MAJOR)
54 Index: gnuplot-4.6.0/Makefile.am
55 ===================================================================
56 --- gnuplot-4.6.0.orig/Makefile.am 2013-01-04 14:07:02.239120935 +0100
57 +++ gnuplot-4.6.0/Makefile.am 2013-01-07 11:51:12.034846363 +0100
59 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
60 AUTOMAKE_OPTIONS = foreign 1.2h
62 -SUBDIRS = config m4 term src docs $(LISPDIR) man demo tutorial share
63 +SUBDIRS = config m4 term src $(DOCSUBDIR) $(LISPDIR) man $(DEMOSUBDIR) tutorial share
65 EXTRA_DIST = BUGS CodeStyle Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \
66 Makefile.maint PATCHLEVEL PGPKEYS PORTING README README.1ST \