diff options
author | Bruno Haible <bruno@clisp.org> | 2011-05-08 21:48:06 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-06-16 00:06:10 +0200 |
commit | fdc623a74665b333f5f376ff3d63d39c7375a306 (patch) | |
tree | d2254d968fe1c9bc072433a8696687961764d1a2 /modules/inet_pton | |
parent | 939cec771c884182789eb24ab80858d5c0faca40 (diff) | |
download | gnulib-fdc623a74665b333f5f376ff3d63d39c7375a306.tar.gz |
inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
* m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
(gl_PREREQ_INET_PTON): ... from here.
* modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
gl_PREREQ_INET_PTON here.
(Depends-on): Update condition.
Diffstat (limited to 'modules/inet_pton')
-rw-r--r-- | modules/inet_pton | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/inet_pton b/modules/inet_pton index 18fe07ec5f..7e64a66629 100644 --- a/modules/inet_pton +++ b/modules/inet_pton @@ -8,13 +8,17 @@ m4/inet_pton.m4 Depends-on: arpa_inet extensions -c-ctype [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no] -sys_socket [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no] -errno [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no] -netinet_in [test "$ac_cv_search_inet_pton" = no && test $ac_cv_func_inet_pton = no] +c-ctype [test $HAVE_INET_PTON = 0] +sys_socket [test $HAVE_INET_PTON = 0] +errno [test $HAVE_INET_PTON = 0] +netinet_in [test $HAVE_INET_PTON = 0] configure.ac: gl_FUNC_INET_PTON +if test $HAVE_INET_PTON = 0; then + AC_LIBOBJ([inet_pton]) + gl_PREREQ_INET_PTON +fi gl_ARPA_INET_MODULE_INDICATOR([inet_pton]) Makefile.am: |