inet_ntop.m4 629 B

12345678910111213141516171819
  1. # inet_ntop.m4 serial 3
  2. dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. AC_DEFUN([gl_INET_NTOP],
  7. [
  8. AC_REPLACE_FUNCS(inet_ntop)
  9. gl_PREREQ_INET_NTOP
  10. ])
  11. # Prerequisites of lib/inet_ntop.h and lib/inet_ntop.c.
  12. AC_DEFUN([gl_PREREQ_INET_NTOP], [
  13. AC_CHECK_HEADERS_ONCE([netinet/in.h arpa/inet.h])
  14. AC_CHECK_DECLS([inet_ntop],,,[#include <arpa/inet.h>])
  15. AC_REQUIRE([gl_SOCKET_FAMILIES])
  16. AC_REQUIRE([AC_C_RESTRICT])
  17. ])