mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-29 20:58:50 +00:00
d8b75819d6
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@917 a592a061-630c-0410-9148-cb99ea01b6c8
29 lines
420 B
Plaintext
29 lines
420 B
Plaintext
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)
|
|
])
|