aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
Commit message (Collapse)AuthorAgeFilesLines
* If we have "pcap_freecode()", use it to free the instructions for a BPFGuy Harris2005-03-231-1/+1
| | | | | | | | | | | 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
* Don't try to run net-snmp-config if we don't find it.Guy Harris2005-03-201-40/+68
| | | | | | | | | | 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
* Fix the display of help information for various --with arguments (forGuy Harris2005-03-171-22/+11
| | | | | | | | | | | | | | | | | | | | | 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
* Capitalize "Net-SNMP" the way the Net-SNMP project capitalizes it.Guy Harris2005-03-161-1/+70
| | | | | | | | | | | 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
* we dont need to link with gssapi.a any moreRonnie Sahlberg2005-03-081-5/+1
| | | | svn path=/trunk/; revision=13666
* when HEIMDAL is linked with :Ronnie Sahlberg2005-03-081-1/+5
| | | | | | | | | | | 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
* Dectect MIT-Kerberos as wellJörg Mayer2004-10-151-18/+34
| | | | svn path=/trunk/; revision=12302
* From Albert Chin: in a test program, include <glibconfig.h> rather thanGuy Harris2004-10-121-1/+1
| | | | | | | | | | <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
* At least on Suse, the linking flags are obtained via krb5-config --libs,Jörg Mayer2004-09-301-1/+2
| | | | | | not --cflags. svn path=/trunk/; revision=12147
* Use the right name in the Checking... messages.Guy Harris2004-09-291-2/+2
| | | | svn path=/trunk/; revision=12137
* Put back the $KRB4_CONFIG call to set KRB5_LIBS.Guy Harris2004-09-291-1/+2
| | | | svn path=/trunk/; revision=12136
* When testing whether the Heimdal library has krb5_kt_resolve (andGuy Harris2004-09-291-1/+1
| | | | | | | | 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
* If, when checking whether the Kerberos library is Heimdal or not, weGuy Harris2004-09-281-1/+1
| | | | | | | | 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
* If the user specified --with-krb5 but we don't have a usable KerberosGuy Harris2004-09-281-10/+38
| | | | | | | | | | | | | | | 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
* Explicitly indicate when we're doing tests to see if UCD SNMP containsGuy Harris2004-09-261-0/+8
| | | | | | | 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
* In the SNMP tests, we're using AC_TRY_LINK to avoid caching the resultsGuy Harris2004-09-261-46/+77
| | | | | | | | | | | | | | | 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
* Clean up a bunch of cruft in --with-ssl; make it more resemble otherGuy Harris2004-09-261-73/+37
| | | | | | | | | | | | | | --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
* Explicitly test whether we need -lresolv in order to link with -lkrb5. Guy Harris2004-09-261-53/+57
| | | | | | | | 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
* For annoying licensing reasons, we don't want to use -lcrypto unless theGuy Harris2004-09-251-7/+22
| | | | | | | | | | 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
* Don't just add "-lresolv" to KRB5_LIBS if it's missing - on someGuy Harris2004-09-251-10/+20
| | | | | | | | | | | | | | | | | 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
* From Marten Svantesson: according to Tomas Anders, all versions of HeimdalGuy Harris2004-09-061-2/+2
| | | | | | | | | | | 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
* Fix a typo.Guy Harris2004-08-161-1/+1
| | | | svn path=/trunk/; revision=11747
* For "pcap_findalldevs()", don't assume that just because it's in -lpcapGuy Harris2004-08-161-3/+51
| | | | | | | | | | | | | | | | | | | | | 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
* Use the GLib gint64 and guint64 types instead of u_int64_t or uint64_t,Guy Harris2004-07-251-1/+2
| | | | | | | | 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
* Remove set -/+x - they were added for debugging and not intended for commitJörg Mayer2004-07-231-2/+0
| | | | svn path=/trunk/; revision=11493
* Fix the fix to krb5Jörg Mayer2004-07-211-1/+4
| | | | svn path=/trunk/; revision=11465
* Forgotten case: Make krb5 fail if it requires -lcrypto but no --with-ssl=... ↵Jörg Mayer2004-07-211-1/+1
| | | | | | is not given svn path=/trunk/; revision=11458
* As Joerg Mayer noted, the value of LIBS should be saved outside theGuy Harris2004-07-201-1/+1
| | | | | | loop. svn path=/trunk/; revision=11444
* When checking whether we can get "sprint_realloc_objid()" from the SNMPGuy Harris2004-07-191-1/+3
| | | | | | | | | | 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
* - Require --with-ssl=... to be explicitly set to workJörg Mayer2004-07-181-24/+49
| | | | | | | | around licensing problems - Cause krb5 and snmp to fail, if ssl is required but not configured. svn path=/trunk/; revision=11416
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-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
* If we can't find the krb5 header or the krb5 code isn't Heimdal, clearGuy Harris2004-06-291-2/+3
| | | | | | out KRB5_LIBS, so we don't try to link with the library. svn path=/trunk/; revision=11267
* Get rid of a warning with newer auto... tools by proper quoting.Jörg Mayer2004-06-251-2/+2
| | | | svn path=/trunk/; revision=11237
* Pick up the stuff I did for tcpdump to figure out the right strings toGuy Harris2004-06-191-1/+43
| | | | | | | | | | | | | | 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
* Thomas Anders: Pathnames might contain Spaces, krb5-config might not be in PATHJörg Mayer2004-05-181-5/+5
| | | | svn path=/trunk/; revision=10918
* Thomas Anders: Add the actual libs to link in case --with-krb5=/explicit/pathJörg Mayer2004-05-141-1/+2
| | | | svn path=/trunk/; revision=10891
* Fix --with-krb5 when given a directoryJörg Mayer2004-05-131-3/+2
| | | | svn path=/trunk/; revision=10881
* Thomas Anders: Don't add library paths twiceJörg Mayer2004-05-131-7/+9
| | | | svn path=/trunk/; revision=10872
* More correct implementation of the --disable-usr-local option.Olivier Biot2004-04-221-2/+6
| | | | svn path=/trunk/; revision=10661
* Some aclocal warning fixes during autogen.shJörg Mayer2004-03-271-14/+14
| | | | svn path=/trunk/; revision=10507
* Workaround for (at least) some RedHat platforms:Jörg Mayer2004-03-201-1/+11
| | | | | | Add -lresolv in case it's missing but required by the heimdal libs. svn path=/trunk/; revision=10420
* Experimental Heimdal Kerberos detection.Jörg Mayer2004-03-171-1/+118
| | | | | | | | | | | 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
* From Albert Chin: libpcap 0.8.1 loads the BPF driver on AIX, but to doGuy Harris2004-02-261-3/+23
| | | | | | | | 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
* The GNU ADNS library requires whatever libraries are needed for socketGuy Harris2003-12-191-2/+2
| | | | | | calls. svn path=/trunk/; revision=9352
* "pcap_compile_nopcap()" has a different signature in recent NetBSDGuy Harris2003-12-181-2/+2
| | | | | | | | | | | 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
* From Albert Chin: fix for the following:Guy Harris2003-12-171-7/+11
| | | | | | | | | 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
* Fix some typoes in variable names.Guy Harris2003-12-161-5/+5
| | | | svn path=/trunk/; revision=9302
* From Olivier BiotGilbert Ramirez2003-12-061-1/+103
| | | | | | | | | | | 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
* Based on a patch from Brian Fundakowski Feldman, add support for settingGuy Harris2003-11-011-1/+3
| | | | | | | link-layer type when capturing, using the "pcap_set_datalink()" and related APIs. svn path=/trunk/; revision=8848
* Do the tests for various extra "-L" and "-l" flags that might be neededGuy Harris2003-10-141-35/+30
| | | | | | | with "-lsnmp" in a loop; this fixes up the configure script's operation on Solaris. svn path=/trunk/; revision=8687