summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-07-24 06:50:18 +0000
committerTom Tromey <tromey@src.gnome.org>1998-07-24 06:50:18 +0000
commita6939e293e7684afd7a5fe78ef48c21a37f32845 (patch)
tree77a0a76f1f8be1f996875a9a52c84de7dbf57592
parent5d887987020ee47b8f74ebdcadb43b594cc96c8d (diff)
downloadgnome-common-a6939e293e7684afd7a5fe78ef48c21a37f32845.tar.gz
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=288
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/Makefile.am1
-rw-r--r--macros/linger.m428
3 files changed, 34 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 1a16642..bb64ccf 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jul 24 00:45:38 1998 Tom Tromey <tromey@cygnus.com>
+
+ * Makefile.am (MACROS): Added linger.m4.
+ * linger.m4: New file.
+
Thu Jul 23 22:41:23 1998 Tom Tromey <tromey@cygnus.com>
* Makefile.am (MACROS): Added gnome-undelfs.m4, gnome-vfs.m4.
diff --git a/macros/Makefile.am b/macros/Makefile.am
index e28684c..137b868 100644
--- a/macros/Makefile.am
+++ b/macros/Makefile.am
@@ -13,6 +13,7 @@ MACROS= \
gnome-vfs.m4 \
gnome-x-checks.m4 \
gnome.m4 \
+ linger.m4 \
need-declaration.m4
EXTRA_DIST=$(MACROS) autogen.sh macros.dep
diff --git a/macros/linger.m4 b/macros/linger.m4
new file mode 100644
index 0000000..dfa7c8a
--- /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)
+])