https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4879
--- Comment #30 from Jose Pedro Oliveira <jpo@xxxxxxxxxxxx> 2010-10-03 15:17:49 PDT ---
(In reply to comment #29)
> ...
> I just committed revision 34356, which by default enables AIRPCAP for configure
> as well.
I had to specify the 4th parameter ("action-if-not-given") for it to work,
otherwise a plain ./configure wouldn't enable HAVE_AIRPCAP.
----------
$ svn diff configure.in
Index: configure.in
===================================================================
--- configure.in (revision 34356)
+++ configure.in (working copy)
@@ -1548,14 +1548,19 @@
#
AC_DEFINE(WS_VAR_IMPORT, extern, [Define as the string to precede external
variable declarations in dynamically-linked libraries])
-AC_ARG_ENABLE(airpcap,
+AC_ARG_ENABLE([airpcap],
+[
AC_HELP_STRING( [--enable-airpcap],
[use airpcap in wireshark. @<:@default=yes@:>@]),
+], [
enable_airpcap=$enableval
if test x$enable_airpcap != xno; then
AC_DEFINE(HAVE_AIRPCAP, 1, [Enable AirPcap])
fi
-)
+], [
+ enable_airpcap=yes
+ AC_DEFINE(HAVE_AIRPCAP, 1, [Enable AirPcap])
+])
#
# Define HAVE_AIRPDCAP
# We'll want to remove this eventually.
----------
Note: the 4th parameter is also missing from AC_ARG_WITH(python, ...)
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.