aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/configure.in
AgeCommit message (Collapse)AuthorFilesLines
2004-01-24Fix all fixable warningsJörg Mayer1-3/+3
Move addional warnings from extra-gcc-checks to normal compilation flags svn path=/trunk/; revision=9826
2004-01-10Add -Wbad-function-cast to extra gcc flags.Olivier Biot1-2/+2
svn path=/trunk/; revision=9639
2003-12-24Add -pedantic to --with-extra-gcc-checksJörg Mayer1-2/+2
svn path=/trunk/; revision=9443
2003-11-18From Olivier Biot: add a "--enable-profile-build" flag to request thatGuy Harris1-1/+17
"-pg" binaries be built. svn path=/trunk/; revision=9001
2003-08-21Align the --with-pcap help message with other help messages.Guy Harris1-2/+2
svn path=/trunk/; revision=8203
2003-07-23Back out the changes made earlier.Gerald Combs1-2/+2
svn path=/trunk/; revision=8075
2003-07-23Make "--enable-usr-local" disabled by default, as suggested by Joerg Mayer.Gerald Combs1-2/+2
svn path=/trunk/; revision=8073
2003-01-30AC_ARG_ENABLE takes 4 argument: The 3rd specifies what to do in case aJörg Mayer1-2/+2
configure option is given on the command line. The value of the arguement is passwd in the enableval variable. The 4th argument tells what to do in case no command line argument was given. This causes --disable-gtk2 (which is the default) to behave differently from the case when no option is given. I do not really understand where the difference in the behaviour of the generated codes comes from, but I definitely see a difference. Fixed all occurrences where the 3rd arguement was empty. svn path=/trunk/; revision=7044
2002-11-28Add a "--with-extra-gcc-checks" option, which causes "-Wcast-qualGuy Harris1-3/+13
-Wcast-align" to be added to CFLAGS (except in Wiretap, where we already do "-Wcast-qual"). We don't do them by default, as they produce some warnings that aren't easy to eliminate; if we figure out how to eliminate them on all platforms (or at least, on the platforms where you *can't* eliminate them, reduce them to a low level), we can make those options the default. svn path=/trunk/; revision=6689
2002-11-27Add "-Wcast-qual" to the list of "-W" flags, so we catch code that couldGuy Harris1-3/+3
attempt to store through a const pointer. svn path=/trunk/; revision=6680
2002-10-09Support for both old and brand new libtool versionsJörg Mayer1-1/+2
svn path=/trunk/; revision=6389
2002-10-06Change by Didier Gautheron to make automake 1.7 work.Jörg Mayer1-3/+3
svn path=/trunk/; revision=6372
2002-08-28Add gtk2/glib2 handling to configure. Use --enable-gtk2 to useJörg Mayer1-3/+9
gtk2 instead of gtk and glib2 instead of glib. Right now, --enable-gtk2 will fail during compile unless acompanied by --disable-ethereal, as ethereal does not yet support gtk2 (but does support glib2 alone). svn path=/trunk/; revision=6107
2002-08-14Replace usage of AC_PROG_RANLIB which is deprecated for newer versionsJörg Mayer1-2/+2
of autoconf by AM_PROG_LIBTOOL svn path=/trunk/; revision=5992
2002-04-08Replace "--enable-zlib" with "--with-zlib", and have it take an optionalGuy Harris1-8/+26
"=DIR" argument to specify the directory in subdirectories of which zlib's headers and libraries can be found. svn path=/trunk/; revision=5115
2002-03-02From Joerg Mayer: get rid of "-Wno-unused" flag in some configureGuy Harris1-6/+6
scripts, and check in changes to add _U_ to some unused arguments (some other should perhaps be used, so we leave the _U_ out so that the warnings serve as a reminder to check those). svn path=/trunk/; revision=4847
2002-02-27From Joerg Mayer:Guy Harris1-4/+12
In the "configure.in" files, add -D_U_="__attribute__((unused))" to CFLAGS if we're using GCC, and add -D_U_="" otherwise, so _U_ can be used to mark arguments as unused. Add -D_U_="" arguments to the Makefile.nmake files as well, so _U_ works with Microsoft Visual C++ as well. Add comments and RCS IDs to the Makefile.nmake files that don't already have them. svn path=/trunk/; revision=4824
2002-02-06zlib 1.0.8 - the version that comes with X11 - does have "gzseek()",Guy Harris1-2/+2
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-01-30Remove the "--without-gcc" option - it doesn't work with the Sun,Guy Harris1-6/+1
Digital UNIX, and HP C compilers, and it may not work with other compilers (due to the GLib problem mentioned in the previous checkin), so it runs the risk of being an "attractive nuisance", i.e. users may try it, find it doesn't work, and then send mail to various Ethereal mailing lists asking about it. svn path=/trunk/; revision=4640
2002-01-30Add a "--without-gcc" option, similar to what tcpdump and libpcap have.Guy Harris1-1/+6
(This isn't as useful for testing purposes as it is in tcpdump and libpcap, as GLib is configured based on the compiler used to compile it, so you can't necessarily build an application using GLib with a compiler different from the one used to compile GLib, but we'll add it anyway.) svn path=/trunk/; revision=4637
2002-01-09Provide a --disable-usr-local flag to configure so thatGilbert Ramirez1-26/+36
-I/usr/local/include and -L/usr/local/lib aren't automatically added to the build flags. svn path=/trunk/; revision=4507
2001-12-07Use "-no-cpp-precomp" rather than "-traditional-cpp" on MacOS X, as perGuy Harris1-4/+18
the "The Compiler and Tools" section on http://fink.sourceforge.net/doc/porting/basics.php Do so on MacOS X regardless of whether the compiler is called "gcc" or not, as that page also indicates that the compiler is installed as "cc". svn path=/trunk/; revision=4354
2001-09-28We have our own internal versions of "gzgets()" and "gzgetc()", so weGuy Harris1-2/+2
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-07-26MacOS support changes, from Michael Tuexen (with some modifications):Guy Harris1-3/+11
replace "--with-plugindir" with "--with-plugins", and have the plugin directory optional - this allows plugins to be disabled; add "--traditional-cpp" on MacOS X/Darwin (Apple's "cc" compiler requires it, for some annoying reason, even though it is, as far as I know, GCC-based, and other GCC's don't require it); on MacOS X, don't use "pcap_version[]", as, for some annoying reason, libpcap on MacOS X doesn't define it. Clean up some whitespace in the help messages for the configure script. Move the AM_CONDITIONAL for SETUID_INSTALL after the point at which "enable_setuid_install" is set, as it tests "enable_setuid_install". svn path=/trunk/; revision=3788
2001-07-13From Joerg Mayer:Guy Harris1-2/+2
* gcc 3.0 warning fixes: - text2pcap.c: The number of characters to scan should probably not be 0 - wiretap/csids.c: using preincrement on a variable used on both sides of an assignment might be undefined by the C99(?) standard * turn on additional warnings for epan and wiretap too - epan/configure.in - wiretap/configure.in * Fix some warnings (missing includes, signed/unsigned, missing initializers) found by turning on the warnings - all other files :-) svn path=/trunk/; revision=3709
2001-06-27Replace "--enable-pcap" with "--with-pcap", and if an argument isGuy Harris1-1/+18
specified to "--with-pcap", add that directory to the include file and library search paths, so that you can use "--with-pcap=DIR" to search for libpcap in a directory other than the standard ones (either because it was installed somewhere other than under "/usr" or "/usr/local", or because you want to use a special version you've installed rather than the standard one). svn path=/trunk/; revision=3611
2001-04-17As of GLib 1.2.9, you won't automatically get "-I/usr/local/include" andGuy Harris1-2/+29
"-L/usr/local/lib" added to CFLAGS and LDFLAGS merely as a result of running AM_PATH_GLIB, as 1.2.9 and later don't install headers directly under "/usr/local/include". Therefore, we have to put "-I/usr/local/include" into CFLAGS ourselves, just as we do in the top-level configure script, or we run the risk of not being able to find other packages (libpcap, zlib, etc.) if it's installed under "/usr/local". svn path=/trunk/; revision=3318
2000-10-17Do checks for platform-specific compiler flags in the libethereal andGuy Harris1-1/+28
wiretap configure scripts as well as in the main configure script. svn path=/trunk/; revision=2501
2000-10-17Wiretap no longer works with "GLib 1.0[.x]" (the version that cameGuy Harris1-7/+1
bundled with GTK+ 1.0[.x]), it works only with 1.2[.x] and later, so we no longer need to check for 1.0[.x] and define HAVE_GLIB10. svn path=/trunk/; revision=2500
2000-08-25Redo the way we map between libpcap encapsulation type codes and WiretapGuy Harris1-1/+7
encapsulation type codes - for those libpcap type codes whose numerical value is interpreted differently by different versions of libpcap, include <pcap.h> if you can and, if you can, use what it defines to control which Wiretap code we map those type codes to. Also, map the new libpcap type codes introduced by libpcap 0.5. svn path=/trunk/; revision=2369
2000-08-11Miscellaneous code cleaningLaurent Deniel1-2/+2
- add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
2000-02-12Get rid of the check for NetBSD in the Wiretap "configure.in"; weGuy Harris1-6/+5
eliminated the check in the top-level "configure.in", and leaving it in the Wiretap one means that, on NetBSD, Ethereal gets built with zlib support if zlib is present, but Wiretap doesn't - now they both get built with zlib support. Thanks to Itojun for catching this one. Put into the Wiretap "configure.in" code to note that, if the test for "gzgets()" in zlib fails, we're disabling compressed capture file support, as is done in the top-level "configure.in". svn path=/trunk/; revision=1625
2000-01-13We are obliged to define HAVE_UNISTD_H in "config.h"; to avoid theGuy Harris1-42/+1
hideous problem on FreeBSD 3.[23] (and perhaps other BSDs) if HAVE_UNISTD_H is defined before "zlib.h" is included, turn "file_seek()" into a subroutine defined in a file that *undefines* HAVE_UNISTD_H before including "zlib.h", so that the *only* call to "gzseek()" is made from a file that does not have HAVE_UNISTD_H defined when it includes "zlib.h". Move "file_error()" to that file while you're at it, so it holds all the wrappers that hide the presence or absence of zlib from routines to read capture files. Turn "file.h", which declared those wrapper functions as well as wrapper macros, into "file_wrapper.h" - it belongs with the "file_wrapper.c" file that defines the wrapper functions, not with "file.c" which handles higher-layer file access functions. Remove the comment in "configure.in" that explained why defining HAVE_UNISTD_H was a bad idea, as we're not obliged to define it and work around the problem. (The comment in "file_wrapper.c" explains the workaround.) svn path=/trunk/; revision=1463
2000-01-10Some initial changes for win32 support, but not all.Gilbert Ramirez1-2/+2
Added lots of #ifdef HAVE_*_H wrappers. Added some #defines in config.h.win32 Check for more headers in configure.in Added prototype for inet_aton() in inet_v6defs.h. Changed "BYTE" token (i.e., #define) in ascend-gramamr.y because it conflicts with a windows definition. Use HEXBYTE instead. svn path=/trunk/; revision=1448
1999-12-04Add support to Wiretap for writing Network Monitor 1.x-format captureGuy Harris1-1/+4
files. Make the return type of a number of routines that return 1 (for "true") on success and 0 (for "false") on failure to "gboolean", and make the 1's and 0's TRUEs and FALSEs. svn path=/trunk/; revision=1194
1999-12-03It appears that our "Makefile.in" won't work with the scripts generatedGuy Harris1-2/+14
by pre-2.13 "autoconf", and there may be other problems with pre-2.12 "autoconf" as well; require "autoconf" 2.13 or later. svn path=/trunk/; revision=1187
1999-10-14implement ipprotostr() in ipproto.c, which basically does ipprotobynumber()Jun-ichiro itojun Hagino1-2/+8
for ip.ip_p and ip6.ip6_nxt (and other IPv6 header chain). use val_to_str() as much as possible in dissect_{ipv6,pim,ripng}(). make --disable-zlib a default for netbsd (temporary workaround). svn path=/trunk/; revision=827
1999-09-24DO NOT check for "unistd.h"; due to an unfortunate botch in the wayGuy Harris1-2/+43
"zlib" was built in FreeBSD 3.2 (and possibly other 4.4-Lite-derived BSDs), if HAVE_UNISTD_H is defined before "zlib.h" is included, the declaration of "gzseek()" in "zlib.h" expands to something that doesn't match what's in the OS's "zlib". svn path=/trunk/; revision=721
1999-09-22This commit contains support for reading capture files compressed usingAshok Narayanan1-1/+13
gzip. The zLib library is used for this purpose. If zLib is not available (or it's use is disabled by the --disable-zlib option to configure), you can still compile Ethereal but it will be unable to read compressed capture files. IMPORTANT: Now all file accesses to capture files should be done through special macros. Specifically, for any use of the following functions on capture files, replace them. The arguments for the right-side functions are exactly the same as for the original stdio functions. fopen file_open fdopen filed_open fread file_read fwrite file_write fseek file_seek fclose file_close ferror file_error svn path=/trunk/; revision=695
1999-09-11Added support for Lucent/Ascend packet traces. The MAX and Pipeline routerGerald Combs1-1/+6
family has a set of debug commands that allow you to log the traffic on a WAN or dialup connection as text, e.g. RECV-iguana:241:(task: B04E12C0, time: 1975358.50) 15 octets @ 8003D634 [0000]: FF 03 00 3D C0 06 C9 96 2D 04 C1 72 00 05 B8 Created wtap_seek_read() which parses the textual data for and Ascend trace, and does a normal fseek() and fread() for any other file type. The fseek()/fread() pairs in file.c were replaced with the new function. svn path=/trunk/; revision=652
1999-07-13Added support for compiling on win32 with Visual C and 'nmake'. It compiles,Gilbert Ramirez1-2/+3
but does not link. Perhaps someone who understands the MS tools can help out. I made it link a few months ago, but with different version of glib/gtk+. I can't remember how I made it link. Most of the compatibility issues were resolved with adding #ifdef HAVE_UNISTD_H the the source code. Please be sure to add this to all future code. svn path=/trunk/; revision=359
1999-07-08Added Johan's RADIUS dissector, finally. I modified it to fit in with theGilbert Ramirez1-3/+1
new proto_tree routines. I also removed the check for lex and yacc from wiretap's configure script. The IP dissector now uses proto_register_field_array(). svn path=/trunk/; revision=348
1999-07-07Created a new protocol tree implementation and a new display filterGilbert Ramirez1-20/+1
mechanism that is built into ethereal. Wiretap is now used to read all file formats. Libpcap is used only for capturing. svn path=/trunk/; revision=342
1999-03-28Jun-ichiro's IPv6 patch is merged in with ethereal and now uses the newGilbert Ramirez1-1/+3
proto*() functions. The configure script tries to use ipv6 name resolution if it knows the type of ipv6 stack the user has (this can be avoided with the --disable-ipv6 switch) Additionally, the configure script now deals with wiretap better. If the user doesn't want to compile wiretap, the wiretap is never visited. A few unnecessary #includes were removed from some wiretap files, and a CPP macro was moved from bpf.c to wtap.h. svn path=/trunk/; revision=229
1999-03-03It's not a problem if we don't have GLib 1.1.x or later, so don'tGuy Harris1-3/+2
complain about it. svn path=/trunk/; revision=209
1999-03-01Added display filters to wiretap.Gilbert Ramirez1-4/+10
svn path=/trunk/; revision=198
1999-01-13* Modified Makefile.am and configure.in so that wiretap isn't built unlessGerald Combs1-1/+20
--with-wiretap is specified. svn path=/trunk/; revision=169
1998-11-21Pick up from Ethereal's "configure.in" the test to check whether we'reGuy Harris1-1/+10
running GCC and, if so, to add the "-Wall" flag. svn path=/trunk/; revision=116
1998-11-15Add support to wiretap for reading Sun "snoop" capture files.Guy Harris1-4/+1
That requires that, in the packet-reading loop, we pass to the callback routine the offset in the file of a packet's data, because we can no longer compute that offset by subtracting the size of the captured packet data from the offset in the file after the data was read - "snoop" may stick padding in after the packet data to align packet headers on 4-byte boundaries. Doing that required that we arrange that we do that for "libpcap" capture files as well; the cleanest way to do that was to write our own code for reading "libpcap" capture files, rather than using the "libpcap" code to do it. Make "wtap_dispatch_cb()" and "pcap_dispatch_cb()" static to "file.c", as they're not used elsewhere. If we're using wiretap, don't define in "file.h" stuff used only when we're not using wiretap. Update the wiretap README to reflect Gilbert's and my recent changes. Clean up some memory leaks in "wiretap/lanalyzer.c" and "wiretap/ngsniffer.c", where the capture-file-format-specific data wasn't freed if the open failed. svn path=/trunk/; revision=91
1998-11-13More patches from Guy to make wiretap compile better. I definitelyGilbert Ramirez1-1/+5
need to learn more about autoconf/automake. :) svn path=/trunk/; revision=87