zsh-workers
 help / color / mirror / code / Atom feed
From: y@exherbo.org
To: Zsh hackers list <zsh-workers@sunsite.dk>
Cc: Ingmar Vanhassel <ingmar@exherbo.org>
Subject: [PATCH] Remove automagic dependency on libbind
Date: Wed, 29 Apr 2009 12:15:20 +0000	[thread overview]
Message-ID: <1241007320-25821-1-git-send-email-y> (raw)

From: Ingmar Vanhassel <ingmar@exherbo.org>

Use AC_SEARCH_LIBS instead of AC_CHECK_LIB to avoid linking all targets
to libbind on all platforms:

  AC_CHECK_LIBS adds a library checked to LIBS, if it contains the
  requested function, causing it to be linked into all targets.

  AC_SEARCH_LIBS only does this if this function isn't already available,
  in the standard C library for instance.

See http://www.gnu.org/software/autoconf/manual/autoconf.html#Libraries
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 07002d3..b238cfa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -753,7 +753,7 @@ if test x$enable_cap = xyes; then
 fi
 
 AC_CHECK_LIB(socket, socket)
-AC_CHECK_LIB(bind, gethostbyname2)
+AC_SEARCH_LIBS(gethostbyname2, bind)
 
 case $LIBS in
   *-lbind*)
-- 
1.6.1.2


                 reply	other threads:[~2009-04-29 12:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=1241007320-25821-1-git-send-email-y \
    --to=y@exherbo.org \
    --cc=ingmar@exherbo.org \
    --cc=zsh-workers@sunsite.dk \
    /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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).