diff options
author | Bruno Haible <bruno@clisp.org> | 2001-10-25 10:07:48 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-10-25 10:07:48 +0000 |
commit | 63d9943b56375176d368059f835f992a676ce052 (patch) | |
tree | fb0e9e862d10abbc3229f686a0012698ef7a8132 /aclocal.m4 | |
parent | bb2fa08376b85ae5f8906b3d566a0979cefc8b00 (diff) | |
download | external_gettext-63d9943b56375176d368059f835f992a676ce052.zip external_gettext-63d9943b56375176d368059f835f992a676ce052.tar.gz external_gettext-63d9943b56375176d368059f835f992a676ce052.tar.bz2 |
Regenerated.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -592,7 +592,7 @@ AC_DEFUN([gt_JAVACOMP], if test -n "$JAVAC"; then ac_result="$JAVAC" else - if gcj --version >/dev/null 2>/dev/null; then + if gcj --version 2>/dev/null | grep '^[3-9]' >/dev/null; then HAVE_GCJ=1 ac_result="gcj -C" else @@ -4535,6 +4535,29 @@ AC_DEFINE_UNQUOTED(SETLOCALE_CONST,$gt_cv_proto_setlocale_arg1, [Define as const if the declaration of setlocale() needs const.]) ]) +#serial 1 + +# Prerequisites of the hostname.c program. +AC_DEFUN(gt_PREREQ_HOSTNAME, +[ + AC_CHECK_HEADERS(arpa/inet.h) + AC_CHECK_FUNCS(gethostname gethostbyname inet_ntop) + + AC_MSG_CHECKING([for IPv6 sockets]) + AC_CACHE_VAL(gt_cv_socket_ipv6,[ + AC_TRY_COMPILE([ +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h>], +[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;], + gt_cv_socket_ipv6=yes, gt_cv_socket_ipv6=no) + ]) + AC_MSG_RESULT($gt_cv_socket_ipv6) + if test $gt_cv_socket_ipv6 = yes; then + AC_DEFINE(HAVE_IPV6, 1, [Define if <sys/socket.h> defines AF_INET6.]) + fi +]) + # Macro to add for using GNU gettext. # Ulrich Drepper <drepper@cygnus.com>, 1995. # |