Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Get api docs building"

Pass --enable-gtk-doc to ./configure to build API docs.  Add a
status print-out at the end of configure.ac to show whether gtk-doc
was enabled.

This reverts commit 436386f.
  • Loading branch information...
commit 413a553fd5f86088395d942c85a78debdec32a6d 1 parent 6fc1b6d
Kristian Høgsberg authored
Showing with 6 additions and 2 deletions.
  1. +1 −1  configure.ac
  2. +4 −0 docs/Makefile.am
  3. +1 −1  src/main.c
View
2  configure.ac
@@ -219,5 +219,5 @@ echo "
cflags: ${CFLAGS}
Maintainer mode: ${USE_MAINTAINER_MODE}
Building verbose mode: ${enable_verbose_mode}
+ Building gtk-doc: ${enable_gtk_doc}
"
-
View
4 docs/Makefile.am
@@ -20,7 +20,11 @@ MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
MKTMPL_OPTIONS=
+if ENABLE_GTK_DOC
include $(top_srcdir)/gtk-doc.make
+else
+EXTRA_DIST =
+endif
# Version information for marking the documentation
EXTRA_DIST += version.xml.in
View
2  src/main.c
@@ -877,7 +877,7 @@ command_search(int argc, const char *argv[])
return 1;
}
- sprintf(pattern, "*%s*", argv[0]);
+ snprintf(pattern, sizeof pattern, "*%s*", argv[0]);
set = razor_set_open(repo_filename);
if (set == NULL)
Please sign in to comment.
Something went wrong with that request. Please try again.