Ticket #64: libdaemon-autodetect-lynx.patch
| File libdaemon-autodetect-lynx.patch, 1.2 kB (added by lool, 2 years ago) |
|---|
-
configure.ac
old new 91 91 92 92 # LYNX documentation generation 93 93 AC_ARG_ENABLE(lynx, 94 AS_HELP_STRING(--disable-lynx,Turn off lynx usage for documentation generation ),94 AS_HELP_STRING(--disable-lynx,Turn off lynx usage for documentation generation (default: autodetect)), 95 95 [case "${enableval}" in 96 96 yes) lynx=yes ;; 97 97 no) lynx=no ;; 98 98 *) AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;; 99 esac],[lynx= yes])99 esac],[lynx=auto]) 100 100 101 if test x$lynx = xyes; then101 if test x$lynx != xno ; then 102 102 AC_CHECK_PROG(have_lynx, lynx, yes, no) 103 103 104 if test x$ have_lynx = xno ; then105 AC_MSG_ERROR([*** Sorry, you have to install lynx or use --disable-lynx ***])104 if test x$lynx = xyes && test x$have_lynx = xno ; then 105 AC_MSG_ERROR([*** Lynx enabled but couldn't find lynx ***]) 106 106 fi 107 107 fi 108 108 109 AM_CONDITIONAL([USE_LYNX], [test "x$lynx" = xyes])109 AM_CONDITIONAL([USE_LYNX], [test "x$lynx" != xno]) 110 110 111 111 AC_CONFIG_FILES([libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile libdaemon.spec libdaemon.pc]) 112 112 AC_OUTPUT
