summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-04-29 12:31:29 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-04-29 12:31:29 +0000
commit17369ebe2391f37c6ea86e8d8d504d6794628114 (patch)
treec393ca7648a0033055012c4e0aa95b640cc3807b
parentf91d89ccf858950d7d79d9472d5bdde46ea4f394 (diff)
downloadzsh-17369ebe2391f37c6ea86e8d8d504d6794628114.tar.gz
zsh-17369ebe2391f37c6ea86e8d8d504d6794628114.tar.xz
zsh-17369ebe2391f37c6ea86e8d8d504d6794628114.zip
26898: Ingmar Vanhassel: dont link libbind if not needed
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e48682d5d..abffe2c0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-29  Peter Stephenson  <pws@csr.com>
+
+	* 26898: Ingmar Vanhassel: configure.ac: don't link
+	libbind unless really needed.
+
 2009-04-26  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* Paul Ackersviller: 26883: Test/D07multibyte.ztst: naming of
@@ -11629,5 +11634,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4670 $
+* $Revision: 1.4671 $
 *****************************************************
diff --git a/configure.ac b/configure.ac
index 07002d3c6..b238cfa12 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*)