unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: emacs-devel@gnu.org
Subject: Re: GnuTLS/TLS proposals for after the release
Date: Wed, 20 Jul 2016 16:21:37 +0200	[thread overview]
Message-ID: <0432f4c8-9fb4-828f-89b2-3428a8eecea6@cs.ucla.edu> (raw)
In-Reply-To: <871t2obge8.fsf@lifelogs.com>

[-- Attachment #1: Type: text/plain, Size: 532 bytes --]

On 07/20/2016 03:14 PM, Ted Zlatanov wrote:
> SM> Another step in the same direction is to make ./configure fail if
> SM> libgnutls is not found.
>
> That's a one-line change IIRC, so it just needs the OK from John or Eli
> (since it's a pretty major change).

It's not that big a deal to treat libgnutls like other key libraries. 
Namely, 'configure' fails if the library is missing, unless you 
specifically say you don't want the library by configuring with the 
--with-gnutls=no option. Something like the attached patch, say.


[-- Attachment #2: 0001-Require-libgnutls-unless-with-gnutls-no.patch --]
[-- Type: text/x-patch, Size: 1677 bytes --]

From 5f508198cd31afd08c3a50af6c7fb38ed65992cc Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 20 Jul 2016 16:18:34 +0200
Subject: [PATCH] Require libgnutls unless --with-gnutls=no

* configure.ac: Report an error if the gnutls library is missing,
unless --with-gnutls=no is specified.
---
 configure.ac | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index c94ecb6..cca555c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3568,9 +3568,9 @@ AC_DEFUN
 AC_SUBST(LIBGIF)
 
 dnl Check for required libraries.
+MISSING=
+WITH_NO=
 if test "${HAVE_X11}" = "yes"; then
-  MISSING=""
-  WITH_NO=""
   test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
     MISSING="libXpm" && WITH_NO="--with-xpm=no"
   test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
@@ -3581,15 +3581,16 @@ AC_DEFUN
     MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
   test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
     MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
-
-  if test "X${MISSING}" != X; then
-    AC_MSG_ERROR([The following required libraries were not found:
+fi
+test "${with_gnutls}" != "no" && test "${HAVE_GNUTLS}" != "yes" &&
+  MISSING="$MISSING gnutls" && WITH_NO="$WITH_NO --with-gnutls=no"
+if test "X${MISSING}" != X; then
+  AC_MSG_ERROR([The following required libraries were not found:
     $MISSING
 Maybe some development libraries/packages are missing?
 If you don't want to link with them give
     $WITH_NO
 as options to configure])
-  fi
 fi
 
 ### Use -lgpm if available, unless '--with-gpm=no'.
-- 
2.5.5


  reply	other threads:[~2016-07-20 14:21 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05 21:26 GnuTLS/TLS proposals for after the release Ted Zlatanov
2016-07-06  0:32 ` John Wiegley
2016-07-06 12:21   ` Ted Zlatanov
2016-07-06 14:25     ` Ted Zlatanov
2016-07-06 17:44     ` John Wiegley
2016-07-07  8:10       ` Robert Pluim
2016-07-12 13:52       ` Ted Zlatanov
2016-07-12 22:03         ` John Wiegley
2016-07-13 14:26           ` Eli Zaretskii
2016-07-13 14:43             ` Ted Zlatanov
2016-07-20 12:04 ` Lars Ingebrigtsen
2016-07-20 12:52   ` Stefan Monnier
2016-07-20 13:00     ` Compressing ELPA (was: GnuTLS/TLS proposals for after the release) Stefan Monnier
2016-08-02 20:58       ` Compressing ELPA John Wiegley
2016-08-02 22:04         ` Rostislav Svoboda
2016-08-02 22:25           ` Robert Weiner
2016-08-03 16:08       ` Clément Pit--Claudel
2016-08-03 16:29         ` Stefan Monnier
2016-07-20 13:14     ` GnuTLS/TLS proposals for after the release Ted Zlatanov
2016-07-20 14:21       ` Paul Eggert [this message]
2016-07-25 12:48         ` Ted Zlatanov
2016-07-25 13:01           ` Ted Zlatanov
2016-07-21 14:52       ` Eli Zaretskii
2016-07-21 15:22         ` Ted Zlatanov
2016-07-21 16:00           ` Eli Zaretskii
2016-07-21 16:35             ` Ted Zlatanov
2016-07-21 17:25               ` Lars Ingebrigtsen
2016-07-21 18:46                 ` Eli Zaretskii
2016-07-22 14:38                   ` Ted Zlatanov
2016-07-22 15:23                     ` Eli Zaretskii
2016-07-23  7:44                       ` Paul Eggert
2016-07-23  7:56                         ` Eli Zaretskii
2016-07-22 14:38             ` Stefan Monnier
2016-07-22 15:22               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0432f4c8-9fb4-828f-89b2-3428a8eecea6@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).