AC_PREREQ(2.52)
dnl Check for CPU / vendor / OS
-AC_CANONICAL_HOST
+dnl The user is encouraged to use either `AC_CANONICAL_BUILD', or
+dnl `AC_CANONICAL_HOST', or `AC_CANONICAL_TARGET', depending on the
+dnl needs. Using `AC_CANONICAL_TARGET' is enough to run the two other
+dnl macros.
+
+dnl AC_CANONICAL_HOST
+dnl AC_CANONICAL_BUILD
AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE(wireshark, 1.1.0)
+AM_INIT_AUTOMAKE(wireshark, 0.99.5)
AM_DISABLE_STATIC
AC_SUBST(XSLTPROC)
AC_SUBST(XMLLINT)
+if test "x$CC_FOR_BUILD" = x
+then
+ CC_FOR_BUILD=$CC
+fi
+AC_SUBST(CC_FOR_BUILD)
+
# Check for doxygen
AC_PATH_PROG(DOXYGEN, doxygen)
AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, "yes", "no")
AM_CONDITIONAL(HAVE_DOXYGEN, test x$HAVE_DOXYGEN = xyes)
# gnu tls
-AM_PATH_LIBGNUTLS(1.0.0,
+AM_PATH_LIBGNUTLS(1.0.0,
[
echo "gnuTLS found, enabling ssl decryption"
AC_DEFINE(HAVE_LIBGNUTLS, 1, [Define to use gnutls library])
tls_message="no"
fi
]
-)
-
+)
+
+# libgrypt
+AM_PATH_LIBGCRYPT(1.1.42,
+ [
+ echo "libgcrypt found, enabling ipsec decryption"
+ AC_DEFINE(HAVE_LIBGCRYPT, 1, [Define to use libgcrypt])
+ gcrypt_message="yes"
+ ]
+ , [
+ if test x$libgcrypt_config_prefix != x ; then
+ AC_MSG_ERROR([[libgcrypt not found; install libgcrypt-devel package for your system]])
+ else
+ echo echo "libgcrypt not found, disabling ipsec decryption"
+ gcrypt_message="no"
+ fi
+ ]
+)
# Check for xsltproc
AC_PATH_PROG(XSLTPROC, xsltproc)
#
# Check for versions of "sed" inadequate to handle, in libtool, a list
-# of object files as large as the list in Ethereal.
+# of object files as large as the list in Wireshark.
#
# On Solaris, we check for "/bin/sed", "/usr/bin/sed", and "/usr/ucb/sed",
# as both "/usr/bin/sed" (which is also "/bin/sed", as "/bin" is just a
# symlink to "/usr/bin", but people may have "/bin" before "/usr/bin" in
# their search path) and "/usr/ucb/sed" are inadequate; "/usr/xpg4/bin/sed"
-# is the only "sed" that comes with Solaris that can handle Ethereal.
+# is the only "sed" that comes with Solaris that can handle Wireshark.
#
# Add any checks here that are necessary for other OSes.
#
datafiledir=`(
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
- eval echo "$datafiledir"
+ # Ugly hack, but I don't see how this problem can be solved
+ # properly that DATAFILE_DIR had a value starting with
+ # "${prefix}/" instead of e.g. "/usr/local/"
+ eval eval echo "$datafiledir"
)`
AC_DEFINE_UNQUOTED(DATAFILE_DIR,"$datafiledir", [Directory for data])
else
wireshark_bin="wireshark\$(EXEEXT)"
wireshark_man="wireshark.1"
- wireshark_SUBDIRS="gtk"
+ wireshark_SUBDIRS="codecs gtk"
# Honor GLIB_CFLAGS
if test "$GTK_OK" = "two" ; then
AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR(GLib distribution not found.), gmodule)
#include <stdio.h>
#include <stdlib.h>
-int
+int
main ()
{
if (g_module_supported())
AM_CONDITIONAL(HAVE_LIBLUA, test x$want_lua = xyes)
+dnl portaudio check
+AC_MSG_CHECKING(whether to use libportaudio for the rtp_player)
+
+AC_ARG_WITH(portaudio,
+[ --with-portaudio[[=DIR]] use libportaudio (located in directory DIR, if supplied) for the rtp_player. [[default=yes, if available]]],
+[
+ if test $withval = no
+ then
+ want_portaudio=no
+ elif test $withval = yes
+ then
+ want_portaudio=yes
+ else
+ want_portaudio=yes
+ portaudio_dir=$withval
+ fi
+],[
+ #
+ # Use libportaudio by default
+ #
+ want_portaudio=ifavailable
+ portaudio_dir=
+])
+if test "x$want_portaudio" = "xno" ; then
+ AC_MSG_RESULT(no)
+else
+ AC_MSG_RESULT(yes)
+ AC_WIRESHARK_LIBPORTAUDIO_CHECK
+ if test "x$want_portaudio" = "xno" ; then
+ AC_MSG_RESULT(libportaudio not found - disabling support for the rtp_player)
+ fi
+fi
+AM_CONDITIONAL(HAVE_LIBPORTAUDIO, test x$want_portaudio = xyes)
+
+
dnl ipv6 check
AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 use ipv6 name resolution, if available. [default=yes]],enable_ipv6=$enableval,enable_ipv6=yes)
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)
AC_CHECK_HEADERS(netinet/in.h)
AC_CHECK_HEADERS(arpa/inet.h arpa/nameser.h)
-AC_CHECK_HEADERS(iconv.h)
+
+dnl iconv check
+AM_ICONV
dnl SSL Check
SSL_LIBS=''
AC_SUBST(ADNS_LIBS)
#
-# Define ETH_VAR_IMPORT appropriately for declarations of external
+# Define WS_VAR_IMPORT appropriately for declarations of external
# variables exported from dynamically-linked libraries.
#
-AC_DEFINE(ETH_VAR_IMPORT, extern, [Define as the string to precede external variable declarations in dynamically-linked libraries])
+AC_DEFINE(WS_VAR_IMPORT, extern, [Define as the string to precede external variable declarations in dynamically-linked libraries])
dnl Checks for typedefs, structures, and compiler characteristics.
# AC_C_CONST
AC_SUBST(GETOPT_C)
AC_SUBST(GETOPT_O)
-# If there's a system out there that has snprintf and _doesn't_ have vsnprintf,
-# then this won't work.
-SNPRINTF_C=""
-SNPRINTF_O=""
-AC_CHECK_FUNC(snprintf, SNPRINTF_O="",
- [SNPRINTF_O="snprintf.o"
- AC_DEFINE(NEED_SNPRINTF_H, 1, [Define if sprintf.h needs to be included])
-])
-if test "$ac_cv_func_snprintf" = no ; then
- SNPRINTF_C="snprintf.c"
- SNPRINTF_O="snprintf.o"
-fi
-AC_SUBST(SNPRINTF_C)
-AC_SUBST(SNPRINTF_O)
-
AC_CHECK_FUNC(strerror, STRERROR_O="",
[STRERROR_O="strerror.o"
AC_DEFINE(NEED_STRERROR_H, 1, [Define if strerror.h needs to be included])
AM_CONDITIONAL(ENABLE_STATIC, test x$enable_static = xyes)
if test x$enable_static = xyes -a x$have_plugins = xyes
then
- AC_DEFINE(ENABLE_STATIC, 1, [Link plugins statically into Ethereal])
+ AC_DEFINE(ENABLE_STATIC, 1, [Link plugins statically into Wireshark])
fi
AC_SUBST(ENABLE_STATIC)
AC_OUTPUT(
Makefile
doxygen.cfg
+ asn1/Makefile
doc/Makefile
epan/Makefile
epan/doxygen.cfg
epan/dfilter/Makefile
epan/dissectors/Makefile
epan/ftypes/Makefile
+ epan/wslua/Makefile
+ codecs/Makefile
gtk/Makefile
gtk/doxygen.cfg
help/Makefile
plugins/gryphon/Makefile
plugins/h223/Makefile
plugins/irda/Makefile
- plugins/lua/Makefile
plugins/lwres/Makefile
plugins/mate/Makefile
plugins/megaco/Makefile
plugins/opsi/Makefile
plugins/pcli/Makefile
plugins/profinet/Makefile
- plugins/rdm/Makefile
plugins/rlm/Makefile
plugins/rtnet/Makefile
plugins/rudp/Makefile
+ plugins/sbus/Makefile
plugins/stats_tree/Makefile
plugins/v5ua/Makefile
tools/Makefile
+ tools/idl2wrs.sh
tools/lemon/Makefile
,)
lua_message="no"
fi
+if test "x$want_portaudio" = "xyes" ; then
+ portaudio_message="yes"
+else
+ portaudio_message="no"
+fi
+
if test "x$want_ssl" = "xno" ; then
ssl_message="no"
else
fi
echo ""
-echo "The Ethereal package has been configured with the following options."
+echo "The Wireshark package has been configured with the following options."
echo " Build wireshark : $enable_wireshark"
echo " Build tshark : $enable_tshark"
echo " Build capinfos : $enable_capinfos"
echo " Install setuid : $setuid_message"
echo " Use plugins : $have_plugins"
echo " Build lua plugin : $lua_message"
+echo " Build rtp_player : $portaudio_message"
echo " Use GTK+ v2 library : $enable_gtk2"
if test "x$enable_gtk2" = "xyes" ; then
-echo " Use threads : $enable_threads"
-echo " Build profile binaries : $enable_profile_build"
+echo " Use threads : $enable_threads"
+echo " Build profile binaries : $enable_profile_build"
fi
-echo " Use pcap library : $want_pcap"
-echo " Use zlib library : $zlib_message"
-echo " Use pcre library : $pcre_message"
-echo " Use kerberos library : $krb5_message"
-echo " Use GNU ADNS library : $adns_message"
-echo " Use SSL crypto library : $ssl_message"
-echo " Use IPv6 name resolution : $enable_ipv6"
-echo " Use UCD SNMP/Net-SNMP library : $snmp_libs_message"
-echo " Use gnutls library : $tls_message"
+echo " Use pcap library : $want_pcap"
+echo " Use zlib library : $zlib_message"
+echo " Use pcre library : $pcre_message"
+echo " Use kerberos library : $krb5_message"
+echo " Use GNU ADNS library : $adns_message"
+echo " Use GNU crypto library : $gcrypt_message"
+echo " Use SSL crypto library : $ssl_message"
+echo " Use IPv6 name resolution : $enable_ipv6"
+echo " Use UCD SNMP/Net-SNMP library : $snmp_libs_message"
+echo " Use gnutls library : $tls_message"