$(MAKE) -C packages/Win32/cygwin cygwinbin
# We extend the standard install with a custom hook:
+if BUILD_DOCS
install-data-hook:
(cd include && $(MAKE) install)
(cd docs && $(MAKE) install)
(cd docs/libcurl && $(MAKE) install)
+else
+install-data-hook:
+ (cd include && $(MAKE) install)
+endif
# We extend the standard uninstall with a custom hook:
uninstall-hook:
curl_ipv6_msg="no (--enable-ipv6)"
curl_unix_sockets_msg="no (--enable-unix-sockets)"
curl_idn_msg="no (--with-{libidn2,winidn})"
+ curl_docs_msg="enabled (--disable-docs)"
curl_manual_msg="no (--enable-manual)"
curl_libcurl_msg="enabled (--disable-libcurl-option)"
curl_verbose_msg="enabled (--disable-verbose)"
AC_MSG_RESULT(no)
)
+dnl **********************************************************************
+dnl Check whether to build documentation
+dnl **********************************************************************
+
+AC_MSG_CHECKING([whether to build documentation])
+AC_ARG_ENABLE(docs,
+AS_HELP_STRING([--enable-docs],[Enable documentation])
+AS_HELP_STRING([--disable-docs],[Disable documentation]),
+[ case "$enableval" in
+ no)
+ AC_MSG_RESULT(no)
+ BUILD_DOCS=0
+ curl_docs_msg="no"
+ ;;
+ *) AC_MSG_RESULT(yes)
+ BUILD_DOCS=1
+ ;;
+ esac ],
+ AC_MSG_RESULT(yes)
+ BUILD_DOCS=1
+)
+
dnl **********************************************************************
dnl Check for built-in manual
dnl **********************************************************************
$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
AC_SUBST(PERL)
+if test -z "$PERL"; then
+ dnl if perl was not found then disable building docs
+ AC_MSG_WARN([disabling documentation])
+ BUILD_DOCS=0
+ curl_docs_msg="no"
+fi
+
+dnl set variable for use in automakefile(s)
+AM_CONDITIONAL(BUILD_DOCS, test x"$BUILD_DOCS" = x1)
+
AC_PATH_PROGS( NROFF, gnroff nroff, ,
$PATH:/usr/bin/:/usr/local/bin )
AC_SUBST(NROFF)
IPv6: ${curl_ipv6_msg}
Unix sockets: ${curl_unix_sockets_msg}
IDN: ${curl_idn_msg}
+ Build docs: ${curl_docs_msg}
Build libcurl: Shared=${enable_shared}, Static=${enable_static}
Built-in manual: ${curl_manual_msg}
--libcurl option: ${curl_libcurl_msg}