diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-03-25 21:12:51 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-04-02 22:19:00 +0000 |
commit | 04a4b535093895bb825fcf98390737b000331541 (patch) | |
tree | 3d1d7635959a153b30cc7e706f9545700d4a62ea /acinclude.m4 | |
parent | ae9e3114802d8a758a335df664ddff13f4037e61 (diff) | |
download | wireshark-04a4b535093895bb825fcf98390737b000331541.tar.gz |
Use AC_CHECK_MEMBERS
Change-Id: I18779ad869c97a6ddd12e39fe2f7a1f7b0c8cf56
Reviewed-on: https://code.wireshark.org/review/14754
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index f62610e3bb..05b6f0e6c4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -99,51 +99,6 @@ AC_DEFUN([AC_WIRESHARK_POP_FLAGS], # -# AC_WIRESHARK_STRUCT_ST_FLAGS -# -dnl AC_STRUCT_ST_BLKSIZE extracted from the file in question, -dnl "acspecific.m4" in GNU Autoconf 2.12, and turned into -dnl AC_WIRESHARK_STRUCT_ST_FLAGS, which checks if "struct stat" -dnl has the 4.4BSD "st_flags" member, and defines HAVE_ST_FLAGS; that's -dnl what's in this file. -dnl Done by Guy Harris <guy@alum.mit.edu> on 2012-06-02. - -dnl ### Checks for structure members - -AC_DEFUN([AC_WIRESHARK_STRUCT_ST_FLAGS], -[AC_CACHE_CHECK([for st_flags in struct stat], ac_cv_wireshark_struct_st_flags, -[AC_TRY_COMPILE([#include <sys/stat.h>], [struct stat s; s.st_flags;], -ac_cv_wireshark_struct_st_flags=yes, ac_cv_wireshark_struct_st_flags=no)]) -if test $ac_cv_wireshark_struct_st_flags = yes; then - AC_DEFINE(HAVE_ST_FLAGS, 1, [Define if st_flags field exists in struct stat]) -fi -]) - - -# -# AC_WIRESHARK_STRUCT_SA_LEN -# -dnl AC_STRUCT_ST_BLKSIZE extracted from the file in question, -dnl "acspecific.m4" in GNU Autoconf 2.12, and turned into -dnl AC_WIRESHARK_STRUCT_SA_LEN, which checks if "struct sockaddr" -dnl has the 4.4BSD "sa_len" member, and defines HAVE_SA_LEN; that's -dnl what's in this file. -dnl Done by Guy Harris <guy@alum.mit.edu> on 1998-11-14. - -dnl ### Checks for structure members - -AC_DEFUN([AC_WIRESHARK_STRUCT_SA_LEN], -[AC_CACHE_CHECK([for sa_len in struct sockaddr], ac_cv_wireshark_struct_sa_len, -[AC_TRY_COMPILE([#include <sys/types.h> -#include <sys/socket.h>], [struct sockaddr s; s.sa_len;], -ac_cv_wireshark_struct_sa_len=yes, ac_cv_wireshark_struct_sa_len=no)]) -if test $ac_cv_wireshark_struct_sa_len = yes; then - AC_DEFINE(HAVE_SA_LEN, 1, [Define if sa_len field exists in struct sockaddr]) -fi -]) - - -# # AC_WIRESHARK_BREAKLOOP_TRY_LINK # AC_DEFUN([AC_WIRESHARK_PCAP_BREAKLOOP_TRY_LINK], |