Fix problems with yelp opening info files.
[pspp-builds.git] / src / ui / gui / automake.mk
index d7a81dc9b378a7b6d9c6c926bb0b935f2553e84b..c784650cce3628ac67670339aff4737a0696d2c3 100644 (file)
@@ -195,4 +195,12 @@ src_ui_gui_psppire_SOURCES = \
        src/ui/gui/window-manager.c \
        src/ui/gui/window-manager.h
 
-
+install-data-hook::
+       @if ! yelp --version > /dev/null 2>&1 ; then \
+               echo    ; \
+               echo '    The Yelp document viewer does not seem to be installed on the system.' ; \
+               echo '    If Yelp is not available at run time, then the PSPPIRE online reference' ; \
+               echo '    manual will not be available.' ; \
+               echo '    Yelp is available from the GNOME project.  ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
+               echo ; \
+       fi