aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/configure.in
AgeCommit message (Collapse)AuthorFilesLines
2007-01-12Automake variables ending with _LDFLAGS are special:Guy Harris1-2/+2
http://sources.redhat.com/ml/automake/2001-08/msg00046.html so call it LDFLAGS_SHAREDLIB rather than SHAREDLIB_LDFLAGS. svn path=/trunk/; revision=20410
2007-01-05When Mr. Genius added the SHAREDLIB_LDFLAGS stuff, he forgot thatGuy Harris1-8/+40
Wiretap has its own configuration file. Do to its configuration file what was done to the top-level configuration file. svn path=/trunk/; revision=20326
2006-06-20Change ETH_VAR_IMPORT to WS_VAR_IMPORT. Try to fix a duplicate variableGerald Combs1-0/+6
definition in the Catapult DCT2000 code. svn path=/trunk/; revision=18524
2006-06-06Ethereal -> WiresharkGerald Combs1-5/+5
svn path=/trunk/; revision=18369
2006-05-15GLib 1.2[.x] doesn't have g_sprintf(), it just has g_snprintf(); useGuy Harris1-1/+3
that. It also doesn't hae <glib/gprintf.h>, so use that only for GLib 2.0 and later. svn path=/trunk/; revision=18169
2006-05-15Fix some compiler warnings.Guy Harris1-0/+36
That requires that we define G_GINT64_MODIFIER ourselves if glib.h doesn't define it for us, as that's what should be used to print 64-bit integral values in any calls that use any of the GLib printf functions (directly or indirectly). svn path=/trunk/; revision=18154
2005-08-20Add -Wmissing-declarations -Wwrite-strings to extra-gcc-flagsJörg Mayer1-1/+1
svn path=/trunk/; revision=15453
2004-12-21Small WhitespacechangeJörg Mayer1-1/+1
svn path=/trunk/; revision=12798
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
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-06-01It really helps when you change the default from gtk1 -> gtk2 in the topJörg Mayer1-2/+2
level configure.in to mirror that change in wiretap. Otherwise people who have both versions of glib/gtk installed may see crashes. svn path=/trunk/; revision=11049
2004-04-14At last compiling on CygWin works again! Added the missing PCRE and GLIBOlivier Biot1-1/+9
libraries to libftypes. Provide caching of computed configure tests. svn path=/trunk/; revision=10600
2004-03-04Get rid of an out-of-date comment.Guy Harris1-12/+3
We only appear to need autoconf 2.52, not 2.53. svn path=/trunk/; revision=10293
2004-03-03Require autoconf 2.53 and automake 1.6Jörg Mayer1-2/+2
svn path=/trunk/; revision=10287
2004-02-08Move -pedantic back to extra-gcc-flags, as glib generates more warnings than ↵Jörg Mayer1-3/+3
our code svn path=/trunk/; revision=10008
2004-02-07Don't build as shared *and* static by defaultJörg Mayer1-1/+3
svn path=/trunk/; revision=10004
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