aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-02-28 15:26:11 +0100
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-02-28 15:26:11 +0100
commitc666bf95d0ba0a6eddcf0e6953b05ef375f6a75e (patch)
treecbfd1f50c55446f24f06ad1979b6b04b59689bff
parenta7ef5946befb435e6d06dffcc1c1256f8f8e1c78 (diff)
downloadgnunet-c666bf95d0ba0a6eddcf0e6953b05ef375f6a75e.tar.gz
gnunet-c666bf95d0ba0a6eddcf0e6953b05ef375f6a75e.zip
-another try. properly handle autoconf vs configure for HTMLFLAGS
-rw-r--r--configure.ac16
-rw-r--r--doc/handbook/Makefile.am40
-rw-r--r--doc/tutorial/Makefile.am20
3 files changed, 38 insertions, 38 deletions
diff --git a/configure.ac b/configure.ac
index 68cae8c0e..b6a4d21c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -558,6 +558,18 @@ AS_IF([test "x$include_manpages" = "xyes"],
558# texinfo5 switches are used. This comes with no version checks, is 558# texinfo5 switches are used. This comes with no version checks, is
559# enabled only at distributors action (ie defaults to "no"). 559# enabled only at distributors action (ie defaults to "no").
560# Mantis #3914 for more details (https://bugs.gnunet.org/view.php?id=3914) 560# Mantis #3914 for more details (https://bugs.gnunet.org/view.php?id=3914)
561# While GNU makeinfo 6.5 supports --css-ref=URL,
562# makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
563# base) does only support --css-include=FILE.
564# The only difference is a shorter html output and
565# in 6.5 the ability to use refs instead of include.
566# We prefer not to break builds in this case, so
567# we use the include version which is backwards compatible
568# and upwards compatible, while the ref variant is neither.
569# In the 5.x version they added `--split=chapters|sections` in
570# addition to `--split=nodes`.
571# Hold on to your hats: In version 6.5 this is already removed, ffs.
572# GNU Texinfo, please be more consistent than 1 version in switches.
561AC_MSG_CHECKING(whether to enable texinfo4 switches) 573AC_MSG_CHECKING(whether to enable texinfo4 switches)
562AC_ARG_ENABLE([texinfo4], 574AC_ARG_ENABLE([texinfo4],
563 [AS_HELP_STRING([--enable-texinfo4], [Use texinfo version 4 specific switches])], 575 [AS_HELP_STRING([--enable-texinfo4], [Use texinfo version 4 specific switches])],
@@ -568,11 +580,15 @@ AS_IF([test "x$activate_texinfo4" = "xyes"],
568 [ 580 [
569 AM_CONDITIONAL([ACTIVATE_TEXINFO4],true) 581 AM_CONDITIONAL([ACTIVATE_TEXINFO4],true)
570 AC_DEFINE([ACTIVATE_TEXINFO4],[1],[Using texinfo version 4 specific switches]) 582 AC_DEFINE([ACTIVATE_TEXINFO4],[1],[Using texinfo version 4 specific switches])
583 TEXINFO_HTMLFLAGS="--no-split --css-include=style.css --css-include=manual.css"
571 ],[ 584 ],[
572 AM_CONDITIONAL([ACTIVATE_TEXINFO4],false) 585 AM_CONDITIONAL([ACTIVATE_TEXINFO4],false)
573 AC_DEFINE([INCLUDE_MANPAGES],[0],[Using texinfo version 5 or later switches]) 586 AC_DEFINE([INCLUDE_MANPAGES],[0],[Using texinfo version 5 or later switches])
587 TEXINFO_HTMLFLAGS="--split --css-ref='../style.css' --css-ref='../manual.css'"
588
574 ]) 589 ])
575 590
591AC_SUBST([TEXINFO_HTMLFLAGS])
576 592
577# Adam shostack suggests the following for Windows: 593# Adam shostack suggests the following for Windows:
578# -D_FORTIFY_SOURCE=2 -fstack-protector-all 594# -D_FORTIFY_SOURCE=2 -fstack-protector-all
diff --git a/doc/handbook/Makefile.am b/doc/handbook/Makefile.am
index 4597d9a3d..d7bcab696 100644
--- a/doc/handbook/Makefile.am
+++ b/doc/handbook/Makefile.am
@@ -3,25 +3,8 @@ docdir = $(datadir)/doc/gnunet/
3 3
4infoimagedir = $(infodir)/images 4infoimagedir = $(infodir)/images
5 5
6if ACTIVATE_TEXINFO4 6AM_MAKEINFOHTMLFLAGS = $(TEXINFO_HTMLFLAGS)
7# NOTE: While GNU makeinfo 6.5 supports --css-ref=URL, 7
8# makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
9# base) does only support --css-include=FILE.
10# The only difference is a shorter html output and
11# in 6.5 the ability to use refs instead of include.
12# We prefer not to break builds in this case, so
13# we use the include version which is backwards compatible
14# and upwards compatible, while the ref variant is neither.
15AM_MAKEINFOHTMLFLAGS = --no-split --css-include=style.css --css-include=manual.css
16else
17# In the 5.x version they added `--split=chapters|sections` in
18# addition to `--split=nodes`.
19# Hold on to your hats: In version 6.5 this is already removed, ffs.
20# GNU Texinfo, please be more consistent than 1 version in switches.
21# This however is compatible to version 5.2. Thanks, I hate it.
22# AM_MAKEINFOHTMLFLAGS = --split=sections --css-ref="../style.css" --css-ref="../manual.css"
23AM_MAKEINFOHTMLFLAGS = --split --css-ref="../style.css" --css-ref="../manual.css"
24endif
25 8
26dist_infoimage_DATA = \ 9dist_infoimage_DATA = \
27 images/gnunet-gtk-0-10-gns-a-done.png \ 10 images/gnunet-gtk-0-10-gns-a-done.png \
@@ -78,6 +61,25 @@ gnunet_TEXINFOS = \
78 agpl-3.0.texi \ 61 agpl-3.0.texi \
79 version.texi 62 version.texi
80 63
64#if ACTIVATE_TEXINFO4
65# NOTE: While GNU makeinfo 6.5 supports --css-ref=URL,
66# makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
67# base) does only support --css-include=FILE.
68# The only difference is a shorter html output and
69# in 6.5 the ability to use refs instead of include.
70# We prefer not to break builds in this case, so
71# we use the include version which is backwards compatible
72# and upwards compatible, while the ref variant is neither.
73#AM_MAKEINFOHTMLFLAGS = --no-split --css-include=style.css --css-include=manual.css
74#else
75# In the 5.x version they added `--split=chapters|sections` in
76# addition to `--split=nodes`.
77# Hold on to your hats: In version 6.5 this is already removed, ffs.
78# GNU Texinfo, please be more consistent than 1 version in switches.
79# This however is compatible to version 5.2. Thanks, I hate it.
80# AM_MAKEINFOHTMLFLAGS = --split=sections --css-ref="../style.css" --css-ref="../manual.css"
81#AM_MAKEINFOHTMLFLAGS = --split --css-ref="../style.css" --css-ref="../manual.css"
82#endif
81EXTRA_DIST = \ 83EXTRA_DIST = \
82 $(gnunet_TEXINFOS) \ 84 $(gnunet_TEXINFOS) \
83 htmlxref.cnf \ 85 htmlxref.cnf \
diff --git a/doc/tutorial/Makefile.am b/doc/tutorial/Makefile.am
index 4df169872..afe4aa6c0 100644
--- a/doc/tutorial/Makefile.am
+++ b/doc/tutorial/Makefile.am
@@ -1,25 +1,7 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2docdir = $(datadir)/doc/gnunet/ 2docdir = $(datadir)/doc/gnunet/
3 3
4if ACTIVATE_TEXINFO4 4AM_MAKEINFOHTMLFLAGS = $(TEXINFO_HTMLFLAGS)
5# NOTE: While GNU makeinfo 6.5 supports --css-ref=URL,
6# makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
7# base) does only support --css-include=FILE.
8# The only difference is a shorter html output and
9# in 6.5 the ability to use refs instead of include.
10# We prefer not to break builds in this case, so
11# we use the include version which is backwards compatible
12# and upwards compatible, while the ref variant is neither.
13AM_MAKEINFOHTMLFLAGS = --no-split --css-include=style.css --css-include=manual.css
14else
15# In the 5.x version they added `--split=chapters|sections` in
16# addition to `--split=nodes`.
17# Hold on to your hats: In version 6.5 this is already removed, ffs.
18# GNU Texinfo, please be more consistent than 1 version in switches.
19# This however is compatible to version 5.2. Thanks, I hate it.
20# AM_MAKEINFOHTMLFLAGS = --split=sections --css-ref="../style.css" --css-ref="../manual.css"
21AM_MAKEINFOHTMLFLAGS = --split --css-ref="../style.css" --css-ref="../manual.css"
22endif
23 5
24 6
25gnunet_tutorial_examples = \ 7gnunet_tutorial_examples = \