1 --- tmp/base/ettercap-0.6.b-r0/ettercap-0.6.b/acinclude.m4 Thu Jul 10 03:25:31 2003
2 +++ ettercap-0.6.b/acinclude.m4 Thu Nov 6 18:25:39 2003
7 -AC_DEFUN(EC_SOCKLEN_CHECK,
8 - [AC_MSG_CHECKING(for socklen_t in sys/socket.h)
11 +AC_DEFUN(EC_SOCKLEN_CHECK,
12 + [AC_CACHE_CHECK([for socklen_t in sys/socket.h],
13 + [ettercap_cv_type_socklen_t],
15 #include <sys/types.h>
16 #include <sys/socket.h>
21 - [ AC_MSG_RESULT(yes)
22 - AC_DEFINE(HAVE_SOCKLEN_T)
26 - AC_MSG_RESULT(unkown when cross-compiling)
28 + [ettercap_cv_type_socklen_t=yes],
29 + [ettercap_cv_type_socklen_t=no]))
31 + if test X$ettercap_cv_type_socklen_t = Xyes; then
32 + AC_DEFINE(HAVE_SOCKLEN_T)
41 - AC_MSG_CHECKING(for NS_GET32)
43 - #include <arpa/nameser.h>
44 +AC_CACHE_CHECK([for NS_GET32],
45 + ec_cv_func_ns_get32,
47 + #include <arpa/nameser.h>
51 + char *p = "\x01\x02\x03\x04";
54 + ec_cv_func_ns_get32=yes,
55 + ec_cv_func_ns_get32=no)
56 + if test X$ec_cv_func_ns_get32 = Xyes; then
57 + AC_DEFINE(HAVE_NS_GET,1)
64 - char *p = "\x01\x02\x03\x04";
66 +dnl vim:ts=3:expandtab
71 - [ AC_MSG_RESULT(yes)
72 - AC_DEFINE(HAVE_NS_GET,1) ],
73 - [ AC_MSG_RESULT(no); ]
75 +dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
76 +dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
77 +dnl also defines GSTUFF_PKG_ERRORS on error
78 +AC_DEFUN(PKG_CHECK_MODULES, [
81 + if test -z "$PKG_CONFIG"; then
82 + AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
85 + if test "$PKG_CONFIG" = "no" ; then
86 + echo "*** The pkg-config script could not be found. Make sure it is"
87 + echo "*** in your path, or set the PKG_CONFIG environment variable"
88 + echo "*** to the full path to pkg-config."
89 + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
91 + PKG_CONFIG_MIN_VERSION=0.9.0
92 + if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
93 + AC_MSG_CHECKING(for $2)
95 + if $PKG_CONFIG --exists "$2" ; then
99 + AC_MSG_CHECKING($1_CFLAGS)
100 + $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
101 + AC_MSG_RESULT($$1_CFLAGS)
103 + AC_MSG_CHECKING($1_LIBS)
104 + $1_LIBS=`$PKG_CONFIG --libs "$2"`
105 + AC_MSG_RESULT($$1_LIBS)
109 + ## If we have a custom action on failure, don't print errors, but
110 + ## do set a variable so people can do so.
111 + $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
112 + ifelse([$4], ,echo $$1_PKG_ERRORS,)
115 + AC_SUBST($1_CFLAGS)
118 + echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
119 + echo "*** See http://www.freedesktop.org/software/pkgconfig"
123 + if test $succeeded = yes; then
124 + ifelse([$3], , :, [$3])
126 + ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
130 -dnl vim:ts=3:expandtab
132 --- tmp/base/ettercap-0.6.b-r0/ettercap-0.6.b/configure.in Thu Jul 10 03:25:31 2003
133 +++ ettercap-0.6.b/configure.in Thu Nov 6 18:13:44 2003
135 dnl $Id: configure.in,v 1.69 2003/06/30 19:57:41 alor Exp $
141 -AC_INIT(src/ec_main.c)
143 +AC_CONFIG_SRCDIR([src/ec_main.c])
144 AC_CONFIG_HEADER(config.h)
146 echo "char configure_line[[]] = \"$0 $*\";" > ./src/include/ec_debug_info.h
152 +AC_CANONICAL_TARGET([])
160 -AC_OUTPUT(ettercap.spec ettercap.8 Makefile $makeplug win32/ettercap.nsi)
161 +AC_CONFIG_FILES([ettercap.spec ettercap.8 Makefile $makeplug win32/ettercap.nsi])
164 dnl ============================
165 dnl FOR DEBUGING INFORMATIONS