configure: Fix perldoc detection.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 27 Jul 2011 11:11:54 +0000 (12:11 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 27 Jul 2011 11:11:54 +0000 (12:11 +0100)
This only worked by accident.  If perldoc was not installed then you
would have got a build error.

configure.ac

index 0027253..50fb3b3 100644 (file)
@@ -93,11 +93,11 @@ AC_CHECK_PROGS([OPENER], [gnome-open], [no])
 
 AC_CHECK_PROG([HIVEXREGEDIT], [hivexregedit], [hivexregedit], [no])
 
-AC_CHECK_PROG(PERLDOC,[perldoc],[perldoc],[no])
+AC_CHECK_PROG([PERLDOC],[perldoc],[perldoc],[no])
 if test "x$PERLDOC" = "xno" ; then
     AC_MSG_WARN([perldoc not found - install perl to make man pages])
 fi
-AM_CONDITIONAL(HAVE_PERLDOC,[test "$perldoc" != "no"])
+AM_CONDITIONAL([HAVE_PERLDOC],[test "x$PERLDOC" != "xno"])
 
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile config.ml guestfs-browser.spec])