# HG changeset patch # User Simon Josefsson # Date 1257428523 -3600 # Node ID 81468eb78706e9fe5057ed0a8810b4286f0eb0e6 # Parent 04732481adbaa342aa827ea1e77b0a40f67198ec inet_ntop, inet_pton: Fix link error. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-05 Simon Josefsson + + 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 * tests/test-func.c: Also test value of __func__. diff --git a/m4/inet_ntop.m4 b/m4/inet_ntop.m4 --- a/m4/inet_ntop.m4 +++ b/m4/inet_ntop.m4 @@ -18,7 +18,8 @@ [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]) diff --git a/m4/inet_pton.m4 b/m4/inet_pton.m4 --- a/m4/inet_pton.m4 +++ b/m4/inet_pton.m4 @@ -18,7 +18,8 @@ [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])