Theme really wants the old behavior of --with-(foo), so pass those settings into theme in a #define

This commit is contained in:
david parsons
2015-07-14 12:17:21 -07:00
parent 3eb3a68ccb
commit 18115591ac
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -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
+1 -1
View File
@@ -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;