added autoconf check for sa_len
This commit is contained in:
@@ -26,3 +26,6 @@
|
||||
|
||||
/* define if you need AF_INET6 */
|
||||
#undef NEED_AF_INET6
|
||||
|
||||
/* define if your struct sockaddr has a sa_len member */
|
||||
#undef HAVE_SA_LEN
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
/* define if you need AF_INET6 */
|
||||
#undef NEED_AF_INET6
|
||||
|
||||
/* define if your struct sockaddr has a sa_len member */
|
||||
#undef HAVE_SA_LEN
|
||||
|
||||
/* Define if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
|
||||
23
configure
vendored
23
configure
vendored
@@ -1722,6 +1722,29 @@ EOF
|
||||
;;
|
||||
esac
|
||||
|
||||
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
|
||||
echo "configure:1727: checking for sa_len in struct sockaddr" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1729 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/socket.h>
|
||||
EOF
|
||||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
egrep "sa_len" >/dev/null 2>&1; then
|
||||
rm -rf conftest*
|
||||
echo "$ac_t""yes" 1>&6
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_SA_LEN 1
|
||||
EOF
|
||||
|
||||
else
|
||||
rm -rf conftest*
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
|
||||
|
||||
|
||||
BIND9_TOP_BUILDDIR=`pwd`
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
dnl SOFTWARE.
|
||||
|
||||
AC_REVISION($Revision: 1.21 $)
|
||||
AC_REVISION($Revision: 1.22 $)
|
||||
|
||||
AC_INIT(lib/dns/name.c)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
@@ -144,6 +144,12 @@ case "$host" in
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_MSG_CHECKING(for sa_len in struct sockaddr)
|
||||
AC_EGREP_HEADER(sa_len, sys/socket.h,
|
||||
[AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_SA_LEN)],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
AC_SUBST(BIND9_TOP_BUILDDIR)
|
||||
BIND9_TOP_BUILDDIR=`pwd`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user