forked from mirrors/tftp-hpa-google
Remove workaround for autoconf 2.52
Remove obsolete workaround for autoconf 2.52 -- we don't support that version of autoconf anymore.
This commit is contained in:
parent
3e7043c50f
commit
40e20cc4a5
1 changed files with 6 additions and 20 deletions
22
aclocal.m4
vendored
22
aclocal.m4
vendored
|
@ -1,6 +1,6 @@
|
|||
dnl -----------------------------------------------------------------------
|
||||
dnl
|
||||
dnl Copyright 1999-2007 H. Peter Anvin - All Rights Reserved
|
||||
dnl Copyright 1999-2008 H. Peter Anvin - All Rights Reserved
|
||||
dnl
|
||||
dnl This program is free software; you can redistribute it and/or modify
|
||||
dnl it under the terms of the GNU General Public License as published by
|
||||
|
@ -70,16 +70,14 @@ dnl Look for definition of struct in_pktinfo, which at least has an
|
|||
dnl ipi_addr member. Some versions of glibc lack struct in_pktinfo;
|
||||
dnl if so we need to include the definition ourselves -- but we only
|
||||
dnl want to do that if absolutely necessary!
|
||||
dnl
|
||||
dnl We don't use AC_CHECK_MEMBER() here, since at least in autoconf 2.52
|
||||
dnl this is broken for a member of structure type.
|
||||
dnl ------------------------------------------------------------------------
|
||||
AH_TEMPLATE([HAVE_STRUCT_IN_PKTINFO],
|
||||
[Define if struct in_pktinfo is defined.])
|
||||
|
||||
AC_DEFUN(PA_STRUCT_IN_PKTINFO,
|
||||
[AC_MSG_CHECKING([for definition of struct in_pktinfo])
|
||||
AC_TRY_COMPILE(
|
||||
[AC_CHECK_MEMBER(struct in_pktinfo.ipi_addr,
|
||||
[AC_DEFINE(HAVE_STRUCT_IN_PKTINFO)],
|
||||
[],
|
||||
[
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -87,18 +85,6 @@ AC_DEFUN(PA_STRUCT_IN_PKTINFO,
|
|||
#include <arpa/inet.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/uio.h>
|
||||
],
|
||||
[
|
||||
struct in_pktinfo pktinfo;
|
||||
int foo = sizeof(struct in_pktinfo);
|
||||
void *quux = (void *)(&pktinfo.ipi_addr);
|
||||
],
|
||||
[
|
||||
AC_DEFINE(HAVE_STRUCT_IN_PKTINFO)
|
||||
AC_MSG_RESULT(yes)
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
])])
|
||||
|
||||
dnl --------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue