From ec65c861a6b515529474629a3b04a8a2099e51e4 Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Tue, 4 Dec 2001 05:43:50 +0000 Subject: fix up gfarris's mistaken commit to gnome-common (revert to yesterday's versions) svn path=/trunk/; revision=14858 --- macros/linger.m4 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 macros/linger.m4 (limited to 'macros/linger.m4') diff --git a/macros/linger.m4 b/macros/linger.m4 new file mode 100644 index 0000000000..f1c7060398 --- /dev/null +++ b/macros/linger.m4 @@ -0,0 +1,28 @@ +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 +#include + +struct linger li; + +int main () +{ + li.l_onoff = 1; + li.l_linger = 120; + return 0; +} +],[ +AC_DEFINE(HAVE_STRUCT_LINGER) +av_struct_linger=yes +],[ +av_struct_linger=no +],[ +av_struct_linger=no +]) +AC_MSG_RESULT($av_struct_linger) +]) -- cgit v1.2.3