diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-12-09 21:15:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-12-09 21:15:48 +0000 |
commit | e42d0d35d85caf1ecb86c4655adee608599ac5d7 (patch) | |
tree | 4e7fbd8b5ea8a55a1a5d2c92b52963eb6b4d65fd /acinclude.m4 | |
parent | f70480894c5617ac92ba2f408228b14b4dbdbcf4 (diff) |
Referring to pcap_version[] doesn't do what you want on at least some
UN*Xes (Fedora 16 and probably other Linux distributions, probably at
least some if not all other ELF-based systems, and perhaps also Mac OS
X), and causes problems if pcap_version[] has a different length in the
libpcap with which the executable was built and the libpcap with which
it's run, so we avoid using it for now.
svn path=/trunk/; revision=40138
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 2a6f6e28f4..7409bd7067 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -493,25 +493,7 @@ and did you also install that package?]])) # libpcap. # ac_save_LIBS="$LIBS" - AC_MSG_CHECKING(whether pcap_version is defined by libpcap) LIBS="$PCAP_LIBS $SOCKET_LIBS $NSL_LIBS $LIBS" - AC_TRY_LINK( - [ -# include <stdio.h> - extern char *pcap_version; - ], - [ - printf ("%s\n", pcap_version); - ], - ac_cv_pcap_version_defined=yes, - ac_cv_pcap_version_defined=no, - [echo $ac_n "cross compiling; assumed OK... $ac_c"]) - if test "$ac_cv_pcap_version_defined" = yes ; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_PCAP_VERSION, 1, [Define if libpcap version is known]) - else - AC_MSG_RESULT(no) - fi AC_CHECK_FUNCS(pcap_open_dead pcap_freecode) # # pcap_breakloop may be present in the library but not declared |