diff options
author | Martin Baulig <baulig@suse.de> | 2000-07-24 14:27:58 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 2000-07-24 14:27:58 +0000 |
commit | 425e5cc9aad003c9f64d43f2d3f15e04a97db854 (patch) | |
tree | cfa7cad1215a5dfc976e480d1a2113eb828bc2b7 /macros2/linger.m4 | |
parent | c978e43ae83a5a7e7fc8fe32538afbffc5812da9 (diff) | |
download | gnome-common-425e5cc9aad003c9f64d43f2d3f15e04a97db854.tar.gz |
Synced with gnome-libs/gnome-data.
2000-07-24 Martin Baulig <baulig@suse.de>
Synced with gnome-libs/gnome-data.
svn path=/trunk/; revision=1310
Diffstat (limited to 'macros2/linger.m4')
-rw-r--r-- | macros2/linger.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/macros2/linger.m4 b/macros2/linger.m4 new file mode 100644 index 0000000..dfa7c8a --- /dev/null +++ b/macros2/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) +]) |