You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
420 B
29 lines
420 B
15 years ago
|
dnl
|
||
|
dnl Check for struct linger
|
||
|
dnl
|
||
|
AC_DEFUN(AC_STRUCT_LINGER, [
|
||
|
av_struct_linger=no
|
||
|
AC_MSG_CHECKING(struct linger is available)
|
||
|
AC_TRY_RUN([
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/socket.h>
|
||
|
|
||
|
struct linger li;
|
||
|
|
||
|
main ()
|
||
|
{
|
||
|
li.l_onoff = 1;
|
||
|
li.l_linger = 120;
|
||
|
exit (0);
|
||
|
}
|
||
|
],[
|
||
|
AC_DEFINE(HAVE_STRUCT_LINGER)
|
||
|
av_struct_linger=yes
|
||
|
],[
|
||
|
av_struct_linger=no
|
||
|
],[
|
||
|
av_struct_linger=no
|
||
|
])
|
||
|
AC_MSG_RESULT($av_struct_linger)
|
||
|
])
|