forked from mirrors/tftp-hpa-google
49 lines
835 B
Text
49 lines
835 B
Text
dnl
|
|
dnl autoconf input file to generate MCONFIG
|
|
dnl
|
|
|
|
AC_INIT(MCONFIG.in)
|
|
|
|
AC_PROG_CC
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
|
|
AC_CHECK_FUNCS(recvmsg)
|
|
|
|
AC_MSG_CHECKING([for msg_control in struct msghdr])
|
|
AC_TRY_COMPILE(
|
|
[
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
],
|
|
[
|
|
struct msghdr msg;
|
|
void *p = (void *) &msg.msg_control;
|
|
],
|
|
[
|
|
AC_DEFINE(HAVE_MSGHDR_MSG_CONTROL)
|
|
AC_MSG_RESULT([yes])
|
|
],
|
|
[
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
|
|
PA_ADD_CFLAGS(-Wall)
|
|
PA_ADD_CFLAGS(-W)
|
|
PA_ADD_CFLAGS(-Wpointer-arith)
|
|
PA_ADD_CFLAGS(-Wbad-function-cast)
|
|
PA_ADD_CFLAGS(-Wcast-equal)
|
|
PA_ADD_CFLAGS(-Wstrict-prototypes)
|
|
PA_ADD_CFLAGS(-Wmissing-prototypes)
|
|
PA_ADD_CFLAGS(-Wmissing-declarations)
|
|
PA_ADD_CFLAGS(-Wnested-externs)
|
|
PA_ADD_CFLAGS(-Winline)
|
|
PA_ADD_CFLAGS(-Wcast-align)
|
|
PA_ADD_CFLAGS(-pipe)
|
|
|
|
PA_BSD_SIGNAL()
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
AC_OUTPUT(MCONFIG)
|