summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-02-24 11:36:50 +0000
committerLukas Fleischer <calcurse@cryptocrack.de>2011-03-03 12:21:25 +0100
commit3e15efe917b2a481473568ad95a386def55d34af (patch)
treec56713a87dab8067e93e8f11bf4b42378f8f7f83 /configure.ac
parent2d938cdcdaa470d521f048d3b29e7a8a97612785 (diff)
downloadcalcurse-3e15efe917b2a481473568ad95a386def55d34af.zip
Convert documentation to AsciiDoc, delete translations.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 29 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9be24fc..246f3d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# $calcurse: configure.ac,v 1.36 2010/05/26 17:59:57 culot Exp $
+# $calcurse: configure.ac,v 1.37 2011/02/24 11:36:50 fleischer Exp $
#-------------------------------------------------------------------------------
# Init
@@ -68,6 +68,33 @@ AC_CHECK_HEADERS([math.h], [
AC_MSG_ERROR(The math library is required in order to build calcurse!))
], AC_MSG_ERROR(The math header is required in order to build calcurse!))
#-------------------------------------------------------------------------------
+# Check whether to build documentation
+#-------------------------------------------------------------------------------
+AC_ARG_WITH(asciidoc,
+ AS_HELP_STRING([--with-asciidoc],
+ [Use asciidoc to regenerate documentation.]),
+ [use_asciidoc=$withval],
+ [use_asciidoc="auto"])
+if test x"$use_asciidoc" = x"auto"; then
+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
+ if test -z "$ASCIIDOC"; then
+ have_asciidoc=no
+ AC_MSG_WARN([AsciiDoc not found - documentation will be skipped!])
+ else
+ have_asciidoc=yes
+ fi
+elif test x"$use_asciidoc" = x"yes"; then
+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
+ if test -z "$ASCIIDOC"; then
+ AC_MSG_ERROR([AsciiDoc not found and "--with-asciidoc" specified!])
+ fi
+ have_asciidoc=yes
+elif test x"$use_asciidoc" = x"no"; then
+ AC_MSG_WARN(["--without-asciidoc" specified - documentation will be skipped!])
+ have_asciidoc=no
+fi
+AM_CONDITIONAL(HAVE_ASCIIDOC, test $have_asciidoc = yes)
+#-------------------------------------------------------------------------------
# Compilation options
#-------------------------------------------------------------------------------
CFLAGS="$CFLAGS -Wall"
@@ -90,7 +117,7 @@ AM_CONDITIONAL(CALCURSE_MEMORY_DEBUG, test x$memdebug = xyes)
#-------------------------------------------------------------------------------
# Create Makefiles
#-------------------------------------------------------------------------------
-AC_OUTPUT(Makefile src/Makefile po/Makefile.in po/Makefile)
+AC_OUTPUT(Makefile doc/Makefile src/Makefile po/Makefile.in po/Makefile)
#-------------------------------------------------------------------------------
# Summary
#-------------------------------------------------------------------------------