7 dnl Check for CPU / vendor / OS
8 dnl The user is encouraged to use either `AC_CANONICAL_BUILD', or
9 dnl `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
10 dnl needs. Using `AC_CANONICAL_TARGET' is enough to run the two other
14 dnl AC_CANONICAL_BUILD
17 AM_INIT_AUTOMAKE(wireshark, 0.99.7)
21 dnl Checks for programs.
24 dnl Work around libtool bug (fixed in the version 1.5a?)
25 AC_DEFUN([AC_PROVIDE_AC_LIBTOOL_DLOPEN], )
30 AC_PATH_PROG(PERL, perl)
31 AC_PATH_PROG(POD2MAN, pod2man)
32 if test "x$POD2MAN" = x
35 # The alternative is not to build the man pages....
37 AC_MSG_ERROR(I couldn't find pod2man; make sure it's installed and in your path)
39 AC_PATH_PROG(POD2HTML, pod2html)
40 if test "x$POD2HTML" = x
43 # The alternative is not to build the HTML man pages....
45 AC_MSG_ERROR(I couldn't find pod2html; make sure it's installed and in your path)
47 AC_PATH_PROG(HTML_VIEWER, htmlview)
48 if test "x$HTML_VIEWER" = x
50 AC_DEFINE_UNQUOTED(HTML_VIEWER, "mozilla", [HTML viewer, e.g. mozilla])
52 AC_DEFINE_UNQUOTED(HTML_VIEWER, "htmlview", [HTML viewer, e.g. mozilla])
55 AC_PATH_PROG(LEX, flex)
56 AC_PATH_PROG(PYTHON, python)
67 if test "x$CC_FOR_BUILD" = x
71 AC_SUBST(CC_FOR_BUILD)
74 AC_PATH_PROG(DOXYGEN, doxygen)
75 AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, "yes", "no")
76 AM_CONDITIONAL(HAVE_DOXYGEN, test x$HAVE_DOXYGEN = xyes)
81 AC_HELP_STRING( [--with-gnutls=@<:@yes/no@:>@],
82 [use gnutls library @<:@default=yes@:>@]),
83 with_gnutls="$withval", with_gnutls="yes")
84 if test "x$with_gnutls" = "xyes"; then
85 AM_PATH_LIBGNUTLS(1.0.0,
87 echo "gnuTLS found, enabling ssl decryption"
88 AC_DEFINE(HAVE_LIBGNUTLS, 1, [Define to use gnutls library])
92 if test x$libgnutls_config_prefix != x ; then
93 AC_MSG_ERROR([[gnuTLS not found; install gnuTLS-devel package for your system]])
95 echo echo "gnuTLS not found, disabling ssl decryption"
104 AC_ARG_WITH([gcrypt],
105 AC_HELP_STRING( [--with-gcrypt=@<:@yes/no@:>@],
106 [use gcrypt library @<:@default=yes@:>@]),
107 with_gcrypt="$withval", with_gcrypt="yes")
108 if test "x$with_gcrypt" = "xyes"; then
109 AM_PATH_LIBGCRYPT(1.1.42,
111 echo "libgcrypt found, enabling ipsec decryption"
112 AC_DEFINE(HAVE_LIBGCRYPT, 1, [Define to use libgcrypt])
116 if test x$libgcrypt_config_prefix != x ; then
117 AC_MSG_ERROR([[libgcrypt not found; install libgcrypt-devel package for your system]])
119 echo echo "libgcrypt not found, disabling ipsec decryption"
127 AC_PATH_PROG(XSLTPROC, xsltproc)
128 AC_CHECK_PROG(HAVE_XSLTPROC, xsltproc, "yes", "no")
129 AM_CONDITIONAL(HAVE_XSLTPROC, test x$HAVE_XSLTPROC = xyes)
132 AC_PATH_PROG(XMLLINT, xmllint)
133 AC_CHECK_PROG(HAVE_XMLLINT, xmllint, "yes", "no")
134 AM_CONDITIONAL(HAVE_XMLLINT, test x$HAVE_XMLLINT = xyes)
136 # Check for fop (translate .fo to e.g. pdf)
137 AC_PATH_PROG(FOP, fop)
138 AC_CHECK_PROG(HAVE_FOP, fop, "yes", "no")
139 AM_CONDITIONAL(HAVE_FOP, test x$HAVE_FOP = xyes)
141 # Check for hhc (html help compiler)
142 AC_PATH_PROG(HHC, hhc.exe)
143 AC_CHECK_PROG(HAVE_HHC, hhc.exe, "yes", "no")
144 AM_CONDITIONAL(HAVE_HHC, test x$HAVE_HHC = xyes)
146 # Check for packaging utilities
147 # For now, we check to see if the various packaging utilites are in our
148 # path. I'm too lazy to write code to go hunt for them. - Gerald
149 AC_CHECK_PROG(HAVE_PKGPROTO, pkgproto, "yes", "no")
150 AC_CHECK_PROG(HAVE_PKGMK, pkgmk, "yes", "no")
151 AC_CHECK_PROG(HAVE_PKGTRANS, pkgtrans, "yes", "no")
153 if test x$HAVE_PKGPROTO = xyes -a x$HAVE_PKGMK = xyes \
154 -a x$HAVE_PKGTRANS = xyes ; then
155 HAVE_SVR4_PACKAGING=yes
157 HAVE_SVR4_PACKAGING=no
159 AC_SUBST(HAVE_SVR4_PACKAGING)
161 AC_WIRESHARK_RPM_CHECK
165 # Try to add some additional gcc checks to CFLAGS
167 AC_ARG_ENABLE(extra-gcc-checks,
168 AC_HELP_STRING( [--enable-extra-gcc-checks],
169 [Do additional -W checks in GCC. @<:@default=no@:>@]),
171 wireshark_extra_gcc_flags=$enableval
172 if test $enableval != no
174 AC_WIRESHARK_GCC_CFLAGS_CHECK(-pedantic)
175 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-long-long)
176 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wbad-function-cast)
177 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-qual)
178 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wwrite-strings)
179 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wshorten-64-to-32)
180 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wstrict-prototypes)
181 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wmissing-declarations)
182 #Temporarily put cast-align here waiting eradication of 'cast
183 #increases required alignment of target type' on the Solaris
185 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-align)
188 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wall -W)
189 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wdeclaration-after-statement)
190 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wendif-labels)
191 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wpointer-arith)
192 AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-pointer-sign)
195 # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
196 # so we can use _U_ to flag unused function arguments and not get warnings
197 # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
198 # function argument will compile with non-GCC compilers.
200 if test "x$GCC" = "xyes" ; then
201 CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
203 CFLAGS="-D_U_=\"\" $CFLAGS"
207 # If we're running gcc, will enable a barrier "stop on warning".
208 # This barrier is set for a very large part of the code. However, it is
209 # typically not set for "generated" code (lex, ans2wrs, idl2wrs, ...)
211 AC_MSG_CHECKING(whether we should treat compiler warnings as errors)
212 AC_ARG_ENABLE(warnings-as-errors,
213 AC_HELP_STRING( [--enable-warnings-as-errors],
214 [Treat warnings as errors (only for gcc). @<:@default=yes@:>@]),
216 if test "x$GCC" = "xyes" -a "x$enableval" == "xyes" -a "x$wireshark_extra_gcc_flags" != "xyes"; then
217 with_warnings_as_errors="yes"
220 with_warnings_as_errors="no"
224 if test "x$GCC" = "xyes" -a "x$wireshark_extra_gcc_flags" = "x"; then
225 with_warnings_as_errors="yes"
228 with_warnings_as_errors="no"
232 AM_CONDITIONAL(HAVE_WARNINGS_AS_ERRORS, test "x$with_warnings_as_errors" = "xyes")
235 # Add any platform-specific compiler flags needed.
237 AC_MSG_CHECKING(for platform-specific compiler flags)
238 if test "x$GCC" = "xyes" ; then
240 # GCC - do any platform-specific tweaking necessary.
244 # the X11 headers don't automatically include prototype info
245 # and a lot don't include the return type
246 CFLAGS="$CFLAGS -Wno-return-type -DFUNCPROTO=15"
247 AC_MSG_RESULT(GCC on Solaris - added -Wno-return-type -DFUNCPROTO=15)
251 # See comments above about Apple's lovely C compiler.
253 CFLAGS="-no-cpp-precomp $CFLAGS"
254 AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp)
257 AC_MSG_RESULT(none needed)
262 # Not GCC - assume it's the vendor's compiler.
267 # HP's ANSI C compiler; flags suggested by Jost Martin.
268 # "-Ae" for ANSI C plus extensions such as "long long".
269 # "+O2", for optimization. XXX - works with "-g"?
271 CFLAGS="-Ae +O2 $CFLAGS"
272 AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2)
276 # It may be called "cc", but it's really a GCC derivative
277 # with a problematic special precompiler and precompiled
278 # headers; turn off the special precompiler, as some
279 # apparently-legal code won't compile with its precompiled
282 CFLAGS="-no-cpp-precomp $CFLAGS"
283 AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp)
286 AC_MSG_RESULT(none needed)
292 # Add any platform-specific linker flags needed.
294 AC_MSG_CHECKING(for platform-specific linker flags)
298 # Add -Wl,-single_module to the LDFLAGS used with shared
299 # libraries, to fix some error that show up in some cases;
300 # some Apple documentation recommends it for most shared
303 LDFLAGS_SHAREDLIB="-Wl,-single_module"
305 # Add -Wl,-search_paths_first to make sure that if we search
306 # directories A and B, in that order, for a given library, a
307 # non-shared version in directory A, rather than a shared
308 # version in directory B, is chosen (so we can use
309 # --with-pcap=/usr/local to force all programs to be linked
310 # with a static version installed in /usr/local/lib rather than
311 # the system version in /usr/lib).
313 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
314 AC_MSG_RESULT([Apple linker - added -Wl,-single_module and -Wl,-search_paths_first])
318 # Shared libraries in cygwin/Win32 must never contain
321 LDFLAGS="$LDFLAGS -no-undefined"
322 AC_MSG_RESULT(CygWin GNU ld - added -no-undefined)
325 AC_MSG_RESULT(none needed)
328 AC_SUBST(LDFLAGS_SHAREDLIB)
331 # On OS X, if we find the headers for Core Foundation and Launch Services,
332 # add -framework options to link with Application Services (of which
333 # Launch Services is a subframework) and Core Foundation (required by
334 # the Launch Services APIs), so we can use that to launch a Web browser
335 # from the Help menu.
337 # (Do those headers exist on pure Darwin? If so, does the CoreFoundation
338 # *and* Launch Services code exist there, or are those headers just stubs?
339 # If the frameworks aren't present on Darwin, how *should* we check for
345 AC_MSG_CHECKING(whether we can build with Core Foundation and Launch Services)
347 ac_frameworks="-framework ApplicationServices -framework CoreFoundation"
348 LIBS="$LIBS $ac_frameworks"
351 # include <CoreFoundation/CFBase.h>
352 # include <CoreFoundation/CFString.h>
353 # include <CoreFoundation/CFURL.h>
354 # include <ApplicationServices/ApplicationServices.h>
357 CFStringRef url_CFString;
361 url_CFString = CFStringCreateWithCString(NULL, "", kCFStringEncodingASCII);
362 url_CFURL = CFURLCreateWithString(NULL, url_CFString, NULL);
363 status = LSOpenCFURLRef(url_CFURL, NULL);
365 ac_cv_can_use_cf_and_ls=yes,
366 ac_cv_can_use_cf_and_ls=no,
367 [echo $ac_n "cross compiling; assumed OK... $ac_c"])
368 if test "$ac_cv_can_use_cf_and_ls" = yes ; then
369 AC_DEFINE(HAVE_OS_X_FRAMEWORKS, 1, [Define to 1 if you have OS X frameworks])
370 FRAMEWORKS="$ac_frameworks"
380 dnl Look in /usr/local for header files and libraries ?
381 dnl XXX FIXME don't include /usr/local if it is already in the system
382 dnl search path as this causes gcc 3.2 on Linux to complain about a change
383 dnl of the system search order for includes
384 AC_ARG_ENABLE(usr-local,
385 AC_HELP_STRING( [--enable-usr-local],
386 [look for headers and libs in /usr/local tree. @<:@default=yes@:>@]),
387 ac_cv_enable_usr_local=$enableval,ac_cv_enable_usr_local=yes)
389 AC_MSG_CHECKING(whether to use /usr/local for headers and libraries)
390 if test "x$ac_cv_enable_usr_local" = "xyes" ; then
393 # Arrange that we search for header files in the source directory
394 # and in its "wiretap" subdirectory, as well as in "/usr/local/include",
395 # as various packages we use ("libpcap", "zlib", an SNMP library)
396 # may have been installed under "/usr/local/include".
398 CFLAGS="$CFLAGS -I/usr/local/include"
399 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
402 # Arrange that we search for libraries in "/usr/local/lib".
404 AC_WIRESHARK_ADD_DASH_L(LDFLAGS, /usr/local/lib)
410 # If we're running Solaris, and LD_LIBRARY_PATH is defined, add it as a
415 AC_MSG_CHECKING(for LD_LIBRARY_PATH, since you appear to be running Solaris)
416 if test x$LD_LIBRARY_PATH != x ; then
417 LIBS="$LIBS -R$LD_LIBRARY_PATH"
418 AC_MSG_RESULT(yes -- added LD_LIBRARY_PATH to run-time linker path)
420 AC_MSG_RESULT(no -- this may be a problem in a few seconds)
426 # Check for versions of "sed" inadequate to handle, in libtool, a list
427 # of object files as large as the list in Wireshark.
429 # On Solaris, we check for "/bin/sed", "/usr/bin/sed", and "/usr/ucb/sed",
430 # as both "/usr/bin/sed" (which is also "/bin/sed", as "/bin" is just a
431 # symlink to "/usr/bin", but people may have "/bin" before "/usr/bin" in
432 # their search path) and "/usr/ucb/sed" are inadequate; "/usr/xpg4/bin/sed"
433 # is the only "sed" that comes with Solaris that can handle Wireshark.
435 # Add any checks here that are necessary for other OSes.
437 AC_WIRESHARK_GNU_SED_CHECK
438 if test "$HAVE_GNU_SED" = no ; then
441 AC_MSG_CHECKING(whether one of /usr/bin/sed or /bin/sed or /usr/ucb/sed will be used)
443 /bin/sed|/usr/bin/sed|/usr/ucb/sed)
445 AC_MSG_ERROR([change your path to search /usr/xpg4/bin or directory containing GNU sed before /usr/bin (and /bin and /usr/ucb)])
460 # Enable/disable tshark
462 AC_ARG_ENABLE(wireshark,
463 AC_HELP_STRING( [--enable-wireshark],
464 [build GTK+-based wireshark. @<:@default=yes, if GTK+ available@:>@]),
465 enable_wireshark=$enableval,enable_wireshark=yes)
468 AC_HELP_STRING( [--disable-gtk2],
469 [build Glib1/Gtk1+-based wireshark/tshark. @<:@default=no@:>@]),
470 enable_gtk2=$enableval,enable_gtk2=yes)
471 AM_CONDITIONAL(USE_GTK2, test x$enable_gtk2 = xyes)
473 AC_ARG_ENABLE(threads,
474 AC_HELP_STRING( [--enable-threads],
475 [use threads in wireshark. @<:@default=no@:>@]),
476 enable_threads=$enableval,enable_threads=no)
477 AM_CONDITIONAL(USE_THREADS, test x$enable_threads = xyes)
479 AC_ARG_ENABLE(profile-build,
480 AC_HELP_STRING( [--enable-profile-build],
481 [build profile-ready binaries. @<:@default=no@:>@]),
482 enable_profile_build=$enableval,enable_profile_build=no)
483 AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)
484 AC_MSG_CHECKING(if profile builds must be generated)
485 if test "x$enable_profile_build" = "xyes" ; then
486 if test "x$GCC" = "xyes" ; then
488 CFLAGS=" -pg $CFLAGS"
491 echo "Building profile binaries currently only supported for GCC."
497 # Create DATAFILE_DIR #define for config.h
498 datafiledir=$datadir/wireshark
500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
501 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
502 # Ugly hack, but I don't see how this problem can be solved
503 # properly that DATAFILE_DIR had a value starting with
504 # "${prefix}/" instead of e.g. "/usr/local/"
505 eval eval echo "$datafiledir"
507 AC_DEFINE_UNQUOTED(DATAFILE_DIR,"$datafiledir", [Directory for data])
510 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
511 # programs to be built with GTK+.
513 if test "x$enable_gtk2" = "xyes" -a "x$enable_wireshark" = "xyes"; then
515 AM_PATH_GTK_2_0(2.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no, gthread)
516 elif test "x$enable_gtk2" != "xyes" -a "x$enable_wireshark" = "xyes"; then
518 AM_PATH_GTK(1.2.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no )
524 # This doesn't add GLIB_CFLAGS to CFLAGS, because AM_PATH_GTK will add
525 # GTK_CFLAGS to CFLAGS, and GTK_CFLAGS is a superset of CFLAGS.
526 # However, this means that both @GLIB_LIBS@ and @GTK_LIBS@ will be
527 # set when generating the Makefile, so we can make programs that require
528 # only GLib link with @GLIB_LIBS@ and make programs that require GTK+
529 # link with @GTK_LIBS@ (which includes @GLIB_LIBS@).
530 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
531 # programs to be built with GLib.
533 if test "$GTK_OK" = "no" ; then
535 # We don't have GTK+.
536 # If they didn't explicitly say "--disable-wireshark", fail (so
537 # that, unless they explicitly indicated that they don't want
538 # Wireshark, we stop so they know they won't be getting
539 # Wireshark unless they fix the GTK+ problem).
541 if test "x$enable_wireshark" = "xyes"; then
542 AC_MSG_ERROR([GTK+ isn't available, so Wireshark can't be compiled])
547 if test "x$enable_gtk2" = "xyes" ; then
548 AM_PATH_GLIB_2_0(2.0.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib2 distribution not found.), gmodule)
550 AM_PATH_GLIB(1.2.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib distribution not found.), gmodule)
553 wireshark_bin="wireshark\$(EXEEXT)"
554 wireshark_man="wireshark.1"
555 wireshark_SUBDIRS="codecs gtk"
557 if test "$GTK_OK" = "two" ; then
558 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR(GLib distribution not found.), gmodule)
560 AM_PATH_GLIB(1.2.0, , AC_MSG_ERROR(GLib distribution not found.), gmodule)
565 # Check whether GLib modules are supported, to determine whether we
566 # can support plugins.
568 AC_MSG_CHECKING(whether GLib supports loadable modules)
569 ac_save_CFLAGS="$CFLAGS"
571 CFLAGS="$CFLAGS $GLIB_CFLAGS"
572 LIBS="$GLIB_LIBS $LIBS"
582 if (g_module_supported())
583 return 0; /* success */
585 return 1; /* failure */
587 ], ac_cv_glib_supports_modules=yes, ac_cv_glib_supports_modules=no,
588 [echo $ac_n "cross compiling; assumed OK... $ac_c"
589 ac_cv_glib_supports_modules=yes])
590 CFLAGS="$ac_save_CFLAGS"
592 if test "$ac_cv_glib_supports_modules" = yes ; then
601 # We can't just check for <inttypes.h> - some systems have one that
602 # doesn't define all the PRI[doxu]64 macros.
604 AC_CHECK_HEADERS(inttypes.h,
607 # OK, we have inttypes.h, but does it define those macros?
609 AC_MSG_CHECKING([[whether inttypes.h defines the PRI[doxu]64 macros]])
614 #include <inttypes.h>
617 #include <sys/types.h>
621 printf("%" PRId64 "\n", (gint64)1);
622 printf("%" PRIo64 "\n", (guint64)1);
623 printf("%" PRIx64 "\n", (guint64)1);
624 printf("%" PRIX64 "\n", (guint64)1);
625 printf("%" PRIu64 "\n", (guint64)1);
631 ac_wireshark_inttypes_h_defines_formats=yes
635 ac_wireshark_inttypes_h_defines_formats=no
640 # We don't have inttypes.h, so it obviously can't define those
643 ac_wireshark_inttypes_h_defines_formats=no
645 if test "$ac_wireshark_inttypes_h_defines_formats" = yes; then
646 AC_DEFINE(INTTYPES_H_DEFINES_FORMATS,,[Define if <inttypes.h> defines PRI[doxu]64 macros])
648 AC_WIRESHARK_CHECK_64BIT_FORMAT(ll,
650 AC_WIRESHARK_CHECK_64BIT_FORMAT(L,
652 AC_WIRESHARK_CHECK_64BIT_FORMAT(q,
654 AC_MSG_ERROR([neither %llx nor %Lx nor %qx worked on a 64-bit integer])
660 AC_SUBST(wireshark_bin)
661 AC_SUBST(wireshark_man)
663 rdps_bin="rdps\$(EXEEXT)"
667 # Enable/disable tshark
669 AC_ARG_ENABLE(tshark,
670 AC_HELP_STRING( [--enable-tshark],
671 [build tshark. @<:@default=yes@:>@]),
672 tshark=$enableval,enable_tshark=yes)
674 if test "x$enable_tshark" = "xyes" ; then
675 tshark_bin="tshark\$(EXEEXT)"
676 tshark_man="tshark.1"
677 wiresharkfilter_man="wireshark-filter.4"
684 AC_SUBST(wiresharkfilter_man)
688 # Enable/disable editcap
690 AC_ARG_ENABLE(editcap,
691 AC_HELP_STRING( [--enable-editcap],
692 [build editcap. @<:@default=yes@:>@]),
693 enable_editcap=$enableval,enable_editcap=yes)
695 if test "x$enable_editcap" = "xyes" ; then
696 editcap_bin="editcap\$(EXEEXT)"
697 editcap_man="editcap.1"
702 AC_SUBST(editcap_bin)
703 AC_SUBST(editcap_man)
705 # Enabling/disabling of dumpcap is done later (after we know if we have PCAP
708 # Enable/disable capinfos
710 AC_ARG_ENABLE(capinfos,
711 AC_HELP_STRING( [--enable-capinfos],
712 [build capinfos. @<:@default=yes@:>@]),
713 enable_capinfos=$enableval,enable_capinfos=yes)
715 if test "x$enable_capinfos" = "xyes" ; then
716 capinfos_bin="capinfos\$(EXEEXT)"
717 capinfos_man="capinfos.1"
722 AC_SUBST(capinfos_bin)
723 AC_SUBST(capinfos_man)
726 # Enable/disable mergecap
728 AC_ARG_ENABLE(mergecap,
729 AC_HELP_STRING( [--enable-mergecap],
730 [build mergecap. @<:@default=yes@:>@]),
731 enable_mergecap=$enableval,enable_mergecap=yes)
733 if test "x$enable_mergecap" = "xyes" ; then
734 mergecap_bin="mergecap\$(EXEEXT)"
735 mergecap_man="mergecap.1"
740 AC_SUBST(mergecap_bin)
741 AC_SUBST(mergecap_man)
744 # Enable/disable text2pcap
746 AC_ARG_ENABLE(text2pcap,
747 AC_HELP_STRING( [--enable-text2pcap],
748 [build text2pcap. @<:@default=yes@:>@]),
749 text2pcap=$enableval,enable_text2pcap=yes)
751 if test "x$enable_text2pcap" = "xyes" ; then
752 text2pcap_bin="text2pcap\$(EXEEXT)"
753 text2pcap_man="text2pcap.1"
758 AC_SUBST(text2pcap_bin)
759 AC_SUBST(text2pcap_man)
761 # Enable/disable idl2wrs
763 AC_ARG_ENABLE(idl2wrs,
764 AC_HELP_STRING( [--enable-idl2wrs],
765 [build idl2wrs. @<:@default=yes@:>@]),
766 enable_idl2wrs=$enableval,enable_idl2wrs=yes)
768 if test "x$enable_idl2wrs" = "xyes" ; then
769 idl2wrs_bin="idl2wrs"
770 idl2wrs_man="idl2wrs.1"
775 AC_SUBST(idl2wrs_bin)
776 AC_SUBST(idl2wrs_man)
779 # Enable/disable dftest
781 AC_ARG_ENABLE(dftest,
782 AC_HELP_STRING( [--enable-dftest],
783 [build dftest. @<:@default=yes@:>@]),
784 enable_dftest=$enableval,enable_dftest=yes)
786 if test "x$enable_dftest" = "xyes" ; then
787 dftest_bin="dftest\$(EXEEXT)"
794 # Enable/disable randpkt
796 AC_ARG_ENABLE(randpkt,
797 AC_HELP_STRING( [--enable-randpkt],
798 [build randpkt. @<:@default=yes@:>@]),
799 enable_randpkt=$enableval,enable_randpkt=yes)
801 if test "x$enable_randpkt" = "xyes" ; then
802 randpkt_bin="randpkt\$(EXEEXT)"
806 AC_SUBST(randpkt_bin)
809 dnl Checks for "gethostbyname()" - and "-lnsl", if we need it to get
810 dnl "gethostbyname()".
811 AC_WIRESHARK_GETHOSTBY_LIB_CHECK
813 dnl Checks for "connect()", used as a proxy for "socket()" - and
814 dnl "-lsocket", if we need it to get "connect()".
815 AC_WIRESHARK_SOCKET_LIB_CHECK
818 AC_MSG_CHECKING(whether to use libpcap for packet capture)
821 AC_HELP_STRING( [--with-pcap@<:@=DIR@:>@],
822 [use libpcap for packet capturing. @<:@default=yes@:>@]),
824 if test $withval = no
827 elif test $withval = yes
838 if test "x$want_pcap" = "xno" ; then
842 AC_WIRESHARK_PCAP_CHECK
845 # Enable/disable dumpcap
848 AC_MSG_CHECKING(whether to build dumpcap)
850 AC_ARG_ENABLE(dumpcap,
851 AC_HELP_STRING( [--enable-dumpcap],
852 [build dumpcap. @<:@default=yes@:>@]),
853 enable_dumpcap=$enableval,enable_dumpcap=yes)
855 if test "x$enable_dumpcap" = "xyes" ; then
856 if test "x$want_pcap" = "xno" ; then
858 AC_MSG_RESULT(pcap not available - disabling dumpcap)
866 if test "x$enable_dumpcap" = "xyes" ; then
867 dumpcap_bin="dumpcap\$(EXEEXT)"
868 dumpcap_man="dumpcap.1"
873 AC_SUBST(dumpcap_bin)
874 AC_SUBST(dumpcap_man)
877 AC_MSG_CHECKING(whether to use zlib for reading compressed capture files)
880 AC_HELP_STRING( [--with-zlib@<:@=DIR@:>@],
881 [use zlib (located in directory DIR, if supplied) to read compressed data. @<:@default=yes, if available@:>@]),
883 if test $withval = no
886 elif test $withval = yes
895 # Use zlib if it's present, otherwise don't.
897 want_zlib=ifavailable
900 if test "x$want_zlib" = "xno" ; then
904 AC_WIRESHARK_ZLIB_CHECK
905 if test "x$want_zlib" = "xno" ; then
906 AC_MSG_RESULT(zlib not found - disabling compressed capture file support)
912 AC_MSG_CHECKING(whether to use libpcre for regular expressions in dfilters)
915 AC_HELP_STRING( [--with-pcre@<:@=DIR@:>@],
916 [use libpcre (located in directory DIR, if supplied) to use in dfilter regular expressions. @<:@default=yes, if available@:>@]),
918 if test $withval = no
921 elif test $withval = yes
930 # Use libpcre if it's present, otherwise don't.
932 want_pcre=ifavailable
935 if test "x$want_pcre" = "xno" ; then
939 AC_WIRESHARK_LIBPCRE_CHECK
940 if test "x$want_pcre" = "xno" ; then
941 AC_MSG_RESULT(libpcre not found - disabling support for perl compatible regular expressions in dfilters)
947 AC_MSG_CHECKING(whether to use liblua for the lua scripting plugin)
950 AC_HELP_STRING( [--with-lua@<:@=DIR@:>@],
951 [use liblua (located in directory DIR, if supplied) for the lua scripting plugin. @<:@default=no@:>@]),
953 if test $withval = no
956 elif test $withval = yes
965 # Don't use liblua by default (it isn't ready yet)
970 if test "x$want_lua" = "xno" ; then
974 AC_WIRESHARK_LIBLUA_CHECK
975 if test "x$want_lua" = "xno" ; then
976 AC_MSG_RESULT(liblua not found - disabling support for the lua scripting plugin)
979 AM_CONDITIONAL(HAVE_LIBLUA, test x$want_lua = xyes)
983 AC_MSG_CHECKING(whether to use libportaudio for the rtp_player)
985 AC_ARG_WITH(portaudio,
986 AC_HELP_STRING( [--with-portaudio@<:@=DIR@:>@],
987 [use libportaudio (located in directory DIR, if supplied) for the rtp_player. @<:@default=yes, if available@:>@]),
989 if test $withval = no
992 elif test $withval = yes
997 portaudio_dir=$withval
1001 # Use libportaudio by default
1003 want_portaudio=ifavailable
1006 if test "x$want_portaudio" = "xno" ; then
1010 AC_WIRESHARK_LIBPORTAUDIO_CHECK
1011 if test "x$want_portaudio" = "xno" ; then
1012 AC_MSG_RESULT(libportaudio not found - disabling support for the rtp_player)
1015 AM_CONDITIONAL(HAVE_LIBPORTAUDIO, test x$want_portaudio = xyes)
1020 AC_HELP_STRING( [--enable-ipv6],
1021 [use ipv6 name resolution, if available. @<:@default=yes@:>@]),
1022 enable_ipv6=$enableval,enable_ipv6=yes)
1024 AC_MSG_CHECKING(whether to enable ipv6 name resolution if available)
1025 if test "x$enable_ipv6" = "xno" ; then
1029 AC_WIRESHARK_IPV6_STACK
1033 dnl Check if wireshark should be installed setuid
1034 AC_ARG_ENABLE(setuid-install,
1035 AC_HELP_STRING( [--enable-setuid-install],
1036 [install wireshark as setuid. DANGEROUS!!! @<:@default=no@:>@]),
1037 enable_setuid_install=$enableval,enable_setuid_install=no)
1039 AC_MSG_CHECKING(whether to install wireshark setuid)
1040 if test "x$enable_setuid_install" = "xno" ; then
1043 if test "x$enable_dumpcap" = "xno" ; then
1044 AC_MSG_ERROR(Setuid install works only with --enable-dumpcap, but dumpcap disabled)
1050 AM_CONDITIONAL(SETUID_INSTALL, test x$enable_setuid_install = xyes)
1052 dnl Checks for header files.
1054 AC_CHECK_HEADERS(direct.h dirent.h fcntl.h netdb.h stdarg.h stddef.h unistd.h)
1055 AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h)
1056 AC_CHECK_HEADERS(netinet/in.h)
1057 AC_CHECK_HEADERS(arpa/inet.h arpa/nameser.h)
1064 AC_MSG_CHECKING(whether to use SSL library)
1067 AC_HELP_STRING( [--with-ssl@<:@=DIR@:>@],
1068 [use SSL crypto library (located in directory DIR, if supplied). @<:@default=no@:>@]),
1070 if test "x$withval" = "xno"; then
1072 elif test "x$withval" = "xyes"; then
1074 elif test -d "$withval"; then
1076 AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
1081 if test "x$want_ssl" = "xyes"; then
1083 AC_CHECK_LIB(crypto,EVP_md5,
1088 AC_MSG_ERROR([SSL crypto library was requested, but is not available])
1098 AC_ARG_WITH(net-snmp,
1099 AC_HELP_STRING( [--with-net-snmp@<:@=PATH@:>@],
1100 [use Net-SNMP library (with PATH as the location of the net-snmp-config shell script that comes with the net-snmp package, if supplied) @<:@default=yes, if available@:>@]),
1102 if test $withval = no
1105 elif test $withval = yes
1110 netsnmpconfig="$withval"
1114 # Set "want_netsnmp" to "ifavailable" to make the default "use it
1115 # if you find it, otherwise don't".
1117 want_netsnmp=ifavailable
1123 AC_MSG_CHECKING(whether to use Net-SNMP library)
1124 if test "x$want_netsnmp" = "xno" ; then
1127 if test "x$want_netsnmp" = "xifavailable" ; then
1128 AC_MSG_RESULT([yes, if available])
1132 AC_WIRESHARK_NETSNMP_CHECK
1135 if test "x$have_net_snmp" = "xyes"; then
1136 AC_DEFINE(HAVE_NET_SNMP, 1, [Define to 1 if Net-SNMP support is to be used])
1143 AC_MSG_CHECKING(whether to use kerberos)
1146 AC_HELP_STRING( [--with-krb5@<:@=DIR@:>@],
1147 [use kerberos (located in directory DIR, if supplied) to use in kerberos dissection @<:@default=yes@:>@]),
1149 if test $withval = no
1152 elif test $withval = yes
1161 # Use kerberos if specified, otherwise don't.
1163 want_krb5=ifavailable
1166 if test "x$want_krb5" = "xno" ; then
1170 AC_WIRESHARK_KRB5_CHECK
1176 AC_MSG_CHECKING(whether to use the GNU ADNS library if available)
1179 AC_HELP_STRING( [--with-adns@<:@=DIR@:>@],
1180 [use GNU ADNS (located in directory DIR, if supplied). @<:@default=yes, if present@:>@]),
1182 if test "x$withval" = "xno"; then
1184 elif test "x$withval" = "xyes"; then
1186 elif test -d "$withval"; then
1188 AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
1191 if test "x$with_adns" = "xno" ; then
1195 AC_WIRESHARK_ADNS_CHECK
1200 # Define WS_VAR_IMPORT appropriately for declarations of external
1201 # variables exported from dynamically-linked libraries.
1203 AC_DEFINE(WS_VAR_IMPORT, extern, [Define as the string to precede external variable declarations in dynamically-linked libraries])
1206 # Define HAVE_AIRPDCAP
1207 # We'll want to remove this eventually.
1209 AC_DEFINE(HAVE_AIRPDCAP, 1, [Enable AirPDcap (WPA/WPA2 decryption)])
1211 dnl Checks for typedefs, structures, and compiler characteristics.
1214 # We need to know whether "struct sockaddr" has an "sa_len" member
1215 # for get_interface_list().
1217 AC_WIRESHARK_STRUCT_SA_LEN
1219 # We must know our byte order
1222 # Checks whether "-traditional" is needed when using "ioctl".
1223 # XXX - do we need this?
1224 AC_PROG_GCC_TRADITIONAL
1227 # Does GLib define G_GINT64_MODIFIER?
1229 AC_MSG_CHECKING([[whether glib.h defines the G_GINT64_MODIFIER macro]])
1235 #if GTK_MAJOR_VERSION >= 2
1236 #include <glib/gprintf.h>
1243 g_snprintf(strbuf, sizeof strbuf, "%" G_GINT64_MODIFIER "x\n", (gint64)1);
1252 AC_WIRESHARK_CHECK_64BIT_FORMAT(l,
1254 AC_WIRESHARK_CHECK_64BIT_FORMAT(ll,
1256 AC_WIRESHARK_CHECK_64BIT_FORMAT(L,
1258 AC_WIRESHARK_CHECK_64BIT_FORMAT(q,
1260 AC_MSG_ERROR([neither %lx nor %llx nor %Lx nor %qx worked on a 64-bit integer])
1269 AC_CHECK_FUNC(getopt, GETOPT_O="",
1270 [GETOPT_O="getopt.o"
1271 AC_DEFINE(NEED_GETOPT_H, 1, [Define if getopt.h needs to be included])
1273 if test "$ac_cv_func_getopt" = no ; then
1280 AC_CHECK_FUNC(strerror, STRERROR_O="",
1281 [STRERROR_O="strerror.o"
1282 AC_DEFINE(NEED_STRERROR_H, 1, [Define if strerror.h needs to be included])
1284 if test "$ac_cv_func_strerror" = no ; then
1285 STRERROR_C="strerror.c"
1286 STRERROR_O="strerror.o"
1288 AC_SUBST(STRERROR_C)
1289 AC_SUBST(STRERROR_O)
1291 AC_CHECK_FUNC(strcasecmp, STRCASECMP_O="",
1292 STRCASECMP_O="strcasecmp.o")
1293 if test "$ac_cv_func_strcasecmp" = no ; then
1294 STRCASECMP_C="strcasecmp.c"
1295 STRCASECMP_O="strcasecmp.o"
1297 AC_SUBST(STRCASECMP_C)
1298 AC_SUBST(STRCASECMP_O)
1300 AC_CHECK_FUNC(strncasecmp, STRNCASECMP_O="",
1301 STRNCASECMP_O="strncasecmp.o")
1302 if test "$ac_cv_func_strncasecmp" = no ; then
1303 STRNCASECMP_C="strncasecmp.c"
1304 STRNCASECMP_O="strncasecmp.o"
1306 AC_SUBST(STRNCASECMP_C)
1307 AC_SUBST(STRNCASECMP_O)
1309 AC_CHECK_FUNC(mkstemp, MKSTEMP_O="",
1310 MKSTEMP_O="mkstemp.o")
1311 if test "$ac_cv_func_mkstemp" = no ; then
1312 MKSTEMP_C="mkstemp.c"
1313 MKSTEMP_O="mkstemp.o"
1318 ac_save_LIBS="$LIBS"
1319 LIBS="$GLIB_LIBS $LIBS"
1320 G_ASCII_STRTOULL_C=""
1321 G_ASCII_STRTOULL_O=""
1322 G_ASCII_STRTOULL_LO=""
1323 AC_CHECK_FUNC(g_ascii_strtoull,
1324 [G_ASCII_STRTOULL_O=""
1325 G_ASCII_STRTOULL_LO=""],
1326 [G_ASCII_STRTOULL_O="g_ascii_strtoull.o"
1327 G_ASCII_STRTOULL_LO="g_ascii_strtoull.lo"
1328 AC_DEFINE(NEED_G_ASCII_STRTOULL_H, 1, [Define if g_ascii_strtoull.h needs to be included])
1330 LIBS="$ac_save_LIBS"
1331 if test "$ac_cv_func_g_ascii_strtoull" = no ; then
1332 G_ASCII_STRTOULL_C="g_ascii_strtoull.c"
1333 G_ASCII_STRTOULL_O="g_ascii_strtoull.o"
1334 G_ASCII_STRTOULL_LO="g_ascii_strtoull.lo"
1336 AC_SUBST(G_ASCII_STRTOULL_C)
1337 AC_SUBST(G_ASCII_STRTOULL_O)
1338 AC_SUBST(G_ASCII_STRTOULL_LO)
1340 AC_CHECK_FUNC(inet_aton,
1343 [INET_ATON_O="inet_aton.o"
1344 INET_ATON_LO="inet_aton.lo"
1346 if test "$ac_cv_func_inet_aton" = no ; then
1347 INET_ATON_C="inet_aton.c"
1348 INET_ATON_O="inet_aton.o"
1349 INET_ATON_LO="inet_aton.lo"
1350 AC_DEFINE(NEED_INET_ATON_H, 1, [Define if inet/aton.h needs to be included])
1352 AC_SUBST(INET_ATON_C)
1353 AC_SUBST(INET_ATON_O)
1354 AC_SUBST(INET_ATON_LO)
1356 AC_SEARCH_LIBS(inet_pton, [socket nsl], [
1357 dnl check for pre-BIND82 inet_pton() bug.
1358 AC_MSG_CHECKING(for broken inet_pton)
1359 AC_TRY_RUN([#include <sys/types.h>
1360 #include <sys/socket.h>
1361 #include <netinet/in.h>
1362 #include <arpa/inet.h>
1367 /* this should return 0 (error) */
1368 return inet_pton(AF_INET6, "0:1:2:3:4:5:6:7:", buf);
1372 }], [AC_MSG_RESULT(ok);
1373 have_inet_pton=yes], [AC_MSG_RESULT(broken);
1374 have_inet_pton=no], [AC_MSG_RESULT(cross compiling, assume it is broken);
1375 have_inet_pton=no])],
1377 if test "$have_inet_pton" = no; then
1378 INET_PTON_C="inet_pton.c"
1379 INET_PTON_O="inet_pton.o"
1380 INET_PTON_LO="inet_pton.lo"
1386 AC_SUBST(INET_PTON_C)
1387 AC_SUBST(INET_PTON_O)
1388 AC_SUBST(INET_PTON_LO)
1390 AC_SEARCH_LIBS(inet_ntop, [socket nsl], [
1391 AC_MSG_CHECKING([for inet_ntop prototype])
1392 AC_TRY_COMPILE([#include <stdio.h>
1393 #include <sys/types.h>
1394 #include <sys/socket.h>
1395 #include <netinet/in.h>
1396 #include <arpa/inet.h>
1398 extern const char *inet_ntop(int, const void *, char *, size_t);],, [
1400 AC_DEFINE(HAVE_INET_NTOP_PROTO, 1,
1401 [Define if inet_ntop() prototype exists])], [
1402 AC_TRY_COMPILE([#include <stdio.h>
1403 #include <sys/types.h>
1404 #include <sys/socket.h>
1405 #include <netinet/in.h>
1406 #include <arpa/inet.h>
1408 extern const char *inet_ntop(int, const void *, char *, socklen_t);],, [
1410 AC_DEFINE(HAVE_INET_NTOP_PROTO, 1,
1411 [Define if inet_ntop() prototype exists])], [
1412 AC_MSG_RESULT(no)])])
1415 INET_NTOP_C="inet_ntop.c"
1416 INET_NTOP_O="inet_ntop.o"
1417 INET_NTOP_LO="inet_ntop.lo"
1418 AC_DEFINE(NEED_INET_V6DEFS_H, 1,
1419 [Define if inet/v6defs.h needs to be included])])
1420 AC_SUBST(INET_NTOP_C)
1421 AC_SUBST(INET_NTOP_O)
1422 AC_SUBST(INET_NTOP_LO)
1424 AC_CHECK_FUNC(strptime, STRPTIME_O="",
1425 [STRPTIME_O="strptime.o"
1426 AC_DEFINE(NEED_STRPTIME_H, 1, [Define if strptime.h needs to be included])
1428 if test "$ac_cv_func_strptime" = no ; then
1429 STRPTIME_C="strptime.c"
1430 STRPTIME_O="strptime.o"
1432 AC_SUBST(STRPTIME_C)
1433 AC_SUBST(STRPTIME_O)
1435 AC_CHECK_FUNCS(getprotobynumber gethostbyname2)
1436 AC_CHECK_FUNCS(issetugid)
1437 AC_CHECK_FUNCS(mmap mprotect sysconf)
1439 dnl blank for now, but will be used in future
1440 AC_SUBST(wireshark_SUBDIRS)
1443 dnl check whether plugins should be enabled and, if they should be,
1444 dnl check for plugins directory - stolen from Amanda's configure.in
1446 dnl we don't wish to expand ${libdir} yet
1447 plugindir='${libdir}/wireshark/plugins/${VERSION}'
1448 AC_ARG_WITH(plugins,
1449 AC_HELP_STRING( [--with-plugins@<:@=DIR@:>@],
1450 [support plugins (installed in DIR, if supplied). @<:@default=yes, if possible@:>@]),
1452 if test "x$withval" = "xno"; then
1454 elif test "x$have_plugins" = "xno"; then
1455 AC_MSG_ERROR([GLib on this platform doesn't support loadable modules, so you can't enable plugins.])
1456 if test "x$withval" != "xyes"; then
1457 plugindir="$withval"
1461 AM_CONDITIONAL(HAVE_PLUGINS, test "x$have_plugins" = "xyes")
1462 if test x$have_plugins = xyes
1464 AC_DEFINE(HAVE_PLUGINS, 1, [Define if plugins are enabled])
1467 CPPFLAGS="$CPPFLAGS '-DPLUGIN_DIR=\"\$(plugindir)\"'"
1470 # The plugin dissectors reside in ./plugins/PROTO/
1472 PLUGIN_LIBS="-L../../epan -lwireshark $GLIB_LIBS"
1473 AC_SUBST(PLUGIN_LIBS)
1477 # Yes, AM_PROG_LIBTOOL is redundant with newer version(s) of some tool(s)
1478 # (autoconf? automake? libtool?) - with the newer version(s), it's
1479 # just an alias for AC_PROG_LIBTOOL, which is called earlier.
1481 # With older version(s) of those tool(s), however, it's not just an
1482 # alias, and the configure scripts don't work without it.
1485 AC_SUBST(LIBTOOL_DEPS)
1487 AM_CONDITIONAL(ENABLE_STATIC, test x$enable_static = xyes)
1488 if test x$enable_static = xyes -a x$have_plugins = xyes
1490 AC_DEFINE(ENABLE_STATIC, 1, [Link plugins statically into Wireshark])
1492 AC_SUBST(ENABLE_STATIC)
1494 dnl Save the cacheable configure results to config.cache before recursing
1497 AM_CONFIG_HEADER(config.h)
1498 AC_CONFIG_SUBDIRS(wiretap)
1507 epan/dfilter/Makefile
1508 epan/dissectors/Makefile
1509 epan/ftypes/Makefile
1516 packaging/nsis/Makefile
1517 packaging/rpm/Makefile
1518 packaging/rpm/SPECS/Makefile
1519 packaging/rpm/SPECS/wireshark.spec
1520 packaging/svr4/Makefile
1521 packaging/svr4/checkinstall
1522 packaging/svr4/pkginfo
1524 plugins/agentx/Makefile
1525 plugins/artnet/Makefile
1526 plugins/asn1/Makefile
1527 plugins/ciscosm/Makefile
1528 plugins/docsis/Makefile
1529 plugins/enttec/Makefile
1530 plugins/giop/Makefile
1531 plugins/gryphon/Makefile
1532 plugins/irda/Makefile
1533 plugins/lwres/Makefile
1534 plugins/m2m/Makefile
1535 plugins/mate/Makefile
1536 plugins/mgcp/Makefile
1537 plugins/opcua/Makefile
1538 plugins/opsi/Makefile
1539 plugins/pcli/Makefile
1540 plugins/profinet/Makefile
1541 plugins/rlm/Makefile
1542 plugins/rtnet/Makefile
1543 plugins/rudp/Makefile
1544 plugins/sbus/Makefile
1545 plugins/stats_tree/Makefile
1546 plugins/unistim/Makefile
1547 plugins/v5ua/Makefile
1548 plugins/wimax/Makefile
1551 tools/lemon/Makefile
1557 if test "x$enable_setuid_install" = "xyes" ; then
1558 setuid_message="yes (DANGEROUS!!!)"
1563 if test "x$want_zlib" = "xno" ; then
1569 if test "x$want_pcre" = "xno" ; then
1575 if test "x$want_lua" = "xyes" -a "x$have_plugins" = "xyes" ; then
1581 if test "x$want_portaudio" = "xyes" ; then
1582 portaudio_message="yes"
1584 portaudio_message="no"
1587 if test "x$want_ssl" = "xno" ; then
1593 if test "x$want_krb5" = "xno" ; then
1596 krb5_message="yes ($ac_krb5_version)"
1599 if test "x$have_good_adns" = "xyes" ; then
1605 if test "x$have_net_snmp" = "xyes" ; then
1606 snmp_libs_message="yes"
1608 snmp_libs_message="no"
1612 echo "The Wireshark package has been configured with the following options."
1613 echo " Build wireshark : $enable_wireshark"
1614 echo " Build tshark : $enable_tshark"
1615 echo " Build capinfos : $enable_capinfos"
1616 echo " Build editcap : $enable_editcap"
1617 echo " Build dumpcap : $enable_dumpcap"
1618 echo " Build mergecap : $enable_mergecap"
1619 echo " Build text2pcap : $enable_text2pcap"
1620 echo " Build idl2wrs : $enable_idl2wrs"
1621 echo " Build randpkt : $enable_randpkt"
1622 echo " Build dftest : $enable_dftest"
1624 echo " Install setuid : $setuid_message"
1625 echo " Use plugins : $have_plugins"
1626 echo " Build lua plugin : $lua_message"
1627 echo " Build rtp_player : $portaudio_message"
1628 echo " Use GTK+ v2 library : $enable_gtk2"
1629 if test "x$enable_gtk2" = "xyes" ; then
1630 echo " Use threads : $enable_threads"
1631 echo " Build profile binaries : $enable_profile_build"
1633 echo " Use pcap library : $want_pcap"
1634 echo " Use zlib library : $zlib_message"
1635 echo " Use pcre library : $pcre_message"
1636 echo " Use kerberos library : $krb5_message"
1637 echo " Use GNU ADNS library : $adns_message"
1638 echo " Use GNU crypto library : $gcrypt_message"
1639 echo " Use SSL crypto library : $ssl_message"
1640 echo " Use IPv6 name resolution : $enable_ipv6"
1641 echo " Use Net-SNMP library : $snmp_libs_message"
1642 echo " Use gnutls library : $tls_message"