X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5c62616a2283aac2b4a78632bc7999b2c9fe00e2..fe56a6a89c7a5dbfc2ecedda0d00af9eb1086225:/configure.ac diff --git a/configure.ac b/configure.ac index 236fa47c..94b2ec03 100644 --- a/configure.ac +++ b/configure.ac @@ -516,13 +516,15 @@ dnl By default (with_oauth=''), enable OAuth if curl is found. dnl If OAuth requested (--with-oauth with_oauth=yes), error if curl not found. dnl If OAuth disabled (--without-oauth with_oauth=no), don't enable it. oauth_support=no +OAUTH_SUPPORT=0 +AC_SUBST([OAUTH_SUPPORT]) AS_IF([test "x$with_oauth" = xyes && test "x$HAVE_CURL_H" = x], [AC_MSG_ERROR([OAuth requested but curl/curl.h not found])], [test "x$with_oauth" = xyes && test "x$CURLLIB" = x], [AC_MSG_ERROR([OAuth requested but curl library not found])], [test "x$with_oauth" != xno && test "x$HAVE_CURL_H" = x1 && test "x$CURLLIB" != x], [AC_DEFINE([OAUTH_SUPPORT], [1], [Support OAuth2 in SMTP auth.]) - AC_SUBST(OAUTH_SUPPORT) + OAUTH_SUPPORT=1 oauth_support=yes]) dnl ---------------- @@ -595,9 +597,10 @@ dnl We only use the expanded versions to print the install paths in dnl the final summary and should use them nowhere else (see the autoconf dnl docs for the rationale for bindir etc being unexpanded). eval "nmhbin=${bindir}"; eval "nmhbin=${nmhbin}" -eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf=${nmhsysconf}" eval "nmhlibexec=${libexecdir}"; eval "nmhlibexec=${nmhlibexec}" +eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf=${nmhsysconf}" eval "nmhman=${mandir}"; eval "nmhman=${nmhman}" +eval "nmhdoc=${docdir}"; eval "nmhdoc=${nmhdoc}" eval "nmhrpm=${nmhrpm}"; AC_MSG_NOTICE([ @@ -614,6 +617,7 @@ binary install path : ${nmhbin} libexec install path : ${nmhlibexec}/nmh config files install path : ${nmhsysconf}/nmh man page install path : ${nmhman} +docs install path : ${nmhdoc} RPM build root : ${nmhrpm} backup prefix : ${backup_prefix} transport system : ${MTS}