Commit 28ed3013 authored by Bob Halley's avatar Bob Halley

Solaris port: inet_pton, AF_INET6

parent a6d40879
/* define if you need inet_ntop() */
#undef NEED_INET_NTOP
/* define if you need inet_pton() */
#undef NEED_INET_PTON
/* define if you need AF_INET6 */
#undef NEED_AF_INET6
/* Probably not the right place... */
#ifdef NEED_AF_INET6
#define AF_INET6 99
#endif
......@@ -18,6 +18,17 @@
/* define if you need inet_ntop() */
#undef NEED_INET_NTOP
/* define if you need inet_pton() */
#undef NEED_INET_PTON
/* define if you need AF_INET6 */
#undef NEED_AF_INET6
/* Probably not the right place... */
#ifdef NEED_AF_INET6
#define AF_INET6 99
#endif
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
......
#! /bin/sh
# From configure.in Revision: 1.10
# From configure.in Revision: 1.12
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12
......@@ -1421,15 +1421,70 @@ ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.o"
EOF
fi
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:1428: checking for inet_pton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1433 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_pton(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_pton();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton();
#endif
; return 0; }
EOF
if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_inet_pton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_pton=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.o"
cat >> confdefs.h <<\EOF
#define NEED_INET_PTON 1
EOF
fi
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:1428: checking for inet_aton" >&5
echo "configure:1483: checking for inet_aton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1433 "configure"
#line 1488 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
......@@ -1452,7 +1507,7 @@ inet_aton();
; return 0; }
EOF
if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_inet_aton=yes"
else
......@@ -1480,7 +1535,7 @@ fi
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:1484: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:1539: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -1509,7 +1564,7 @@ fi
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1513: checking for $ac_word" >&5
echo "configure:1568: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1546,7 +1601,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:1550: checking for a BSD compatible install" >&5
echo "configure:1605: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -1621,6 +1676,14 @@ else
;;
esac
fi
case "$host" in
*-sun-solaris*)
cat >> confdefs.h <<\EOF
#define NEED_AF_INET6 1
EOF
;;
esac
BIND9_MAKE_RULES=make/rules
......
AC_REVISION($Revision: 1.11 $)
AC_REVISION($Revision: 1.12 $)
AC_INIT(lib/dns/name.c)
AC_CONFIG_HEADER(config.h)
......@@ -29,6 +29,11 @@ AC_CHECK_FUNC(inet_ntop, ,
AC_SUBST(ISC_EXTRA_OBJS)
AC_DEFINE(NEED_INET_NTOP)]
)
AC_CHECK_FUNC(inet_pton, ,
[ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.o"
AC_SUBST(ISC_EXTRA_OBJS)
AC_DEFINE(NEED_INET_PTON)]
)
AC_CHECK_FUNC(inet_aton, ,
[ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.o"
AC_SUBST(ISC_EXTRA_OBJS)
......@@ -64,6 +69,11 @@ else
;;
esac
fi
case "$host" in
*-sun-solaris*)
AC_DEFINE(NEED_AF_INET6)
;;
esac
AC_SUBST_FILE(BIND9_MAKE_RULES)
BIND9_MAKE_RULES=make/rules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment