configure.in build the doc-shooter utility conditionally and explicitely

2005-07-04  Sven Neumann  <sven@gimp.org>

	* configure.in
	* devel-docs/tools/Makefile.am: build the doc-shooter utility
	conditionally and explicitely link it with -lX11.
This commit is contained in:
Sven Neumann 2005-07-04 08:18:22 +00:00 committed by Sven Neumann
parent 96a5b528be
commit c05a323882
3 changed files with 14 additions and 7 deletions

View file

@ -874,6 +874,9 @@ if test "$gdk_target" = x11; then
dnl screenshot plug-in needs to link to X11 explicitely
LIBSCREENSHOT="$X_LIBS -lX11"
dnl doc-shooter is X11 specific
DOC_SHOOTER=doc-shooter
dnl Test for Xmu
if test -z "$LIBXMU"; then
gimp_save_CFLAGS="$CFLAGS"
@ -897,6 +900,7 @@ fi
AC_SUBST(LIBXMU)
AC_SUBST(LIBSCREENSHOT)
AC_SUBST(GIMP_REMOTE)
AC_SUBST(DOC_SHOOTER)
###################

View file

@ -19,9 +19,13 @@ LDADDS = \
$(libgimpmath) \
$(libgimpcolor) \
$(libgimpbase) \
$(GTK_LIBS)
$(GTK_LIBS) \
$(X_LIBS) -lX11
noinst_PROGRAMS = doc-shooter
noinst_PROGRAMS = $(DOC_SHOOTER)
EXTRA_PROGRAMS = doc-shooter
doc_shooter_SOURCES = \
shadow.c \

View file

@ -1,10 +1,9 @@
The doc-shooter is a small utility used to create screenshots of
widgets for the GIMP API reference manuals. This utility isn't
built by default, you need to explicitely compile it using
widgets for the GIMP API reference manuals. This utility is X11
specific, so it should only be built when GIMP is being compiled
for the X11 GDK backend.
make doc-shooter
Taking the screenshots is also not part of the docs build.
Taking the screenshots is not part of the docs build.
Instead, the images are created, and then copied by hand into
devel-docs/libgimpwidgets/images. Ideally, the images should be
taken once a release, and all images should be updated at the