forked from mirrors/tftp-hpa-google
Cleanup the PA_HEADER_DEFINES() interface somewhat.
This commit is contained in:
parent
a0db7c057b
commit
1e6fa366d1
2 changed files with 6 additions and 4 deletions
8
aclocal.m4
vendored
8
aclocal.m4
vendored
|
@ -138,11 +138,13 @@ fi)])
|
||||||
dnl --------------------------------------------------------------------------
|
dnl --------------------------------------------------------------------------
|
||||||
dnl PA_HEADER_DEFINES
|
dnl PA_HEADER_DEFINES
|
||||||
dnl
|
dnl
|
||||||
dnl PA_HEADER_DEFINES(headers, type, value)
|
dnl PA_HEADER_DEFINES(header, type, value)
|
||||||
dnl --------------------------------------------------------------------------
|
dnl --------------------------------------------------------------------------
|
||||||
AC_DEFUN(PA_HEADER_DEFINES,
|
AC_DEFUN(PA_HEADER_DEFINES,
|
||||||
[AC_MSG_CHECKING([for definition of $3])
|
[AC_MSG_CHECKING([if $1 defines $3])
|
||||||
AC_TRY_COMPILE([$1],
|
AC_TRY_COMPILE([
|
||||||
|
#include <$1>
|
||||||
|
],
|
||||||
[
|
[
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,7 +39,7 @@ AC_CHECK_FUNCS(setregid)
|
||||||
PA_MSGHDR_MSG_CONTROL
|
PA_MSGHDR_MSG_CONTROL
|
||||||
PA_STRUCT_IN_PKTINFO
|
PA_STRUCT_IN_PKTINFO
|
||||||
|
|
||||||
PA_HEADER_DEFINES([#include <netinet/in.h>], int, IPPORT_TFTP)
|
PA_HEADER_DEFINES(netinet/in.h, int, IPPORT_TFTP)
|
||||||
|
|
||||||
PA_WITH_BOOL(tcpwrappers, 1,
|
PA_WITH_BOOL(tcpwrappers, 1,
|
||||||
[ --without-tcpwrappers Disable tcpwrapper permissions checking],
|
[ --without-tcpwrappers Disable tcpwrapper permissions checking],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue