Commit Graph

278 Commits

Author SHA1 Message Date
Guy Harris 05e06f7a7a First cut at support for clang. We may want to have specific items for
"supports GCC-style -W flags", etc., and may want to improve the check
for "is this clang", as well as deciding what other stuff should be done
if we have clang as well.  clang should, I think, largely be
gcc-compatible at the command line.

svn path=/trunk/; revision=36729
2011-04-20 03:22:19 +00:00
Guy Harris 4d6cb744df Add a "-d" flag to dumpcap, to print out the generated code for the
capture filter in human-readable form.  (Well, readable by humans who
know BPF machine language, at least. :-))

svn path=/trunk/; revision=33509
2010-07-13 23:26:07 +00:00
Guy Harris 22c9dd27f7 First check for the new GTK+/OS X integration functions, then the old
ones; it appears that at least one user's -ligemacintegration has both
(see bug 4823), and we should choose the new ones in that case.

Also, always set have_ige_mac if we have the functions.

Fix tpyoes while we're at it.

svn path=/trunk/; revision=33106
2010-06-05 22:04:28 +00:00
Guy Harris 36623bcb71 From H.sivank: GtkOSXApplication support.
Call the various flavors of OS X integration just "OS X integration",
not anything with "IGE" in it - it appears that, in some places,
"ige-mac-integration" refers only to the older Carbon-based functions,
although the library still appears to be called -ligemacintegration.

Update the URLs for the information about the OS X integration
libraries.

Clean up help message for --with-pcap-remote.

Clean up white space a bit.

Speaking of white space, it's "Mac OS X", not "MacOS X".

svn path=/trunk/; revision=32941
2010-05-25 00:35:44 +00:00
Stephen Fisher 3e3cb2d6a3 As of release 1.5, MIT Kerberos moved krb5.h to krb5/krb5.h. Check both
places.  Fix prompted by report on -dev from Jeff Blaine using MIT Kerberos
1.8.


svn path=/trunk/; revision=32727
2010-05-09 06:33:03 +00:00
Guy Harris 7dbbb8c572 Just check for pcap_create(); it first appeared in libpcap 1.0.0, and
pcap_set_buffer_size() did as well, so there aren't any libpcap releases
with pcap_create() but not pcap_set_buffer_size().

Only do one check for pcap_create.

svn path=/trunk/; revision=32695
2010-05-06 23:33:41 +00:00
Anders Broman f9981411f1 Checking in Stigs changes from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=475
BUT not activating the check for 
pcap_create()
pcap_set_buffer_size()
This should make it possible to build with support for setting the buffersize if not capturing 802.11 traffic.

The code for handling the 'B' option should be OK in any case.

svn path=/trunk/; revision=32688
2010-05-06 18:34:30 +00:00
Anders Broman c911b0101b Check for pcap_create
Using pcap create and pcap_activate should make it possible
to set the capture buffer size on Linux systems as well as Windows.
Help to implement it would be apreciated :-)

Ref:
http://seclists.org/tcpdump/2009/q3/151

svn path=/trunk/; revision=32687
2010-05-06 15:39:08 +00:00
Guy Harris 980ac5960e Don't say "Checking for broken pcap-config" if we don't have a
pcap-config to check for brokenness.

svn path=/trunk/; revision=31919
2010-02-19 00:15:29 +00:00
Guy Harris 56cffa1135 Put in missing comma.
svn path=/trunk/; revision=31241
2009-12-11 09:11:42 +00:00
Guy Harris 488253bfe7 Add the time zone abbreviation to the result of abs_time_to_str() and
abs_time_secs_to_str().

svn path=/trunk/; revision=31234
2009-12-11 03:39:17 +00:00
Jörg Mayer b6cffe4050 - Add an AC macro to test linker flags.
- Test whether the linker supports --as-needed and if so,
  adds it to LDFLAGS

svn path=/trunk/; revision=29327
2009-08-07 18:49:24 +00:00
Guy Harris e411397ef8 Check for libpcap 1.0's broken pcap-config, which put a space between -L
and its argument - that doesn't work on some platforms (e.g., OS X).

svn path=/trunk/; revision=28664
2009-06-08 17:23:00 +00:00
Guy Harris 923b8ae800 Check for a pcap-config script (as provided by libpcap 1.x) and, if we
find it, use it to determine where to find libpcap and what additional
libraries it requires.

svn path=/trunk/; revision=28653
2009-06-08 02:12:23 +00:00
Stig Bjørlykke 31a2a3065d Don't reuse lua_dir in a for loop.
svn path=/trunk/; revision=28625
2009-06-03 15:40:12 +00:00
Stig Bjørlykke 863e456e78 Fixed setting of LUA_INCLUDES when having extraneous lua heder directory.
Fixed resetting flags after negative check for Lua.

svn path=/trunk/; revision=28624
2009-06-03 15:28:30 +00:00
Stig Bjørlykke d861a1a6dc Only give a failure message if configuring with --with-lua=yes.
svn path=/trunk/; revision=28623
2009-06-03 13:45:48 +00:00
Stig Bjørlykke 76520bcc34 Added check for extraneous lua header directories, as some systems
apparently put the headers in a "lua5.1" subdirectory.

svn path=/trunk/; revision=28622
2009-06-03 13:21:48 +00:00
Stig Bjørlykke 39d713806f Use liblua by default, if available.
svn path=/trunk/; revision=28621
2009-06-03 12:13:07 +00:00
Sebastien Tandel 52cc5fb1e8 python binding for wireshark (first commit)
* ability to write dissectors with python for wireshark.
        documentation (http://wiki.wireshark.org/Python)


svn path=/trunk/; revision=28529
2009-05-29 21:10:40 +00:00
Stig Bjørlykke 26424033d3 From Petr Sumbera (bug 3305):
Recognize Solaris Kerberos (which is based on MIT Kerberos).

svn path=/trunk/; revision=27622
2009-03-06 18:56:53 +00:00
Stephen Fisher 3a50c0063f Fix bug #3152 for good.
svn path=/trunk/; revision=27092
2008-12-23 03:25:56 +00:00
Jeff Morriss 6c81d84efc Fix bug 3152: when searching for igemacintegration manually set GTK_LIBS to
the found library (AC_SEARCH_LIBS sets the LIBS variable but we really don't
want that).

svn path=/trunk/; revision=27088
2008-12-22 16:10:14 +00:00
Guy Harris 44f8cae6ab If we don't have any of the pcap_datalink_XXX_to_YYY routines,
substitute our own (I wrote them all, so I can steal them from the
BSD-licensed libpcap if I want :-)).  This means that
linktype_name_to_val() and linktype_val_to_name() are always available,
and we don't need to #ifdef use of them.

Use pcap_datalink_val_to_description() to get the description for a
particular DLT_ value, rather than mapping the DLT_ value to a
WTAP_ENCAP_ value and getting the description for the latter.

svn path=/trunk/; revision=27074
2008-12-21 23:22:12 +00:00
Jeff Morriss 5b9a2fdd6d After checking for ige_mac_menu_set_menu_bar reset CFLAGS and LIBS
back to what they were before the test (without GTK_LIBS).
This prevents tshark (and every other program) from unnecessarily linking
against GTK_LIBS.

svn path=/trunk/; revision=27056
2008-12-19 02:48:19 +00:00
Balint Reczey 2b90b483f5 Require Lua 5.1 for Lua plugin.
This fixes bug 2510.

svn path=/trunk/; revision=26805
2008-11-18 14:55:01 +00:00
Gerald Combs 1b7064bb6a Add support for the GeoIP library. Using different database files,
GeoIP can map IP addresses to Countries, Cities, AS numbers, ISPs,
etc. If any library paths are defined AND any database files are found,
corresponding columns are added to the endpoint tables in the GUI.

To do:
  - Add columns to the conversation list
  - Add GeoIP info to "-z conv,..."
  - Create a default UAT file.

svn path=/trunk/; revision=26571
2008-10-27 04:50:57 +00:00
Stephen Fisher 812ecb21c3 Tweak Mac IGE integration detection so that it can find the functions not
only in the Gtk+ OS X framework, but also in the separate igemacintegration
library.  Also add call to ite_mac_menu_set_menu_bar() to synchronize the
OS X menu bar with the Gtk menu bar in Wireshark.  The Gtk menu bar in
Wireshark will remain there.


svn path=/trunk/; revision=26560
2008-10-26 20:09:54 +00:00
Gerald Combs e8aee91bc3 Add an option to look for the presence of Imendio's Mac OS X integration
functions in GTK+.

svn path=/trunk/; revision=26539
2008-10-24 18:08:32 +00:00
Gerald Combs 9fbab46ad4 Add support for c-ares to the GNU toolchain.
svn path=/trunk/; revision=25955
2008-08-08 00:04:38 +00:00
Guy Harris e82d99d2b4 If we have pcap_free_datalinks(), use it. If not, then, on Windows,
just leak the list returned by pcap_list_datalinks(), as there's no
guarantee that if you have a library built with one version of the
MSVC++ run-time library, and it returns a pointer to allocated data, you
can free that data from a program linked with another version of the
MSVC++ run-time library.  (This is not an issue on UN*X.)

This should fix bug 2677.

svn path=/trunk/; revision=25668
2008-07-04 03:33:00 +00:00
Guy Harris 31cae6e4ef Require GLib 2.4 or later.
That means that G_GINT64_MODIFIER will be defined, so don't check
whether it's defined.

We don't use the PRI[douxX]64 macros, as we use the GLib print routines
and thus use G_GINT64_MODIFIER instead.  Get rid of the checks for
whether inttypes.h defines PRI[douxX]64; just check whether it exists at
all.

That means we don't set INTTYPES_H_DEFINES_FORMATS, so don't check for
it.

svn path=/trunk/; revision=25243
2008-05-05 22:47:32 +00:00
Guy Harris ac59b6dc4f Don't define AC_WIRESHARK_CHECK_64BIT_FORMAT twice; just define the one
that works with GLib's print routines.  Make that version compile and
link the test programs with GLib.

svn path=/trunk/; revision=25127
2008-04-20 23:41:36 +00:00
Stephen Fisher 545d54ae74 Remove GTK1 code.
svn path=/trunk/; revision=24828
2008-04-07 04:38:59 +00:00
Guy Harris 454fbec234 Only check for pcap_breakloop()'s "usability" if it might be present but
unusable; it'd only be unusable if we require that functions be declared
before they're used (i.e., if we check for that with -Wimplicit and if
we fail if the check produces a warning because we're using -Werror). 
Always checking doesn't necessarily work if, for example, you're not
compiling with GCC, as -Werror and -Wimplicit might not be recognized by
other compilers.

svn path=/trunk/; revision=24287
2008-02-07 18:19:08 +00:00
Tomas Kukosa 08bbd29c71 Support for RPCAP features in GUI (from Boris Misenov, see Bug 1366)
- retrieving the list of remote PCAP interfaces
  - password authentication support
  - UDP data fransfer
  - packet sampling (available in WinPcap 4.x)
  etc.

fix problem if non-default rpcap port is used

svn path=/trunk/; revision=23750
2007-12-04 11:19:29 +00:00
Gerald Combs 58914b5248 If libcap is present, have dumpcap use it to drop privileges while
retaining CAP_NET_ADMIN and CAP_NET_RAW.  Update some Makefile
dependencies for dumpcap.

svn path=/trunk/; revision=23511
2007-11-20 16:53:01 +00:00
Jörg Mayer 094e2a9a5f Get rid of the remains of NET-SNMP in the build process.
svn path=/trunk/; revision=22934
2007-09-24 06:59:40 +00:00
Jaap Keuter c2dcd299c8 YAE2W
svn path=/trunk/; revision=22085
2007-06-13 05:27:32 +00:00
Ronnie Sahlberg a1d2d9c75b we dont link with g_snprintf in the configure for gtk1-2 so fall back to
snprintf instead


svn path=/trunk/; revision=21995
2007-05-29 23:29:20 +00:00
Guy Harris d2ac4f7133 Check for G_GINT64_MODIFIER in Wireshark as we do in Wiretap.
In all the places where a cast to "long long" or "unsigned long long"
was done, use G_GINT64_MODIFIER and get rid of the cast, as

	1) there's no guarantee that "%ll" works

and

	2) there's no guarantee that "long long" works

(the latter definitely does *NOT* work with MSVC++; the former doesn't
work with regular printf in MSVC++, but it might work with the GLib
printf-based functions).

svn path=/trunk/; revision=21978
2007-05-29 06:56:07 +00:00
Sebastien Tandel a265df648d update of AC_WIRESHARK_PCAP_CHECK to detect if pcap header version is
corresponding to the library version for pcap_breakloop. Issue a warning if the
pcap_breakloop is present but not usable.


svn path=/trunk/; revision=21498
2007-04-22 13:38:50 +00:00
Sebastien Tandel 706627f882 adding AC_(WIRESHARK|WIRETAP)_GCC_CFLAGS_OPTION macro to test whether gcc
supports the options passed as arguments. If the options are supported, they
are added to CFLAGS.


svn path=/trunk/; revision=21493
2007-04-22 09:27:21 +00:00
Luis Ontanon 093a98d5c0 the -lm flag might be needed to link lua
svn path=/trunk/; revision=20315
2007-01-04 22:45:43 +00:00
Jörg Mayer e26860607d Get rid of UCD SNMP support (it's not longer supported and
superseeded by net-snmp). Replace some_snmp by net_snmp
where appropriate.


svn path=/trunk/; revision=20071
2006-12-08 15:05:41 +00:00
Jeff Morriss 51143fa1ef Bug 1246: From Eric Hall, fix typo: s/NETSNMPCNFIG/NETSNMPCONFIG/
svn path=/trunk/; revision=19984
2006-11-26 08:28:09 +00:00
Jörg Mayer 6cd3bd1202 Don't include /usr/local if usage of /usr/local has been disabled via
configure option.

svn path=/trunk/; revision=19706
2006-10-26 14:50:03 +00:00
Guy Harris 11d3c15ca0 Set want_portaudio to yes if we'll be building with libportaudio; it
might have been set to ifavailable, but other parts of the configure
script expect it to be "yes" or "no" after
AC_WIRESHARK_LIBPORTAUDIO_CHECK finishes.

svn path=/trunk/; revision=19606
2006-10-19 09:16:49 +00:00
Jörg Mayer 6bdaea253b Change some messages when ucd snmp is found but --with-ssl
is missing. Also I changed the behaviour to just disable
ucd snmp in case it was requested but no --with-ssl was
given instead of bailing out with an error.

svn path=/trunk/; revision=19335
2006-09-27 11:03:22 +00:00
Guy Harris 1ae3d4e86e AC_CHECK_TYPE already prints a "checking for" message; don't bother
printing another one before calling it.

svn path=/trunk/; revision=19223
2006-09-12 20:24:42 +00:00
Jörg Mayer 72651ba02d rtp_player.c will now compile with the new API, although it will not
actually do something useful except to print that the new API is not
supported.

Adapt acinclude.m4 to provide PORTAUDIO_API_1 and add back the
check_message to indicate *why* we are checking for the type.


svn path=/trunk/; revision=19148
2006-09-05 09:17:55 +00:00
Guy Harris 6b70649f74 AC_CHECK_TYPE outputs a "Checking..." message; we don't need to issue
one ourselves.

The documentation for autoconf isn't very clear on the "includes"
argument to AC_CHECK_TYPE - it's in the form of a list of #include
statements.

svn path=/trunk/; revision=19140
2006-09-04 22:47:16 +00:00
Jörg Mayer 2b6f72aa98 After some reading it is clear that the code was written for
portaudio versions <= 18. At least Suse 10.1 provides a snapshot
of version 19, which, in turn has the brand new and incompatible
version 2.0 of the API. Change the error message to tell the
user that he needs portaudio <= 18.


svn path=/trunk/; revision=19133
2006-09-04 14:16:50 +00:00
Jörg Mayer 56934c59cb Use portaudio if it's there. Check that we have the right version.
Note: This check is currently carried out by checking that the include
defines PortAudioStream. If you know of any better check, please let
me know.

acinclude.m4:
	Replace sequences of 8 spaces by tab

svn path=/trunk/; revision=19131
2006-09-04 13:34:48 +00:00
Anders Broman 7eac3c2879 From Alejandro Vaquero:
- Change the "listen_rtp" to "rtp_player"
- Change from a plugin to be part of the core
- By default it will not compile with the rtp_player. In order to 
compile it is necessary to:
       + For windows: uncomment the line 
"PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1" in config.nmake
       + For linux: using the "--with-portaudio=yes"

svn path=/trunk/; revision=19094
2006-08-30 21:51:31 +00:00
Anders Broman aa98f8dadd From Bálint Réczey
- Added support for versioned lua libnames to aclocal.m4
- create generated elua_register.h from Makefile

svn path=/trunk/; revision=18769
2006-07-19 19:20:58 +00:00
Jörg Mayer 60a546c1cf autofoo will fail on systems that lack libgcrypt.m4.
Provide one in aclocal-fallback. While I'm at it: Remove
the libgnutls.m4 stuff from acinclude and provide it in
aclocal-fallback as well.


svn path=/trunk/; revision=18475
2006-06-15 20:25:01 +00:00
Gerald Combs eb71f7fb96 Rename the main executable to "wireshark", along with more conversions:
ethereal.com -> wireshark.org
  mailing lists and addresses
  ETHEREAL -> WIRESHARK
  Man pages
  Automake/Autoconf names


svn path=/trunk/; revision=18271
2006-05-31 19:12:15 +00:00
Ronnie Sahlberg f0b33a4789 ethereal->wireshark updates
svn path=/trunk/; revision=18206
2006-05-22 08:14:01 +00:00
Guy Harris aa1e053ce6 If we have pcap_breakloop(), at least on UN*X we can stop the capture
with a pcap_breakloop() call - we don't need to call select() before
calling pcap_dispatch().

Even if we do need to call select(), we don't need to supply it with a
timeout - it's OK if we block indefinitely, as the signal will interrupt
select().

That also means we can pass -1 as the count to pcap_dispatch(), as
pcap_breakloop() will terminate the loop in pcap_dispatch().

Use sigaction() to catch SIGUSR1, so we can make sure that the signal
handler doesn't get reset when the signal is delivered, and that system
calls don't restart when we return from the signal handler.

svn path=/trunk/; revision=18201
2006-05-21 21:32:04 +00:00
Guy Harris 134c7734b3 Check several sets of additional libraries that libpcap might need
(-lcfg -lodm on AIX with the current tcpdump.org libpcap, -lpfring with
the ring buffer stuff on Linux).

svn path=/trunk/; revision=17996
2006-04-25 18:01:43 +00:00
Jörg Mayer 97d857e20b Recent checkins lost a change to make the liblualib check succeed on
Suse 9.3 (original checkin r17198).

svn path=/trunk/; revision=17353
2006-02-19 11:02:20 +00:00
Luis Ontanon d9462b4a45 Prepare for lua 5.1
svn path=/trunk/; revision=17346
2006-02-18 04:03:24 +00:00
Jörg Mayer 325f8b88ba lua autofoo:
- Fail if with-lua was given but liblualib is missing
- Make the test for liblualib succeed on my system
  (make sure the test gets linked with liblua and libm).

svn path=/trunk/; revision=17198
2006-02-07 09:49:38 +00:00
Jörg Mayer 9ba6da080a Paolo Abeni
I have developed an external plugin to enable ssl decryption in
ethereal.

Me

- Remove unnecessary $Id$ from acinclude.m4
- Added packet-ssl-utils.h to Makefile.common
- Fixed a few warnings

TODO

- Lots of warning fixes (see separate mail)
- Reformat function headers to read like the others do
  (return value<newline>function-name...)
- Test on Windows platform
- Review the patch to packet-ssl.c and new files packet-ssl-utils.[hc]


svn path=/trunk/; revision=17156
2006-02-04 23:44:05 +00:00
Luis Ontanon c8dd927e0c It was hard.. but at the end I won (or at least i believe so...).
After install hello_world.lua works.


svn path=/trunk/; revision=17137
2006-01-31 22:22:05 +00:00
Guy Harris 3808fc02a1 Add PRIX64, as we now use it.
svn path=/trunk/; revision=15811
2005-09-15 06:04:33 +00:00
Guy Harris d5bad28951 Use "pcap_get_selectable_fd()" if we have it, and if it returns -1,
don't do a "select()".

svn path=/trunk/; revision=14358
2005-05-12 03:31:33 +00:00
Guy Harris 46e1907f13 If we have "pcap_freecode()", use it to free the instructions for a BPF
filter after installing the filter.

Set HAVE_PCAP_LIB_VERSION if we're building with WinPcap 3.1; it's not
present in earlier versions, but is present in current 3.1 betas.

Check HAVE_PCAP_LIB_VERSION when building capture-wpcap.c.

svn path=/trunk/; revision=13872
2005-03-23 01:25:01 +00:00
Guy Harris 0af4492612 Don't try to run net-snmp-config if we don't find it.
Check whether krb5.h defines KEYTYPE_ARCFOUR_56 - not all versions do
(in particular, the Heimdal that comes with FreeBSD 4.6 doesn't).

packet-kerberos.h includes krb5.h if we hae Heimdal; we don't need to do
so in packet-spnego.c.

svn path=/trunk/; revision=13828
2005-03-20 19:29:22 +00:00
Guy Harris 61c7ec6534 Fix the display of help information for various --with arguments (for
whatever reason, the changequote() hack doesn't seem to be working, at
least on OS X; the square brackets were simply being removed from the
messages).

Rename the "ifpresent" value for the --with variables to "ifavailable",
to match the help messages.

At least for the SNMP libraries, have the "checking" message just say
"whether to use XXX" and have the result message say "yes, if available"
if the user didn't explicitly specify "--with" or "--without", as the
default just leaves the library out if it doesn't work, but explicitly
specifying "--with" means you get an error if it doesn't work.

Make "--with-net-snmp" fail if the headers aren't present (if the user
explicitly asks for something, we should fail if we can't give it to
them, as they presumably really wanted it).

svn path=/trunk/; revision=13789
2005-03-17 05:09:42 +00:00
Guy Harris da00482b66 Capitalize "Net-SNMP" the way the Net-SNMP project capitalizes it.
Note that the "=PATH" argument to "--with-net-snmp" is optional.

If "--with-net-snmp" is specified, give an error if Net-SNMP is found
but "--with-ssl" wasn't specified, as the user has specified that they
really want a version of Ethereal with Net-SNMP; if it's not specified,
just warn of that and drive on, as we did before.

svn path=/trunk/; revision=13786
2005-03-16 23:53:49 +00:00
Ronnie Sahlberg 58269e6e95 we dont need to link with gssapi.a any more
svn path=/trunk/; revision=13666
2005-03-08 21:36:04 +00:00
Ronnie Sahlberg 6e6e082d34 when HEIMDAL is linked with :
make spnego able to decrypt data wrapped inside
 GSSAPI/SPNEGO/KRB5 arcfour-hmac

This code will be more etherealified and evolve into being able to link with MIT as well.



svn path=/trunk/; revision=13659
2005-03-08 09:45:19 +00:00
Jörg Mayer 927f53301c Dectect MIT-Kerberos as well
svn path=/trunk/; revision=12302
2004-10-15 06:51:48 +00:00
Guy Harris 78c036980e From Albert Chin: in a test program, include <glibconfig.h> rather than
<glib.h> when checking for the format for 64-bit integers, as, on
Solaris 2.5.1, <glib.h> ends up defining a function that requires stuff
from glib, and the test program isn't linked with glib - including
<glibconfig.h> is sufficient to get guint64 defined, and that's all we
need.

svn path=/trunk/; revision=12282
2004-10-12 18:00:39 +00:00
Jörg Mayer d18c4821e2 At least on Suse, the linking flags are obtained via krb5-config --libs,
not --cflags.

svn path=/trunk/; revision=12147
2004-09-30 07:14:18 +00:00
Guy Harris 54e48e1dbf Use the right name in the Checking... messages.
svn path=/trunk/; revision=12137
2004-09-29 17:45:48 +00:00
Guy Harris 46ba180b03 Put back the $KRB4_CONFIG call to set KRB5_LIBS.
svn path=/trunk/; revision=12136
2004-09-29 17:38:53 +00:00
Guy Harris 649ecd7e8c When testing whether the Heimdal library has krb5_kt_resolve (and
whether it requires -lresolv), restore LIBS after we're done regardless
of whether we found it or not - we use KRB5_LIBS in the Makefiles,
rather than adding the Kerberos libraries to LIBS directly.

svn path=/trunk/; revision=12134
2004-09-29 09:58:22 +00:00
Guy Harris 9d71c8da5b If, when checking whether the Kerberos library is Heimdal or not, we
find it's not, always report "no", even if we're going to give up
because the user specified --with-krb5, so the "sorry, you don't have
Heimdal" message shows up on a line of its own.

svn path=/trunk/; revision=12119
2004-09-28 04:47:10 +00:00
Guy Harris 242499c091 If the user specified --with-krb5 but we don't have a usable Kerberos
library, don't disable dissection and drive on, report an error and
stop; --with-krb5 means "build this with Kerberos", not "build this with
Kerberos if you can" (no -krb5 option at all means "build this with
Kerberos if you can").

If they *didn't* specify --with-krb5 and we don't have a usable Kerberos
library, set want_krb5 to "no", so that at the end of the configure
script we don't say we're building with the Kerberos library (otherwise,
want_krb5 is "ifpresent", but the stuff to print the configuration
options treats anything other than "no" as meaning "yes").

svn path=/trunk/; revision=12118
2004-09-28 04:41:57 +00:00
Guy Harris f62467ec34 Explicitly indicate when we're doing tests to see if UCD SNMP contains
sprint_realloc_objid(), and the extra libraries we're using with the
tests, along the lines of what we do with the Kerberos 5 library.

svn path=/trunk/; revision=12108
2004-09-26 22:30:46 +00:00
Guy Harris f3381337cc In the SNMP tests, we're using AC_TRY_LINK to avoid caching the results
of the test for sprint_realloc_objid() (so that a failure to find it
when we're not linking with extra libraries doesn't cause us to assume
we won't find it if we *do* link with extra libraries), so
"ac_cv_lib_snmp_sprint_realloc_objid" doesn't get set - set our own
variable for that.

Use AC_TRY_LINK rather than AC_CHECK_LIB in the Kerberos tests when
checking for krb_k5_resolve(), to avoid caching the results.

Improve the messages printed in the Kerberos tests to give more detail.

svn path=/trunk/; revision=12106
2004-09-26 20:30:44 +00:00
Guy Harris aa580a0cca Clean up a bunch of cruft in --with-ssl; make it more resemble other
--with flags.

Report, in the messages at the end of the configure script, whether
we're building with the SSL library.

If we fail to find "sprint_realloc_objid()" when linking with a
particular library, and --with-ssl wasn't specified, try linking with
-lcrypto as well and, if that succeeds, fail with an indication that UCD
SNMP requires -lcrypto but --with-ssl wasn't specified.

svn path=/trunk/; revision=12105
2004-09-26 04:00:20 +00:00
Guy Harris 64124c3adb Explicitly test whether we need -lresolv in order to link with -lkrb5.
Include -lresolv if we do, and don't include it if we don't.

Clean up some other things in the -lkrb5 macro.

svn path=/trunk/; revision=12104
2004-09-26 00:26:06 +00:00
Guy Harris b1bde8fe6a For annoying licensing reasons, we don't want to use -lcrypto unless the
user explicitly says to do so by using --with-ssl.  However, we *still*
don't want to just blithely replace -lcrypto with SSL_LIBS, so, if
KRB5_LIBS contains "-lcrypto" but SSL_LIBS isn't set to a non-empty
string, we report an error (the user can than either configure without
Kerberos or with -lcrypto).

svn path=/trunk/; revision=12103
2004-09-25 23:58:42 +00:00
Guy Harris d0842822ad Don't just add "-lresolv" to KRB5_LIBS if it's missing - on some
platforms, it's missing because it's not needed, which is good because
it's not even *present* on those platforms (the resolver functions are
built into libc).  If there really are platforms where krb5-config is
broken to the extent that it doesn't list -lresolv when it's required,
the way to fix that is to try building a program with Heimdal and just
the krb5-config libraries and, if that fails, try building with those
libraries and -lresolv - if that works, add -lresolv to the list of
libraries.

Don't just replace -lcrypto with SSL_LIBS in KRB5_LIBS, as SSL_LIBS
might not contain any libraries - replace it only if SSL_LIBS is defined
as something.

svn path=/trunk/; revision=12099
2004-09-25 09:33:53 +00:00
Guy Harris cdb4a5f4d5 From Marten Svantesson: according to Tomas Anders, all versions of Heimdal
will either have "heimdal", in all lower case, in the version string in
the header file, or will write out, when you run "krb5-config
--version", a version string with "heimdal" in all lower case, so we
don't need to do case-insensitive matching, which is good - not all
versions of "sed" support the "i" flag (although you can do
case-insensitive matching by using regular expressions, if necessary).

svn path=/trunk/; revision=11915
2004-09-06 19:49:54 +00:00
Guy Harris f7190ff4c7 Fix a typo.
svn path=/trunk/; revision=11747
2004-08-16 02:23:41 +00:00
Guy Harris 334a55a2ce For "pcap_findalldevs()", don't assume that just because it's in -lpcap
it's usable - one of the updates to OS X 10.3 updated libpcap to
0.8[.x], so that it had "pcap_findalldevs()", but didn't update
"pcap.h", so it didn't declare "pcap_if_t", so you couldn't actually
*use* it.  You can work around that by installing the pcap.h (and
pcap-bpf.h) from the matching tcpdump.org release, but, as even when
that version of OS X is pre-installed rather than being the result of a
Software Update, you still don't get the new "pcap.h" (at least I didn't
get it on my PowerBook with 10.3.4).  Therefore, we check whether a
program that calls "pcap_findalldevs()" *and* declares a "pcap_if_t *"
to pass to it can be compiled and linked with -lpcap, and only declare
HAVE_PCAP_FINDALLDEVS if we can.

Also, don't check for the functions added to libpcap after
"pcap_findalldevs()" was added unless we have a usable
"pcap_findalldevs()", as, if not, those functions won't be declared in
"pcap.h" either, so we'll get compiler warnings.

svn path=/trunk/; revision=11745
2004-08-16 01:11:23 +00:00
Guy Harris 809bd53e81 Use the GLib gint64 and guint64 types instead of u_int64_t or uint64_t,
as those are what's used in Ethereal for 64-bit integers, and as there's
no guarantee that either of them will be defined on any particular
platform.

svn path=/trunk/; revision=11513
2004-07-25 08:36:34 +00:00
Jörg Mayer 2d21f054ef Remove set -/+x - they were added for debugging and not intended for commit
svn path=/trunk/; revision=11493
2004-07-23 23:34:15 +00:00
Jörg Mayer 769507d234 Fix the fix to krb5
svn path=/trunk/; revision=11465
2004-07-21 22:37:04 +00:00
Jörg Mayer 6ecefef982 Forgotten case: Make krb5 fail if it requires -lcrypto but no --with-ssl=... is not given
svn path=/trunk/; revision=11458
2004-07-21 17:45:05 +00:00
Guy Harris 5dca1e794c As Joerg Mayer noted, the value of LIBS should be saved outside the
loop.

svn path=/trunk/; revision=11444
2004-07-20 18:42:28 +00:00
Guy Harris 84479319ad When checking whether we can get "sprint_realloc_objid()" from the SNMP
library, don't forget to link with the SNMP library along with all the
other libraries....

Restore the setting of LIBS after doing all the tests, as is done in
other macros.

svn path=/trunk/; revision=11426
2004-07-19 02:07:07 +00:00
Jörg Mayer dd99d1eb50 - Require --with-ssl=... to be explicitly set to work
around licensing problems
- Cause krb5 and snmp to fail, if ssl is required but
  not configured.

svn path=/trunk/; revision=11416
2004-07-18 20:33:54 +00:00
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Guy Harris 55676422a2 If we can't find the krb5 header or the krb5 code isn't Heimdal, clear
out KRB5_LIBS, so we don't try to link with the library.

svn path=/trunk/; revision=11267
2004-06-29 07:59:12 +00:00
Jörg Mayer 36d8f00cdb Get rid of a warning with newer auto... tools by proper quoting.
svn path=/trunk/; revision=11237
2004-06-25 07:06:46 +00:00
Guy Harris 7002776572 Pick up the stuff I did for tcpdump to figure out the right strings to
use to format 64-bit integers.

Fix the RSVP dissector to use that rather than hardcoding "%ll" in.

Remove the "only if G_HAVE_GINT64 is defined" bit from the discussion of
64-bit integers - we're too dependent on having them to support
compilers that don't have a 64-bit integral data type.  Do, however,
note that neither "long" nor "long long" are acceptable, and also note
that you shouldn't assume "%ll" does the trick for printing them.

svn path=/trunk/; revision=11182
2004-06-19 00:07:23 +00:00
Jörg Mayer 4890aefdfe Thomas Anders: Pathnames might contain Spaces, krb5-config might not be in PATH
svn path=/trunk/; revision=10918
2004-05-18 11:11:37 +00:00
Jörg Mayer 161d88c50a Thomas Anders: Add the actual libs to link in case --with-krb5=/explicit/path
svn path=/trunk/; revision=10891
2004-05-14 10:33:00 +00:00
Jörg Mayer 47b8d71aec Fix --with-krb5 when given a directory
svn path=/trunk/; revision=10881
2004-05-13 22:09:52 +00:00
Jörg Mayer 633f3242ba Thomas Anders: Don't add library paths twice
svn path=/trunk/; revision=10872
2004-05-13 16:57:43 +00:00
Olivier Biot c05bcd7c28 More correct implementation of the --disable-usr-local option.
svn path=/trunk/; revision=10661
2004-04-22 20:02:58 +00:00
Jörg Mayer 9c83306a7e Some aclocal warning fixes during autogen.sh
svn path=/trunk/; revision=10507
2004-03-27 12:07:57 +00:00
Jörg Mayer 1e1de04ffc Workaround for (at least) some RedHat platforms:
Add -lresolv in case it's missing but required by the heimdal libs.

svn path=/trunk/; revision=10420
2004-03-20 10:32:02 +00:00
Jörg Mayer 9920ca9112 Experimental Heimdal Kerberos detection.
As this is experimental and does not yet work reliably this feature is
off by default. Enable it by using --with-krb5 during configure.
Please do not yet make use of this feature (i.e. please do not *use* the
defines provided by this option), until it has received further testing
and fixing.
Please run and check what the configure says.

svn path=/trunk/; revision=10395
2004-03-17 18:20:58 +00:00
Guy Harris 7300c4ef12 From Albert Chin: libpcap 0.8.1 loads the BPF driver on AIX, but to do
so it requires routines from -lcfg and -lodm - if attempting to link
with libpcap fails, try linking with libpcap and -lcfg and -lodm and, if
that succeeds, add all those libraries to the link list.

svn path=/trunk/; revision=10244
2004-02-26 09:39:43 +00:00
Guy Harris e3753d3d58 The GNU ADNS library requires whatever libraries are needed for socket
calls.

svn path=/trunk/; revision=9352
2003-12-19 01:36:01 +00:00
Guy Harris 7725f5e92d "pcap_compile_nopcap()" has a different signature in recent NetBSD
libpcap than in tcpdump.org libpcap; it's been deprecated for that
reason.  "pcap_open_dead()" has been in libpcap since 0.6, so only for
0.5[.x] will you have "pcap_compile_nopcap()" but not "pcap_open_dead()"
- for now, we use "pcap_open_dead()" rather than
"pcap_compile_nopcap()", and don't do the check for capture filters in
systems with libpcaps that lack "pcap_open_dead()".

svn path=/trunk/; revision=9341
2003-12-18 02:46:45 +00:00
Guy Harris 8b7cf57054 From Albert Chin: fix for the following:
The PCRE test in acinclude.m4 and epan/acinclude.m4 don't work
	if PCRE exists in a non-system directory.  The problem is that
	LDFLAGS and LIBS are set incorrectly.  LIBS shouldn't contain -L
	arguments.

svn path=/trunk/; revision=9309
2003-12-17 02:36:56 +00:00
Guy Harris 585ab5ab2d Fix some typoes in variable names.
svn path=/trunk/; revision=9302
2003-12-16 22:55:28 +00:00
Gilbert Ramirez 55a6251e7c From Olivier Biot
New "matches" operater in display filter language. Uses PCRE.

If a "matches" operator is found in a dfilter
while libpcre has not been used to build the binary, then an
exception is thrown after using dfilter_fail() to set an apporporiate
error message.

svn path=/trunk/; revision=9182
2003-12-06 16:35:20 +00:00
Guy Harris 219b6cefa2 Based on a patch from Brian Fundakowski Feldman, add support for setting
link-layer type when capturing, using the "pcap_set_datalink()" and
related APIs.

svn path=/trunk/; revision=8848
2003-11-01 02:30:18 +00:00
Guy Harris 00c3a29030 Do the tests for various extra "-L" and "-l" flags that might be needed
with "-lsnmp" in a loop; this fixes up the configure script's operation
on Solaris.

svn path=/trunk/; revision=8687
2003-10-14 07:36:39 +00:00
Guy Harris a3d8b3481f Not all versions of libpcap have "pcap_compile_nopcap()"; use it only if
we have it.

Not all versions of libpcap have DLT_LINUX_SLL, either; use DLT_EN10MB
instead.

svn path=/trunk/; revision=8670
2003-10-10 21:13:21 +00:00
Guy Harris 6670a92e85 From Brad Hards: fix two problems:
1. the --without-adns case wasn't handled correctly;

	2.  the reporting at the end of the configure didn't deal with
	the case were the configure check failed (as in my example,
	where I only had the libadns package installed, not
	libadns-devel) - it reported that ADNS would be used.

svn path=/trunk/; revision=8663
2003-10-10 10:12:18 +00:00
Guy Harris 8e51328bc2 Get the version number of the libpcap/WinPcap with which we're running
with "pcap_lib_version()", if available.

svn path=/trunk/; revision=8656
2003-10-10 06:05:48 +00:00
Guy Harris de7bbaf8da Use "pcap_findalldevs()" if present.
svn path=/trunk/; revision=8655
2003-10-10 03:04:38 +00:00
Richard Sharpe 3d6f1d76e7 Add support for building with ucd-snmp on RH9.0. We need to link with
-L/usr/kerberos/lib -ldes425 ...

This works on Linux (RH 9.0) but I am not sure about Solaris. Solaris is
such a difficult environment to work with compared to Linux or FreeBSD.

svn path=/trunk/; revision=8325
2003-08-31 22:08:57 +00:00
Guy Harris cd017c62ab Note that the "=DIR" argument to "--with-ssl" and "--with-adns" is
optional.

svn path=/trunk/; revision=8200
2003-08-21 07:13:54 +00:00
Gerald Combs 1d9b54fc07 Add support for asynchronous DNS updates using the GNU ADNS library.
Support can be enabled at configure time by using "--with-adns=DIR".
If support is enabled, async queries happen whenever host name resolution
is enabled.  Do we need a separate preference for async queries?

Currently, only IPv4 reverse queries are supported.  I can add IPv4 forward
lookup support, but I don't have any way to test IPv6 queries.

svn path=/trunk/; revision=7640
2003-05-04 18:50:56 +00:00
Guy Harris 02743108b7 Check for <ucd-snmp/ucd-snmp-config.h>, not <ucd-snmp/snmp.h> - we don't
include <ucd-snmp/snmp.h>, we incldue <ucd-snmp/ucd-snmp-config.h>, and,
at least with some UCD SNMP versions, you can't just include
<ucd-snmp/snmp.h> without including a header to typedef "oid", so you
get a warning from the configure script if it's built with autoconf 2.57
(it whines because the test program won't compile but the header exists).

svn path=/trunk/; revision=7220
2003-02-28 06:04:30 +00:00
Guy Harris 4632490ab1 From Pavel Roskin:
Get rid of acconfig.h, as it's an archaism; put descriptions
	into AC_DEFINE instead.  That squelches some warnings from
	later versions of autoconf.

	Fix an unquoted call to AC_MSG_ERROR.

	Move the stuff to define HAVE_SOME_SNMP into configure.in.

svn path=/trunk/; revision=7203
2003-02-26 20:08:33 +00:00
Guy Harris eb3357b648 Future releases of libpcap probably won't install <net/bpf.h>, so we
shouldn't require it to exist.  Instead, as we're already checking
whether we can find <pcap.h> (which is the only thing we actually
include - we rely on it to include whatever BPF headers are necessary),
we print the big "are you sure you installed the development package?"
message if we don't find "pcap.h".

svn path=/trunk/; revision=7120
2003-02-11 02:31:22 +00:00
Guy Harris 27e4186a2d Check "$prefix/include/pcap" before checking "$prefix/include" for
"pcap.h", in case $prefix is set to "/usr/include" or
"/usr/local/include" on a system with the Red Hat "feature" of burying
pcap.h in a "pcap" subdirectory.

svn path=/trunk/; revision=7007
2003-01-27 20:09:06 +00:00
Jörg Mayer 106bedb847 cjs 2895: Fix configure check to compile with IBM Visual Age C compiler
- remove nested functions
- use char *pcap_version instead of char pcap_version[]

Changed the fix for the nested functions to use the mechanisms provided
by autoconf.

svn path=/trunk/; revision=6963
2003-01-21 21:47:36 +00:00
Jörg Mayer 8adf7a08fd Check for pcap in before /usr/local and stop on first hit
svn path=/trunk/; revision=6962
2003-01-21 20:38:32 +00:00
Guy Harris a8149cce51 Mention binary developer's packages, as well as "make install-incl", in
the message printed if we can't find net/bpf.h, and line-wrap the
message.

svn path=/trunk/; revision=6819
2002-12-28 23:15:52 +00:00
Guy Harris 72d59f0596 The versions of UCD SNMP that we now support all install
<ucd-snmp/version.h>, so get rid of the stuff to check for its presence
and handle its absence.

svn path=/trunk/; revision=6503
2002-10-25 03:13:11 +00:00
Guy Harris 78b3b038e1 From Nix:
Don't add "-I/usr/include" to CFLAGS or CPPFLAGS; GCC 3.1 warns
	about it, and it's not necessary.

	Expand the plugin directory path used for installation at
	installation time, rather than configuration time, so the user
	can reset "prefix" at installation time.

svn path=/trunk/; revision=5828
2002-07-06 20:40:50 +00:00
Guy Harris 06adbfc556 Replace "--enable-zlib" with "--with-zlib", and have it take an optional
"=DIR" argument to specify the directory in subdirectories of which
zlib's headers and libraries can be found.

svn path=/trunk/; revision=5115
2002-04-08 01:34:39 +00:00
Guy Harris 6327b456db Get rid of the "--enable-snmp" option; instead, use "--with-ucdsnmp".
Make the directory option to "--with-ucdsnmp" optional.  Handle
"--with-ucdsnmp" similar to the way "--with-pcap" is handled.

Get rid of unnecessary #defines in "packet-cops.c".

Get rid of no-longer-necessary include of "dlfcn.h" in "packet-snmp.c".

svn path=/trunk/; revision=4930
2002-03-12 10:37:04 +00:00
Guy Harris 23d1a63f39 zlib 1.0.8 - the version that comes with X11 - does have "gzseek()",
even if it doesn't have "gzgets()", so one might think we could use it
by using our own replacement for "gzgets()".

One would be wrong to think so, however, as the "gzseek()" it has
doesn't actually work when reading uncompressed files.

zlib 1.0.9 has "gzgets()", and fixes that bug, so we rever to checking
for "gzgets()" rather than "gzseek()", so that we don't accept pre-1.0.9
versions of zlib, and we get rid of our "gzgets()" replacement.

svn path=/trunk/; revision=4702
2002-02-06 09:58:30 +00:00
Guy Harris d15f0203a6 From Heikki Vatiainen:
check for GNU "sed", and skip the "bad sed" checks if it's
	found;

	check for "/bin/sed" as well as "/usr/bin/sed" on Solaris;

	put the "sed" checks into a separate section of code with its
	own test for the host OS, to make it a bit cleaner to add any
	checks needed on other OSes.

svn path=/trunk/; revision=4681
2002-02-02 21:07:40 +00:00
Guy Harris 5ec8fb43a5 IPv6 name resolution support on Solaris 8, from Heikki Vatiainen.
svn path=/trunk/; revision=4627
2002-01-30 08:46:29 +00:00
Guy Harris 12c499603e XFree86 installed with its own zlib isn't the only reason why an old
zlib might be found when linking with the GTK+ link flags, so don't
imply that it is in error messages.

svn path=/trunk/; revision=4625
2002-01-30 07:52:52 +00:00
Gerald Combs b11f1955e4 Revamp the RPM building process. For versions of rpm that support
"--define", we now build the RPM and SRPM packages in packages/rpm.
As a result, one need not be root to build RPM-based packages.

Move the specfile to packaging/rpm/SPECS.

Update the INSTALL document to include the various packaging makefile
targets.

svn path=/trunk/; revision=4581
2002-01-20 23:05:25 +00:00
Guy Harris ea34f3728c Put back the check for gzseek() when building with the GTK+ build flags
(well, the check used to be a check for gzgets(), but we now have our
own version of that), so that, on a system with multiple versions of
zlib where the GTK+ -L flags get you an old version without gzgets(),
the configure fails, rather than the build failing.

svn path=/trunk/; revision=4566
2002-01-18 08:28:22 +00:00
Guy Harris 8a3a289875 From Albert Chin: simplify some autoconf code - AC_CHECK_FUNC can, by
itself, be made to run some code only if the function isn't found,
there's no need to check the result yourself.

svn path=/trunk/; revision=4468
2002-01-03 20:09:55 +00:00
Guy Harris 61568581bd We have our own internal versions of "gzgets()" and "gzgetc()", so we
don't need to check whether zlib has them.  We *do*, however, have to
check for "gzseek()", as we don't have our own version of that.

svn path=/trunk/; revision=3963
2001-09-28 05:41:45 +00:00
Ashok Narayanan 29c8fa03b3 Removed the dependency on gzgetc and gzgets by implementing internal
versions of these commands in file_wrappers.c. This allows us to
compile successfully even on platforms where X has an older zlib built
in.

Removed this restriction from acinclude.m4

svn path=/trunk/; revision=3948
2001-09-20 16:36:45 +00:00
Guy Harris 7e9fee9f39 Fix from Andy Hood, to remove a bogus extra line.
svn path=/trunk/; revision=3944
2001-09-17 23:35:22 +00:00
Guy Harris d750018d49 The zlib that comes with XFree86 isn't a "mini-zlib", it's an older
version; fix some comments and fix the error message printed if we
detect it.

svn path=/trunk/; revision=3859
2001-08-21 06:52:25 +00:00
Guy Harris 4533ae7c55 If there's no "zlib.h" header, we won't be using zlib, so don't bother
checking for "gzgets()" in zlib.

If there is a "zlib.h" header, and there is a "gzgets()" in zlib, check
whether we find "gzgets()" in zlib when we link with the GTK+ link
flags, and, if not, fail.  People often grab XFree86 source and build
and install it on their systems, and they appear sometimes to
misconfigure XFree86 so that, even on systems with zlib, it assumes
there is no zlib, so the XFree86 build process builds and installs its
own "mini-zlib" in the X11 library directory.  The "mini-zlib" lacks
"gzgets()", and that's the zlib with which Ethereal gets linked, so the
build of Ethereal fails.

svn path=/trunk/; revision=3849
2001-08-18 20:09:44 +00:00
Guy Harris 899b6013c8 Link with $SOCKET_LIBS and $NSL_LIBS, as well as with $PCAP_LIBS, when
testing whether libpcap defines "pcap_version" or not; libpcap may
require those other libraries.

svn path=/trunk/; revision=3796
2001-07-27 19:14:59 +00:00
Guy Harris 5bb08b0970 Fix AC_ETHEREAL_PCAP_CHECK so that, if a directory was specified with
"--with-pcap", it adds the "include" subdirectory of that directory to
the list of directories to search for include files, rather than adding
the directory itself.

Check whether libpcap defines "pcap_version", and define
HAVE_PCAP_VERSION if it does.  Use "pcap_version" iff HAVE_PCAP_VERSION
is defined, rather than special-casing MacOS X.

Don't #define a string for the WinPcap version; just leave
HAVE_PCAP_VERSION undefined on Windows, as WinPcap 2.2beta is out, so we
can no longer assume that the Windows version of Ethereal is using
WinPcap 2.1.

svn path=/trunk/; revision=3792
2001-07-27 07:10:13 +00:00