diff options
author | Guy Harris <guy@alum.mit.edu> | 1998-11-15 05:40:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1998-11-15 05:40:23 +0000 |
commit | a2fe97acd2ac655bb7163f1b2feb41298f4d1058 (patch) | |
tree | 4436b1e50b0cc93e209b5e24096fa7b3e6c8f3a7 | |
parent | 86bf1fc851b5564f5700a937de3213e8354aa52e (diff) |
Back out some changes accidentally commited by the previous checkin - I
forgot that CVS, unlike Perforce, doesn't let you edit the list of files
it gives you in the editor and cause those files *not* to be committed,
it requires you to specify the files to be committed if you only want
some files committed.
svn path=/trunk/; revision=92
-rw-r--r-- | Makefile.in | 8 | ||||
-rw-r--r-- | acconfig.h | 2 | ||||
-rw-r--r-- | aclocal.m4 | 70 | ||||
-rw-r--r-- | capture.c | 4 | ||||
-rw-r--r-- | config.h.in | 2 | ||||
-rwxr-xr-x | configure | 70 | ||||
-rw-r--r-- | configure.in | 7 |
7 files changed, 28 insertions, 135 deletions
diff --git a/Makefile.in b/Makefile.in index 1678de55ef..e509090d9f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -194,9 +194,9 @@ NROFF = nroff DATA = $(sysconf_DATA) DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \ -Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 config.guess \ -config.h.in config.sub configure configure.in install-sh missing \ -mkinstalldirs stamp-h.in +Makefile.in NEWS acconfig.h aclocal.m4 config.guess config.h.in \ +config.sub configure configure.in install-sh missing mkinstalldirs \ +stamp-h.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) @@ -230,7 +230,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status -$(ACLOCAL_M4): configure.in acinclude.m4 +$(ACLOCAL_M4): configure.in cd $(srcdir) && $(ACLOCAL) config.status: $(srcdir)/configure diff --git a/acconfig.h b/acconfig.h index 49aaba9156..e24f8eb258 100644 --- a/acconfig.h +++ b/acconfig.h @@ -2,7 +2,7 @@ #undef VERSION -#undef HAVE_SA_LEN +#undef HAVE_SOCKADDR_SA_LEN #undef DATAFILE_DIR diff --git a/aclocal.m4 b/aclocal.m4 index aa8e872e78..2052094092 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -10,76 +10,6 @@ dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. -dnl Macros that test for specific features. -dnl This file is part of Autoconf. -dnl Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception, the Free Software Foundation gives unlimited -dnl permission to copy, distribute and modify the configure scripts that -dnl are the output of Autoconf. You need not follow the terms of the GNU -dnl General Public License when using or distributing such scripts, even -dnl though portions of the text of Autoconf appear in them. The GNU -dnl General Public License (GPL) does govern all other use of the material -dnl that constitutes the Autoconf program. -dnl -dnl Certain portions of the Autoconf source text are designed to be copied -dnl (in certain cases, depending on the input) into the output of -dnl Autoconf. We call these the "data" portions. The rest of the Autoconf -dnl source text consists of comments plus executable code that decides which -dnl of the data portions to output in any given case. We call these -dnl comments and executable code the "non-data" portions. Autoconf never -dnl copies any of the non-data portions into its output. -dnl -dnl This special exception to the GPL applies to versions of Autoconf -dnl released by the Free Software Foundation. When you make and -dnl distribute a modified version of Autoconf, you may extend this special -dnl exception to the GPL to apply to your modified version as well, *unless* -dnl your modified version has the potential to copy into its output some -dnl of the text that was the non-data portion of the version that you started -dnl with. (In other words, unless your change moves or copies text from -dnl the non-data portions to the data portions.) If your modification has -dnl such potential, you must delete any notice of this special exception -dnl to the GPL from your modified version. -dnl -dnl Written by David MacKenzie, with help from -dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, -dnl Roland McGrath, Noah Friedman, david d zuhn, and many others. - -dnl AC_STRUCT_ST_BLKSIZE extracted from the file in qustion, -dnl "acspecific.m4" in GNU Autoconf 2.12, and turned into -dnl AC_ETHEREAL_STRUCT_SA_LEN, which checks if "struct sockaddr" -dnl has the 4.4BSD "sa_len" member, and defines HAVE_SA_LEN; that's -dnl what's in this file. -dnl Done by Guy Harris <guy@netapp.com> on 1998-11-14. - -dnl ### Checks for structure members - - -AC_DEFUN(AC_ETHEREAL_STRUCT_SA_LEN, -[AC_CACHE_CHECK([for sa_len in struct sockaddr], ac_cv_ethereal_struct_sa_len, -[AC_TRY_COMPILE([#include <sys/types.h> -#include <sys/socket.h>], [struct sockaddr s; s.sa_len;], -ac_cv_ethereal_struct_sa_len=yes, ac_cv_ethereal_struct_sa_len=no)]) -if test $ac_cv_ethereal_struct_sa_len = yes; then - AC_DEFINE(HAVE_SA_LEN) -fi -]) - # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.9 1998/11/15 05:28:54 guy Exp $ + * $Id: capture.c,v 1.10 1998/11/15 05:40:19 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -126,7 +126,7 @@ get_interface_list() { ! strchr(ifr->ifr_name, ':')) { il = g_list_append(il, g_strdup(ifr->ifr_name)); } -#ifdef HAVE_SA_LEN +#ifdef HAVE_SOCKADDR_SA_LEN ifr = (struct ifreq *) ((char *) ifr + ifr->ifr_addr.sa_len + IFNAMSIZ); #else ifr = (struct ifreq *) ((char *) ifr + sizeof(struct ifreq)); diff --git a/config.h.in b/config.h.in index ad8d4c00ab..66a8c35379 100644 --- a/config.h.in +++ b/config.h.in @@ -11,8 +11,6 @@ #undef VERSION -#undef HAVE_SA_LEN - #undef DATAFILE_DIR #undef NEED_SNPRINTF_H @@ -1694,54 +1694,20 @@ done # AC_C_CONST -# We need to know whether "struct sockaddr" has an "sa_len" member -# for get_interface_list(). - -echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6 -echo "configure:1702: checking for sa_len in struct sockaddr" >&5 -if eval "test \"`echo '$''{'ac_cv_ethereal_struct_sa_len'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1707 "configure" -#include "confdefs.h" -#include <sys/types.h> -#include <sys/socket.h> -int main() { -struct sockaddr s; s.sa_len; -; return 0; } -EOF -if { (eval echo configure:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_ethereal_struct_sa_len=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_ethereal_struct_sa_len=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_ethereal_struct_sa_len" 1>&6 -if test $ac_cv_ethereal_struct_sa_len = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SA_LEN 1 -EOF - -fi +# We need libpcap's AC_LBL_SOCKADDR_SA_LEN test for get_interface_list(). +AC_LBL_SOCKADDR_SA_LEN # We must know our byte order echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:1738: checking whether byte ordering is bigendian" >&5 +echo "configure:1704: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat > conftest.$ac_ext <<EOF -#line 1745 "configure" +#line 1711 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> @@ -1752,11 +1718,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext <<EOF -#line 1760 "configure" +#line 1726 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> @@ -1767,7 +1733,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:1771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -1787,7 +1753,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <<EOF -#line 1791 "configure" +#line 1757 "configure" #include "confdefs.h" main () { /* Are we little or big endian? From Harbison&Steele. */ @@ -1800,7 +1766,7 @@ main () { exit (u.c[sizeof (long) - 1] == 1); } EOF -if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -1826,13 +1792,13 @@ fi if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:1830: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:1796: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext <<EOF -#line 1836 "configure" +#line 1802 "configure" #include "confdefs.h" #include <sgtty.h> Autoconf TIOCGETP @@ -1850,7 +1816,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext <<EOF -#line 1854 "configure" +#line 1820 "configure" #include "confdefs.h" #include <termio.h> Autoconf TCGETA @@ -1872,12 +1838,12 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 fi echo $ac_n "checking for socket""... $ac_c" 1>&6 -echo "configure:1876: checking for socket" >&5 +echo "configure:1842: checking for socket" >&5 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1881 "configure" +#line 1847 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char socket(); below. */ @@ -1900,7 +1866,7 @@ socket(); ; return 0; } EOF -if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_socket=yes" else @@ -1926,12 +1892,12 @@ fi SNPRINTF_C="" SNPRINTF_O="" echo $ac_n "checking for snprintf""... $ac_c" 1>&6 -echo "configure:1930: checking for snprintf" >&5 +echo "configure:1896: checking for snprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1935 "configure" +#line 1901 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char snprintf(); below. */ @@ -1954,7 +1920,7 @@ snprintf(); ; return 0; } EOF -if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_snprintf=yes" else diff --git a/configure.in b/configure.in index 0286fd2bdf..1bb906d80e 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.11 1998/11/15 05:28:58 guy Exp $ +# $Id: configure.in,v 1.12 1998/11/15 05:40:23 guy Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(etypes.h) @@ -91,10 +91,9 @@ AC_CHECK_HEADERS(sys/sockio.h sys/types.h netinet/in.h) dnl Checks for typedefs, structures, and compiler characteristics. # AC_C_CONST -# We need to know whether "struct sockaddr" has an "sa_len" member -# for get_interface_list(). +# We need libpcap's AC_LBL_SOCKADDR_SA_LEN test for get_interface_list(). -AC_ETHEREAL_STRUCT_SA_LEN +AC_LBL_SOCKADDR_SA_LEN # We must know our byte order AC_C_BIGENDIAN |