aboutsummaryrefslogtreecommitdiffstats
path: root/macros/linger.m4
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-07-24 14:50:18 +0800
committerTom Tromey <tromey@src.gnome.org>1998-07-24 14:50:18 +0800
commitc2fffade9b722149d66b77d924873723c0a9c780 (patch)
treeb1c990f8753878ffae66bbcf997503a0633083ff /macros/linger.m4
parentd8e1ea20afc863ef4a8978fcba8021d3967a1be1 (diff)
downloadgsoc2013-evolution-c2fffade9b722149d66b77d924873723c0a9c780.tar
gsoc2013-evolution-c2fffade9b722149d66b77d924873723c0a9c780.tar.gz
gsoc2013-evolution-c2fffade9b722149d66b77d924873723c0a9c780.tar.bz2
gsoc2013-evolution-c2fffade9b722149d66b77d924873723c0a9c780.tar.lz
gsoc2013-evolution-c2fffade9b722149d66b77d924873723c0a9c780.tar.xz
gsoc2013-evolution-c2fffade9b722149d66b77d924873723c0a9c780.tar.zst
gsoc2013-evolution-c2fffade9b722149d66b77d924873723c0a9c780.zip
Added linger.m4. New file.
Fri Jul 24 00:45:38 1998 Tom Tromey <tromey@cygnus.com> * Makefile.am (MACROS): Added linger.m4. * linger.m4: New file. svn path=/trunk/; revision=286
Diffstat (limited to 'macros/linger.m4')
-rw-r--r--macros/linger.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/macros/linger.m4 b/macros/linger.m4
new file mode 100644
index 0000000000..dfa7c8aea0
--- /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 <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)
+])