Summary Files Commits Branches @commit @diff @stats
path: root / configure
diff options
context:
space:
mode:
1 files changed, 11 insertions, 0 deletions
-rwxr-xr-xconfigure11
diff --git a/configure b/configure
index c5fe4a8..b3e179a 100755
--- a/configure
+++ b/configure
@@ -13,6 +13,7 @@ MSGFMT="${MSGFMT:-msgfmt}"
INKSCAPE="${INKSCAPE:-inkscape}"
CC="${CC:-cc}"
CFLAGS="${CFLAGS:--g -O2 -pie -fPIE} -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla ${EXTRA_CFLAGS}"
+MANDOC="mandoc"
DEPS="gtk+-3.0 libxml-2.0"
@@ -44,6 +45,15 @@ command -v "${PKGCONFIG}" >/dev/null ; required
printf 'Checking %s command existance ...' "${CC}"
command -v "${CC}" >/dev/null ; required
+printf 'Checking %s command existance ...' "${MANDOC}"
+if command -v "${CC}" >/dev/null ; is_ok
+then
+ :
+else
+ MANDOC="true"
+fi
+
+
for dep in ${DEPS}
do
pkg_config_check --exists "$dep" || exit 1
@@ -100,6 +110,7 @@ CC = ${CC}
INKSCAPE = ${INKSCAPE}
MSGFMT = ${MSGFMT}
DBG = ${DBG}
+MANDOC = ${MANDOC}
CFLAGS = ${CFLAGS} -DDATADIR=\"\${DATADIR}\" -DPACKAGE=\"\${PACKAGE}\" -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"\${VERSION_FULL}\" ${DEPS_cflags}
LIBS = ${DEPS_libs}