From 18115591acbced8187f0e98e28f8407d6189789e Mon Sep 17 00:00:00 2001 From: david parsons Date: Tue, 14 Jul 2015 12:17:21 -0700 Subject: [PATCH] Theme really wants the old behavior of --with-(foo), so pass those settings into theme in a #define --- configure.sh | 11 +++++++++++ theme.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.sh b/configure.sh index 7493ad7..9d93dc9 100755 --- a/configure.sh +++ b/configure.sh @@ -50,6 +50,17 @@ for banned_with in dl fenced-code id-anchor github-tags urlencoded-anchor; do fi done +# theme wants the old behavior of --with-(foo) +# +case "`echo "$WITH_DL" | $AC_UPPERCASE`" in + EXTRA) THEME_CF="MKD_DLEXTRA|MKD_NODLDISCOUNT";; + BOTH) THEME_CF="MKD_DLEXTRA";; +esac +test "$WITH_FENCED_CODE" && THEME_CF="${THEME_CF:+$THEME_CF|}MKD_FENCEDCODE" + +AC_DEFINE THEME_CF "$THEME_CF" + + test "$DEBIAN_GLITCH" && AC_DEFINE 'DEBIAN_GLITCH' 1 AC_PROG_CC diff --git a/theme.c b/theme.c index 407a68f..95240c3 100644 --- a/theme.c +++ b/theme.c @@ -507,7 +507,7 @@ char **argv; char *source = "stdin"; FILE *tmplfile; int opt; - mkd_flag_t flags = MKD_TOC; + mkd_flag_t flags = THEME_CF|MKD_TOC; int force = 0; MMIOT *doc; struct stat sourceinfo;