inet_ntop, inet_pton: Fix link error.
authorSimon Josefsson <simon@josefsson.org>
Thu, 5 Nov 2009 13:42:03 +0000 (14:42 +0100)
committerSimon Josefsson <simon@josefsson.org>
Thu, 5 Nov 2009 13:42:03 +0000 (14:42 +0100)
ChangeLog
m4/inet_ntop.m4
m4/inet_pton.m4

index 36c74dd4cf403dcb1c77979b9a73a0d752cc6fd0..3c733a5229c8cd8f6ad2f3853347152b8cad9b6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       Fix link error.
+       * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
+       * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
+
 2009-11-05  Simon Josefsson  <simon@josefsson.org>
 
        * tests/test-func.c: Also test value of __func__.
index e3c6c8be3c9e7562f3e8d6f86ab79a198f711b78..2a8ff205159bdc34de53e2f2d9a37e104b13f776 100644 (file)
@@ -18,7 +18,8 @@ AC_DEFUN([gl_INET_NTOP],
     [AC_REPLACE_FUNCS([inet_ntop])])
   LIBS=$gl_save_LIBS
   INET_NTOP_LIB=
-  if test "$ac_cv_search_inet_ntop" != "none required"; then
+  if test "$ac_cv_search_inet_ntop" != "no" &&
+     test "$ac_cv_search_inet_ntop" != "none required"; then
     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
   fi
   AC_SUBST([INET_NTOP_LIB])
index b2662572f36166d95d50076aaa97eb49c0171af0..e890b9b7a09404d75319464ce2f07f9a9aa64822 100644 (file)
@@ -18,7 +18,8 @@ AC_DEFUN([gl_INET_PTON],
     [AC_REPLACE_FUNCS([inet_pton])])
   LIBS=$gl_save_LIBS
   INET_PTON_LIB=
-  if test "$ac_cv_search_inet_pton" != "none required"; then
+  if test "$ac_cv_search_inet_pton" != "no" &&
+     test "$ac_cv_search_inet_pton" != "none required"; then
     INET_PTON_LIB="$ac_cv_search_inet_pton"
   fi
   AC_SUBST([INET_PTON_LIB])