diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-11-16 23:40:28 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-11-17 23:13:58 +0100 |
commit | f29ded4b67ca5d750863ba24d16456ed8f730d0a (patch) | |
tree | efa4a7794f98c8d8f57ddf91210f5af69b090743 /m4/inet_ntop.m4 | |
parent | e614d37577b63766613dac95d76e9f7826b528d9 (diff) | |
download | guile-f29ded4b67ca5d750863ba24d16456ed8f730d0a.tar.gz |
Use Gnulib's `warning' module.
* m4/gnulib-cache.m4: Add `warnings'.
* configure.ac: Use `gl_WARN_ADD' to check whether compiler flags are
supported.
* libguile/Makefile.am (libguile_la_LIBADD): Add $(LTLIBICONV).
(libguile_la_LDFLAGS): Add $(INET_NTOP_LIB) $(INET_PTON_LIB).
Diffstat (limited to 'm4/inet_ntop.m4')
-rw-r--r-- | m4/inet_ntop.m4 | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/m4/inet_ntop.m4 b/m4/inet_ntop.m4 index 2bbdca108..2a8ff2051 100644 --- a/m4/inet_ntop.m4 +++ b/m4/inet_ntop.m4 @@ -1,4 +1,4 @@ -# inet_ntop.m4 serial 9 +# inet_ntop.m4 serial 11 dnl Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,17 +11,18 @@ AC_DEFUN([gl_INET_NTOP], gl_REPLACE_ARPA_INET_H - dnl The AC_SEARCH_LIBS call is a hack to persuade the Solaris 8 linker to - dnl find inet_ntop. - dnl - dnl It is the responsibility of gl_INET_NTOP's caller to arrange for - dnl -lnsl if it is needed. Normally -lnsl is not needed on Solaris 8, - dnl since inet_ntop is needed only by getaddrinfo, and getaddrinfo - dnl isn't built on Solaris 8. + dnl Most platforms that provide inet_ntop define it in libc. + dnl Solaris 8..10 provide inet_ntop in libnsl instead. gl_save_LIBS=$LIBS AC_SEARCH_LIBS([inet_ntop], [nsl], [], [AC_REPLACE_FUNCS([inet_ntop])]) LIBS=$gl_save_LIBS + INET_NTOP_LIB= + 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]) gl_PREREQ_INET_NTOP ]) |